HACMP snmp configuration for clstat and clinfo

root's picture

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 clinfoES

root@aix~/ # ps -ef|grep clinfo <- kill clinfo pid if the above command is hanging

root@aix~/ # stopsrc -s hostmibd

root@aix~/ # stopsrc -s snmpmibd

root@aix~/ # stopsrc -s aixmibd

root@aix~/ # stopsrc -s snmpd

root@aix~/ # sleep 4

root@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 4

root@aix~/ # refresh -s clstrmgrES

root@aix~/ # sleep 4

root@aix~/ # startsrc -s snmpd

root@aix~/ # startsrc -s aixmibd

root@aix~/ # startsrc -s snmpmibd

root@aix~/ # startsrc -s hostmibd

root@aix~/ # sleep 120

root@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 clstrmgrES again

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 clstrmgrES again

root@aix~/ # startsrc -s clinfoES

root@aix~/ # clshowsrv -v

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content