Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

No project description provided

Project description

Shamelessly (ab)using NET-SNMP shell commands for a quick-and-dirty Python SNMP lib

Why

  • I’m not fond of the pySNMP API
  • snimpy requires loading libffi-dev and libsmi-dev (i.e. root privs) on the system
  • It’s fast enough

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

Project details


Release history Release notifications

This version
History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
shellsnmp-0.1.7-py2-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel 2.7 Nov 29, 2016
shellsnmp-0.1.7.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Nov 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page