一、 配置要求
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
" "備注:本文檔僅供參考,正式配置命令請以官方配置手冊為準。
安全設備請參考其官方配置文檔進行配置。
"