A common problem with clstat and cldump
commands is often observed especially when a new PowerHA (HACMP)
cluster is configured on a freshly installed AIX. Most of the issues
with clstat and cldump are related to snmp protocol and can be solved
with simple correction of the snmp configuration file.
Follow the procedure below if clstat and cldump are not working:
1. Check which version of snmp is used:
In order to change to different version use the following command and keys:
3. If clstat and cldump are not working, check /etc/snmpdv3.conf for the following:
- Does the following line exist, if not add it:
4. Restart deamons and services:
wait 1-2 minutes
# stopsrc -s clinfoES
# stopsrc -s aixmibd
# stopsrc -s snmpmibd
# stopsrc -s hostmibd
# stopsrc -s snmpd
# startsrc -s snmpd
# tail -f /var/hacmp/log/clstrmgr.debug (wait for the following line:
"smux_simple_open ok, try smux_register()")
# startsrc -s hostmibd
# startsrc -s snmpmibd
# startsrc -s aixmibd
# startsrc -s clinfoES
# refresh -s clstrmgrES
Follow the procedure below if clstat and cldump are not working:
1. Check which version of snmp is used:
# ls -l /usr/sbin/snmpdThe following options are possible:
snmpdv1 - snmpd V1 only daemonBy default, /usr/sbin/snmpd is linked to snmpdv3ne.
snmpd64v1 - snmpd V1 only 64 bit daemon
snmpdv3ne - snmpd V3/V2/V1 non-encrypted daemon
snmpdv3e - snmpd V3/V2/V1 encrypted daemon
In order to change to different version use the following command and keys:
# /usr/sbin/snmpv3_ssw -n =>back to snmpdv3ne2. If snmpdv3 is used the easiest way is to switch to snmpdv1:
# /usr/sbin/snmpv3_ssw -e =>back to snmpdv3e
# /usr/sbin/snmpv3_ssw -1 =>to snmpdv1
# stopsrc -s clinfoESHowever you can fix snmpdv3 problems with the steps below (recommended).
# stopsrc -s snmpd
# /usr/sbin/snmpv3_ssw -1 (or switching to version 3 of the protocol)
# startsrc -s snmpd
# startsrc -s clinfoES
3. If clstat and cldump are not working, check /etc/snmpdv3.conf for the following:
- Does the following line exist, if not add it:
VACM_VIEW defaultView 1.3.6.1.4.1.2.3.1.2.1.5 - included -
(this line will allow access to "risc6000clsmuxpd" but not to complete "internet" MIB)
Alternatively you can uncomment the line:
VACM_VIEW defaultView internet - included - )- Remove the comments in the following lines (especially for AIX6.1, AIx 7.1, IZ41204):
smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password # gatedto look like that:
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password # PowerHA SystemMirror clsmuxpd
smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password- Check if comment exists in front of the following line, if it does, remove it:
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password
#COMMUNITY public public noAuthNoPriv 0.0.0.0 0.0.0.0 -(For security reason it is recommended to change the word public to something else)
4. Restart deamons and services:
# stopsrc -s clinfoESCheck:
# stopsrc -s snmpd
do the change
# startsrc -s snmpd
# startsrc -s clinfoES
wait 1-2 minutes
# snmpinfo -m dump -v -o /usr/es/sbin/cluster/hacmp.defs clusterOr you can restart all the the deamons (recommended if not a production system):
# cldump
# clstat
# stopsrc -s clinfoES
# stopsrc -s aixmibd
# stopsrc -s snmpmibd
# stopsrc -s hostmibd
# stopsrc -s snmpd
# startsrc -s snmpd
# tail -f /var/hacmp/log/clstrmgr.debug (wait for the following line:
"smux_simple_open ok, try smux_register()")
# startsrc -s hostmibd
# startsrc -s snmpmibd
# startsrc -s aixmibd
# startsrc -s clinfoES
# refresh -s clstrmgrES
No comments: