On Tue, 2005-12-20 at 10:45 +0000, Andy Hawkins wrote:

> # snmptrap -M /usr/share/snmp/mibs -d -v 1 -c public -m ALL 191.53.51.21
>    endpointStarted 191.53.22.22 36 1 '' 'evoEndpointUnitNumber' 'i' '5'

Aha!
I've just spotted the mistake.

Look at the first parameter of the second line above.
This starts with 'endpointStarted' - the OID of the trap that you
are wanting to send.

But the syntax for SNMPv1 traps is:

  -v 1 TRAP-PARAMETERS:
       enterprise-oid agent trap-type specific-type uptime ...
       ^^^^^^^^^^^^^^

So it's expecting to be given the OID of the *enterprise*
from the TRAP-TYPE definition (i.e. 'endpointTraps'), not the
particular trap to send (since the SNMPv1 world, traps didn't
have a full OID - just a single integer (the 'specific trap type')

I'm also worried about the third parameter on that second line.
36 isn't a valid generic trap type - I think you probably mean 6.

But it's the trap/enterprise confusion that was triggering your
original problem.

Dave



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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

Reply via email to