Registry / serialization / pysnmp-mibs

pysnmp-mibs

JSON →
library0.1.6pypypiunverified

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.

pip install pysnmp-mibs
INSTALL
IMPORT
SIG · PYSNMP-MIBS
P
pysnmp-mibs
serializationpythonv0.1.6
Install
3.0s avg
Import
Disk
47MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 45.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.0s · import 0.000s · 46MB
47MB installed
● package 47MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

endOfMibView
from pysnmp_mibs import endOfMibView
from pysnmp.proto.rfc1902 import endOfMibView

Basic SNMP GET using pysnmp + pysnmp-mibs. MIB resolution is automatic if pysnmp-mibs is installed.

from pysnmp.hlapi import * from pysnmp.smi import builder getCmd(SnmpEngine(), CommunityData('public'), UdpTransportTarget(('demo.snmplabs.com', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)))
Debug
Known issues
gotchapysnmp-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.
fix
Use pysnmp-mibs for standard IETF/IANA MIBs. For custom MIBs, use pysnmp's MIBCompiler or install PySMI.
affects: all
gotchaSymbols like endOfMibView, noSuchInstance are part of pysnmp, not pysnmp-mibs. Attempting to import them from pysnmp-mibs will fail.
fix
Import from pysnmp.proto.rfc1902 or other pysnmp modules.
affects: all
gotchaNot 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.
fix
Check the PyPI package contents or the GitHub repo for the list of bundled MIBs.
affects: all
Upgrade
Version history
0.1.6latest on PyPI · released Feb 13, 2016
Audit
Dependencies
pysnmprequiredRequired at runtime to use compiled MIBs.
Agent activity
9 hits · last 30 days
node
8
Resources
pysnmp-mibs — pip install pysnmp-mibs · libregistry