Unsolved
This post is more than 5 years old
3 Posts
0
92968
April 14th, 2014 15:00
SNMP V3 setup on PowerConnect 5524
I am trying to enable SNMP v3 for monitoring the switch. I have completed the following commands:
snmp-server engine local default
snmp-server group sgroup v3 auth read rogroup write rwgroup
snmp-server user s3user rwgroup v3 auth md5 *******
snmp-server view sview system included
However when I attempt to connect with the switch it reports that the logon fails due to "BAD CONTEXT" I have tried to use all the group names above however, I can not get past this point. With the commands above what is the Context of the user s3user? or am I missing a command to setup the context.
Thanks
James s.
No Events found!


JLSmile
3 Posts
0
April 15th, 2014 11:00
Here is a compressed Running-Config (passwords, IP, port-configs removed). and Show snmp after. I find it interesting that show snmp shows nothing.
vlan database
vlan 10,20,30
exit
hostname AP-Switch-210
ip ssh server
snmp-server engineID local 800002a203f8b1561d7c21
snmp-server view sview system included
snmp-server group sgroup v3 auth read rogroup write rwgroup
no ip http server
ip http secure-server
clock timezone GMT -8
clock summer-time GMT recurring usa
clock source sntp
sntp unicast client enable
sntp unicast client poll
sntp server poll
ip name-server
no ip telnet server
!
SW version 4.1.0.15 (date 20-Oct-2013 time 10:23:39)
Gigabit Ethernet Ports ============================= no shutdown speed 1000 duplex full negotiation flow-control on mdix auto no back-pressure
interface vlan 1 interface port-channel 1 - 32
spanning-tree
spanning-tree mode RSTP
qos basic
qos trust cos
eee enable
Here is Show snmp:
AP-Switch-210# show snmp
SNMP is enabled.
Community-String Community-Access View name IP address Mask -------------------- ------------------ -------------- ------------ ------------
Community-String Group name IP address Mask Type ------------------ ------------ ------------------- ------------------- ------
Traps are enabled. Authentication-failure trap is enabled.
Version 1,2 notifications Target Address Type Community Version Udp Filter To Retries Port name Sec ---------------- -------- ----------- ---------- ----- ------- ----- ---------
Version 3 notifications Target Address Type Username Security Udp Filter To Retries Level Port name Sec ---------------- -------- ----------- -------- ----- ------- ----- ---------
System Contact: System Location:
JLSmile
3 Posts
0
April 16th, 2014 09:00
I am using Paessler SNMP tester. This tester allows you to insert usernames, passwords, contexts and perform basic queries. Here is the result of a test where I set SNMP V3, user:S3user, MD5 ***** password, context: sgroup, I am attempting to read device uptime. I know the password is correct as I put in a bad password for testing and received a different error.
Paessler SNMP Tester 5.1.2
4/16/2014 8:09:54 AM (55 ms) : Device: 132.83.4.210
4/16/2014 8:09:54 AM (55 ms) : SNMP V3
4/16/2014 8:09:54 AM (56 ms) : Uptime
4/16/2014 8:09:55 AM (616 ms) : -------
4/16/2014 8:09:55 AM (616 ms) : DISMAN-EVENT-MIB::sysUpTimeInstance = Bad context specified -17 ( 0 seconds )
4/16/2014 8:09:55 AM (1222 ms) : HOST-RESOURCES-MIB::hrSystemUptime.0 = Bad context specified -17 ( 0 seconds )
4/16/2014 8:09:55 AM (1223 ms) : Done