The SupportedActions (string-keylist) attribute lists all possible actions defined for an agent, including those defined by the agent developer. The engineVadclientd validates the action_token value specified in the hares -action
resource action_token
command against the SupportedActions attribute. For example, if action_token is not present in SupportedActions, the enginevadclientd will not allow the command to go through. It is the responsibility of the agent developer to initialize the SupportedActions attribute in the resource type definition and update the definition for each new action added to the action
entry point code or script. See "action" on page 48. This attribute serves as a reference for users of the command line or the graphical user interface.
An example definition of a resource type in a VCS ResourceTypeTypes.cf
file may resemble:
static str ArgList[] = { Sid, Owner, Home, User, Pwork,
static keylist SupportedActions = { VRTS_GetRunningServices,
DBRestrict, DBUndoRestrict, DBSuspend, DBResume }
In the SupportedActions attribute definition, VRTS_GetRunningServices
is a Veritas predefined action, and the actions following it are defined by the developer. The SupportedActions attribute value cannot be overridden.
An example definition of a resource type in an VAD ResourceTypeTypes.xml
file may resemble:
<agent name="DBResource" version = 1.0 bundled="False">
<ArgList type="str" dimension="vector">
<attr_description>""</attr_description>
<SupportedActions type="str" dimension="keylist">