环境:aix 6.1  hacmp6.1

# oslevel -s
6100-04-06-1034
Command: running       stdout: yes           stderr: no
Before command completion, additional instructions may appear below.
sld1_node: 6.1.0 SP5
sld2_node: 6.1.0 SP5


问题:今天检查AIX 6上的HACMP状态,报错如下:


# /usr/es/sbin/cluster/clstat
Failed retrieving cluster information.
There are a number of possible causes:
clinfoES or snmpd subsystems are not active.
snmp is unresponsive.
snmp is not configured correctly.
Cluster services are not active on any nodes.


但是检查,clinfoES  snmpd 两个进程都是active的:

# l***c -s clinfoES
Subsystem         Group            PID          Status
 clinfoES         cluster          15925580     active
# l***c -s snmpd
Subsystem         Group            PID          Status
 snmpd            tcpip            13303828     active


这样,有可能是snmp的配置问题,使用“snmp is not configured correctly.”关键词到google上搜索有一大堆,解决办法如下:

1.修改/etc 下的 snmpdv3.conf:

(1).增加

VACM_VIEW defaultView     1.3.6.1.4.1.2.3.1.2.1.5    - included -

(2).修改:

smux  1.3.6.1.4.1.2.3.1.2.1.5      clsmuxpd_password # HACMP/ES for AIX clsmuxpd

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.1.5      clsmuxpd_password
smux     1.3.6.1.4.1.2.3.1.2.1.2      gated_password

2.重启下snmpd进程,2分钟后生效

#stopsrc -s snmpd
#startsrc -s snmpd
#sleep 120

可以参考IBM官方文档:

https://www-304.ibm.com/support/docview.wss?uid=isg1IZ21946&wv=1


3.但是我按那样做了还是不行,后来我将snmp V3版本修改成V1,就可以了

/usr/sbin/snmpv3_ssw -1


4.这可能是我的系统小版本号与官方文档描述的不一样