Loading MIBS for Ruby SNMP

I’m finally able to recieve traps from my Cisco devices and access the
variables from my script.

I’m now at the point that I need the MIBs to decode the OIDs into
messages that make sense.

In the documentation provided at http://snmplib.rubyforge.org/ , it says
that
“If you are using standard IETF MIBs then you’re ready to go. Most of
the IETF MIBs have been included for you with Ruby SNMP.”

I’m currently getting this in my traps:

[name=1.3.6.1.4.1.9.9.41.1.2.3.1.5.458007, value=Interface
GigabitEthernet7/12, changed state to up (OCTET STRING)]

I looked up the OID for this and it belongs to the CISCO-SYSLOG-MIB.

How can I tell if that is included in the list of standard IETF MIBs
that come with Ruby SNMP?

also, what is the standard directory location of the default MIBS so
that I can look through them?

thanks for all the help…

jackster.mobi

On Jan 16, 1:42 pm, jackster the jackle [email protected]
wrote:

also, what is the standard directory location of the default MIBS so
that I can look through them?

thanks for all the help…

jackster.mobi

Posted viahttp://www.ruby-forum.com/.

Mine are here:
/usr/lib/ruby/gems/1.8/gems/snmp-1.0.1/data/ruby/snmp/mibs

and I didn’t see any Cisco MIBs. I’ve imported one in the past. It
wasn’t too difficult following the instructions from the Ruby SNMP
site (or maybe they’re linked from there).

yermej wrote:

Mine are here:
/usr/lib/ruby/gems/1.8/gems/snmp-1.0.1/data/ruby/snmp/mibs

and I didn’t see any Cisco MIBs. I’ve imported one in the past. It
wasn’t too difficult following the instructions from the Ruby SNMP
site (or maybe they’re linked from there).

Thanks yermej…I found them and was able to import CISCO-SMI but the
problem I’m having is that I need to load about 20 different Cisco mibs
for my needs and most of the ones I need throw errors that say 3 other
mibs are required before I can load the one I’m trying to load.

As I work my way up the chain of required prerequisite mibs that need to
be loaded, I am finally at what seems to be the top of the chain and I’m
getting this error:

range limit exceeds underlying base type

anyone ever see this error or know how to get around it?

thanks

jackster.mobi