The display snmp-agent trap feature-name vrrp all command displays all trap messages of the VRRP module.
Usage Scenario
The Simple Network Management Protocol (SNMP) is a network management protocol widely used on TCP/IP networks. SNMP 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 quickly determine the network status, and the network administrator can take measures accordingly.
Trap names supported by the VRRP module: The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name vrrp [ trap-name { vrrptrapauthfailure | vrrptrapmasterdown | vrrptrapnewmaster } ] command. Each trap name corresponds to a network element abnormality.
Trap status of the VRRP module: You can check whether a trap is reported based on the trap name.
Prerequisites
SNMP agent has been enabled using the snmp-agent command.
# Display all trap messages of the VRRP module.
<HUAWEI> display snmp-agent trap feature-name vrrp all
------------------------------------------------------------------------------
Feature name: VRRP
Trap number : 6
------------------------------------------------------------------------------
Trap name Default switch status Current switch status
vrrpTrapNewMaster on on
vrrpTrapAuthFailure on on
vrrpTrapMasterDown on on
hwVrrpExtTrapNonMaster on on
vrrpv3NewMaster on on
vrrpv3ProtoError on on
Item |
Description |
---|---|
Feature name |
Name of the module that a trap message belongs to. |
Trap number |
Number of trap messages. |
Trap name |
Name of a trap message of the VRRP module:
|
Default switch status |
Whether the trap function is enabled by default:
|
Current switch status |
Status of the trap function:
|