05-12-2010 01:17 PM
Has anyone had success configuring SNMP v3 in Junos. I've confgured it on our SRX 3600 and EX 4200 switches, but am unable to add the devices in SolarWinds or SNMP MIB Walk them with any of our SNMP tools. I recieve authentication errors. I have checked and double checked the credentials on the server and agent...both are correct. Any suggestions would be much appreciated.
Error message:
"SNMP Validation Failed for Node 'x.x.x.x' - Error: SNMPv3 - Wrong Digests - The authentication digest did not match the expected result, possible incorrect key/password"
"show snmp statistics" ouput:
SNMP statistics:
Input:
Packets: 4, Bad versions: 0, Bad community names: 0,
Bad community uses: 0, ASN parse errors: 0,
Too bigs: 0, No such names: 0, Bad values: 0,
Read onlys: 0, General errors: 0,
Total request varbinds: 0, Total set varbinds: 0,
Get requests: 0, Get nexts: 0, Set requests: 0,
Get responses: 0, Traps: 0,
Silent drops: 0, Proxy drops: 0, Commit pending drops: 0,
Throttle drops: 0, Duplicate request drops: 0
V3 Input:
Unknown security models: 0, Invalid messages: 0
Unknown pdu handlers: 0, Unavailable contexts: 0
Unknown contexts: 0, Unsupported security levels: 0
Not in time windows: 0, Unknown user names: 0
Unknown engine ids: 2, Wrong digests: 2, Decryption errors: 0
Output:
Packets: 0, Too bigs: 0, No such names: 0,
Bad values: 0, General errors: 0,
Get requests: 0, Get nexts: 0, Set requests: 0,
Get responses: 0, Traps: 0
SNMP Config:
set snmp location Lab
set snmp contact "Network Engineering"
set snmp v3 usm local-engine user xxxxxxxxx authentication-md5 authentication-key "$9$.mQn9A0IhS36A0IcvM24aGDkTz6AuOP5BEclLX"
set snmp v3 usm local-engine user xxxxxxxxxx privacy-des privacy-key "$9$v4p87V24ZqPQaZnCuBSyVwY2JDk.PTF/bs5Fn9OB8X7ds4
set snmp v3 vacm security-to-group security-model usm security-name xxxxxxxxxx group xxxxxxxxxx
set snmp v3 vacm access group xxxxxxxxxx default-context-prefix security-model usm security-level privacy read-view internet
set snmp engine-id use-mac-address
set snmp view internet oid 1.3.6.1 include
set snmp view system oid 1.3.6.1.2.1.1 include
set snmp view interfaces oid 1.3.6.1.2.1.2 include
set snmp view chassis oid 1.3.1.6.1.2628.2.2 include
set snmp community xxxxxxx authorization read-write
set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic system-services snmp
Thank You,
Ryan
05-12-2010 02:18 PM
Hello there,
I'd suggest to do a SNMPv3 packet capture and then try to decode it in Wireshark which supports DES and MD5 (Edit->Preferences->Protocols->SNMP->User table).
Also, are You sure You copied the local engine-id verbatim into Your NMS settings? The SNMPv3 encryption is based on shared-key+local engine-id. Do "show snmp v3" on the router to confirm the local engine-id.
Regards
Alex
05-12-2010 03:30 PM
Thank you Alex. I will try your suggestions and let you know how it goes.
Best Regards,
Ryan
09-27-2010 01:38 AM
Hi,
I am also trying to configure SNMP v3.
I have followed similar configuration as posted and i keep getting the "unknown engine ids" error message.
This is lab environment and i am using solarwinds toolset v9 SNMP MIB Browser which supports SNMP v3.
I have no idea where to put the "engine-id" information in this software.
Can anyone help?
Regards,
Haze
12-02-2011 09:11 AM
Hi Hazeen et al,
Unless you're being very security conscious you shouldn't need to enter the SNMP Engine ID into your NMS (Solarwinds). Instead, each time the NMS connects it will ask for an SNMP Engine ID from the remote host and then compare the Engine ID to the local database. If it's not found, the NMS will just start to use the discovered Engine ID. If it is found, some checks are done against the agent uptime and number of boots to ensure authenticity/sync.
In general:
Config tips for SNMPv3:
NMS tips for SNMPv3:
snmpwalk -v3 -l authpriv -u <username> -X <privacy password> -A <auth password> <devicename>
(assumes Auth & Privacy, DES and MD5)
Ben