Skip to main content

Command-line SNMP tools

PyPI PyPI Downloads Python Versions GitHub license

This is a collection of command-line SNMP tools written in pure-Python. The tools mimic their famous Net-SNMP counterparts.

In the past this project was known as pysnmp-apps.

Features

  • Complete SNMPv1/v2c and SNMPv3 support
  • Interface compatible (almost) with Net-SNMP's snmp* tools.
  • SNMPv3 USM supports MD5/SHA/SHA224/SHA256/SHA384/SHA512 auth and DES/3DES/AES128/AES192/AES256 privacy crypto algorithms
  • Automatically downloads required MIBs from the Internet
  • Runs over IPv4 and/or IPv6 transports
  • Cross-platform: works on Linux, Windows and OS X.
  • 100% Python, works with Python 3.7+

Download

The snmpclitools package is distributed under terms and conditions of 2-clause BSD license. Source code is freely available as a Github repo.

Installation

Download snmpclitools from PyPI or just run:

$ pip install snmpclitools-lextudio

How to use the tools

The most of pysnmp command-line tools could be run in a similar way as their Net-SNMP counterparts. For example:

$ snmpbulkwalk -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 demo.pysnmp.com system
SNMPv2-MIB::sysDescr.0 = DisplayString: Linux grommit 3.5.11.1 #2 PREEMPT Tue Mar 1 14:03:24 MSD 2016 i686 unknown unknown GNU/Linux
SNMPv2-MIB::sysObjectID.0 = ObjectIdentifier: iso.org.dod.internet.private.enterprises.8072.3.2.101.3.6.1.4.1.8072.3.2.10
SNMPv2-MIB::sysUpTime.0 = TimeTicks: 43 days 1:55:47.85372214785
[ skipped ]
SNMPv2-MIB::sysORUpTime."8" = TimeStamp: 0 days 0:0:0.77
SNMPv2-MIB::sysORUpTime."9" = TimeStamp: 0 days 0:0:0.77

$ snmpget -v3 -u usr-sha-aes -l authPriv -A authkey1 -X privkey1 demo.pysnmp.com IP-MIB::ipAdEntBcastAddr.\"127.0.0.1\"
IP-MIB::ipAdEntBcastAddr."127.0.0.1" = Integer32: 1

$ snmpset -v2c -c public demo.pysnmp.com SNMPv2-MIB::sysDescr.0 = my-new-descr
notWritable(17)

For more information, please, run any of these tools with --help option.

You can play with different security protocols against the publicly available SNMP agent like this one @www.pysnmp.com.

Getting help

If something does not work as expected, please open up a GitHub issue or post your question to Stack Overflow.

Feedback and collaboration

Your pull requests are very welcome!

Copyright (c) 2005-2019, Ilya Etingof. Copyright (c) 2022-2024, LeXtudio Inc.. All rights reserved.

Metadata

Release files for snmpclitools-lextudio 0.7.0

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

Source distribution (sdist)

Source distribution for snmpclitools-lextudio 0.7.0
File Size Uploaded
snmpclitools_lextudio-0.7.0.tar.gz 51.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snmpclitools-lextudio 0.7.0
File Interpreter ABI Platform
snmpclitools_lextudio-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 88.0 kB

Release files / snmpclitools_lextudio-0.7.0.tar.gz

Download URL snmpclitools_lextudio-0.7.0.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
837c861da1543c73f62da1e361adca073130da9ee5b2274b06c39b39db714767
BLAKE2b-256 checksum
How to use checksums
a11006fa2ed69462e1af0f515860da81db27c0fe4bcc3623c44436730369c06c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.0 Darwin/23.3.0

Release files / snmpclitools_lextudio-0.7.0-py3-none-any.whl

Download URL snmpclitools_lextudio-0.7.0-py3-none-any.whl
Size 36.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33ced60d10d421dd636f5f5b8f4bb00ddce48645b2e9bb705a0e2b29898066b9
BLAKE2b-256 checksum
How to use checksums
bfe3d88ec2a1155f833993fcf1aabe1a9640a2454b3c3a05a7220de41b65c6b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.0 Darwin/23.3.0

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.4

2 release files

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