Comments (10)
I've uploaded the generated debug file to this gist, if you need some more info.
https://gist.github.com/toni-moreno/40dc6353127fbd21828afc6108699100
from gosnmp.
According to that dump, the SNMP agent is responding with error TooBig with
nothing supplied in the VBL.
https://github.com/soniah/gosnmp/blame/master/marshal.go#L282
Are we sure an empty VBL is an error of this magnitude?
On Mon, Apr 11, 2016 at 8:08 AM, Toni Moreno [email protected]
wrote:
I've uploaded the generated debug file to this gist, if you need some more
info.
https://gist.github.com/toni-moreno/40dc6353127fbd21828afc6108699100—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#62 (comment)
Whitham D. Reeve II
907-764-5263
from gosnmp.
Hi everyone, I'm having laser surgery on my eyes tomorrow - better vision :-) But that means I'll be taking a break for two weeks from programming :-/
from gosnmp.
Hi @soniah how are you ? I'm done a workaround by changing snmpget to snmpgetbulk method to get indexed OID's, but only working with snmp version > 2 , whould like to fix this error for old snmp version 1 devices.
Thanks a lot!
from gosnmp.
Soniah, what do you want to do about this? I often have to use SNMPV1 for ... reasons. I am likely to be affected by this at some point.
We could try removing the check to allow code higher up the opportunity to deal with it. Need to verify by looking through the call graph. Does that seem like a good idea to you?
from gosnmp.
Hi @wdreeveii , I've had a look through the code and don't understand the implications - but I'm at a campsite with mosquitos and a flat laptop :-)
I've been trying to understand the effect of removing this:
(line 282)
len(result.Variables) < 1
ie if unmarshal returns a SnmpPacket with no Variables, why it is a problem.
A call graph on v1 protocol would be handy, I can't remember the protocol differences between v1 & v2c
from gosnmp.
This relates to the issue I opened #72
My issue was more around allowing the specification of the maximum OIDs requested but the error still goes unhandled from what I can see in the code.
Is there anything ongoing currently to support SNMP error codes returned from the remote agent?
from gosnmp.
I'm not sure. At the moment I'm focussing on the trap code.
from gosnmp.
Notes for myself:
- Max oids exceeded is now handled (eg gosnmp.go, line 310).
- returned SNMP error codes....?
from gosnmp.
Closing as stale. @toni-moreno please log a new issue if this is still relevant.
from gosnmp.
Related Issues (20)
- The Get method is unable to collect data, if we provide multiple OIDs, which includes an invalid OID. HOT 1
- Query on gosnmp feature as snmp agent HOT 2
- multiple device concurrent polling fails unless you create your own snmp object HOT 2
- Question: Use on Windows HOT 1
- VULNERABILITY [CWE-347] CVE-2020-9283] golang.org/x/crypto Improper Signature Verification HOT 1
- Sometimes a previous privacy passphrase is reused instead of the specified one
- usmStatsUnknownUserNames as terminating error? HOT 3
- Chinese coding is garbled HOT 2
- How to configure read/write community? HOT 1
- marshal: marshalPDU: unable to marshal varbind list: unable to marshal OID: Value out of range HOT 2
- Should cancelling a context interrupt an ongoing operation?
- out of bounds error when parsing AuthNoPriv packet HOT 4
- msgMaxSize to be supported in SNMP v3 bulkwalk requests
- V3 feat needed: Load keys manually if the passphrases are not allowed be saved locally HOT 1
- Connect function in gosnmp always returns nil even if the credentials are not valid HOT 1
- Panic in unmarshalV3Header
- Compatibility with GoSNMPServer HOT 7
- `net-snmp` based validation testing HOT 5
- Request ID size too large
- Not handling `0` values correctly for `OpaqueDouble` or `OpaqueFloat`
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 gosnmp.