什么是IF-MIB:snimpy.mib.SMIException:无法找到b' IF-MIB' (检查路径)?

时间:2016-09-21 17:55:57

标签: python snmp mib snimpy

我关注了the doc,但收到了以下错误:

>>> from snimpy.manager import Manager as M
from snimpy.manager import load

load("IF-MIB")
m = M("localhost")
print(m.ifDescr[0])
Traceback (most recent call last):
  File "<input>", line 4, in <module>
  File "/home/ed8/projects/coaxis-opt/env/lib/python3.5/site-packages/snimpy/manager.py", line 578, in load
    m = mib.load(mibname)
  File "/home/ed8/projects/coaxis-opt/env/lib/python3.5/site-packages/snimpy/mib.py", line 605, in load
    raise SMIException("unable to find {0} (check the path)".format(mib))
snimpy.mib.SMIException: unable to find b'IF-MIB' (check the path)

问题

什么是IF-MIB?我需要在我的系统上安装一些软件包吗?

参考

Doc example fails: snimpy.mib.SMIException: unable to find b'IF-MIB' (check the path)

1 个答案:

答案 0 :(得分:0)

snimpy developer提供:

  

如果您使用的是Ubuntu,则需要

apt-get install snmp-mibs-downloader