Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shellsnmp-0.1.7-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

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

Hashes for shellsnmp-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5414da50b0a994893e92ad42ae7f3ac428c37ed68552f24e8f2a6f2f2e104334
MD5 e5c21d019feb1f4b51587c20e2ee8395
BLAKE2b-256 8e6f9c2ff8b3fff57f31bddc4873bb215d26cd6d902a600957173530d3436cb7

See more details on using hashes here.

File details

Details for the file shellsnmp-0.1.7-py2-none-any.whl.

File metadata

File hashes

Hashes for shellsnmp-0.1.7-py2-none-any.whl
Algorithm Hash digest
SHA256 98ec332c2a2ffe059c35bd8060603ea9925a3c6e76c5b1adc96a29d4bd04d8ab
MD5 9f7b20c96280f9931c7df275c8fbc4fc
BLAKE2b-256 9b726aab671105a6a4c850ad89264df9015903b92c990004d21be164a2cd1850

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page