一、 配置要求
1. 所有网络设备均需配置SNMP参数,版本要求为V2C;
二、 配置样例
1. H3C网络设备
<Sysname> system-view
snmp-agent
snmp-agent sys-info version v2c
snmp-agent community read XXXX$2099
snmp-agent trap enable
snmp-agent target-host trap address udp-domAIn 0.0.0.0 params securityname XXXX$2099 v2c
snmp-agent target-host trap address udp-domain 0.0.0.0 params securityname XXXX$2099 v2c
0.0.0.0 、0.0.0.0为网络资源管理平台的IP地址
2. 华为网络设备
<Switch> system-view
snmp-agent
snmp-agent sys-info version v2c
snmp-agent community read XXXX$2099
snmp-agent trap enable
y
snmp-agent target-host trap address udp-domain 0.0.0.0 params securityname XXXX$2099 v2c
snmp-agent target-host trap address udp-domain 0.0.0.0 params securityname XXXX$2099 v2c
3. 思科网络设备
config terminal
snmp-server community XXXX$2099 ro
snmp-server enable traps
snmp-server host 0.0.0.0 traps XXXX$2099
snmp-server host 0.0.0.0 traps XXXX$2099
snmp-server host 0.0.0.0 version 2c XXXX$2099
snmp-server host 0.0.0.0 version 2c XXXX$2099
4. 锐捷网络设备
Ruijie# configure
Ruijie(config)# snmp-server community XXXX$2099 ro
Ruijie(config)# snmp-server enable traps
Ruijie(config)# snmp-server host 0.0.0.0 traps XXXX$2099
Ruijie(config)# snmp-server host 0.0.0.0 traps XXXX$2099
Ruijie(config)# snmp-server host 0.0.0.0 version 2c XXXX$2099
Ruijie(config)# snmp-server host 0.0.0.0 version 2c XXXX$2099
5. Juniper网络设备
set snmp community XXXX$2099 authorization read-only
set snmp trap-group snmptrap targets 0.0.0.0
commit check
Commit
set snmp community XXXX$2099 authorization read-only
set snmp trap-group snmptrap targets 0.0.0.0
commit check
Commit
" "备注:本文档仅供参考,正式配置命令请以官方配置手册为准。
安全设备请参考其官方配置文档进行配置。
"