2016-09-18 3 views
0

SNMPv3과 통신하기 위해 WebNMS Java 기반 SNMP API를 사용할 때 SHA-DES 조합을 사용하면 다음 오류가 발생합니다. 다른 모든 조합 (MD5-DES, noAuthNoPriv 등)은 정상적으로 작동합니다.WebNMS - SHA-DES를 통한 SNMPv3이 작동하지 않습니다.

Digest Failed : RemoteHost = 10.121.32.163 : RemotePort = 5000 : UserName = batty

returning : -1could not send a wrongDigests report PDU Failed to authenticate the SecurityParameters for user batty authKey length has to be 20

WebNMS 낮은 수준의 API 오류는 오류에 대해 다음과 같은 말 :

If an SNMPv3 message is send to an SNMPv3 agent, it checks whether the authParams is correct. In case if the authParams is incorrect, it sends this error to the originator. The agent developed using WebNMS SNMP API will automatically send the report PDU on receiving the SNMP message. If the authParams of the message is wrong, this error is sent to the originator.

AuthProtocol: SHA Context Name, ContextEngineID are not specified.

그러나 나는이 모든 정보가 올바른지 확인.

누구든지이 문제가 발생 했습니까? 이 문제를 해결하는 방법?

답변

0

이것은 USMUtils.password_to_key API의 버그입니다. auth 프로토콜 SHA와 함께 priv 프로토콜 (AES-128 및 DES)이 사용될 때 길이 16 인 auth 키를 반환합니다.

더 이상 사용되지 않는 password_to_key를 사용하여 문제를 해결하십시오.

Deprecated. This method cannot be used to generate localized privacy key if the privacy protocol is other than CBC_DES and CFB_AES_128.