aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/xntpd/scripts/stats/peer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/scripts/stats/peer.sh')
-rwxr-xr-xusr.sbin/xntpd/scripts/stats/peer.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/scripts/stats/peer.sh b/usr.sbin/xntpd/scripts/stats/peer.sh
new file mode 100755
index 000000000000..b5d8d29186db
--- /dev/null
+++ b/usr.sbin/xntpd/scripts/stats/peer.sh
@@ -0,0 +1,13 @@
+#!/bin/csh
+#
+# Script to summarize peerstats files
+#
+set x = `ls peerstats.*`
+foreach dayfile ( $x )
+ if ($dayfile == $x[$#x]) continue
+ echo " "
+ echo $dayfile
+ awk -f peer.awk $dayfile
+ rm -f $dayfile
+end
+