(BTadashi Abe wrote:
(B> Thanks, Alex.
(B>
(B> I tried it as belows, but cant' catch the trap as I need.
(B> And when I set traphandle enterprises.0..., snmptrapd says
(B> in starting;
(B>
(B> /etc/snmp/snmptrapd.conf: line 19: Error: Bad trap OID in
(B> traphandle directive: enterprises.0.4133.2.1.1
(B
(BSorry, what I had was wrong. Following what Dave says, this will
(Bprobably work:
(B
(Btraphandle .1.3.6.1.4.1.4413.4.1.0.1 command-to-run
(B
(BI suggest you look at the MIB, find the TRAP-TYPE line that contains the
(Btrap name, and then use:
(B
(Bsnmptranslate -IR -On trapname.
(B
(BFor example, a MIB I have contains:
(B
(B hPDiskArray2 TRAP-TYPE
(B
(BSo I type:
(B
(B snmptranslate -IR -On hPDiskArray2
(B
(BIt should give you the OID. You may have to do 'export MIBS=ALL' before
(Brunning the snmptranslate command.
(B
(BAlex
(B
(B
(B>
(B> I'm wondering if there is any neccesary configuration for
(B> snmptrapd in addtion to snmptrapd.conf, compared with
(B> catching SNMPv2 trap?
(B>
(B> Regards,
(B> Tadashi
(B>
(B>
(B> ---From Alex Burger <[EMAIL PROTECTED]>:
(B>
(B>>Hi Tadashi.
(B>>
(B>>Tadashi Abe wrote:
(B>>
(B>>>Hi,
(B>>>
(B>>>I'm using ucd-snmp 4.2.6 and want to handle a v1
(B>>
(B>>trap
(B>>
(B>>>which is enterprise-specific OID.
(B>>>I can handle v2 trap with no problem, but as with
(B>>
(B>>v1 I
(B>>
(B>>>can't. Although I've read man/tutorial (and even
(B>>>RFC...) and tried some, I can't catch how to set
(B>>
(B>>it in
(B>>
(B>>>snmptrapd.conf fully.
(B>>>
(B>>>>From RFC 2089, I think for example it's like this,
(B>>
(B>>but in
(B>>
(B>>>vain.
(B>>>
(B>>>traphandle
(B>>
(B>>snmpTrapEnterprise.0.1.3.6.1.4.1.4413.4.1.1
(B>>
(B>>>command
(B>>
(B>>Try:
(B>>
(B>>traphandle enterprises.0.4413.4.1.1
(B>>
(B>>which is the same as:
(B>>
(B>>.1.3.6.1.4.1.0.4413.4.1.1
(B>>
(B>>Alex
(B
(B
(B-------------------------------------------------------
(BSF email is sponsored by - The IT Product Guide
(BRead honest & candid reviews on hundreds of IT Products from real users.
(BDiscover which products truly live up to the hype. Start reading now.
(Bhttp://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
(B_______________________________________________
(BNet-snmp-users mailing list
([email protected]
(BPlease see the following page to unsubscribe or change other options:
(Bhttps://lists.sourceforge.net/lists/listinfo/net-snmp-users