Configuring SNMP
Step 3
The following example shows how to configure filtering of SNMP notifications based on a VRF:
switch# configuration terminal
switch(config)# snmp-server host 192.0.2.1 filter-vrf Red
switch(config)# copy running-config startup-config
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 that 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
Command or Action
switch(config)# copy
running-config startup-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 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
Configuring SNMP for Inband Access
Purpose
This command adds an entry into thc ExtSnmpTargetVrfTable
of the CISCO-SNMP-TARGET-EXT-MB.
(Optional)
Saves the change persistently through reboots and restarts by
copying the running configuration to the startup configuration.
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.
By default, SNMP sends the traps using the
Note
management VRF. If you do not want to use the
management VRF, you must use this command
to specify the desired VRF.
Maps an SNMPv2c community to an SNMP context and
identifies the group to which 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.
127
Need help?
Do you have a question about the Nexus 3548 and is the answer not in the manual?