Some general testing and debugging techniques you can use during testing are as follows:
To get debugging information, adding the following line to each of your scripts in the main function of the script:
set -x |
To check that an application is running on a node, you may be able to use a command provided by the application.
Another way to check that an application is running on a node, is to enter this command on that node:
# ps -ef | grep application |
application is the name (or a portion of the name) of the executable for the application.
To show the status of a resource, use the following cluster_mgr command:
cmgr> set cluster clustername cmgr> show status of resource resourcename of resource_type typename |
To show the status of a node, use the following cluster_mgr command:
cmgr> show status of node nodename |
To show the status of a resource group, use the following cluster_mgr command:
cmgr> show status of resource_group rgname in cluster cname |