Linux 上的 AIX 上的 SNMPv3 显示身份验证失败

Linux 上的 AIX 上的 SNMPv3 显示身份验证失败

我想在AIX上使用snmpv3,客户端是Linux,使用snmpwalk命令

在 AIX 端,我首先创建密码的哈希值

pwtokey -p HMAC-SHA -u auth mypass 192.178.0.37

命令返回这一行

Display of 20 byte HMAC-SHA localized authKey:
  18de41acdd2c8f0a1cb24f875g611198ea23e990

然后我编辑/etc/snmpdv3.conf

cp /etc/snmpdv3.conf /etc/snmpdv3.conf.orig
vim /etc/snmpdv3.conf 

我添加这些行

USM_USER u1 - HMAC-SHA 18de41acdd2c8f0a1cb24f875g611198ea23e990 - - L -
VACM_GROUP group1 USM u1 -
VACM_VIEW group1View            interfaces         - included -
VACM_VIEW group1View            tcp                   - included -
VACM_VIEW group1View            icmp                  - included -
VACM_VIEW group1View            system             - included -
VACM_VIEW group1View            sysObjectID        - excluded -
VACM_ACCESS  group1 - - AuthNoPriv USM group1View - group1View -
NOTIFY notify1 traptag trap -
TARGET_ADDRESS Target1 UDP 192.178.0.37    traptag trapparms1 - - -
TARGET_PARAMETERS trapparms1 SNMPv3  USM     u1        AuthNoPriv -

我重新启动所有守护进程

stopsrc -s aixmibd
stopsrc -s hostmibd
stopsrc -s snmpmibd
stopsrc -s snmpd
startsrc -s aixmibd
startsrc -s hostmibd
startsrc -s snmpmibd
startsrc -s snmpd

现在我从 Linux 客户端运行 smpwalk ..

snmpwalk -v3 -u u1 -a SHA -A "mypass" 192.178.0.37
SNMPv2-SMI::mib-2 = No more variables left in this MIB View (It is past the end of the MIB tree)

我也尝试过

snmpwalk -v3 -l authNoPriv -u u1 -a SHA -A "mypass" -x DES -X "mypass" 192.178.0.37
snmpwalk -v3 -l authNoPriv -u u1 -a SHA -A "mypass" -x AES -X "mypass" 192.178.0.37

但失败了

"snmpwalk: Authentication failure (incorrect password, community or key)"

当然pass是正确的

我想念什么?

答案1

找到解决方案。 AIX 上的 SNMPv3 需要 snmp.crypto,但我的系统上未安装

lslpp -cl snmp.crypto
lslpp: Fileset snmp.crypto not installed.

相关内容