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:
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:
Usage:
VCSAG_GET_CONTAINER_BASE_PATH base_path=${VCSAG_CONTAINER_BASE_PATH}