On Fri, 2005-05-06 at 19:52, Parthiban Naliiamudali wrote:

> sir, i executed the "snmptrapd" and the "wimaxscript" file with just
> two echo statement like this
> here i received the output with twice the message, 

That's because you've got two 'snmptrapd.conf' files,
both of which register a handler for the same trap OID.

Have a look at the output of the -Dread_config run you posted
last week.  That includes:

/usr/local/share/snmp/snmptrapd.conf:27 examining:
    traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
/home/parthiban/.snmp/snmptrapd.conf:26 examining:
    traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript

*both* of which (later) register the same script to handle this trap.
That's why you get two copies of the output.



> and then i restrated the "snmptrapd"  manager with the "wimaxscript"
> file having your example program in it.
> by this time the message the "snmptrapd' manager received is 3 (Three)

> sir, why the manager receives mutiple copies? i guess as traphandler
> is defined at two locations of snmptrapd.conf when it was twice. but
> no idea when it became Three times.

That sounds likely.
Try running the '-Dread_config' version again, and have a look at the
output.  Look for where it might be reading in these handlers.

You should concentrate particularly on where it says:
   "traphandle: registering handler for:"
and see where it's reading those entries from.


Please do **NOT** just post the full debug output.  I expect you to
do the donkey work here.  If you're not sure quite what's happening,
post the relevant fragments of the debug output - from "examining
traphandle" to "registering handler" - but those three lines (repeated
as often as necessary) are all that's relevant here.


Dave



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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