PowerHA clstat not working
I have just installed PowerHA 7.2 with AIX 7.1 TL 4 SP2 and I find that clstat is not working.
IBM introduced some changes to the default settings for the SNMP deamon which affect clstat and cldump, especially if running version 3 of SNMP. Unless you have specific applciation requriements for SNMP version 1, I recommend you continue to use SNMP version 3 and update the configuration as follows. I have been meaning to write this post for a long time and I have finally written it, I hope it helps you.
Error from clstat.
# /usr/es/sbin/cluster/clstat -o
Failed retrieving cluster information.
There are a number of possible causes:
clinfoES or snmpd subsystems are not active.
snmp is unresponsive.
snmp is not configured correctly.
Cluster services are not active on any nodes.
Software Levels
oslevel -s
7100-04-02-1614
halevel -s
7.2.0 SP1
Confirm SNMP is using version 3 daemon.
ls -l /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 Oct 12 12:45 /usr/sbin/snmpd -> snmpdv3ne
There are several version of SNMP that are shipped with AIX. IBM used to ship the 64 Encrypted V3 Daemon, but that is missing from my AIX 7.2 and 7.1 installs.
/usr/sbin/snmpdv1 # SNMP 32 Bit Deamon V1.
/usr/sbin/snmpd64v1 # SNMP 64 Bit Deamon V 1.
/usr/sbin/snmpdv3ne # SNMP 64 Bit Daemon V3 NonEncrypted.
To change the Version of SNMP (not recommended) - Note that the encrypted V3 agent maybe missing from your AIX install.
/usr/sbin/snmpv3_ssw [-e|-n|-1]
-e Switch to encrypted version of snmpdv3 agent.
-n Switch to non-encrypted version of snmpdv3 agent.
-1 Switch to snmpdv1 agent.
Edit the snmpdv3.conf file.
vi /etc/snmpdv3.conf
Scroll down until you get to the VACM_VIEW section, and you will find this line commented out.
#VACM_VIEW defaultView internet - included -
Uncommenting that line will enable SNMP access to the entier AIX and PowerHA MIB trees,
The recommended change is to add this line, which allows only access to the PowerHA MIB trees.
VACM_VIEW defaultView risc6000clsmuxpd - included -
Or the risc6000clsmuxpd can be replaced with 1.3.6.1.4.1.2.3.1.2.1.5
Continue down the file, until you find this line, uncomment the line by removing the #:
#COMMUNITY public public noAuthNoPriv 0.0.0.0 0.0.0.0 -
Uncommenting this line allows the public community name access to SNMP.
At the bottom of the file, ensure the following two lines exist and are NOT commented out:
smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password # gated
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password # PowerHA SystemMirror clsmuxpd
Save the file.
vi /usr/es/sbin/cluster/etc/clhosts
Comment out the IP v6 Line below if you do not use IP v6.
#::1 # PowerHA SystemMirror
Save the file.
Refresh all the SNMP and related daemons.
stopsrc -s clinfoES
stopsrc -s aixmibd
stopsrc -s snmpmibd
stopsrc -s hostmibd
stopsrc -s snmpd
sleep 12
startsrc -s snmpd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s aixmibd
sleep 12
startsrc -s clinfoES
sleep 30
Confirm clstat is working.
/usr/es/sbin/cluster/clstat -o