Skip to main content

snmp-cmds is a python library for communicating with a target device through SNMP

There’s like… dozens of SNMP libs out there. Why bother?

There are indeed many great SNMP libraries available for python.

Some, like PySNMP, are pure-python. This makes them incredibly portable across platforms, which is awesome, but also makes them relatively slow as well. Also, as amazing as PySNMP is, it isn’t exactly known for its ease of use.

Some, like the net-snmp bindings and easysnmp, are built as extensions to C libraries like Net-SNMP. This makes them incredibly fast and performant, but requires them to be compiled on each platform they’re distributed on, and compiled against specific versions of the Net-SNMP libraries. Not very portable at all.

In writing this library, I set out to find a middle ground. A library which could leverage the power and speed of the Net-SNMP project, while being portable pure-python and not being tied to any particular version of Net-SNMP. I accomplished this by making a library that calls the Net-SNMP binaries as subprocesses.

Although this library should work on Windows platform that have Net-SNMP installed, it has not yet been tested on Windows. Use with caution.

Requirements

This package requires the following software be installed on your system:

  • Net-SNMP (can be installed with sudo apt-get install snmp on Ubuntu)

  • IETF RFC MIBs (can be installed with sudo apt-get install snmp-mibs-downloader on Ubuntu)

  • Python 3.5+

Install

The easy way:

pip3 install snmp-cmds

The hard way:

git clone https://github.com/alextremblay/snmp-cmds.git
cd snmp-cmds
pip install .

Usage

Please see the github page (listed here as home page) or the Full Documentation for usage information.

For more information on the commands / API methods, their signatures, and what they do, please see the Full Documentation.

Release files for snmp-cmds 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for snmp-cmds 1.0
File Interpreter ABI Platform
snmp_cmds-1.0-py3-none-any.whl Python 3 none any Details

Release files / snmp_cmds-1.0-py3-none-any.whl

Download URL snmp_cmds-1.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e50b821e57280b863814872e32a278b0682792961c73e02c6ee044290b027df
BLAKE2b-256 checksum
How to use checksums
fa54ddcfc39c23b47749e7818db9dba6ce0de6e8cb38fede96c92344e1cde5e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page