{"id":22395,"library":"snmpsim","title":"SNMP Simulator","description":"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.","status":"active","version":"1.2.2","language":"python","source_language":"en","source_url":"https://github.com/lextudio/snmpsim","tags":["snmp","simulation","network","monitoring"],"install":[{"cmd":"pip install snmpsim","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"ASN.1 encoding/decoding for SNMP","package":"pyasn1","optional":false},{"reason":"Core SNMP protocol engine","package":"pysnmp","optional":false}],"imports":[{"note":"SmiManager is specific to snmpsim, not pysnmp.","wrong":"from pysnmp import SmiManager","symbol":"SmiManager","correct":"from snmpsim import SmiManager"},{"note":"VariationTable is exported at package level.","wrong":"from snmpsim.variation import VariationTable","symbol":"VariationTable","correct":"from snmpsim import VariationTable"}],"quickstart":{"code":"from snmpsim.commands import main\nimport sys\n\nif __name__ == '__main__':\n    sys.argv = ['', '--agent-udpv4-endpoint=127.0.0.1:161', '--data-dir=./data']\n    main()","lang":"python","description":"Starts the SNMP simulator with a local agent endpoint and data directory."},"warnings":[{"fix":"Upgrade Python to 3.10+ and use snmpsim >=1.0.0.","message":"snmpsim 1.0+ removed support for Python 2 and older Python 3 versions. Requires Python 3.10+.","severity":"breaking","affected_versions":"<=0.4.x"},{"fix":"Replace `snmpsimd` with `snmpsim-command-responder` in scripts and documentation.","message":"The `snmpsimd` command-line script has been deprecated. Use `snmpsim-command-responder` instead.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Ensure each agent has its own folder with files like 'snmp_v1.snmprec', 'snmp_v2c.snmprec', etc.","message":"Data directory must follow a specific structure (e.g., subdirectories for each simulated agent) or the simulator may silently fail.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install pysnmp` separately or use `pip install snmpsim[pysnmp]` if available.","cause":"pysnmp is a required dependency but not automatically installed.","error":"No module named 'pysnmp'"},{"fix":"Use `from snmpsim import SmiManager`.","cause":"Common mistake: importing from pysnmp instead of snmpsim.","error":"ImportError: cannot import name 'SmiManager' from 'pysnmp'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}