Dear sir,
Sir, Mr.DAVE sir it works! it works!! but still more doubts are there for me.
sir, as you have instructed.. i changed the call 'run_shell_command' at line number 830 in the "snmptrapd_handlers.c" file.
sir, i executed the "snmptrapd" and the "wimaxscript" file with just two echo statement like this
----------------------------------------------------
echo "WIMAX NOTIFICATION TESTING"
echo "bY N.PARTHIBAN IN Mr.DAVE SIR GUIDELINES"
-----------------------------------------------------
here i received the output with twice the message,
copy paste of "snmptrapd" terminal.
====================================================================================
[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 23:26:14 NET-SNMP version 5.2 Started.
2005-05-06 23:31:50 172.29.5.102 [UDP: [172.29.5.102]:35199]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (124014786) 14 days, 8:29:07.86 SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 333
WIMAX NOTIFICATION TESTING
bY N.PARTHIBAN IN Mr.DAVE SIR GUIDELINES
WIMAX NOTIFICATION TESTING
bY N.PARTHIBAN IN Mr.DAVE SIR GUIDELINES
========================================================================================
and then i restrated the "snmptrapd" manager with the "wimaxscript" file having your example program in it.
----------------------------------------
#!/bin/sh
read host
read ip
vars=
while read oid val
do
if [ "$vars"=""]
then
vars="$oid=$val"
else
vars="$vars, $oid =$val"
fi
done
echo Trap Reception: $1 $host $vars
--------------------------------------------
by this time the message the "snmptrapd' manager received is 3 (Three) ...
here is the copy paste of terminal
==========================================================================================
[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 23:50:03 NET-SNMP version 5.2 Started.
2005-05-06 23:50:27 172.29.5.102 [UDP: [172.29.5.102]:35205]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (124126425) 14 days, 8:47:44.25 SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs = INTEGER: 4221
NE-COPS WIMAX NOTIFICATION TESTING
TrapReception: 172.29.5.102 UDP: [172.29.5.102]:35205 SNMPv2-MIB::sysUpTime.0 =
14:8:47:44.25, SNMPv2-MIB::snmpTrapOID.0 =WIMAX-NOTIFICATION-TEST-MIB::wimax-not
i, WMAN-IF-MIB::wmanIfBsControllerActionsResetBs =4221
NE-COPS WIMAX NOTIFICATION TESTING
TrapReception: 172.29.5.102 UDP: [172.29.5.102]:35205 SNMPv2-MIB::sysUpTime.0 =
14:8:47:44.25, SNMPv2-MIB::snmpTrapOID.0 =WIMAX-NOTIFICATION-TEST-MIB::wimax-not
i, WMAN-IF-MIB::wmanIfBsControllerActionsResetBs =4221
=============================================================================================
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.
and now the shell scripts are running...but
what to do for running a object file created from a c++ program???
sir, is that i have add that "run_exec_command" again with same parameters??
and also SNMP v3 works now ...shows the 'authentication failure message" after recompiling for the trap problem.
sir, but the "authentication failure" is received on the agent terminal.. is that should come in the manager -"snmptrapd" terminal..?
why this goes like this??
copy and paste of terminals
==========================================================================
[EMAIL PROTECTED] agent]$ ./snmpd -r -f -L 172.29.5.102:1775
inside the init function ..start..
inside the initialize function....
inside init ..after adding first data to columns
NET-SNMP version 5.2
Authentication failed for parthi
------------------------------------------------------------------------------------
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 172.29.5.102:1775 1.3.6.1.
2.1.10.184.1.1.5.1.1.2.1
WMAN-IF-MIB::wmanIfBsControllerStatusRunningSwVersion.1 = STRING: "1.32a"
[EMAIL PROTECTED] net-snmp-5.2]$
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -A "keytowimaxx" 172.29.5.
102:1775 1.3.6.1.2.1.10.184.1.1.5.1.1.2.1
snmpget: Authentication failure (incorrect password, community or key)
[EMAIL PROTECTED] net-snmp-5.2]$
==========================================================================
with sincere thanks & love,
n.parthiban
- 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
