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最前面那個點是不能省略的哦spa
反向查詢oidpwa
snmptranslate -Td oid
.1.3.6.1.2.1 是rfc1213定義的mib的oid。blog
思科oid查詢地址:http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en接口