snmp-agent trap enable feature-name bgp

Function

The snmp-agent trap enable feature-name bgp command enables the alarm function for the BGP module.

The undo snmp-agent trap enable feature-name bgp command disables the alarm function for the BGP module.

By default, the alarm function is disabled for the BGP module.

Format

snmp-agent trap enable feature-name bgp [ trap-name { backward | established | grstatuschange | hwbackward | hwestablished | routethresholdclear | routethresholdexceed | hwbgproutethresholdclear | hwbgproutethresholdexceed | hwbgproutemaxclear | hwbgproutemaxexceed } ]

undo snmp-agent trap enable feature-name bgp [ trap-name { backward | established | grstatuschange | hwbackward | hwestablished | routethresholdclear | routethresholdexceed | hwbgproutethresholdclear | hwbgproutethresholdexceed | hwbgproutemaxclear | hwbgproutemaxexceed } ]

Parameters

Parameter Description Value
trap-name Enables the alarms of BGP events of specified types. -
backward Enables the alarm on the disconnection of BGP neighbors. -
established Enables the alarm on the BGP neighbors in the Established state. -
grstatuschange Enables the alarm on the BGP GR status change. -
hwbackward Enables the alarm on the disconnection of BGP neighbors. -
hwestablished Enables the alarm on the BGP neighbors in the Established state. -
routethresholdclear Enables the alarm that is generated when the number of BGP routes falls below the threshold. -
routethresholdexceed Enables the alarm that is generated when the number of BGP routes exceeds the threshold. -
hwbgproutethresholdclear Enables the alarm that is generated when the ratio of BGP routes to the maximum number that is allowed falls below the clear alarm threshold. -
hwbgproutethresholdexceed Enables the alarm that is generated when the ratio of BGP routes to the maximum number that is allowed exceeds the alarm threshold. -
hwbgproutemaxclear Enables the alarm that is generated when the number of BGP routes falls below the maximum number that is allowed. -
hwbgproutemaxexceed Enables the alarm that is generated when the number of BGP routes exceeds the maximum number that is allowed. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The BGP module is not configured with the function of excessive alarms. To enable the alarms of one or more events, you can specify trap-name.

Example

# Enable the alarm on the disconnection of BGP neighbors.

<sysname> system-view
[sysname] snmp-agent trap enable feature-name bgp trap-name backward

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.