< Home

snmp-agent trap enable feature-name bgp

Function

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

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

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

Format

snmp-agent trap enable feature-name bgp [ trap-name { backward | established } ]

undo snmp-agent trap enable feature-name bgp [ trap-name { backward | established } ]

Parameters

Parameter Description Value
trap-name Enables the trap function for a specified type of BGP events. -
backward Enables the trap function upon the disconnection of BGP neighbors. -
established Enables the trap function when BGP neighbors are in Established state. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The BGP module is not configured with the function of excessive traps. To enable the trap function for one or more events, specify the trap-name parameter.

Example

# Enable the trap function upon the disconnection of BGP neighbors.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name bgp trap-name backward
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >