[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Loading MIBS for Ruby SNMP

jackster the jackle

1/16/2008 7:43:00 PM

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.ruby... , 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
--
Posted via http://www.ruby-....

2 Answers

yermej

1/16/2008 9:55:00 PM

0

On Jan 16, 1:42 pm, jackster the jackle <cont...@thirdorder.net>
wrote:
> 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 athttp://snmplib.ruby..., 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
> --
> Posted viahttp://www.ruby-....

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).

jackster the jackle

1/16/2008 10:22:00 PM

0

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
--
Posted via http://www.ruby-....