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.4.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for shellsnmp-0.1.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f253e95088e7df625783aadb45c86f9ceaf7a77e8c2358f9d4fd6146cc3e6f9b |
|
MD5 | 582974b9bfb18cac65a1a2ed3d851258 |
|
BLAKE2b-256 | 62894fd24f3221a07ac5b054c964e97f9845ed602b16f0bcc5c007af14ef4143 |