The snmp-agent trap enable feature-name l3vpn command enables the trap function for the L3VPN module.
The undo snmp-agent trap enable feature-name l3vpn command disables the trap function for the L3VPN module.
By default, the trap function for the L3VPN module is disabled.
snmp-agent trap enable feature-name l3vpn [ trap-name { l3vpn_mib_trap_mid_thresh_exceed | l3vpn_mib_trap_thresh_cleared | l3vpn_mib_trap_thresh_exceed | l3vpn_mib_trap_vrf_down | l3vpn_mib_trap_vrf_up } ]
undo snmp-agent trap enable feature-name l3vpn [ trap-name { l3vpn_mib_trap_mid_thresh_exceed | l3vpn_mib_trap_thresh_cleared | l3vpn_mib_trap_thresh_exceed | l3vpn_mib_trap_vrf_down | l3vpn_mib_trap_vrf_up } ]
Parameter | Description | Value |
---|---|---|
trap-name | Enables the traps of L3VPN events of specified types. | - |
l3vpn_mib_trap_mid_thresh_exceed | Enables the trap of the event indicating that the number of private route prefixes exceeds the middle threshold which is set by the prefix limit command. | - |
l3vpn_mib_trap_thresh_cleared | Enables the trap of the event indicating that the number of private route prefixes falls below the threshold which is set by the prefix limit command. | - |
l3vpn_mib_trap_thresh_exceed | Enables the trap of the event indicating that the number of private route prefixes exceeds the upper limit which is set by the prefix limit command. | - |
l3vpn_mib_trap_vrf_down | Enables the trap of VRF Down event. | - |
l3vpn_mib_trap_vrf_up | Enables the trap of VRF Up event. | - |
Usage Scenario
The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. After that, the network administrator immediately takes measures to resolve the problem.
The snmp-agent trap enable feature-name l3vpn command enables the trap function for L3VPN modules.
Precautions
To enable the trap function of one or more types of trap messages, specify trap-name.
# Enable the trap of VRF Down event in the system view.
<HUAWEI> system-view [HUAWEI] snmp-agent trap enable feature-name l3vpn trap-name l3vpn_mib_trap_vrf_down
# Disable the trap of VRF Down event in the system view.
<HUAWEI> system-view [HUAWEI] undo snmp-agent trap enable feature-name l3vpn trap-name l3vpn_mib_trap_vrf_down