On Fri, 2005-05-06 at 11:28, Parthiban Naliiamudali wrote:
> and also checked for script file(wimaxscript) exist and executable,
> and changed the permission for that file.
>
> >>What is the result of ls -l /home/parthiban/wimaxscript
> -----------------------------------------------------------------------
> $ ls -l /home/parthiban/wimaxscript
> -rw-rw-r-- 1 parthiban parthiban ...
That won't have helped, certainly!
> $ chmod 777 wimaxscript
<sigh>
Why, oh *why* do people insist of giving global write permission
to files? Our students are always doing this to their web
pages, as well. Is it really that hard to use the symbolic forms?
chmod a+x wimaxscript
would have worked just as well, and wouldn't make a mockery of
Unix security mechanisms.
[Sorry, but you just pressed a button!]
> traphandle 1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
> ------------------------------------------------------------------------------
>
> >>>What is the exact command used to send the trap?
> ---------------------------------------------------------------------------------
> $ snmptrap -v 2c -c necops 172.29.5.102:1950 ''
> 1.3.6.1.2.1.10.184.25.35 \1.3.6.1.2.1.10.184.1.1.5.3.1.1 i 4444
OK - that looks correct.
> the trap receiver at other window.
> ---------------------------------------------------------------------------------
> $ ./snmptrapd -f -Le 172.29.5.102:1950
> 2005-05-06 15:32:13 NET-SNMP version 5.2 Started.
> 2005-05-06 15:32:58 172.29.5.102 [UDP: [172.29.5.102]:35187]:
> SNMPv2-MIB::sysUpTime.0 = Timeticks: (121141969) 14 days, 0:30:19.69
> SNMPv2-MIB::snmpTrapOID.0 =
> OID:WIMAX-NOTIFICATION-TEST-MIB::wimax-noti
And what is the OID of "WIMAX-NOTIFICATION-TEST-MIB::wimax-noti" ?
Run
snmptranslate -On WIMAX-NOTIFICATION-TEST-MIB::wimax-noti
> what else has to be changed for running a script on reception of the
> trap????
Not sure.
Assuming that the OID matches, then everything *looks* OK.
Try running the trap handler using
./snmptrapd -f -Le -Dsnmptrapd 172.29.5.102:1950
and send the trap again.
That should show whether the trap receiver is passing this
trap off to the 'command_receiver()' routine or not.
If it is, then something is going wrong with invoking the script.
If it isn't, then the problem lies with the traphandle entry,
in which case running
./snmptrapd -f -Le -Dread_config 172.29.5.102:1950
(and sending the trap yet again), might help indicate what.
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