On Mon, 2005-04-04 at 03:49, Tadashi Abe wrote:
> I'm using ucd-snmp 4.2.6 and want to handle a v1 trap
> which is enterprise-specific OID.

When you say "v1 trap", do you mean a trap defined
using an SMIv1 TRAP-TYPE statement?
Or a trap defined using an SMIv2 NOTIFICATION-TYPE
statement, but sent using SNMPv1 ?

Both of these are possible.


> From RFC 2089, I think for example it's like this

> traphandle snmpTrapEnterprise.0.1.3.6.1.4.1.4413.4.1.1
> command

Not quite.

If you're talking about a TRAP-TYPE definition,
then this would actually be:

    traphandle {snmpTrapEnterprise}.0.{N} command

where {snmpTrapEnterprise} is the enterprise OID
from the TRAP-TYPE, and N is the specific trap value
(a single integer).


If you're talking about a NOTIFICATION-TYPE definition,
then it would be

  traphandle {snmpTrapOID} command

where {snmpTrapEnterprise} is the enterprise OID of
the notification.  The fact that this is received
as an SNMPv1 trap makes no difference.  The traphandle
directive works with SNMPv2-style notation throughout.

Dave



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

Reply via email to