Dear sir,
sir, Mr.DAVE sir now i am able to get the correct names of my MIB when receiving the traps in the "snmptrapd" and for running a shell script on reception of a trap..
an ERROR IT IS SHOWING -"BROKEN PIPE"
PLEASE SEE BELOW FOR WHAT I HAVE DONE

sir, when i send a trap message it receives it and shows "BROKEN PIPE" and also the "snmptrapd" gets KILLED or stoped itself.
here is the cOPY & PASTE OF TERMINAL
==================================================================================
[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.1 i 888
---------------------------------------------------------------------------------------

[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-03 19:33:48 NET-SNMP version 5.2 Started.
2005-05-03 19:36:33 172.29.5.102 [UDP: [172.29.5.102]:35167]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (96687223) 11 days, 4:34:32.23    SNMPv2-M
IB::snmpTrapOID.0 = OID: WIMAX-NOTIFICATION-TEST-MIB::wimax-noti        WMAN-IF-
MIB::wmanIfBsControllerActionsResetBs.1 = INTEGER: 888
Broken pipe
[EMAIL PROTECTED] apps]$
=========================================================================================
I HAVE DONE THESE ALL --

sir, i have included the "traphandle" directive in the traphandler section as below inside the "SNMPTRAPD.CONF" FILE
===========================================================================================
# SECTION: Trap Handlers

traphandle  1.3.6.1.2.1.10.184.25.35 /home/parthiban/wimaxscript
===============================================================================================
sir, then i have my shell script program named "wimaxscript" which is in /home/parthiban it is same example program as you have given it Mr.DAVE sir, JUST TWO ECHO LINES ADDED
below is the shell script-"wimaxscript" program
==============================================================================================
#!/bin/sh
echo "WIMAX NOTIFICATION-TEST ON RECEPTION OF A TRAP"
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: $1 $host $ip $vars
echo "SCRIPT RUN SUCCESSFULLY"
==================================================================================================

WHAT IS WRONG?
HOW TO MAKE THE SHELL SCRIPT RUN ON RECEPTION OF A TRAP.?

please do answer this...

SNMP V3 PROBLEM:
sir, i am getting "Timeout: No Response from 172.29.5.102:1545" when i use my SNMP V 3" but works for snmp v2c.
sir, I HAVE DONE THESE ALL:

sir, i have included in the following directives inside the snmp.conf file (ie) /home/parthiban/.snmp/snmp.conf file i have ADDED THESE
=======================================================================================
# SECTION: Default Authentication Options
defsecurityname  parthi
defsecuritylevel  authPriv
defauthpassphrase  "keytowimax"
defprivpassphrase  "keytowimax"
========================================================================================

AND IN AGENT PART sir, i have included "createUser parthi MD5 keytowimax DES"

inside the persistent stored snmpd.conf file (ie)/home/parthiban/perstore/snmpd.conf file

here is the copy & paste of the terminal
=========================================================================================
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 2c -c public 172.29.5.102:15
45 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
WMAN-IF-MIB::wmanIfBsControllerActionsResetSector.1 = INTEGER: 11
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 172.29.5.102:1545 1.3.6.1.
2.1.10.184.1.1.5.3.1.2.1
Timeout: No Response from 172.29.5.102:1545.
[EMAIL PROTECTED] net-snmp-5.2]$ snmpget -v 3 -l authPriv -u parthi -A "
keytowimax" -X "keytowimax" 172.29.5.102:1545 1.3.6.1.2.1.10.184.1.1.5.3.1.2.1
Timeout: No Response from 172.29.5.102:1545.
[EMAIL PROTECTED] net-snmp-5.2]$
============================================================================================

WHAT ELSE SETTING I HAVE TO MAKE FOR GETTING SNMP V3 ?

SIR KINDLY PLEASE DO GIVE ME SOLUTIONS........


sir, Mr.DAVE sir, thanks a lot for your guidelines......



with sincere thanks & love,
n.parthiban



Reply via email to