I am Clement, I try to write a snmp daemon as following:
#!/bin/sh
pid=`/usr/bin/ps -e | /usr/bin/grep snmpd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
case "$1" in
'start')
if [ -x /usr/local/sbin/snmpd ]; then
echo "Start the SNMP service"
/usr/local/sbin/snmpd
fi
;;
'stop')
echo "Stop the SNMP service "
kill -TERM snmpd
;;
*)
echo "Usage: /etc/init.d/snmpd { start | stop }"
;;
exit 0
However , the about shell script is not function. I don't know why and
how to write a correct snmpd daemon, can any one who ever write snmpd
daemon can give me any suggestion, thank you
Best Regards,
Clement Hsu
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users