Attributes contain data regarding the cluster, systems, service groups, resources, resource types, agents, and heartbeats if the Global Cluster option is used (refer to the Veritas Cluster Server User's Guide for information about the Global Cluster option).
A string is a sequence of characters enclosed by double quotes. A string may also contain double quotes, but the quotes must be immediately preceded by a backslash character. A backslash character itself is represented in a string as \\.
Quotes are not required if a string begins with a letter, and contains only letters, numbers, dashes (-), and underscores (_). For example, a string defining a network interface such as hme0
does not require quotes as it contains only letters and numbers.
However a string containing delimiters, such as an IP address, requires quotes. For example "192.168.100.1" because the IP address contains periods. For example:
<attribute name="SystemIPAddrs">
Signed integer constants are a sequence of digits from 0 to 9. They may be preceded by a dash, and are interpreted in base 10. Integers cannot exceed the value of a 32-bit signed integer, 21471183247. For example:
A scalar has only one value. This is the default attribute dimension. To define an attribute with a scalar dimension, add a line in the resource type definition. It should resemble:
A definition without a default value resembles:
<attribute name="MyScalar" type="str" dimension="scalar">
When values are assigned to a scalar attribute in the main.xmlcf configuration file, it might resemble:
<scalar>"scalar_str_val"</scalar>
A vector is an ordered list of values. A set of brackets ([]) denotes that the dimension is a vector. Brackets are specified following the attribute name in the resource type attribute definition. To define an attribute with a vector dimension, add a line in the resource type definition. It should resemble:
When values are assigned to a vector attribute in the main.cfxml
configuration file, the attribute definition might resemble:
BackupSys[] = { sysA, sysB, sysC }
A keylist is an unordered list of strings, with each string being unique within the list. To define an attribute with a keylist dimension, add a line in the resource type definition. It should resemble:
When values are assigned to a keylist attribute in the main.cfxml
file, it might resemble:
An association is an unordered list of name-value pairs. Each pair is joined by an equal sign. A set of braces ({}) denotes that an attribute is an association. Braces are specified after the attribute name in the attribute definition. To define an attribute with a association dimension, add a line in the resource type definition. It should resemble:
<val key="key1">"value1"</val>
When values are assigned to an association attribute in the main.cfxml
file, it might resemble:
<val key="Key1">"Value1"</val>