Most commands should work on all PowerHA (HACMP prior to 5.5) versions.
If there is some syntax error, please consult the manual page for that command.
How to start cluster daemons (options in that order: clstrmgr, clsmuxpd, broadcast message, clinfo, cllockd):
root@gznode1:~# clstart -m -s -b -i -lHow to show cluster state and substate (depends on clinfo):
root@gznode1:~# clstatSNMP-based tool to show cluster state:
root@gznode1:~# cldumpSimilar to cldump, perl script to show cluster state:
root@gznode1:~# cldispHow to list the local view of the cluster topology:
root@gznode1:~# cltopinfoHow to list the local view of the cluster subsystems:
root@gznode1:~# clshowsrv -aHow to show all necessary info about HACMP:
root@gznode1:~# clshowsrv -vHow to show HACMP version:
root@gznode1:~# lslpp -L | grep cluster.es.server.rteHow to verify the HACMP configuration:
root@gznode1:~# /usr/es/sbin/cluster/diag/clconfig -v -OHow to list app servers configured including start/stop scripts:
root@gznode1:~# cllsservHow to locate the resource groups and display their status:
root@gznode1:~# clRGinfo -vHow to rotate some of the log files:
root@gznode1:~# clcycleA cluster ping program with more arguments:
root@gznode1:~# cl_pingCluster rsh program that take cluster node names as argument:
root@gznode1:~# clrshHow to find out the name of the local node:
root@gznode1:~# get_local_nodenameHow to check the HACMP ODM:
root@gznode1:~# clconfigHow to put online/offline or move resource groups:
root@gznode1:~# clRGmoveHow to list the resource groups:
root@gznode1:~# cllsgrpHow to create a large snapshot of the hacmp configuration:
root@gznode1:~# clsnapshotinfoHow to show short resource group information:
root@gznode1:~# cllsresHow to list the cluster manager state:
root@gznode1:~# lssrc -ls clstrmgrESCluster manager states:
ST_NOT_CONFIGURED
-> Node never started
ST_INIT
-> Node configured but down - not running
ST_STABLE
-> Node up and running
ST_RP_RUNNING
ST_JOINING
ST_BARRIER
ST_CBARRIER
ST_VOTING
ST_RP_FAILED
-> Node with event error
How to show heartbeat information:
root@gznode1:~# lssrc -ls topsvcsHow to check logs related to hacmp:
root@gznode1:~# odmget HACMPlogsHow to list all information from topology HACMP:
root@gznode1:~# lssrc -lstopsvcsHow to show all info about group:
root@gznode1:~# lssrc -ls grpsvcsHow to list the logs:
root@gznode1:~# cllistlogsHow to list the resources defined for all resource group:
root@gznode1:~# clshowresHow to show resource information by resource group:
root@gznode1:~# clshowres -g'RG'How to show resource information by node:
root@gznode1:~# clshowres -n'NODE'How to locate the resource groups and display status (for status you need to add "-s" option):
root@gznode1:~# clfindresHow to list interface name/interface device name/netmask associated with a specified ip label / ip address of a specific node:
root@gznode1:~# clgetifCluster verification utility:
root@gznode1:~# clverifyHow to list cluster topology information:
root@gznode1:~# cllscfX utility for cluster configuration:
root@gznode1:~# xclconfigX utility for hacmp management:
root@gznode1:~# xhacmpmX utility for cluster status:
root@gznode1:~# xclstatHow to force shutdown cluster immediately without releasing resources:
root@gznode1:~# clstop -f -NHow to do graceful shutdown immediately with no takeover:
root@gznode1:~# clstop -g -NHow to do graceful shutdown immediately with takeover:
root@gznode1:~# clstop -gr -NHow to sync the cluster topology:
root@gznode1:~# cldare -tHow to do the mock sync of topology:
root@gznode1:~# cldare -t -fHow to sync the cluster resources:
root@gznode1:~# cldare -rHow to do the mock sync of resources:
root@gznode1:~# cldare -r -fHow to list the name and security level of the cluster:
root@gznode1:~# cllsclstrHow to list the info about the cluster nodes:
root@gznode1:~# cllsnodeHow to list info about node69:
root@gznode1:~# cllsnode -i node69How to list the PVID of the shared hard disk for resource group dataRG:
root@gznode1:~# cllsdisk -g dataRGHow to list all cluster networks:
root@gznode1:~# cllsnwHow to list the details of network ether1:
root@gznode1:~# cllsnw -n ether1How to show network ip/nonip interface information:
root@gznode1:~# cllsifHow to list the details of network adapter node1_service:
root@gznode1:~# cllsif -n node1_serviceHow to list the shared vgs which can be accessed by all nodes:
root@gznode1:~# cllsvgHow to list the shared vgs in resource group dbRG:
root@gznode1:~# cllsvg -g dbRGHow to list the shared lvs:
root@gznode1:~# cllslvHow to list the shared lvs in the resource group dbRG:
root@gznode1:~# cllslv -g dbRGHow to list the PVID of disks in the resource group appRG:
root@gznode1:~# cllsdisk -g appRGHow to list the shared file systems:
root@gznode1:~# cllsfsHow to list the shared file systems in the resource group sapRG:
root@gznode1:~# cllsfs -g sapRGHow to show info about all network modules:
root@gznode1:~# cllsnimHow to show info about ether network module:
root@gznode1:~# cllsnim -n etherHow to list the runtime parameters for the node node1:
root@gznode1:~# cllsparam -n node1How to add a cluster definition with name dcm and id 3:
root@gznode1:~# claddclstr -i 3 -n dcmHow to create resource group sapRG with nodes n1,n2 in cascade:
root@gznode1:~# claddgrp -g sapRG -r cascading -n n1 n2Creates an application server ser1 with startscript as /usr/start and stop script as /usr/stop:
root@gznode1:~# claddserv -s ser1 -b /usr/start -e /usr/stopHow to change cluster definitions name to dcmds and id to 2:
root@gznode1:~# clchclstr -i 2 -n dcmdsHow to change the cluster security to enhanced:
root@gznode1:~# clchclstr -s enhancedHow to delete the resource group appRG and related resources:
root@gznode1:~# clrmgrp -g appRGHow to remove the node node69:
root@gznode1:~# clrmnode -n node69How to remove the adapter named node69_svc:
root@gznode1:~# clrmnode -a node69_svcHow to remove all resources from resource group appRG:
root@gznode1:~# clrmres -g appRGHow to remove the application server app69:
root@gznode1:~# clrmserv app69How to remove all applicaion servers:
root@gznode1:~# clrmserv ALLHow to list the nodes with active cluster manager processes from cluster manager on node node1clgetaddr node1 returns a pingable address from node node1:
root@gznode1:~# clgetactivenodes -n node1How to list the info about resource group sapRG:
root@gznode1:~# clgetgrp -g sapRGHow to list the participating nodes in the resource group sapRG:
root@gznode1:~# clgetgrp -g sapRG -f nodesHow to get the ip label associated to the resource group:
root@gznode1:~# clgetip sapRGHow to list the network for ip 192.168.100.2, netmask 255.255.255.0:
root@gznode1:~# clgetnet 192.168.100.2 255.255.255.0How to list the VG of LV nodelv:
root@gznode1:~# clgetvg -l nodelvHow to add node5 to the cluster:
root@gznode1:~# clnodename -a node5How to change the cluster node name node5 to node3:
root@gznode1:~# clnodename -o node5 -n node3- Log in to post comments
- 49579 views