Giter Club home page Giter Club logo

Comments (5)

stephenwvickers avatar stephenwvickers commented on July 28, 2024

Hi @maufc,

So it looks like the large integer in the OID is not being parsed correctly.

Are you able to provide a packet trace of the query and response so I can troubleshoot it further?

Thanks

Steve

from node-net-snmp.

maufc avatar maufc commented on July 28, 2024

Hi. I'm sorry I couldn't answer before.
I couldn't provide the packet Trace of the query or the response. If you can tell me how to do it I will.
Could it be dice on some other way?
Thanks

from node-net-snmp.

stephenwvickers avatar stephenwvickers commented on July 28, 2024

So it looks like you are on a Lunix host, in which case do something like (untested):

tcpdump -w capture.cap -i any port 161

Recreate the issue, then attach the resulting capture.cap file.

from node-net-snmp.

maufc avatar maufc commented on July 28, 2024

Hi.
Sorry for the late response...
According to this, I do get an answer from the device but I still get an error on the command line.
This is the capture:
19:06:53.676674 IP generador-NUC7i3BNH.46454 > 153.0.0.140.snmp: GetRequest(37) E:28634.6.3607365907.2.8198.0
19:06:53.685290 IP 153.0.0.140.snmp > generador-NUC7i3BNH.46454: GetResponse(38) E:28634.6.3607365907.2.8198.0=11
This is the response on command line:
{ ResponseInvalidError: OID '1.3.6.1.4.1.28634.6.3607365907.2.8198.0' in request at positiion '0' does not match OID '1.3.6.1.4.1.28634.6.-687601389.2.8198.0' in response at position '0'
at Object.feedCb (/home/generador/server/node_modules/net-snmp/index.js:626:22)
at Object.Session.onSimpleGetResponse [as onResponse] (/home/generador/server/node_modules/net-snmp/index.js:951:7)
at Session.onMsg (/home/generador/server/node_modules/net-snmp/index.js:920:9)
at emitTwo (events.js:126:13)
at Socket.emit (events.js:214:7)
at UDP.onMessage [as onmessage] (dgram.js:659:8)
name: 'ResponseInvalidError',
message: 'OID '1.3.6.1.4.1.28634.6.3607365907.2.8198.0' in request at positiion '0' does not match OID '1.3.6.1.4.1.28634.6.-687601389.2.8198.0' in response at position '0'' }
IP 153.0.0.140-- no response mon -- OID: 1.3.6.1.4.1.28634.6.3607365907.2.8198.0

Hope you understand where the problem is.

Thanks!

from node-net-snmp.

maufc avatar maufc commented on July 28, 2024

This topic was never solved.

from node-net-snmp.

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.