大部分的命令都可以通过?查看相应的解释文本来了解相关的含义,例如:
Px-Rtr(config)#snmp-server enable traps ?
aaa_server Enable SNMP AAA Server traps
adslline Enable ADSL Line-MIB traps
atm Enable SNMP atm traps
auth-framework Enable SNMP CISCO-AUTH-FRAMEWORK-MIB traps
bgp Enable BGP traps
bulkstat Enable Data-Collection-MIB Collection notifications
c3g Enable Cellular 3G modem reset traps
call-home Enable SNMP CISCO-CALLHOME-MIB traps
cef Enable SNMP CEF traps
cnpd Enable NBAR Protocol Discovery traps
snmp的5条命令自上而下的意思是:
1.指定snmp的community 为2911mian 读写权限//类似一个key,snmp管理设备需要填写对应的key才可以连接设备,RW表示读写,RO是只读
2. 指定发送snmp trap的源接口
3. 启用snmp linkdown linkup coldstart warmstart的信息发送,就是原始的含义链路down,链路up,冷启动,热启动
4. 启用实体传感器MIB信息和实体传感器阈值的通告,entity-sensor 表示 CISCO-ENTITY-SENSOR-MIB ,threshold表示entSensorThresholdNotification
5 指定接收通告的snmp server的地址,并指定使用的版本和community信息,