The display snmp-agent trap feature-name bfd all command displays the status of all traps on the BFD module.
Usage Scenario
The Simple Network Management Protocol (SNMP) is a network management standard widely used on the TCP/IP network. It uses a central computer (a network management station) that runs network management software to manage network elements. The SNMP agent reports trap messages to the network management station so that the network management station can obtain the network status in a timely manner, and the network administrator can take measures accordingly.
Trap names supported by the BFD module. The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name bfd trap-name { hwbfdsessdown | hwbfdsessreachlimit | hwbfdsessreachlimitbindif | hwbfdsessup } command. Each trap name corresponds to a network element abnormality.
Trap status of the BFD module. You can check whether the trap is reported based on the trap name.
Prerequisites
SNMP has been enabled. See snmp-agent.
# Display all the traps of the BFD module.
<HUAWEI>display snmp-agent trap feature-name bfd all
------------------------------------------------------------------------------ Feature name: BFD Trap number : 4 ------------------------------------------------------------------------------ Trap name Default switch status Current switch status hwBfdSessUp off off hwBfdSessDown off off hwBfdSessReachLimit off off hwBfdSessReachLimitBindIf off off
Item |
Specification |
---|---|
Feature name |
Name of the module that the trap belongs to. |
Trap number |
Number of traps. |
Trap name |
Trap name. Traps of the BFD module include:
|
Default switch status |
Default status of the trap function:
|
Current switch status |
Status of the trap function:
To set the status of the trap, run the snmp-agent trap enable feature-name bfd command. |