No project description provided
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.7.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for shellsnmp-0.1.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98ec332c2a2ffe059c35bd8060603ea9925a3c6e76c5b1adc96a29d4bd04d8ab |
|
MD5 | 9f7b20c96280f9931c7df275c8fbc4fc |
|
BLAKE2b-256 | 9b726aab671105a6a4c850ad89264df9015903b92c990004d21be164a2cd1850 |