Can't find what you need?


• Ask the Community
• Create a Case
Reset Search
 

 

Article

How to configure SNMP from scratch on VDX running NOS v5.0 and above?

« Go Back

Information

 
TitleHow to configure SNMP from scratch on VDX running NOS v5.0 and above?
Question
Starting from v6.x, there is no default SNMP configuration on the VDX and therefore the VDX does not respond to SNMP requests.

Below is the default SNMP configuration on NOS v6.x and v7.x

VDX6940-5# sh run snmp
snmp-server contact "Field Support."
snmp-server location "End User Premise."
snmp-server sys-descr "Brocade VDX Switch."
snmp-server enable trap


This article provides thestep-by-step instructions on howto configure SNMPv1, SNMPv2 and SNMPv3 on VDX running NOS v5.x and above.
Environment
Answer
SNMPv1

1. Configure ansnmp view:
snmp-server view All 1 included

where:
'All' is the view name
'1' is the OID branch 1 which means all OIDs are included.

2. Configure a read-only or read-writegroup and associate it with the snmp view.

Read-only group
snmp-server group userv1 v1 read All notify All

where:
'userv1' is the group name
'All' is the view name created in step 1.

Read-write group
snmp-server group adminv1 v1 read All write All notify All

where:
'adminv1' is the group name
'All' is the view name created in step 1.

3.Create a community string and associate it with thegroup created in step 1.

Read-only community
snmp-server community readv1 groupname userv1

Read-write community
snmp-server community writev1 groupname adminv1

SNMPv2

1. Configure ansnmp view:
snmp-server view All 1 included

where:
'All' is the view name
'1' is the OID branch 1 which means all OIDs are included.

2. Configure a read-only or read-writegroup and associate it with the snmp view.

Read-only group
snmp-server group userv2 v2c read All notify All

where:
'userv2' is the group name
'All' is the view name created in step 1.

Read-write group
snmp-server group adminv2 v2c read All write All notify All

where:
'adminv2' is the group name
'All' is the view name created in step 1.

3.Create a community string and associate it with thegroup created in step 1.

Read-only community
snmp-server community readv2 groupname userv2

Read-write community
snmp-server community writev2 groupname adminv2

SNMPv3

1. Configure ansnmp view:
snmp-server view All 1 included

where:
'All' is the view name
'1' is the OID branch 1 which means all OIDs are included.

2. Configure a read-only or read-writegroup and associate it with the snmp view.

Read-only group
snmp-server group userv3 v3 read All notify All

where:
'userv3' is the group name
'All' is the view name created in step 1.

Read-write group
snmp-server group adminv3 v3 read All write All notify All

where:
'adminv3' is the group name
'All' is the view name created in step 1.

3. Create an snmpv3 user, specifying the group, authentication algorithm, authentication password, privacy algorithm and privacy password.
snmp-server user snmpv3user groupname userv3 auth sha auth-password auth123456 priv AES128 priv-password priv123456

With the snmpwalk Linux/Unix utility, we can verify the snmpv3 connectivity using the following syntax:

root@2l24-32-rhel6{168}: snmpwalk -v3 -l authPriv -u "snmpv3user" -a SHA -A "auth123456" -X "priv123456" -x AES128 10.17.76.162 1.3.6.1.2

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1803600) 5:00:36.00
SNMPv2-MIB::sysContact.0 = STRING: Field Support.
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255