Registry / testing / snmpsim

snmpsim

JSON →
library1.2.2pypypi✓ verified 80d ago

snmpsim is a tool that simulates SNMP agents, acting as a multitude of devices from an SNMP manager's perspective. Version 1.2.2 supports Python 3.10-3.11 (requires python: <4.0,>=3.10). It is under active maintenance with occasional releases.

pip install snmpsim
INSTALL
IMPORT
SIG · SNMPSIM
S
snmpsim
testingpythonv1.2.2
Install
2.4s avg
Import
Disk
27MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.2 · 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 · 24MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.4s · import 0.000s · 25MB
27MB installed
● package 27MB
Code
Verified usage

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

SmiManager
import snmpsim
from snmpsim import SmiManager

Starts the SNMP simulator with a local agent endpoint and data directory.

from snmpsim.commands import main import sys if __name__ == '__main__': sys.argv = ['', '--agent-udpv4-endpoint=127.0.0.1:161', '--data-dir=./data'] main()
snmpsimd --version
Debug
Known issues
breakingsnmpsim 1.0+ removed support for Python 2 and older Python 3 versions. Requires Python 3.10+.
fix
Upgrade Python to 3.10+ and use snmpsim >=1.0.0.
affects: <=0.4.x
deprecatedThe `snmpsimd` command-line script has been deprecated. Use `snmpsim-command-responder` instead.
fix
Replace `snmpsimd` with `snmpsim-command-responder` in scripts and documentation.
affects: >=1.0.0
gotchaData directory must follow a specific structure (e.g., subdirectories for each simulated agent) or the simulator may silently fail.
fix
Ensure each agent has its own folder with files like 'snmp_v1.snmprec', 'snmp_v2c.snmprec', etc.
affects: all
Upgrade
Version history
1.2.2latest on PyPI · released Apr 26, 2026
Audit
Dependencies
pyasn1requiredASN.1 encoding/decoding for SNMP
pysnmprequiredCore SNMP protocol engine
Agent activity
18 hits · last 30 days
node
18
Resources
snmpsim — pip install snmpsim · libregistry