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最前面那个点是不能省略的哦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接口

相关文章
相关标签/搜索