System Management Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

System Management Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

Display the SNMP context mapping

Want to summarize with AI?

Log in

Learn to display SNMP context mappings and understand the relationship between community names and context names on the router.


To examine the SNMP context mappings configured on your device, retrieve and review them.

SNMP context mappings link SNMP community names with logical network segments or features. This association allows more granular access and management within SNMP operations.

Before you begin

Procedure

1.

Display the current SNMP context mappings.

Example:

Router#show snmp context-mapping 
Context-name                     Feature-name                     Feature
ControlEthernet0_RP0_CPU0_S0     ControlEthernet0_RP0_CPU0_S0     BRIDGEINST
ControlEthernet0_RP1_CPU0_S0     ControlEthernet0_RP1_CPU0_S0     BRIDGEINST

The output lists the context-name, feature-name, and associated feature for each mapping.

2.

(Optional) View the full SNMP server configuration.

Example:

Router#show running-config snmp-server
snmp-server community cebridge1 RW SystemOwner
snmp-server context    ControlEthernet0_RP0_CPU0_S0
snmp-server community-map cebridge1 context     ControlEthernet0_RP0_CPU0_S0

This will display all SNMP-related configuration including community strings, contexts, and community maps.

In the command output, the community name identifies the SNMP community, and the context name specifies the logical SNMP context.

What to do next