For agents registered as V40 and earlier, the ArgListValues attribute is an ordered list of attribute values. The attribute values are listed in the same order as in the ArgList attribute.
For C++ entry points, the parameter attr_val is an array of character pointers that contains the ArgListValues. The last element of the array is a NULL pointer.
attr_val
.
attr_val
.
For script entry points, the ArgListValues are passed as command-line arguments to scripts.
See the chapter describing the configuration language in the Administrator's Guide for attribute definitions.
For example, if Type "Foo" is defined in the file types.cf
as:
static str ArgList[] = { IntAttr, StringAttr,
And if a resource "Bar" is defined in the file main.cf
as:
VectorAttr = { "vol1", "vol2", "vol3" }
AssocAttr = { "disk1" = "1024", "disk2" = "512" }
Then, for V50 and later, the parameter attr_val is:
attr_val[1] = "1" // Number of components in
attr_val[2] = "100" // Value of IntAttr
attr_val[4] = "1" // Number of components in
attr_val[5] = "Oracle" // Value of StringAttr
attr_val[7] = "3" // Number of components in
attr_val[12] = "4" // Number of components in
attr_val[17] = NULL // Last element
Or, for V40 and earlier, the parameter attr_val is:
attr_val[0] ===> "100" // Value of IntAttr, the first
attr_val[1] ===> "Oracle" // Value of StringAttr.
attr_val[2] ===> "3" // Number of components in
attr_val[6] ===> "4" // Number of components in