Attributes
Configure VCS resources with attributes. Attributes contain data about the cluster, systems, service groups, and resources. An attribute has a definition and a value. Some attributes also have default values.
Attribute Data Types
Data Type
|
Description
|
string
|
Enclose strings, which are a sequence of characters, in double quotes ("). You do not have to enclose strings in quotes when they begin with a letter, and contains only letters, numbers, dashes (-), and underscores (_).
- A string defining a network interface such as lan0 does not require quotes as it contains only letters and numbers.
- Enclosing the string in double quotes is also acceptable---"lan0".
- A string defining an IP address requires quotes: "192.168.100.1" because the address contains periods.
A string can contain double quotes, but the quotes must be immediately preceded by a backslash. In a string, represent a backslash with two backward slashes (\\).
|
integer
|
Signed integer constants are a sequence of digits from 0 to 9. You can precede them with a dash. They are to the base 10. Integers cannot exceed the value of a 32-bit signed integer: 21471183247.
|
boolean
|
A boolean is an integer with the possible values of 0 (false) and 1 (true).
|
Attribute Dimensions
Dimension
|
Description
|
scalar
|
A scalar has only one value. This is the default dimension.
|
vector
|
A vector is an ordered list of values. Each value is indexed using a positive integer beginning with zero. A set of brackets ([]) denotes that the dimension is a vector. Find the specified brackets after the attribute name on the attribute definition in the types.cf file.
|
keylist
|
A keylist is an unordered list of unique strings in that list.
|
association
|
An association is an unordered list of name-value pairs. A comma separates each pair, for example: {name=value, name1=value1}. A set of braces ({}) denotes that an attribute is an association. Braces are specified after the attribute name on the attribute definition in the types.cf file, for example: str SnmpConsoles{}.
|
|