当使用基于 WebNMS java 的 SNMP API 与 SNMPv3 通信时,我在使用 SHA-DES 组合时遇到以下错误。所有其他组合(MD5-DES、noAuthNoPriv 等)工作正常。
摘要失败:RemoteHost = 10.121.32.163:RemotePort = 5000:用户名 = batty
返回:-1could not send a wrongDigests report PDU Failed to authenticate the SecurityParameters for user batty authKey length has to be 20
WebNMS 低级 API 错误对错误说明如下:
如果 SNMPv3 消息发送到 SNMPv3 代理,它会检查 authParams 是否正确。如果 authParams 不正确,它会将此错误发送给发起者。使用 WebNMS SNMP API 开发的代理会在收到 SNMP 消息后自动发送报告 PDU。如果消息的 authParams 错误,则将此错误发送给始发者。
和
AuthProtocol:未指定 SHA 上下文名称、ContextEngineID。
但我验证了所有这些信息都是正确的。
有谁遇到过这个问题?如何解决这个问题?