hatype - add, modify, delete, display, or list information about a resource type
hatype -display [restype(s)] [-attribute attribute(s)]
hatype [-help [-modify | -list]]
The hatype command manages information about the various types. For example, it enables you to display and modify static attributes. Each resource that makes up a service is of a specific type, such as a volume or an IP address. Types give VCS a way to understand how to manage the individual resources. Their management depends entirely on the characteristics of the type. If a type name is not specified, information about all types is displayed. If an attribute name is not specified, information about all type attributes is displayed. See NOTES for how to specify "-" and "%" characters in the command line.
Add a resource type to the VCS configuration.
Delete a resource type from the VCS configuration.
-display [restype(s)] [-attribute attribute(s)]
Display a resource type or all types if none is specified. Attributes are displayed if specified.
Display a list of resources of the specified resource type.
Displays a list of types whose values match given conditional statement(s). Conditional statements can take three forms: Attribute=Value, Attribute!=Value, Attribute=~Value. Multiple conditional statements imply AND logic. If no conditional statement is specified, all types in the cluster are listed.
The -value option provides the value of a single type attribute. For example, "hatype -value Mount NameRule" displays the value of the NameRule attribute for the Mount type. The -value option is used instead of the -display option when one specific attribute value is needed rather than a table of many attribute values.
Display information about using hatype. The -modify option provides modify specific help; the -list option provides list specific help.
The -modify option lets you modify a type's attributes. Some attributes are internal to VCS and cannot be modified. You can modify any attribute that can be configured in main.cf.
You may modify a scalar attribute's existing value.
You may not use -modify to change values already defined for a vector, a keylist, or an association attribute. For vector, keylist, and association attributes, use the modify_options, which include -add, -delete, -update, or -delete -keys.
Refer to the following list of permissible -modify commands. You may display the commands by using hatype -help -modify.
hatype -modify type attr value
Use the following command only when the attribute has no value:
hatype -modify type attr value ...
For vector attributes that have values defined, only the following operations are allowed.
hatype -modify type attr -add value ...
hatype -modify type attr -delete -keys
Note you cannot delete an individual element of a VECTOR.
Use the following command only when the attribute has no value:
hatype -modify type attr key ...
For keylist attributes that have values defined, only the following operations are allowed.
hatype -modify type attr -add key ...
hatype -modify type attr -delete key ...
hatype -modify type attr -delete -keys
Use the following command only when the attribute has no value:
hatype -modify type attr {key value} ...
For association attributes that have values defined, only the following operations are allowed.
hatype -modify type attr -add {key value} ...
hatype -modify type attr -update {key value} ...
hatype -modify type attr -delete key ...
hatype -modify type attr -delete -keys
When using the command to specify or modify an attribute's value that begins with a dash ("-"), precede the value with a percent sign ("%"). For example, specify -y as %-y. Likewise, precede a value that starts with a percent sign with another percent sign.