Dear sir,
Mr.DAVE sir, still it needs some change..
sir, as you instructed, i deleted the several copies of the "signal(SIGPIPE, SIG_IGN);" and now i retained only one copy...
-------------------------------------------------------------
ie in line number --1132
signal(SIGTERM, term_handler);
#ifdef SIGHUP
signal(SIGHUP, hup_handler);
#endif
signal(SIGINT, term_handler);
signal(SIGPIPE, SIG_IGN);
----------------------------------------------------------------
after changing i reconfigured and recompiled the entire setup.
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
-----------------------------------------------------------------------
[EMAIL PROTECTED] net-snmp-5.2]$ ls -l /home/parthiban/wimaxscript
-rw-rw-r-- 1 parthiban parthiban 190 May 5 20:10 /home/parthiban/wimaxscript
[EMAIL PROTECTED] net-snmp-5.2]$ cd ..
[EMAIL PROTECTED] parthiban]$ chmod 777 wimaxscript
[EMAIL PROTECTED] parthiban]$ ls -l /home/parthiban/wimaxscript
-rwxrwxrwx 1 parthiban parthiban 190 May 5 20:10 /home/parthiban/wimaxscript
[EMAIL PROTECTED] parthiban]$
-------------------------------------------------------------------------------
>>>What is the relevant entry in your 'snmptrapd.conf' file?
this is the entry found inside the file at two locations
/home/parthiban/.snmp and also in
/usr/local/share/snmp
------------------------------------------------------------------------------
## SECTION: Trap Handlers
traphandle 1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
------------------------------------------------------------------------------
>>>What is the exact command used to send the trap?
---------------------------------------------------------------------------------
[EMAIL PROTECTED] net-snmp-5.2]$ snmptrap -v 2c -c necops 172.29.5.102:1
950 '' 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
[EMAIL PROTECTED] net-snmp-5.2]$
---------------------------------------------------------------------------------
the trap receiver at other window.
---------------------------------------------------------------------------------
[EMAIL PROTECTED] apps]$ ./snmptrapd -f -Le 172.29.5.102:1950
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the snmptrapd.conf file fo
r this agent.
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-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 4444
-----------------------------------------------------------------------------------
what else has to be changed for running a script on reception of the trap????
with sincere thanks & love,
n.parthiban
- AGENT EXT SIT ON NAILS Parthiban Naliiamudali
- Re: AGENT EXT SIT ON NAILS Dave Shield
- AGENT EXT SIT ON NAILS Parthiban Naliiamudali
- Re: AGENT EXT SIT ON NAILS Dave Shield
- AGENT EXT SIT ON NAILS Parthiban Naliiamudali
- Re: AGENT EXT SIT ON NAILS Dave Shield
- Re: AGENT EXT SIT ON NAILS Dave Shield
- AGENT EXT SIT ON NAILS Parthiban Naliiamudali
- Re: AGENT EXT SIT ON NAILS Robert Story
- AGENT EXT SIT ON NAILS Parthiban Naliiamudali
