Skip to main content

Build Status

Panoptes SNMP

A Python wrapper on Net-SNMP

Table of Contents

Introduction

This library, which is a fork of the excellent EasySNMP library, provides a Pythonic wrapper on top of Net-SNMP C library.

Background

The key differences from the upstream library are:

  • Includes Net-SNMP source code which is used to build shared objects during installation leading to self contained distributions
  • Locks down options for the Net-SNMP library: for example, SNMPv1 is and applications are disabled
  • No MIBs are include in the distribution - this is by design since using symbolic OIDs is slow
  • A Python based implementation of bulk_walk
  • Fix support for tunneled SNMP connections

Install

Install by running the following commands:

pip install yahoo_panoptes_snmp

Usage

The API is similar to that of EasySNMP, which is documented here

bulk_walk

The implementation of BULKWALK is based on doing BULKGETs and using 'falling out' of the OID tree to terminate.

The method signature is as follows:

def bulk_walk(self, oids, non_repeaters=0, max_repetitions=10):
    """
    Performs a series of bulk SNMP GET operation using the prepared session to
    retrieve multiple pieces of information in a single packet.

    :param oids: you may pass in a list of OIDs or single item; each item
                 may be a string representing the entire OID
                 (e.g. 'sysDescr.0') or may be a tuple containing the
                 name as its first item and index as its second
                 (e.g. ('sysDescr', 0))
    :param non_repeaters: the number of objects that are only expected to
                          return a single GETNEXT instance, not multiple
                          instances
    :param max_repetitions: the number of objects that should be returned
                            for all the repeating OIDs
    :return: a list of SNMPVariable objects containing the values that
             were retrieved via SNMP
    """

Contribute

We welcome issues, questions, and pull requests - please have a look at contributing to see how to do so.

Maintainers

License

This project is licensed under the terms of the BSD open source license. Please refer to LICENSE for the full terms.

Credits

Please refer to the CREDITS file for a full list of credits.

Metadata

Release files for yahoo-panoptes-snmp 0.2.5.121

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yahoo-panoptes-snmp 0.2.5.121
File Size Uploaded
yahoo_panoptes_snmp-0.2.5.121.tar.gz 6.4 MB Details

Release files / yahoo_panoptes_snmp-0.2.5.121.tar.gz

Download URL yahoo_panoptes_snmp-0.2.5.121.tar.gz
Size 6.4 MB
Tags Source
SHA-256 checksum
How to use checksums
4595378f6e688bea94594b9a6c1eb1e9e22842aa0e2df60260ede268a2623b09
BLAKE2b-256 checksum
How to use checksums
16ebbff4704e6b953d6f3b5047f3cac920e996518e4ef29c614da1ae13f4ae55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page