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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shellsnmp-0.1.7.tar.gz.
File metadata
- Download URL: shellsnmp-0.1.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5414da50b0a994893e92ad42ae7f3ac428c37ed68552f24e8f2a6f2f2e104334
|
|
| MD5 |
e5c21d019feb1f4b51587c20e2ee8395
|
|
| BLAKE2b-256 |
8e6f9c2ff8b3fff57f31bddc4873bb215d26cd6d902a600957173530d3436cb7
|
File details
Details for the file shellsnmp-0.1.7-py2-none-any.whl.
File metadata
- Download URL: shellsnmp-0.1.7-py2-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98ec332c2a2ffe059c35bd8060603ea9925a3c6e76c5b1adc96a29d4bd04d8ab
|
|
| MD5 |
9f7b20c96280f9931c7df275c8fbc4fc
|
|
| BLAKE2b-256 |
9b726aab671105a6a4c850ad89264df9015903b92c990004d21be164a2cd1850
|