InfoScale™ 9.0 Cluster Server Agent Developer's Guide - AIX, Linux, Solaris, Windows
- Introduction
- Agent entry point overview
- About agent entry points
- Agent entry points described
- About the action entry point
- About the info entry point
- Considerations for using C++ or script entry points
- About the agent information file
- About the ArgList and ArgListValues attributes
- Creating entry points in C++
- About creating entry points in C++
- Syntax for C++ entry points
- Agent framework primitives
- Agent Framework primitives for container support
- Creating entry points in scripts
- About creating entry points in scripts
- Syntax for script entry points
- Agent framework primitives
- VCSAG_GET_ATTR_VALUE
- Agent Framework primitives with container support
- Example script entry points
- Logging agent messages
- Building a custom agent
- Building a script based IMF-aware custom agent
- Creating XML file required for AMF plugins to do resource registration for online and offline state monitoring
- Testing agents
- Static type attributes
- About static attributes
- Static type attribute definitions
- AdvDbg
- ArgList
- State transition diagram
- Internationalized messages
- Troubleshooting VCS resource's unexpected behavior using First Failure Data Capture (FFDC)
- Appendix A. Using pre-5.0 VCS agents
VCSAG_GET_CONTAINER_INFO
Shell:
This API populates VCSAG_CONTAINER_NAME and VCSAG_CONTAINER_TYPE environment variables appropriately, based on the ContainerInfo attribute passed to ArgList.
Input parameter: ArgList
Output parameter
Return VCSAG_INFO_NOT_AVAIL when ContainerInfo is not passed in the entry point.
Return VCSAG_INFO_DONT_CARE when Container is disabled which means Enabled is set 2 in the ContainerInfo attribute at the group level.
Return VCSAG_INFO_AVAIL when successful. VCSAG_CONTAINER_NAME and VCSAG_CONTAINER_TYPE will be set appropriately.
Usage:
VCSAG_GET_CONTAINER_INFO "$@"
Perl:
This API returns the container information, such as container name and container type, under which the resource is managed.
Input parameter: ArgList
Output parameter: Returns the name of container and container type as return value along with success and failure of the API.
Return value:
$VCSAG_INFO_NOT_AVAIL - The Container Info is not available. You cannot use the values cname and ctype.
$VCSAG_INFO_AVAIL - The Container Info is available. You can use the values cname and ctype.
$VCSAG_INFO_DONT_CARE - The Container is disabled which means Enabled is set 2 in the ContainerInfo attribute at the group level.
Usage:
($ret, $cname, $ctype) = VCSAG_GET_CONTAINER_INFO(@ARGV);