Comments (2)
Hi @stuarthannig thank you for the report.
I think it might have smth to do with this: https://github.com/swisscom/ruby-netsnmp/blob/master/lib/netsnmp/varbind.rb#L51
My question here would be, how could you distinguish between the string and hex string, if not using this admittedly naive approach?
I'd suggest you set a breakpoint here and check what causes the middle value to be convertible, and how else could you identify it as an hex string
from ruby-netsnmp.
https://stackoverflow.com/questions/35439244/how-to-convert-the-hex-value-that-i-receive-from-snmp for reference.
The netsnmp cli tool uses MIB information about the OID to know how to parse it.
Given that now there's a MIB parser, one could take advantage of this.
from ruby-netsnmp.
Related Issues (20)
- Counter32 and Counter64 Values Issue HOT 5
- Counter64 OID Values Are Returned as nil HOT 6
- Certain gauge / counter32 values are being encoded incorrectly HOT 11
- HMAC-SHA-2 Authentication Protocols in the User-based Security Model (USM) for SNMPv3 HOT 2
- SNMPSet two different OIDs in one request command? HOT 5
- MIB parser
- SNMPv3 with DES and MD5 fails: invalid message authentication salt HOT 31
- Bug AES decrypt when salt is empty HOT 1
- Cannot load MIB file HOT 10
- The gem does not recognize authentication failures HOT 2
- Occasional "Decryption error" with SNMPv3 HOT 14
- Not working with v1 (maybe) HOT 15
- uninitialized constant Socket::MSG_NOSIGNAL HOT 4
- passkey calculation into c extension
- The gem does not recognize a missing OID HOT 7
- SNMPv3 not working with APC UPS HOT 11
- V3 cannot parse TROPIC-GLOBAL-MIB HOT 2
- Cisco Mibs Brake when using mib names HOT 19
- SNMPV3. Failing to load some legacy MIBs. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-netsnmp.