华为S5700开启SNMP协议+zabbix监控

测试环境ENPS------S3700交换机:192.168.205.33

zabbix服务器------centos 7 zabbix3.4:192.168.205.19

Switch配置

S2]undo info-center enable

[S2]inter Vlanif 1

[S2-Vlanif1]ip add 192.168.205.33 24  \\设置vlan 1 IPaddress

[S2-Vlanif1]q

[S2]

[S2]ping 192.168.205.19 

PING 192.168.205.19: 56 data bytes, press CTRL_C to break

Reply from 192.168.205.19: bytes=56 Sequence=1 ttl=64 time=30 ms

Reply from 192.168.205.19: bytes=56 Sequence=2 ttl=64 time=1 ms

[S2]

[S2]snmp-agent sys-info version v2   \\设置交换机snmp协议版本

[S2]

[S2]snmp-agent community read cipher public   \\

[S2]

[S2]snmp-agent trap enable

Warning: All switches of SNMP trap/notification will be open. Continue? [Y/N]:y

[S2]

[S2]snmp-agent target-host trap address udp-domain 192.168.205.33 udp-port 161 p

arams securityname public   \\

[S2]snmp-agent target-host trap address udp-domain 192.168.205.19 params securit

yname public    \\

<S2>save

<S2>display current-configuration  \\查看配置

zabbix服务器添加主机

添加完成后启动

发布了5 篇原创文章 · 获赞 1 · 访问量 813

猜你喜欢

转载自blog.csdn.net/saftqwe/article/details/101056176