Configuring Snmp For Inband Access - Cisco Nexus 5000 Series Configuration Manual

System management configuration guide
Hide thumbs Also See for Nexus 5000 Series:
Table of Contents

Advertisement

Configuring SNMP
What to Do Next
To display information about configured source interface, enter the show snmp source-interface command.

Configuring SNMP for Inband Access

You can configure SNMP for inband access using the following:
• Using SNMP v2 without context—You can use a community which is mapped to a context. In this case
• Using SNMP v2 with context—The SNMP client needs to specify the context by specifying a community,
• Using SNMP v3—You can specify the context.
Procedure
Step 1
Step 2
Step 3
Step 4
The following SNMPv2 example shows how to map a community named snmpdefault to a context:
switch# config t
Enter configuration commands, one per line.
switch(config)# snmp-server context def vrf default
switch(config)# snmp-server community snmpdefault group network-admin
switch(config)# snmp-server mib community-map snmpdefault context def
switch(config)#
The following SNMPv2 example shows how to configure and inband access to the community comm which
is not mapped:
switch# config t
Enter configuration commands, one per line.
switch(config)# snmp-server context def vrf default
switch(config)# snmp-server community comm group network-admin
switch(config)#
the SNMP client does not need to know about the context.
for example, <community>@<context>.
Command or Action
switch# configuration terminal
switch(config)# snmp-server context
context-name vrf vrf-name
switch(config)# snmp-server
community community-name group
group-name
switch(config)# snmp-server mib
community-map community-name
context context-name
Cisco Nexus 5000 Series NX-OS System Management Configuration Guide, Release 5.2(1)N1(1)
Configuring SNMP for Inband Access
Purpose
Enters global configuration mode.
Maps an SNMP context to the management VRF or
default VRF. Custom VRFs are not supported.
The names can be any alphanumeric string up to 32
characters.
Maps an SNMPv2c community to an SNMP context
and identifies the group that the community belongs.
The names can be any alphanumeric string up to 32
characters.
Maps an SNMPv2c community to an SNMP context.
The names can be any alphanumeric string up to 32
characters.
End with CNTL/Z.
End with CNTL/Z.
155

Advertisement

Table of Contents
loading

Table of Contents