< Home

display snmp-agent trap feature-name bgp all

Function

The display snmp-agent trap feature-name bgp all command displays all the traps related to the BGP module.

Format

display snmp-agent trap feature-name bgp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display snmp-agent trap feature-name bgp all command is used to display the status of all the traps related to the BGP module.

The snmp-agent trap enable feature-name bgp command is used to change the status of the traps related to the BGP module.

Example

# Display all traps related to the BGP module.

<sysname>display snmp-agent trap feature-name bgp all
------------------------------------------------------------------------------
Feature name: bgp
Trap number : 11
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
ESTABLISHED                     off                     on
BACKWARD                        off                     on
ROUTETHRESHOLDEXCEED            off                     on
ROUTETHRESHOLDCLEAR             off                     on
GRSTATUSCHANGE                  off                     on
HWESTABLISHED                   off                     on
HWBACKWARD                      off                     on
HWBGPROUTEMAXEXCEED             off                     off
HWBGPROUTEMAXCLEAR              off                     off
HWBGPROUTETHRESHOLDEXCEED       off                     off
HWBGPROUTETHRESHOLDCLEAR        off                     off
PEERSESSIONTHRESHOLDEXCEED      off                     off
PEERSESSIONTHRESHOLDCLEAR       off                     off 
Table 1 Description of the display snmp-agent trap feature-name bgp all command output

Item

Description

Feature name

Name of the module to which a trap message belongs

Trap number

Number of trap messages

Trap name

Name of a trap message of the BGP module:

  • ESTABLISHED: enables the trap function when the BGP peer enters the Established state.
  • BACKWARD: enables the trap function on the disconnection of BGP peers.
  • ROUTETHRESHOLDEXCEED: enables the trap function that the number of routes of BGP peers exceeds the trap threshold.
  • ROUTETHRESHOLDCLEAR: enables the trap function that the number of routes of BGP peers decreases below the trap threshold.
  • GRSTATUSCHANGE: enables the trap function that the GR status of BGP peers changes.
  • HWESTABLISHED: enables the trap function when the BGP peer enters the Established state.
  • HWBACKWARD: enables the trap function on the disconnection of BGP peers.
  • HWBGPROUTEMAXEXCEED: The number of BGP routes exceeds the maximum number that is allowed.
  • HWBGPROUTEMAXCLEAR: The number of BGP routes falls below the maximum number that is allowed.
  • HWBGPROUTETHRESHOLDEXCEED: The ratio of BGP routes to the maximum number that is allowed exceeds the alarm threshold.
  • HWBGPROUTETHRESHOLDCLEAR: The ratio of BGP routes to the maximum number that is allowed falls below the alarm threshold.
  • PEERSESSIONTHRESHOLDEXCEED: indicates the alarm generated when the number of BGP peers reaches a specified alarm prompt value.
  • PEERSESSIONTHRESHOLDCLEAR: indicates the alarm generated when the number of BGP peers falls below a specified prompt value.

Default switch status

Default status of the trap function:

  • on: indicates that the trap function is enabled by default.
  • off: indicates that the trap function is disabled by default.

Current switch status

Current status of the trap function:

  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

# Display details about all the traps related to the BGP module.

<sysname>display snmp-agent trap feature-name bgp all verbose
------------------------------------------------------------------------------
Feature name: bgp
Trap number : 11
------------------------------------------------------------------------------

Trap name                : ESTABLISHED
Default switch status    : off
Current switch status    : on
Trap Description         :

Trap name                : BACKWARD
Default switch status    : off
Current switch status    : on
Trap Description         : backward event of bgp

Trap name                : ROUTETHRESHOLDEXCEED
Default switch status    : off
Current switch status    : on
Trap Description         :

Trap name                : ROUTETHRESHOLDCLEAR
Default switch status    : off
Current switch status    : on
Trap Description         :

Trap name                : GRSTATUSCHANGE
Default switch status    : off
Current switch status    : on
Trap Description         :

Trap name                : HWESTABLISHED
Default switch status    : off
Current switch status    : on
Trap Description         :

Trap name                : HWBACKWARD
Default switch status    : off
Current switch status    : on
Trap Description         :

Trap name                : HWBGPROUTEMAXEXCEED
Default switch status    : off
Current switch status    : off
Trap Description         :

Trap name                : HWBGPROUTEMAXCLEAR
Default switch status    : off
Current switch status    : off
Trap Description         :

Trap name                : HWBGPROUTETHRESHOLDEXCEED
Default switch status    : off
Current switch status    : off
Trap Description         :

Trap name                : HWBGPROUTETHRESHOLDCLEAR
Default switch status    : off
Current switch status    : off
Trap Description         :

Trap name                : PEERSESSIONTHRESHOLDEXCEED
Default switch status    : off
Current switch status    : off
Trap Description         :

Trap name                : PEERSESSIONTHRESHOLDCLEAR
Default switch status    : off
Current switch status    : off
Trap Description         :
Table 2 Description of the display snmp-agent trap feature-name bgp all verbose command output

Item

Description

Trap Description

Trap details

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >