snmp-agent trap enable feature-name bgp

命令功能

snmp-agent trap enable feature-name bgp命令用来打开BGP模块的告警开关。

undo snmp-agent trap enable feature-name bgp命令关闭BGP模块的告警开关。

缺省情况下,BGP模块的告警开关处于关闭状态。

命令格式

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

参数说明

参数 参数说明 取值
trap-name 打开指定类型事件的告警开关。 -
backward 打开BGP邻居断开连接的告警开关。 -
established 打开BGP邻居处于Established状态的告警开关。 -
grstatuschange 打开BGP GR状态变化的告警开关。 -
hwbackward 打开BGP邻居断开连接的告警开关。 -
hwestablished 打开BGP邻居处于Established状态的告警开关。 -
routethresholdclear 打开BGP路由数量降低到告警门限值以下的告警开关。 -
routethresholdexceed 打开BGP路由数量超过告警门限值的告警开关。 -
hwbgproutethresholdclear 打开BGP路由数量降低到告警阈值下限值以下的告警开关。 -
hwbgproutethresholdexceed 打开BGP路由数量超过告警阈值上限值的告警开关。 -
hwbgproutemaxclear 打开BGP路由数量降低到最大值下限的告警开关。 -
hwbgproutemaxexceed 打开BGP路由数量超过最大值上限的告警开关。 -

视图

系统视图

缺省级别

2:配置级

使用指南

BGP没有海量告警开关。如果只打开某个或几个事件的告警开关时,请选择trap-name

使用实例

# 设置发送BGP邻居断开连接的告警。

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

华为专有和保密信息
版权所有 © 华为技术有限公司