Open AddoSolutions opened 3 years ago
I'd like to ask, what have you tried so far?
What springs to my mind, is to check what is happening in code in the lines mentioned. For example, cdp.rb#21:
peer.raw_ip = @mib[OID[:cdpCacheAddress], peer_id].as_ip
and snmp.rb#132:
SNMP::IpAddress.new(value).to_s
We can determine that call to the #as_ip
method is getting empty string as value, while it expected to see 4 octets.
Now perhaps we start asking some questions, which node were we polling, what data did it receive?
My stab in the dark is, some node returned unpopulated field where we expected IP address to be, and the code didn't anticipate that.
You can either fix this yourself, by first answering to some of those questions to yourself and then figuring out if you can find the needed IP in some other way or if you just have to guard against trying in that scenario. I'm also happy to do that, but for that I'd need access to your network to reproduce the problem so I can troubleshoot it, I'd come from 91.198.120.1
you can send auth to saku@ytti.fi
.
Hey all, I am pretty much useless in Ruby, but got this issue when running this on a pretty large Cisco network:
Any ideas?