Giter VIP home page Giter VIP logo

Comments (10)

etingof avatar etingof commented on May 22, 2024

Could you please cut&paste your command-line or log or whatever would help me debug that? For example this works as expected, no?

$ snmpget -v2c -c public demo.snmplabs.com 1.3.6
SNMPv2-SMI::dod = No Such Instance currently exists at this OID

from snmpsim.

varelochka avatar varelochka commented on May 22, 2024

Two captures attached.
good.cap (simulator Written by Ilya Etingof [email protected], 05/2010, I don't know exact version)
not_good.cap - simulator version 0.3.1

Log from simulator version 0.3.1:
Request var-binds: 1.3.6.1.2.1.17.1.1.0=<>, flags: EXACT, GET
Response var-binds: 1.3.6.1.2.1.23.1.1.0=<0>

For me this works as not expected in version 0.3.1

capture.zip

from snmpsim.

varelochka avatar varelochka commented on May 22, 2024

test.zip
For the test MVC file I trying to get OID 1.3.6.1.2.1.17.1.1.0 (Ubuntu 16.04.2 LTS, snmpsimd version 0.3.1):
snmpget -v2c -ctest 192.168.7.133 1.3.6.1.2.1.17.1.1.0
iso.3.6.1.2.1.23.1.1.0 = Counter32: 0

Log from snmpsimd:
Using ../snmpsim/data/test.MVC controller selected by candidate 098f6bcd4621d373cade4e832627b4f6; transport ID 1.3.6.1.6.1.1.0, source address 192.168.7.133, context name "098f6bcd4621d373cade4e832627b4f6"
SNMP EngineID 0x80004fb8057562756e747504533a2c, transportDomain (1, 3, 6, 1, 6, 1, 1, 0), transportAddress ('192.168.7.133', 35024), securityModel 2, securityName 098f6bcd4621d373cade4e832627b4f6, securityLevel 1
Request var-binds: 1.3.6.1.2.1.17.1.1.0=<>, flags: EXACT, GET
Response var-binds: 1.3.6.1.2.1.23.1.1.0=<0>

I always got OID 1.3.6.1.2.1.23.1.1.0 in answer but must got error No Such Instance.

from snmpsim.

mofikus avatar mofikus commented on May 22, 2024

Hi

I also have this issue, attached a walk file. If I poll 1.3.6.1.2.1.15.4.1 the response is:

.1.3.6.1.2.1.31.1.1.1.1.1 = STRING: "GE0/0/0"

When it should be no such instance. This is using a snmpwalk file, not a snmprec file.

Log from snmpsimd:

Listening at UDP/IPv4 endpoint 192.168.100.2:1161, transport ID 1.3.6.1.6.1.1.0
Using /home/mofikus/edited-device93.snmpwalk controller selected by candidate b'f0fedc721631f3f929c81eab7bc700f8'; transport ID 1.3.6.1.6.1.1.0, source address 10.44.3.33, context name "b'f0fedc721631f3f929c81eab7bc700f8'"
SNMP EngineID 0x80004fb805676e7333766d2e87fcc8, transportDomain (1, 3, 6, 1, 6, 1, 1, 0), transportAddress ('10.44.3.33', 61666), securityModel 1, securityName f0fedc721631f3f929c81eab7bc700f8, securityLevel 1
Opening /home/mofikus/edited-device93.snmpwalk controller
Request var-binds: 1.3.6.1.2.1.15.4.1=<>, flags: EXACT, GET
Response var-binds: 1.3.6.1.2.1.31.1.1.1.1.1=<GE0/0/0>

snmpsimd was run with the following:

snmpsimd.py --data-dir=/home/mofikus --agent-udpv4-endpoint=192.168.100.2:1161

from snmpsim.

etingof avatar etingof commented on May 22, 2024

@mofikus Could you please attach your .snmpwalk file and also make sure you are using the latest snmpsim version released?

from snmpsim.

etingof avatar etingof commented on May 22, 2024

Alright, that was a bug which is hopefully fixed by d174a74 (actually, master HEAD).

I'd appreciate your testing before I make a release.

Thanks! ;-)

from snmpsim.

etingof avatar etingof commented on May 22, 2024

@varelochka I beg your pardon for overlooking your issue... It is hopefully fixed by now in master.

from snmpsim.

mofikus avatar mofikus commented on May 22, 2024

Sorry I forgot to attach the walk, but I've just tested your changes and it appears to have fixed the issue. Thank you!

from snmpsim.

etingof avatar etingof commented on May 22, 2024

snmpsim 0.4.3 has been released on PyPI.

from snmpsim.

varelochka avatar varelochka commented on May 22, 2024

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.