About storage tier rule syntax in Veritas Operations Manager Enterprise Server 5.0

Article:HOWTO77439  |  Created: 2012-08-10  |  Updated: 2012-09-05  |  Article URL http://www.symantec.com/docs/HOWTO77439
Article Type
How To

Product(s)

Environment

Subject


About storage tier rule syntax in Veritas Operations Manager Enterprise Server 5.0

Storage tier rules determine how storage is assigned to specific storage tiers.

When you create Veritas Operations Manager Enterprise Server rules for storage tiers, you need to use valid syntax. Otherwise, the rule builders do not save the rule. In the Basic Rule Builder, you only need to type values using a valid syntax. In the Advanced Rule Builder, you type the complete rule yourself, which requires an understanding of rule syntax.

Storage tier rules consist of one or more conditions. A condition consists of the following:

The syntax of a condition must be in the following format: [Object].[Attribute] operator value

For example: [Array].[Vendor] = 'EMC'

You can combine multiple conditions using the AND or OR operators. For example: [Array].[Vendor] = 'EMC' AND [Array].[Model] = 'Cx700'

The following table describes common operators and functions.

Table: Commonly used operators and functions

Operators and functions

Description

Syntax

=

Use to match an object's attribute with a value. If the attribute equals the value, the rule is true.

[Object].[Attribute] = 'value'

AND

When using more than one condition, use to return a value of true only if all conditions are met.

[Object].[Attribute] = 'value' AND [Object].[Attribute] = 'value'

OR

When using more than one condition, use to return a value of true if one or more conditions are met.

[Object].[Attribute] = 'value' OR [Object].[Attribute] = 'value'

LIKE

Use to match an object's attribute with a value by pattern matching with wildcards. An underscore (_) matches one character in the value and a percent (%) matches zero or more characters.

[Object].[Attribute] LIKE 'value%'

IN

Use to match an object's attribute with a list of values.

[Object].[Attribute] IN ('value1', 'value2')

NOT IN

Use to match an object's attribute with all values that do not match the given list of values.

[Object].[Attribute] NOT IN ('value')

<

Use to match an object's attribute with a value that is less than the defined value.

[Object].[Attribute] < value

>

Use to match an object's attribute with a value that is greater than the defined value.

[Object].[Attribute] > value

IS NULL

Use to match an object's attribute with a value that is null.

[Object].[Attribute] IS NULL

IS NOT NULL

Use to match an object's attribute with a value that is not null.

[Object].[Attribute] IS NOT NULL

lower( )

Use to match an object's attribute with a value that contains mixed characters. This function is only available when you use the Advanced Rule Builder.

lower([Object].[Attribute]) operator 'value'

When you use comparison operators, you assign a value to an attribute. For example, if you type the rule [Array].[Vendor] = 'EMC' you assign EMC as the value for the attribute (the array vendor). You must type values in a specific format.

Note:

To find the exact value of an attribute, see your data source.

Table: Format for values

Value type

Format

String

'value'

Numeric

value

See About storage tiers in Veritas Operations Manager Enterprise Server 5.0

See Managing storage tier rules in Veritas Operations Manager Enterprise Server 5.0


Legacy ID



v58530729_v71621782


Article URL http://www.symantec.com/docs/HOWTO77439


Terms of use for this information are found in Legal Notices