Tuesday, September 17, 2013

HP Service Guard Basic Commands and Important Files

1. How to check the Service Guard Cluster Version?
root@nodeA:/# cmversion
A.11.17.00

2.  How to search for the existing SG clusters in the network?
cmquerycl to search existing Serviceguard clusters in the Network.

root@nodeA:/# cmquerycl -v
Looking for Serviceguard nodes ... Done
Cluster Name Node Name Version Status
Swrecovery
nodeA up to date
nodeB up to date

3. How to check the status of the cluster?
root@nodeA:/etc/cmcluster/sw# cmviewcl -v
CLUSTER STATUS
swrecovery up
NODE STATUS STATE
nodeA up running
nodeB up running

4. How to ensure that the Cluster will start at boot time?
Update: /etc/rc.config.d/cmcluster
AUTOSTART_CMCLD =1 

5. How to stop the cluster on both nodes?
#cmhaltcl -v

6. How to start the node in the cluster?
cmrunnode nodeB

7. How to halt a node in the cluster?
cmhaltnode -v nodeB

8. How to start and halt a package?
cmrunpkg -v sw-pkg
cmhaltpkg -v sw-pkg

Few more details.
# cmmodpkg –e pkg1 Globally enable switching for a package.
# cmmodpkg –d pkg1 Globally disable switching for a package.
# cmmodpkg –n nodeA –e pkg1 Enable a node to run a package.
# cmmodpkg –n nodeA –d pkg1 Disable a node to run a package


No comments: