Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to setup MIBs

0 views
Skip to first unread message

Reutzel, Shane

unread,
Mar 8, 2004, 9:04:02 AM3/8/04
to
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C40515.0D525C50
Content-Type: text/plain;
charset="iso-8859-1"

I have a remote machine that is setup to send traps to my snmp management
server. When I receive traps generated by the remote machine, I get this in
my snmptrapd output file:

2004-03-06 13:01:17 HOST [HOST IP] TRAP, SNMP v1, community public
enterprises.674.10893.1.1.200 Enterprise Specific Trap (585) Uptime:
21:07:07.78
enterprises.674.10893.1.1.200.201 = "PERC 3/Di Controller 0 "
enterprises.674.10893.1.1.200.205 = "Array Disk 0:0"
snmptrapd:traphandler: looking for trap handler for
enterprises.674.10893.1.1.200.0.585...
snmptrapd:traphandler: Didn't find one.

The mib that should define this trap is MIB-Dell-10892 (10892.txt), which I
have located in the "/usr/share/snmp/mibs" folder. I can run snmpwalk or
snmpget and get information using MIB-Dell-10892::<name>, but when I get a
trap it looks like the above example from snmptrapd output file.

I want it to look like this:

2004-03-07 08:16:41 HOST [HOST IP] TRAP, SNMP v1, community Public
enterprises.311.1.1.3.1.2 Link Up Trap (0) Uptime: 0:00:15.28
interfaces.ifTable.ifEntry.ifIndex.1 = 1
snmptrapd:traphandler: looking for trap handler for
.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTraps.
linkUp...
snmptrapd:traphandler: Found it!


So that in the snmptrapd.conf, I can specify a traphandle that looks like
this:

traphandle IF-MIB::linkUp

Instead of This:

traphandle .1.3.6.1.4.1.674.10893.1.1.200.0.585

What can I do to implement this?

Thanks,
Shane

------_=_NextPart_001_01C40515.0D525C50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>How to setup MIBs</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have a remote machine that is setup =
to send traps to my snmp management server.&nbsp; When I receive traps =
generated by the remote machine, I get this in my snmptrapd output =
file:</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2004-03-06 13:01:17 HOST [HOST IP] =
TRAP, SNMP v1, community public</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
enterprises.674.10893.1.1.200 Enterprise Specific Trap (585) Uptime: =
21:07:07.78</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
enterprises.674.10893.1.1.200.201 =3D &quot;PERC 3/Di Controller 0 =
&quot;&nbsp;&nbsp; enterprises.674.10893.1.1.200.205 =3D &quot;Array =
Disk 0:0&quot;</FONT></P>

<P><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial">snmptrapd:traphandler: looking for trap handler for =
enterprises.674.10893.1.1.200.0.585</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">...</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">snmptrapd:traphandler:&nbsp;&nbsp; =
Didn't find one.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The mib that should define this trap =
is MIB-Dell-10892 (10892.txt), which I have located in the =
&quot;/usr/share/snmp/mibs&quot; folder.&nbsp; I can run snmpwalk or =
snmpget and get information using MIB-Dell-10892::&lt;name&gt;, but =
when I get a trap it looks like the above example from snmptrapd output =
file.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I want it to look like this:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2004-03-07 08:16:41 HOST [HOST IP] =
TRAP, SNMP v1, community Public</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
enterprises.311.1.1.3.1.2 Link Up Trap (0) Uptime: 0:00:15.28</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
interfaces.ifTable.ifEntry.ifIndex.1 =3D 1</FONT>
<BR><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial">snmptrapd:traphandler: looking for trap handler for =
.iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTra=
ps</FONT><FONT SIZE=3D2 FACE=3D"Arial">.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">linkUp...</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">snmptrapd:traphandler:&nbsp;&nbsp; =
Found it!</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">So that in the snmptrapd.conf, I can =
specify a traphandle that looks like this:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">traphandle IF-MIB::linkUp</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Instead of This:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">traphandle =
.1.3.6.1.4.1.674.10893.1.1.200.0.585</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">What can I do to implement =
this?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Shane</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C40515.0D525C50--


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
Mar 8, 2004, 9:49:16 AM3/8/04
to
> The mib that should define this trap is MIB-Dell-10892 (10892.txt), which I
> have located in the "/usr/share/snmp/mibs" folder. I can run snmpwalk or
> snmpget and get information using MIB-Dell-10892::<name>, but when I get a
> trap it looks like the above example from snmptrapd output file.

You basically need to tell the 'snmptrapd' command to load this MIB.

You could try running it using

snmptrapd -m MIB-Dell-10892 ...

or else define a traphandle directive:

traphandle MIB-Dell-10892::{name}

Either of those should have the effect of loading the MIB file.

Dave

PS: Please - no HTML mail. Thanks

0 new messages