Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snmpget, snmpv3, and Cisco Routers

Status
Not open for further replies.

norteldude78

IS-IT--Management
Nov 10, 2005
214
US
Hello,

I am posting this in SNMP forum and Cisco router forum because I am not sure where the answer lies.
I am trying to get snmpv3 work on Cisco router and using snmpget to test.

******* 1st test *******

On Cisco Router:

R1(config)#snmp-server group dead v3 noauth
R1(config)#snmp-server user jerry dead v3

On Windows:

C:\usr\bin>snmpget.exe -v 3 -u jerry 192.168.101.1 system.sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1491944) 4:08:39.44

Works great, but with no authentication or encryption.

******* 2nd test (with auth) *******

On Cisco Router :

R1(config)#snmp-server group stones v3 auth
R1(config)#snmp-server user mick stones v3 auth md5 brownsugar

Windows:

C:\usr\bin>snmpget.exe -v 3 -u mick -A brownsugar 192.168.101.1 system.sysUpTime.0
Error in packet
Reason: authorizationError (access denied to that object)

C:\usr\bin>snmpget.exe -v 3 -u mick -a md5 -A brownsugar 192.168.101.1 system.sysUpTime.0
Error in packet
Reason: authorizationError (access denied to that object)

Does anybody know why this isn't working?
Am I missing something in the snmpget or on the router?

Thanks,
Bryan

 
I found the answer, I needed "-l AuthNoPriv" in the snmpget command:

C:\usr\bin>snmpget.exe -v 3 -u mick -l AuthNoPriv -a MD5 -A brownsugar 192.168.1
01.1 system.sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1716549) 4:46:05.49

-B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top