How to modify snmp configuration for HACMP clstat and clinfo to work:
root@aix~/ # grep -v ^# /etc/snmpd.conf
logging file=/usr/tmp/snmpd.log enabled
logging size=100000 level=0
view 1.17.2 system enterprises view
trap hacmp 127.0.0.1 1.2.3 fe # loopback
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.2.1.1.2 dpid_password #dpid
snmpd smuxtimeout=200 #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.3.1.1 muxatmd_password #muxatmd
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password # HACMP/ES for AIX clsmuxpd
root@aix~/ # grep -v ^# /etc/snmpdv3.conf
VACM_GROUP group1 SNMPv1 hacmp -
VACM_VIEW defaultView internet - included -
VACM_VIEW defaultView snmpModules - excluded -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.3.1.2.1.5 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - excluded -
VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -
NOTIFY notify1 traptag trap -
TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -
TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 hacmp noAuthNoPriv -
COMMUNITY hacmp hacmp noAuthNoPriv 0.0.0.0 0.0.0.0 -
DEFAULT_SECURITY no-access - -
logging file=/usr/tmp/snmpdv3.log enabled
logging size=100000 level=0
smux 1.3.6.1.4.1.2.3.1.2.1.2 gated_password
smux 1.3.6.1.4.1.2.3.1.2.1.5 clsmuxpd_password
After the modifications, the following commands were applied:
root@aix~/ # stopsrc -s clinfoESroot@aix~/ # ps -ef|grep clinfo<- kill clinfo pid if the above command is hanging
root@aix~/ # stopsrc -s hostmibdroot@aix~/ # stopsrc -s snmpmibdroot@aix~/ # stopsrc -s aixmibdroot@aix~/ # stopsrc -s snmpdroot@aix~/ # sleep 4root@aix~/ # chssys -s hostmibd -a "-c hacmp"root@aix~/ # chssys -s aixmibd -a "-c hacmp"root@aix~/ # chssys -s snmpmibd -a "-c hacmp"root@aix~/ # chssys -s snmpd -a "-c hacmp"root@aix~/ # sleep 4root@aix~/ # refresh -s clstrmgrESroot@aix~/ # sleep 4root@aix~/ # startsrc -s snmpdroot@aix~/ # startsrc -s aixmibdroot@aix~/ # startsrc -s snmpmibdroot@aix~/ # startsrc -s hostmibdroot@aix~/ # sleep 120root@aix~/ # snmpinfo -m dump -v -c hacmp -h localhost -o /usr/sbin/cluster/hacmp.defs 1.3.6.1.4.1.2.3.1.2.1.5.1<- you should see some output - if not, do
refresh -s clstrmgrESagain
root@aix~/ # snmpinfo -m dump -v -c hacmp -h localhost -o /usr/sbin/cluster/hacmp.defs cluster<- you should see some output - if not, do
refresh -s clstrmgrESagain
root@aix~/ # startsrc -s clinfoESroot@aix~/ # clshowsrv -v- Log in to post comments
- 27783 views