Previous  |  Next  >  
Product: Cluster Server Guides   
Manual: Cluster Server 4.1 Agent Developer's Guide   

ArgList Attributes

The open, close, online, offline, monitor, action, info, and clean scripts receive the resource name and values of the ArgList attributes. The values of scalar ArgList attributes (integer and string) are each contained in a single command-line argument. The values of complex ArgList attributes (vector and association) are contained in one or more command-line arguments.

If a vector or association attribute contains N components, it is represented by N+1 command-line arguments. The first command-line argument is N, and the remaining N arguments correspond to the N components. (For more information, see ArgList. See the chapter on the VCS configuration language in the VERITAS Cluster Server User's Guide for attribute definitions.)


If Type "Foo" is defined in types.cf as:
 Type Foo (
   str Name
    int IntAttr
   str StringAttr
   str VectorAttr[]
   str AssocAttr{}
   static str ArgList[] = { IntAttr, StringAttr,
     VectorAttr, AssocAttr }
 )

And if a resource "Bar" is defined in main.cf as:


 Foo Bar (
   IntAttr = 100
   StringAttr = "Oracle"
   VectorAttr = { "vol1", "vol2", "vol3" }
   AssocAttr = { "disk1" = "1024", "disk2" = "512" }
 )

The online script for Bar is invoked as:

online Bar 100 Oracle 3 vol1 vol2 vol3 4 disk1 1024 disk2 512

 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 Agent Developer's Guide  
VERITAS Software Corporation
www.veritas.com