Home > Veritas Cluster Server Manual Pages
HATYPE (1M) |
Maintenance Commands |
hatype -delete restype
hatype -display [restype(s)] [-attribute attribute(s)]
hatype -resources restype
hatype -list [conditional(s)]
hatype -value type attr
hatype [-help [-modify | -list]]
hatype -modify modify_options
- -add restype
- Add a resource type to the VCS configuration.
- -delete restype
- 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.
- -resources restype
- Display a list of resources of the specified resource type.
- -list [conditional(s)]
- 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.
- -value type attr
- 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.
- -help [-modify | -list]
- Display information about using hatype. The -modify option provides modify specific help; the -list option provides list specific help.
- -modify modify_options
- 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.
- SCALAR
- hatype -modify type attr value
- VECTOR
- 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.
- KEYLIST
- 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
- ASSOCIATION
- 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.
Last updated: April 2006
Copyright ©2009 Symantec Corporation
All rights reserved.