SNMP

net-snmp 了解snmp程序最好的工具,snmpwalk和snmptable都是关键命令,举例:

snmptable -v 2c -c public X.X.X.X ifTable

显示网络接口表。遗憾的是没有相关arp的table,只能通过polling atPhysAddress获取: 

snmpwalk -v 2c -c public X.X.X.X .1.3.6.1.2.1.3.1.1.2

oid最前面那个点是不能省略的哦

反向查询oid

snmptranslate -Td oid

.1.3.6.1.2.1 是rfc1213定义的mib的oid。

思科oid查询地址:http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en

原文地址:https://www.cnblogs.com/outofthink/p/3995173.html