原理:在智象智能运维平台系统配置安装过程中,利用snmp协议在交换机上设置trap陷阱,当端口状态发生改变时,通知监控主机,监控主机配置snmptrapd进行接收,然后告警给用户。
参考文献:http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd
一、智象运维中交换机配置部分(需要查看具体产品文档,这里以华为S9306为例):
display snmp-agent trap feature-name ifnet all
------------------------------------------------------------------------------
Feature name: IFNET
Trap number : 17
------------------------------------------------------------------------------
Trap name Default switch status Current switch status
hwIfFlowDown off off
hwIfFlowUp off off
hwIfNameChange off off
hwIfNameChangeResume off