May 13, 2010

How to fix clstat and cldump related problems

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:
# ls -l /usr/sbin/snmpd
The following options are possible:
 snmpdv1 - snmpd V1 only daemon
 snmpd64v1 - snmpd V1 only 64 bit daemon
 snmpdv3ne - snmpd V3/V2/V1 non-encrypted daemon
 snmpdv3e - snmpd V3/V2/V1 encrypted daemon
By default, /usr/sbin/snmpd is linked to snmpdv3ne.
In order to change to different version use the following command and keys:
# /usr/sbin/snmpv3_ssw -n =>back to snmpdv3ne
# /usr/sbin/snmpv3_ssw -e =>back to snmpdv3e
# /usr/sbin/snmpv3_ssw -1 =>to snmpdv1
2. If snmpdv3 is used the easiest way is to switch to snmpdv1:
#  stopsrc -s clinfoES
#  stopsrc -s snmpd
#  /usr/sbin/snmpv3_ssw -1 (or switching to version 3 of the protocol)
#  startsrc -s snmpd
#  startsrc -s clinfoES
However you can fix snmpdv3 problems with the steps below (recommended).
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    - 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         gated_password # gated  
   smux      clsmuxpd_password # PowerHA  SystemMirror clsmuxpd                                                
to look like that:                                                  
   smux         gated_password          
   smux      clsmuxpd_password          
- Check if comment exists in front of the following line, if it does, remove it:
#COMMUNITY public    public     noAuthNoPriv             -
(For security reason it is recommended to change the word public to something else)
4. Restart deamons and services:
# stopsrc -s clinfoES
# 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  cluster
#  cldump
#  clstat
Or you can restart all the the deamons (recommended if not a production system):
#  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 

Post a Comment

Note: Only a member of this blog may post a comment.

TECH SUPPORT © 2012-2017