On Fri, 2005-05-06 at 15:04, Parthiban Naliiamudali wrote:
> when the passphrase is wrong it is not giving "authentication failure"
> on the agent or on output. instead it gives "Timeout: No Response from
> 172.29.5.102:1225"
> 
> what would be wrong here?

No idea.


> $ ./snmptrapd -f -Le -Dsnmptrapd 172.29.5.102:1950

> snmptrapd: Trap OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti
> snmptrapd: print_handler
> snmptrapd: v2/3 format

> snmptrapd: get_traphandler matched (80999a8)
> snmptrapd: command_handler
> snmptrapd: token = '/home/parthiban/wimaxscript'
> snmptrapd: execute format

OK - so it *is* trying to invoke the script.
That's useful to know.


> and the other try is with the 
> 
> >>>running    ./snmptrapd -f -Le -Dread_config 172.29.5.102:1950

NO!  Please read what I wrote.
I suggested running this command if the first run indicated
that the trap receiver was *NOT* attempting to invoke your script.

It's clear from the output above that snmptrapd *DOES* know
about this script, so the read_config output is of no use at all.


Hmmm.... let's think.
OK - try the following:
   In the file 'apps/snmptrapd_handlers.c', there's a routine
'command_handler()', which contains a statement

    run_exec_command(handler->token, rbuf, NULL, 0);

Change this to call 'run_shell_command' (with exactly the same 
parameters), and re-compile.  Does that make any difference?

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