Follow this procedure to make cldump/clstat to work---
HACMP 5.4/5.5 supports changing the default community name from "public" to something else. SNMP is used for clstatES communications.
First, find out what version of SNMP you are using:
ls -l /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 Sep 08 2008 /usr/sbin/snmpd -> snmpdv3ne
(In this case, I am using version 3).
Make a copy of your configuration file. It is located on /etc.
/etc/snmpd.conf <- Version 1
/etc/snmpdv3.conf <- Version 3
Edit the file and replace wherever public is mention for your new community name.
I am still unsure if there is a restriction on the number of characters for a new community name.
When I tried using "notpublic" it did not work. I used a 6 characters community name instead.
Change subsystems and restart them:
chssys -s snmpmibd -a "-c new"
chssys -s hostmibd -a "-c new"
chssys -s aixmibd -a "-c new"
stopsrc -s snmpd
stopsrc -s aixmibd
stopsrc -s snmpmibd
stopsrc -s hostmibd
startsrc -s snmpd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s aixmibd
Test using your locahost:
snmpinfo -m dump -v -h localhost -c new -o /usr/es/sbin/cluster/hacmp.defs nodeTable
If the command hangs, something is wrong. Check the changes you made.
If everything works fine, perform the same change in the other node and test again. Now you can test from one server to the other using the snmpinfo command above.
If you need to backout, replace with the original configuration file and restart subsystems. Note in this case we use double-quote and double-quote.
There is no space.
chssys -s snmpmibd -a ""
chssys -s hostmibd -a ""
chssys -s aixmibd -a ""
stopsrc -s snmpd
stopsrc -s aixmibd
stopsrc -s snmpmibd
stopsrc -s hostmibd
startsrc -s snmpd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s aixmibd
Okay, now make the change to clinfoES and restart and both nodes:
chssys -s clinfoES -a "-c new"
stopsrc -s clinfoES
startsrc -s clinfoES
Wait a few minutes and you should be able to use clstat again with the new community name.