Attribute data types and dimensions

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).

Attribute data types

<attribute name="SystemIPAddrs">

<val>"192.168.5.14"</val>

</attribute>

<attribute name="MyInteger">

<val>10</val>

</attribute>

Attribute dimensions

<default>

<scalar>"str_val1"</scalar>

</default>

</attribute>

A definition without a default value resembles:

<attribute name="MyScalar" type="str" dimension="scalar">

<default></default>

</attribute>

str MountPoint

When values are assigned to a scalar attribute in the main.xmlcf configuration file, it might resemble:

<attribute name="IntScalar">

<scalar>5</scalar>

</attribute>

or:

<attribute name="StrScalar">

<scalar>"scalar_str_val"</scalar>

</attribute>

MountPoint = "/Backup"

<default>

<val>"value1"</val>

<val>"Value1"</val>

</default>

</attribute>

str BackupSys[]

When values are assigned to a vector attribute in the main.cfxml configuration file, the attribute definition might resemble:

BackupSys[] = { sysA, sysB, sysC }

<attribute name="MyVector"

<val>"new_value1"</val>

<val>"new_value2"</val>

</attribute>

<default>

<val key="key1"></val>

</default>

</attribute>

keylist BackupVols = {}

When values are assigned to a keylist attribute in the main.cfxml file, it might resemble:

<attribute name="MyKeylist">

<val key="KeyName1"></val>

<val key="KeyName2"></val>

</attribute>

BackupVols = { vol1, vol2 }

<default>

<val key="key1">"value1"</val>

</default>

</attribute>

int BackupSysList {}

When values are assigned to an association attribute in the main.cfxml file, it might resemble:

<attribute name="MyAssoc">

<val key="Key1">"Value1"</val>

<val key="Key2">"Value2"</val>

</attribute>

BackupSysList{} = { sysa=1, sysb=2, sysc=3 }