ruby-netsnmp icon indicating copy to clipboard operation
ruby-netsnmp copied to clipboard

SNMPV3. Failing to load some legacy MIBs.

Open hanynowsky opened this issue 1 year ago • 6 comments

Thank you for handling issue #69 We are now able to load the majority of MIBs. yet we still have an error related to the parslet lib: Weird error. Failed to load MIB TROPIC-ACCESSPORT-MIB Failed to match sequence (SPACE{0, } MODULES?) at line 1 char 1. Failed to load MIB TROPIC-SLOT-MIB Failed to match sequence (SPACE{0, } MODULES?) at line 1 char 1.

ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-linux]

["/opt/mono/embedded/lib/ruby/gems/2.4.0/gems/parslet-2.0.0/lib/parslet/cause.rb:70:in `raise'", 
"/opt/mono/embedded/lib/ruby/gems/2.4.0/gems/parslet-2.0.0/lib/parslet/atoms/base.rb:49:in `parse'", 
"/opt/mono/embedded/lib/ruby/gems/2.4.0/gems/netsnmp-0.6.4/lib/netsnmp/mib.rb:111:in `block in do_load'", 
"/opt/mono/embedded/lib/ruby/gems/2.4.0/gems/netsnmp-0.6.4/lib/netsnmp/mib.rb:111:in `synchronize'", 
"/opt/mono/embedded/lib/ruby/gems/2.4.0/gems/netsnmp-0.6.4/lib/netsnmp/mib.rb:111:in `do_load'", 
"/opt/mono/embedded/lib/ruby/gems/2.4.0/gems/netsnmp-0.6.4/lib/netsnmp/mib.rb:88:in `load'", 
"v3.rb:30:in `block in <main>'", 
"v3.rb:27:in `each'", "v3.rb:27:in `<main>'"]

I am Attaching the MIBs below. Thank you for your reactiveness.

PS: No problem using standard ruby snmp library for v2c or snmpwalk in V2 or v3 or even Python SNIMP V2/V3.

hanynowsky avatar Feb 28 '23 16:02 hanynowsky