11-28 2 views
1 2 |
eric@eric-virtual-machine:~$ sudo snmpwalk -v2c -c public xx.xx.xx.xx sysDescr sysDescr: Unknown Object Identifier (Sub-id not found: (top) -> sysDescr) |
解决办法:
这是因为缺少mib库导致的需要安装:snmp-mibs-downloader
1 |
eric@eric-virtual-machine:~$ sudo apt-get install -y snmp-mibs-downloader |
然后修改snmp.conf注释掉配置文件中的mib
1 2 3 4 5 6 7 8 |
eric@eric-virtual-machine:~$ sudo vim /etc/snmp/snmp.conf ... # As the snmp packages come without MIB files due to license reasons, loading # of MIBs is disabled by default. If you added the MIBs you can reenable # loading them by commenting out the following line. #mibs : # 注释掉此行 ... |
再次执行
1 2 3 4 |
eric@eric-virtual-machine:~$ sudo snmpwalk -v2c -c public xx.xx.xx.xx sysDescr SNMPv2-MIB::sysDescr.0 = STRING: H3C Comware Platform Software, Software Version 7.1.045, Release 1115 H3C S5560-54C-EI Copyright (c) 2004-2015 Hangzhou H3C Tech. Co., Ltd. All rights reserved. |
如果想赏钱,可以用微信扫描下面的二维码,一来能刺激我写博客的欲望,二来好维护云主机的费用; 另外再次标注博客原地址 itnotebooks.com 感谢!
