Python snmp using shell calls
Project description
Shamelessly (ab)using NET-SNMP shell commands for a quick-and-dirty Python SNMP lib
Why
Usage
Be sure you have MIB files loaded on your system. You can download them from Cisco’s FTP site like this… wget ftp://ftp.cisco.com/pub/mibs/v2/MIB-NAME.my
from shellsnmp.Poller import SNMP snmp = SNMP(community='public', host='172.16.1.3') status, time = snmp.bulkwalk(mibfile='/path/to/IF-MIB.my', oidspec='ifOperStatus')
Note that only bulkwalk() has been implemented at this time.
Installation
pip install shellsnmp
License and Copyright
Licensed MIT
Copyright 2016 - David Michael Pennington (mike [~at~] pennington [/dot] net)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shellsnmp-0.1.5.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for shellsnmp-0.1.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04649d0de70321656bca6f77222eed5fe60a121070ac7659a882d3072b6ff3ce |
|
MD5 | 432a8910912a6b3a097d9ae1582ff1cc |
|
BLAKE2b-256 | 04961be29946b5f8796fd67d1ea948ae3201fb424030d0486123946dcb1f8fd2 |