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.
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 } ]
| 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. | - |