Re: sendtrap: Howto send SNMPv1 trap with trap description from SMIv2 MIB?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/5/9 Andreas Mauderer <[email protected]>:
> I want to send this trap, decribed in a SMIv2 MIB, as SNMPv1 trap:
>
> upsTrapAlarmEntryAdded NOTIFICATION-TYPE
>    OBJECTS { upsAlarmId, upsAlarmDescr }
>    STATUS  current
>    DESCRIPTION
>            "This trap is sent each time an alarm is inserted into
>            to the alarm table.  It is sent on the insertion of
>            all alarms except for upsAlarmOnBattery and
>            upsAlarmTestInProgress."
>  ::= { upsTraps 3 }
>
> As SNMPv2 trap it works fine with this line:
> snmptrap -v 2c -c public 192.168.3.37 "" .1.3.6.1.2.1.33.2.3
>
> But I don't know, how to send a SNMPv1 trap. Which Enterprise OID should
> I choose?

 .1.3.6.1.2.1.33.2  (i.e. upsTraps)

The generic trap value should be 6,
and the specific trap value should be 3

It would actually have been better if the UPS-MIB had defined these
traps to have the OID   .1.3.6.1.2.1.33.2.0.{1,2,3,4}
   But it's too late now - that's their mistake, and you can't fix it.


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.