I use the flow-capture-init ,for example:
#!/bin/sh
# description: Start Flow-Capture
# chkconfig: 2345 95 00
case "$1" in
'start')
/usr/local/netflow/bin/flow-capture -w /var/netflow/ft 0/192.168.2.20/2055 -S5 
-V5 -E1G -n 287 -N 0 -R /usr/local/netflow/bin/linkme
touch /var/lock/subsys/startflows
;;
'stop')
killall -9 /usr/local/netflow/bin/flow-capture
rm -f /var/lock/subsys/startflows
;;

*)
echo "Usage: $0 { start | stop }"
;;

esac
exit 0
    then I built up another shell script 
:flow-capture1-init,flow-capture1-init's content is the same with the 
flow-capture-init, but different  collect router and different port numuber.
after I put in :./flow-capture-init start
              :./flow-capture1-init start
I find two flow-capture are running when I put in the ps -A.
But when I put in : ./flow-capture-init stop, I find that two flow-capture are 
killed.
how can I do to stop a flow-capture and another flow-capture is still  running?
   


              Chanjing Han
[EMAIL PROTECTED]
                 2005-01-18
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to