H3C设备配置:
1.开启SNMP
snmp-agent
snmp-agent local-engineid 800063A2000FE260437A6877
snmp-agent community write 123456 配置团体名,设置权限
snmp-agent community read public
snmp-agent sys-info version all
snmp-agent target-host trap address udp-domain 172.16.4.109 params securityname public
指定Syslog服务器
2. 开启日志输出,指定日志输出方向
info-center enable
info-center loghost 192.168.0.114 facility local0 将信息发送到指定服务器(local为发送工具)
Brocade(博科)设备配置:
1. 开启SNMP
snmp-server community public rw
snmp-server host 192.168.0.114 version v2c public
2. 开启日志输出,指定日志输出方向
logging enable config-changed
logging enable user-login
logging host 192.168.0.114
logging facility local3
logging on
Cisco设备配置:
#snmp-server community public ro 配置本路由器的只读字串为public
#snmp-server community public rw 配置本路由器的读写字串为public
#snmp-server enable traps 允许路由器将所有类型SNMP Trap发送出去
#snmp-server host IP-address traps public 指定路由器SNMP Trap的接收者IP-address发送Trap时采用public作为字串