Hi there,

I have configured snmp external script. But the snmp is taking too much time
to give the output.

While debugging i found that snmp is running the script three times.  Below
is the walk through about what i had done.

*
NET-SNMP version:  5.3.2.2
Web:               http://www.net-snmp.org/
Email:             [email protected]*

_____________________________________________________________________
*snmpd.conf*

exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
_____________________________________________________________________

*cat /tmp/shtest *

#!/bin/sh

echo "1111" >>/tmp/time
echo hello
exit 0
_____________________________________________________________________

* snmpwalk -c crlindia -v 2c ls02 .1.3.6.1.4.1.2021.50*
UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "shelltest"
UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/bin/sh /tmp/shtest"
UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "hello"
UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.103.1 = ""

_____________________________________________________________________

* cat /tmp/time *

1111
1111
1111



Is there any solution or patch for for the problem. Looking forward for your
reply.

Thanks and Regards
Rangesh Gupta
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to