Giter VIP home page Giter VIP logo

snmpresponder's Introduction

SNMP Command Responder

PyPI Python Versions Status Build status GitHub license

The SNMP Command Responder daemon runs one or more SNMP agents and maintains one or more trees of SNMP managed objects (i.e. MIBs). The user can interface those managed objects with the data they are willing to serve over SNMP.

SNMP requests received by any of the embedded SNMP agents can be routed to any of the MIB trees for processing via a declarative mini-language.

The use-case for SNMP Command Responder is to serve user data over SNMP.

Features

  • SNMPv1/v2c/v3 operations with built-in protocol and transport translation capabilities
  • SNMPv3 USM supports MD5/SHA/SHA224/SHA256/SHA384/SHA512 auth and DES/3DES/AES128/AES192/AES256 privacy crypto algorithms
  • Maintains multiple independent SNMP engines, network transports and MIB trees
  • Discovers pip-installable MIB implementations
  • Extension modules supporting SNMP PDU filtering and on-the-fly modification
  • Works on Linux, Windows and OS X

Download & Install

SNMP Command Responder software is freely available for download from PyPI.

Just run:

$ pip install snmpresponder

Alternatively, you can get it from GitHub.

How to use SNMP Command Responder

First you need to configure the tool. It is largely driven by configuration files written in a declarative mini-language. To help you started, we maintain a collection of configuration files designed to serve specific use-cases.

Getting help

If something does not work as expected or we are missing an interesting feature, open an issue at GitHub or post your question on Stack Overflow.

Finally, your PRs are warmly welcome! ;-)

Copyright (c) 2019, Ilya Etingof. All rights reserved.

snmpresponder's People

Contributors

etingof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

inexio lextudio

snmpresponder's Issues

writeCommit problem

Im managing a variable that can assume '0' or '1' value.
if generic mib browser try to set '3' an exception make the agent crash.
of course i can try-except that, but im not able to send to client (mib browser) the error.
Thats the code on my pythonized mib:

def writeTest(self, varBind, **context):
    cbFun = context['cbFun']
    name, value = varBind
    if value in [0,1]:
        cbFun(varBind, **context)
    else:
        pass


def writeCommit(self, varBind, **context):
    # Put your code here
    print("arrivato al write commit")
    cbFun = context['cbFun']
    name, value = varBind
    cbFun((name, value), **context)
    my_agent.setcConnection(value)

can anyone help me?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.