< Home

display snmp-agent trap feature-name vrrp all

Function

The display snmp-agent trap feature-name vrrp all command displays all trap messages of the VRRP module.

Format

display snmp-agent trap feature-name vrrp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

The display snmp-agent trap feature-name vrrp all command displays the following information:
  • 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.

Example

# 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
Table 1 Description of the display snmp-agent trap feature-name vrrp all command output

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:

  • vrrpTrapAuthFailure: This trap message is generated when the authentication mode and key in the received packet conflicts with those on the device.
  • vrrpTrapMasterDown: This trap message is generated when the VRRP group status changes from Master to another status.
  • vrrpTrapNewMaster: This trap message is generated when the VRRP group status changes to Master.
  • hwVrrpExtTrapNonMaster: This trap is generated when the VRRP backup group status changes from Backup to Initialize or from Initialize to Backup.
  • vrrpv3NewMaster: This trap is generated when VRRPv3 changes from another state to the Master state.
  • vrrpv3ProtoError: This trap is generated when a device in a VRRPv3 backup group receives an incorrect VRRP packet.

Default switch status

Whether the trap function is enabled by default:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Status of the trap function:
  • on: The trap function is enabled.
  • off: That the trap function is disabled.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >