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