Giter VIP home page Giter VIP logo

Comments (3)

etingof avatar etingof commented on May 23, 2024

A quick question on the writecache problem: can you give me a simple reproducer to streamline the fix? Like the .snmprec and snmpset command that fails? Traceback would also be useful.

I will comment on the rest of your notes shortly.

from snmpsim.

PanagiotisPapageorgiou avatar PanagiotisPapageorgiou commented on May 23, 2024

Hello, thank you for your reply.

In order to reproduce the error place inside a snmprec file the following record:

1.2.3.4.4.2.1|4x:writecache|value=423423abc123fdd

Then start snmpsimd and send a SNMPGet request for this OID. This will cause a type error.

However, I found a workaround that enables me to modify hexademical value OIDs. I rewrite the above OID this way:

1.2.3.4.4.2.1|4:writecache|hexvalue=423423abc123fdd

This actually works and I can now edit this OID too so you might not want to look into it, maybe just place a note in the documentation of variation modules for anyone wanting to edit hexademical values to remove the 'x' when using writecache.

As for the rest of of my questions, basically it would be very helpful to us if there was for SNMPSim to insert new OIDs or delete old ones at runtime. For example, a Xirrus Device is sent a SNMPSet request that instructs it to create a new tunnel. This translates to the creation of a new OID for the Xirrus device that can now be retrieved via SNMPGet if needed.

Thank you for your time!

from snmpsim.

etingof avatar etingof commented on May 23, 2024

I beg your pardon for it has taken so long to resolve this issue!

I think commit cda100f should have resolved it in a way that optional .snmprec tag modifier ('x' or 'e') gets ignored by the variation modules.

from snmpsim.

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.