test veritas logo


HATYPE(1M)

NAME

hatype - add, modify, delete, display, or list information about a resource type

SYNOPSIS

hatype -add restype

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

AVAILABILITY

VRTSvcs

DESCRIPTION

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.

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. All or specified attributes are displayed.
-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 MonitorInterval " displays the value of the MonitorInterval 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 ...

This command will append the new value to the vector.

hatype -modify type attr -insert index value ... [-sys system]

You can use the -insert option to add one or more values at a given index. You must enter a valid integer for index that can range from 1 to the maximum number of values.

hatype -modify type attr -delete key ...

This command will delete the specified keys from the vector. If a key is repeated, then all its instances will be deleted.

hatype -modify type attr -delete -keys

This command will delete all the keys making the vector empty.

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 attribute -insert index key ... [-sys system]

You can use the -insert option to add one or more values at a given index. You must enter a valid integer for index that can range from 1 to the maximum number of values that exist for the key.

hatype -modify type attr -delete key ...

This command will delete the specified keys from the vector. If a key is repeated, then all its instances will be deleted.

hatype -modify type attr -delete -keys

This command will delete all the keys making the vector empty.

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

NOTES

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.

SEE ALSO

haattr(1M),

hares(1M)


VCS 7.4.1 HATYPE(1M)