-
Notifications
You must be signed in to change notification settings - Fork 24
Cisco Mibs Brake when using mib names #72
Comments
Thx for the report. Is the oid from the error message correct? What's the difference in the logs when you turn on the debug output? |
Yes the mib is correct, but it seems the first part of it gets cut off see below: OID = 1.3.6.1.4.1.9.9.48.1.1.1.6 = CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree |
That looks like a mib parsing issue. Do you think you can write a patch to add support for that case? Or alternatively, can you upload the cisco mibfile, so I can do it when I have the time? |
Sorry still a newbie, I can give it a shot. List of cisco mibs: |
thx, I'll see what I can do. |
It seems that you are missing a MIB file in the mibdir, particularly this one. I could reproduce it by doing: require "netsnmp"
require "netsnmp/mib/parser"
NETSNMP::MIB.load(File.join(__dir__, "CISCO-SMI.my"))
NETSNMP::MIB.load(File.join(__dir__, "CISCO-MEMORY-POOL-MIB.txt"))
puts NETSNMP::MIB.oid("ciscoMemoryPoolFree")
# => 1.3.6.1.4.1.9.9.48.1.1.1.6 Can you confirm that you're missing the file? |
Interesting!!! I did have it like this:
hmm let me try to load the entire directory some how, but the error does change when I use the following:
Let me try this and get back to you today. |
After changing the all of the above to
|
After checking it with another MIB CISCO-PROCESS-MIB.my
Above Error: No error: |
so if I understood correctly, there was an error parsing the "CISCO-PROCESS-MIB.my" file? |
Yes that's correct |
can you try with the master branch? I'm able to load those files already. Perhaps this has been fixed with my last week's patch. |
Sorry, i do not see any change still the following error:
I am using the ruby gem and i don't see a new version added could that be it? |
yes, that should be it. If you're using a gemfile, put this there instead: gem "netsmp", git: "https://github.com/swisscom/ruby-netsnmp.git" #, branch: "master" and execute your script with "bundle exec". |
@seanfariacustomink any updates? |
Hey, @HoneyryderChuck sorry for the delay got sick. Now i can't use any Cisco mibs name or oid. With Name: |
did you blindly copy-paste my statement above? because it contains a type ( |
apologies for the delay, seems I missed the notification. Nothing strikes me out of the ordinary for that error to happen. |
If I use the Cisco mibs by name (i.e. ciscoMemoryPoolFree), I would get the following error:
If I use the OID it works and provides the correct feedback
The text was updated successfully, but these errors were encountered: