SNMP (Simple Network Management Protocol) server configuration enables comprehensive network monitoring and management by providing standardized access to device operational data, configuration parameters, and event notifications through Management Information Bases (MIBs). Support also includes host targets with unencrypted and encrypted community strings (traps and informs), as well as VRF-specific SNMP configuration for isolated trap delivery and context management within each VRF’s routing table.
Name Type Constraint Mandatory Default Value snmp_server Class [snmp_server]No
Name Type Constraint Mandatory Default Value communities List [communities]No contact String No groups List [groups]No hosts List [hosts]No location String No chassis_id String No packetsize Integer min: 484, max: 65500 No trap_timeout Integer min: 1, max: 1000 No queue_length Integer min: 1, max: 5000 No throttle_time Integer min: 50, max: 1000 No overload_control Integer min: 0, max: 300 No overload_throttle_rate Integer min: 0, max: 1000 No trap_source String No trap_source_ipv4 String No trap_source_ipv6 String No trap_source_port Integer min: 1024, max: 65535 No trap_throttle_time Integer min: 10, max: 500 No trap_authentication_vrf_disable Boolean true, falseNo trap_delay_timer Integer min: 30, max: 240 No ipv4_dscp Any Integer[min: 0, max: 63] or Choice[af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, default, ef] or String[Regex: ^.*[\$\%]\{.*$] No ipv6_dscp Any Integer[min: 0, max: 63] or Choice[af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, default, ef] or String[Regex: ^.*[\$\%]\{.*$] No drop_unknown_user Boolean true, falseNo drop_report_acl_ipv4 String No drop_report_acl_ipv6 String No engine_ids Class [engine_ids]No interfaces List [interfaces]No mibs Class [mibs]No oid_poll_stats Boolean true, falseNo timeouts_subagent Integer min: 1, max: 20 No timeouts_duplicate Integer min: 0, max: 20 No timeouts_in_qdrop Integer min: 0, max: 20 No timeouts_threshold Integer min: 0, max: 100000 No timeouts_pdu_stats Integer min: 1, max: 10 No logging_threshold_oid_processing Integer min: 0, max: 20000 No logging_threshold_pdu_processing Integer min: 0, max: 20000 No inform_retries Integer min: 0, max: 100 No inform_timeout Integer min: 1, max: 42949671 No inform_pending Integer min: 1, max: 4294967295 No traps Class [traps]No users List [users]No views List [views]No vrfs List [vrfs]No
Name Type Constraint Mandatory Default Value name String Yes ipv4_acl String No ipv6_acl String No ro Boolean true, falseNo rw Boolean true, falseNo sdrowner Boolean true, falseNo systemowner Boolean true, falseNo view String No
Name Type Constraint Mandatory Default Value name String Yes version Choice v1, v2c, v3Yes v3_security_level Choice priv, auth, noauthNo read_view String No write_view String No notify_view String No context String No ipv4_acl String No ipv6_acl String No
Name Type Constraint Mandatory Default Value address IP Yes informs List [informs]No traps List [traps]No
Name Type Constraint Mandatory Default Value local String No remote List [remote]No
Name Type Constraint Mandatory Default Value name String Yes notification_linkupdown_enable Boolean true, falseNo notification_linkupdown_disable Boolean true, falseNo index_persistence Boolean true, falseNo
Name Type Constraint Mandatory Default Value cbqosmib_cache Boolean true, falseNo cbqosmib_cache_refresh_time Integer min: 5, max: 60 No cbqosmib_cache_service_policy_count Integer min: 1, max: 5000 No cbqosmib_persist Boolean true, falseNo cbqosmib_member_stats Boolean true, falseNo ifindex_persist Boolean true, falseNo trap_link_ietf Boolean true, falseNo ifmib_ifalias_long Boolean true, falseNo ifmib_stats_cache Boolean true, falseNo ifmib_ipsubscriber Boolean true, falseNo ifmib_internal_cache_max_duration Integer min: 0, max: 60 No rfmib_entphyindex Boolean true, falseNo sensormib_cache Boolean true, falseNo mplstemib_cache_timers_garbage_collect Integer min: 0, max: 3600 No mplstemib_cache_timers_refresh Integer min: 0, max: 600 No mplsp2mpmib_cache_timer Integer min: 0, max: 600 No frrmib_cache_timer Integer min: 0, max: 600 No cmplsteextmib_cache_timer Integer min: 0, max: 600 No cmplsteextstdmib_cache_timer Integer min: 0, max: 600 No mroutemib_send_all_vrf Boolean true, falseNo notification_log_mib_default Boolean true, falseNo notification_log_mib_global_age_out Integer min: 1, max: 4294967295 No notification_log_mib_global_size Integer min: 1, max: 15000 No notification_log_mib_disable Boolean true, falseNo notification_log_mib_size Integer min: 1, max: 15000 No entityindex_persist Boolean true, falseNo
Name Type Constraint Mandatory Default Value snmp_authentication Boolean true, falseNo snmp_coldstart Boolean true, falseNo snmp_warmstart Boolean true, falseNo snmp_linkup Boolean true, falseNo snmp_linkdown Boolean true, falseNo snmp_all Boolean true, falseNo l2vpn_all Boolean true, falseNo l2vpn_vc_up Boolean true, falseNo l2vpn_vc_down Boolean true, falseNo l2vpn_cisco Boolean true, falseNo vpls_all Boolean true, falseNo vpls_status Boolean true, falseNo vpls_full_raise Boolean true, falseNo vpls_full_clear Boolean true, falseNo bfd Boolean true, falseNo config Boolean true, falseNo cfm Boolean true, falseNo ethernet_oam_events Boolean true, falseNo rf Boolean true, falseNo sensor Boolean true, falseNo mpls_l3vpn_all Boolean true, falseNo mpls_l3vpn_vrf_up Boolean true, falseNo mpls_l3vpn_vrf_down Boolean true, falseNo mpls_l3vpn_mid_threshold_exceeded Boolean true, falseNo mpls_l3vpn_max_threshold_exceeded Boolean true, falseNo mpls_l3vpn_max_threshold_cleared Boolean true, falseNo mpls_l3vpn_max_threshold_reissue_notif_time Integer min: 0, max: 2147483647 No mpls_traffic_eng_cisco Boolean true, falseNo mpls_traffic_eng_cisco_ext_bringup_fail Boolean true, falseNo mpls_traffic_eng_cisco_ext_insuff_bw Boolean true, falseNo mpls_traffic_eng_cisco_ext_preempt Boolean true, falseNo mpls_traffic_eng_cisco_ext_reroute_pending Boolean true, falseNo mpls_traffic_eng_cisco_ext_reroute_pending_clear Boolean true, falseNo mpls_traffic_eng_down Boolean true, falseNo mpls_traffic_eng_p2mp_down Boolean true, falseNo mpls_traffic_eng_p2mp_up Boolean true, falseNo mpls_traffic_eng_reoptimize Boolean true, falseNo mpls_traffic_eng_reroute Boolean true, falseNo mpls_traffic_eng_up Boolean true, falseNo ntp Boolean true, falseNo bgp_cbgp_two Choice enable, updownNo bgp_enable Choice bgp4_mib, updownNo hsrp Boolean true, falseNo isis_database_overload Boolean true, falseNo isis_manual_address_drops Boolean true, falseNo isis_corrupted_lsp_detected Boolean true, falseNo isis_attempt_to_exceed_max_sequence Boolean true, falseNo isis_id_len_mismatch Boolean true, falseNo isis_max_area_addresses_mismatch Boolean true, falseNo isis_own_lsp_purge Boolean true, falseNo isis_sequence_number_skip Boolean true, falseNo isis_authentication_type_failure Boolean true, falseNo isis_authentication_failure Boolean true, falseNo isis_version_skew Boolean true, falseNo isis_area_mismatch Boolean true, falseNo isis_rejected_adjacency Boolean true, falseNo isis_lsp_too_large_to_propagate Boolean true, falseNo isis_orig_lsp_buff_size_mismatch Boolean true, falseNo isis_protocols_supported_mismatch Boolean true, falseNo isis_adjacency_change Boolean true, falseNo isis_lsp_error_detected Boolean true, falseNo isis_all Boolean true, falseNo vrrp_events Boolean true, falseNo alarm Boolean true, falseNo bridgemib Boolean true, falseNo copy_complete Boolean true, falseNo entity Boolean true, falseNo cisco_entity_ext Boolean true, falseNo entity_redundancy_all Boolean true, falseNo entity_redundancy_switchover Boolean true, falseNo entity_redundancy_status Boolean true, falseNo entity_state_switchover Boolean true, falseNo entity_state_operstatus Boolean true, falseNo flash_insertion Boolean true, falseNo flash_removal Boolean true, falseNo fru_ctrl Boolean true, falseNo ipsla Boolean true, falseNo mpls_ldp_down Boolean true, falseNo mpls_ldp_up Boolean true, falseNo mpls_ldp_threshold Boolean true, falseNo pim_neighbor_change Boolean true, falseNo pim_interface_state_change Boolean true, falseNo pim_invalid_message_received Boolean true, falseNo pim_rp_mapping_change Boolean true, falseNo power Boolean true, falseNo syslog Boolean true, falseNo system Boolean true, falseNo
Name Type Constraint Mandatory Default Value name String Yes group String Yes version Choice v1, v2c, v3Yes ipv4_acl String No ipv6_acl String No systemowner Boolean true, falseNo v3_authentication Class [v3_authentication]No v3_privacy Class [v3_privacy]No
Name Type Constraint Mandatory Default Value name String Yes mibs List [mibs]No
Name Type Constraint Mandatory Default Value vrf String Yes hosts List [hosts]No contexts List [contexts]No
Name Type Constraint Mandatory Default Value community String Yes encryption_type Choice unencrypted, default, aesYes version Choice v1, v2c, v3Yes udp_port Integer min: 1, max: 65535 No v3_security_level Choice auth, noauth, privNo
Name Type Constraint Mandatory Default Value address IP Yes id String Yes udp_port Integer min: 1, max: 65535 Yes
Name Type Constraint Mandatory Default Value algorithm Choice md5, sha, sha-256, sha-512Yes encryption_type Choice default, aesNo password String Yes
Name Type Constraint Mandatory Default Value algorithm Choice aes-128, aes-192, aes-256Yes encryption_type Choice default, aesNo password String Yes
Name Type Constraint Mandatory Default Value id String Yes scope Choice included, excludedYes
Name Type Constraint Mandatory Default Value address IP Yes informs List [informs]No traps List [traps]No
Name Type Constraint Mandatory Default Value name String Yes
Name Type Constraint Mandatory Default Value community String Yes encryption_type Choice unencrypted, default, aesYes version Choice v1, v2c, v3Yes udp_port Any Integer[min: 1, max: 65535] or Choice[default] or String[Regex: ^.*[\$\%]\{.*$] No v3_security_level Choice auth, noauth, privNo
DSCP Values
SNMP Server DSCP fields accept both numeric and named string values.
ipv4_dscp / ipv6_dscp: integer 0-63 or named value (e.g., ef, af11, cs3)
Both formats can be used interchangeably. The normalization layer automatically converts integer values to their named equivalents before sending to the device, preventing configuration drift.
The following configuration describes how to set up various SNMP parameters on a Cisco IOS-XR device.
snmp-server location "My location"
snmp-server contact "My contact"
snmp-server trap source Loopback10
snmp-server traps bgp cbgp-two enable
snmp-server traps bgp enable cisco-bgp4-mib
snmp-server traps ethernet oam events
snmp-server traps copy-complete
snmp-server traps snmp linkup
snmp-server traps snmp linkdown
snmp-server traps bridgemib
snmp-server traps entity-state operstatus
snmp-server traps entity-redundancy all
snmp-server traps fru-ctrl
snmp-server traps isis database-overload
snmp-server traps isis manual-address-drops
snmp-server traps isis corrupted-lsp-detected
snmp-server traps isis adjacency-change
snmp-server traps l2vpn all
snmp-server traps l2vpn vc-up
snmp-server traps l2vpn vc-down
snmp-server user USER1 GROUP1 v3 auth md5 encrypted 073C05626E2A4841141D priv aes 128 encrypted 073C05626E2A4841141D IPv4 ACL1 systemowner
snmp-server user USER2 GROUP1 v3 auth sha encrypted 080D7A1A10151A190B priv aes 128 encrypted 073C05626E2A4841141D IPv4 ACL2
snmp-server group GROUP1 v3 priv read VIEW1 write VIEW2 context CONTEXT1 notify VIEW3 IPv4 ACL1 IPv6 ACL2
snmp-server community public view VIEW1 RO IPv4 ACL1
snmp-server community private view VIEW2 RW systemowner IPv4 ACL2 IPv6 ACL3
snmp-server view VIEW1 1.3.6.1.2.1.1 included
snmp-server view VIEW2 1.3.6.1.2.1 included
snmp-server view VIEW2 1.3.6.1.2.1.11 excluded
snmp-server vrf VRF1 host 11.11.11.11 traps COMMUNITY1 version 3 auth
Example-1: Basic SNMP Server configuration with location and contact.
location : " Data Center A "
contact : " admin@example.com "
Example-2: SNMP Server with trap configuration.
location : " Data Center B "
ethernet_oam_events : true
entity_state_operstatus : true
entity_redundancy_all : true
isis_database_overload : true
isis_manual_address_drops : true
isis_corrupted_lsp_detected : true
isis_adjacency_change : true
Example-3: SNMP Server with SNMPv3 users and groups.
location : " Data Center C "
contact : " netops@example.com "
password : " encrypted_password "
Example-4: SNMP Server with SNMPv2c communities.
location : " Branch Office "
Example-5: SNMP Server hosts with encrypted communities.
encryption_type : unencrypted
- community : " 15021E0E082328 "
encryption_type : unencrypted
- community : " 06253E2C5A471E1C5E "
Example-6: SNMP Server MIB settings with CBQoSMIB caching and interface configuration.
cbqosmib_cache_refresh_time : 30
cbqosmib_cache_service_policy_count : 100
cbqosmib_member_stats : true
- name : GigabitEthernet0/0/0/1
notification_linkupdown_disable : true
VRF-specific SNMP configuration applies trap destinations and contexts to individual VRFs and is used for isolated SNMP monitoring within each VRF context. These settings define how the router delivers SNMP traps and informs for applications, services, and routing protocols operating within that VRF’s routing table.
Example-1: SNMP Server VRF with hosts, encrypted communities, and contexts.
encryption_type : unencrypted
- community : " 15021E0E082328 "
encryption_type : unencrypted
- community : " 06253E2C5A471E1C5E "