Hello all,
how do you generate these reports where you can see how many clients
connect to your NTP Server in a second?
I'm doing this this way:
secs=$(ntpdc -c iostats | grep time | awk ' { print $NF }')
r=$(ntpdc -c iostats | grep -E "received packets|packets sent" | awk
'{print $NF }')
in=$(echo "${r}" | head -n 1)
ou=$(echo "${r}" | tail -n 1)
to=$((${in}+${ou}))
echo $(($to/$secs)
But of course, it's a dirty way - any better ideas?
all the best,
stefan
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool