{"id":24399,"library":"pysnmp-mibs","title":"PySNMP MIBs","description":"A collection of IETF & IANA MIBs pre-compiled for PySNMP. Version 0.1.6 is the latest release (last updated 2023). No active maintenance; releases are infrequent.","status":"active","version":"0.1.6","language":"python","source_language":"en","source_url":"https://github.com/etingof/pysnmp-mibs","tags":["snmp","mibs","ietf","iana","pysnmp"],"install":[{"cmd":"pip install pysnmp-mibs","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Required at runtime to use compiled MIBs.","package":"pysnmp","optional":false}],"imports":[{"note":"MIB symbols are not imported from pysnmp-mibs; they come from pysnmp.","wrong":"from pysnmp_mibs import endOfMibView","symbol":"endOfMibView","correct":"from pysnmp.proto.rfc1902 import endOfMibView"}],"quickstart":{"code":"from pysnmp.hlapi import *\nfrom pysnmp.smi import builder\n\ngetCmd(SnmpEngine(),\n       CommunityData('public'),\n       UdpTransportTarget(('demo.snmplabs.com', 161)),\n       ContextData(),\n       ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)))\n","lang":"python","description":"Basic SNMP GET using pysnmp + pysnmp-mibs. MIB resolution is automatic if pysnmp-mibs is installed."},"warnings":[{"fix":"Use pysnmp-mibs for standard IETF/IANA MIBs. For custom MIBs, use pysnmp's MIBCompiler or install PySMI.","message":"pysnmp-mibs only contains pre-compiled MIBs. It does not support runtime MIB compilation; you must install the MIB files separately if you need custom MIBs.","severity":"gotcha","affected_versions":"all"},{"fix":"Import from pysnmp.proto.rfc1902 or other pysnmp modules.","message":"Symbols like endOfMibView, noSuchInstance are part of pysnmp, not pysnmp-mibs. Attempting to import them from pysnmp-mibs will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Check the PyPI package contents or the GitHub repo for the list of bundled MIBs.","message":"Not all MIBs from IETF/IANA are included. Some MIBs may be missing or outdated. There is no easy way to see the full list without exploring the package.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install additional MIBs via PySMI compilation or use absolute numeric OIDs.","cause":"The MIB you are trying to use is not included in pysnmp-mibs.","error":"Missing MIB: 'No MIB found matching given OID'"},{"fix":"Use `from pysnmp.proto.rfc1902 import endOfMibView`.","cause":"Importing symbols from pysnmp-mibs instead of pysnmp.","error":"AttributeError: module 'pysnmp_mibs' has no attribute 'endOfMibView'"},{"fix":"Run `pip install pysnmp-mibs` in the same Python environment.","cause":"pysnmp-mibs not installed or installed in a different environment.","error":"pysnmp_mibs not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}