Code Monkey home page Code Monkey logo

Comments (4)

vincentbernat avatar vincentbernat commented on May 20, 2024

I don't see why you would need to have _session._session. But otherwise, no, there is no better way.

from snimpy.

cbueche avatar cbueche commented on May 20, 2024

Thank you Vincent for your quick answer, I should have explained me better. The reason is, (within Agent-Jones) for 99% of my SNMP get and set, I use MIBs and the pythonic interface:

for index, operstatus in m.ifOperStatus.iteritems(): use(index & operstatus)

but in one place, I want to allow a SNMP get/walk on an oid passed as parameter :

http://url/aj/api/v1/oidpump/192.168.20.60/get/1.3.6.1.2.1.1.3.0 http://url/aj/api/v1/oidpump/192.168.20.60/walk/1.3.6.1.2.1.31.1.1.1.1

Or Is there a way to do this using a manager ?

from snimpy.

vincentbernat avatar vincentbernat commented on May 20, 2024

That's not possible with the manager. So, your way of doing it is the better way. I don't want to provide an "official" way because it would mean that I have to maintain some stability guarantee on the session API. I didn't intend for people to use it (but many do).

from snimpy.

cbueche avatar cbueche commented on May 20, 2024

That's ok, I can live with this workaround. Thanks again for your support !

from snimpy.

Related Issues (20)

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.