展开全部
你还要在交换机上设置snmp trap,说白了就是当交换机的某些状态变化时自动发一条消息给syslog服务器。
在我32313133353236313431303231363533e58685e5aeb931333365653836的3750上面默认有如下的trap
sw01(config)#snmp-server enable traps ?
bridge Enable SNMP STP Bridge MIB traps
cluster Enable Cluster traps
config Enable SNMP config traps
copy-config Enable SNMP config-copy traps
entity Enable SNMP entity traps
envmon Enable SNMP environmental monitor traps
flash Enable SNMP FLASH notifications
fru-ctrl Enable SNMP entity FRU control traps
hsrp Enable SNMP HSRP traps
mac-notification Enable SNMP MAC Notification traps
port-security Enable SNMP port security traps
rtr Enable SNMP Response Time Reporter traps
snmp Enable SNMP traps