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_BASE_PATH
Note:
This API is not supported for Linux Docker containers.
This API returns the base path of the container as mentioned under the ContainerInfo attribute at group level. This API must be called from the global zone or WPAR.
For Solaris zones:
If the agent is running on a Solaris machine, the API returns the base path of the zone where zone is installed.
For WPARs
If the agent is running on an AIX machine, the API returns the base path of the WPAR where WPAR is installed.
Perl-based: Returns the API exits status, command status and container base path as return value.
Return values:
0 | If VCSAG_GET_CONTAINER_INFO is called before and ContainerInfo is set properly, which means
Container's base path will be returned as return value. |
4 | If VCSAG_GET_CONTAINER_INFO API is not called before or if ContainerInfo attribute is not set for the resource. For example, Name key of ContainerInfo is "" or Type key of ContainerInfo is invalid etc. |
5 | If command to fetch base path of container fails. the command status is returned as return value. |
Usage:
my ($ret, $cmdstatus, $container_base_path) = VCSAG_GET_CONTAINER_BASE_PATH();
Shell-based:
This API returns the base path of container in environment variable VCSAG_CONTAINER_BASE_PATH and the status of the command which is used by api to fetch base path name in the environment variable VCSAG_CMD_STATUS. The API returns the exit status in the environment variable VCSAG_BASE_PATH_RET_VAL.
Return values:
0 | If VCSAG_GET_CONTAINER_INFO is called before and ContainerInfo is set properly, which means
Container's base path will be stored in environment variable VCSAG_CONTAINER_BASE_PATH parameter. |
4 | If VCSAG_GET_CONTAINER_INFO API is not called before or if ContainerInfo attribute is not set for the resource. For example, Name key of ContainerInfo is "" or Type key of ContainerInfo is invalid etc. |
5 | If command to fetch base path of container fails. The environment variable VCSAG_CMD_STATUS, will be updated accordingly with exit status of the command. |
Usage:
VCSAG_GET_CONTAINER_BASE_PATH base_path=${VCSAG_CONTAINER_BASE_PATH}
Note:
Before you use this API, the user should call the API VCSAG_GET_CONTAINER_INFO. VCSAG_GET_CONTAINER_INFO API will set container name and type appropriately which will be required for this API.