SNMP command-line tools

net-snmp, snmp, snmpget, snmpwalk
pip install snmpclitools==0.6.4


Command-line SNMP tools

PyPI Python Versions Build status 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.


  • 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 2.4 up to Python 3.7


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


Download snmpclitools from PyPI or just run:

$ pip install snmpclitools

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:

$ -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 system
SNMPv2-MIB::sysDescr.0 = DisplayString: Linux grommit #2 PREEMPT Tue Mar 1 14:03:24 MSD 2016 i686 unknown unknown GNU/Linux
SNMPv2-MIB::sysObjectID.0 = ObjectIdentifier:
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

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

$ -v2c -c public SNMPv2-MIB::sysDescr.0 = my-new-descr

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

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

I'm interested in bug reports, fixes, suggestions and improvements. Your pull requests are very welcome!

Copyright (c) 2005-2019, Ilya Etingof. All rights reserved.