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
VCSAgGetContainerBasePath
Note:
This API is not supported for Linux Docker containers.
int VCSAgGetContainerBasePath (char *buf, int bufsize, int *exit_info)
This API returns the base path of the container 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.
Input parameters:
buf | Buffer to store the base path of the container. Caller must make the provision to reserve and release the memory for the buffer. |
bufsize | Size of the buffer passed. |
Output parameters:
buf | Buffer to store the base path of the container at the end of its execution. |
exit_info | Provides extended information to the caller in certain cases as described under Return values. |
Return values:
0 | If ContainerInfo attribute is set properly, which means:
Container's base path is returned in the buf parameter. |
1 | If buf is passed as null. |
2 | If the buffer size is smaller than the size of the container's base path. The exit_info parameter is updated to reflect the correct value of the buffer size needed to be passed. |
3 | If the Enable key of the ContainerInfo attribute is set to 0 or 2. Container's base path is returned in buf parameter only if Name key is set to <valid_container_name>. |
4 | If the ContainerInfo attribute is not set for the resource. For example, Name key of ContainerInfo is "" or Type key of ContainerInfo is invalid. |
5 | If command to obtain the base path of the container fails. The exit_info parameter is updated accordingly with the exit status of the command. |
6 | If OS is not container capable. |