Ruijie 10.12 - Whether All Trap Types Are Sent After Configuring snmp-server enable traps
Summary
Optimize network visibility and reliability with comprehensive SNMP Trap configuration. This manual is essential for Network Engineers and System Administrators tasked with deep monitoring. It provides detailed instructions on enabling, customizing, and managing highly granular trap types—including OSPF, MPLS, ISIS, and MAC notifications—ensuring your Network Management Station (NMS) receives precise alerts about crucial infrastructure events. Achieve robust fault detection and streamlined troubleshooting.
Page 1 Text Content
10.12 交换机配置 snmp-server enable traps 后是不是默认所有 Trap 类型都会上送? 非isis、mpls、ospf和mac-notification Trap类型信息 配置命令snmp-server enable traps后,对于命令snmp-server host配置的主机,默认所有的 Trap类型都会上送至NMS。除非命令snmp-server host限定了需要上送的Trap类型。示例如 下: 配置设备向NMS 192.168.12.219上送所有Trap类型信息,向NMS 192.168.12.218上送SNMP Trap信息。
a 配置 Agent 主动向 NMS 发送所有 Trap 类型消息。
Hostname> enable Hostname# configure terminal Hostname(config)# snmp-server enable traps
b 配置接收 SNMP Trap 消息的 NMS 192.168.12.219,团体名为 public1。
Hostname(config)# snmp-server host 192.168.12.219 traps public1 snmp
c 配置接收所有 Trap 类型消息的 NMS 192.168.12.219,团体名为 public2。
Hostname(config)# snmp-server host 192.168.12.218 traps public2
isis、mpls、ospf和mac-notification Trap类型信息
除表10-5说明的限制情况外,isis、mpls、ospf和mac-notification Trap类型信息还需要额外配置 上送的Trap明细。配置上送的Trap明细的命令如下。
10-5 Trap 类型与指定上送信息命令
Trap类型 说明 指定上送信息命令
isis 启动ISIS事件的Trap通知 enable traps { all | errors error-traps
| state-cange state-change-traps }
mac-notification 启动MAC事件的Trap通知 snmp trap mac-notification { added |
removed }
mpls snmp-server enable traps mpls
启动MPLS事件的Trap通知 { l3vpn l3vpn-traps | ldp ldp-traps | pw pw-traps | xc xc-traps }
ospf enable traps [ error error-traps | lsa
lsa-traps | retransmit retransmit-
启动OSPF事件的Trap通知
traps | state-change state-change- traps ]
# 配置上送所有IS-IS Trap信息。
Hostname> enable Hostname# configure terminal Hostname(config)# router isis Hostname(config-router)# enable traps all Hostname(config-router)# exit
# 配置上送OSPFv2所有Error Trap信息。
Page Summary Contents For Ruijie 10.12 - Whether All Trap Types Are Sent After Configuring snmp-server enable traps
Manual Details
| Brand | Server |
|---|---|
| Pages | 2 |
| File Size | 268.07 KB |
| Published | June 05, 2026 |
Enter the captcha to get the download link:
Frequently Asked Questions
配置snmp-server enable traps后,是否会默认上送所有类型的Trap信息?
对于snmp-server host配置的主机,默认所有的Trap类型都会被上送至NMS,除非进行了限定。
如何为特定的SNMP Trap类型(如ISIS和OSPF)启用通知?
需要使用特定命令激活,例如:路由协议进入接口模式下执行 'enable traps all' 来上送所有IS-IS Trap信息。
如何配置设备向某个NMS发送特定的Trap类型信息?
使用 ‘snmp-server host <IP地址> traps <团体名> [trap_type/s]’ 语法进行限制性配置。