summaryrefslogtreecommitdiffstats
path: root/retiolum/bin
diff options
context:
space:
mode:
authoreuer <root@euer.krebsco.de>2012-12-07 15:56:41 +0100
committereuer <root@euer.krebsco.de>2012-12-07 15:56:41 +0100
commit4b04e2c71f42c78a6a69dca085c4a2912f3d39d3 (patch)
treee007078dde45a19a792d9cf86f4727af509b0e4d /retiolum/bin
parent8b31b7db47438b72504915efa062702ff99860f6 (diff)
parentdfe735f225f409eb01def7691a42a69c882366b8 (diff)
Met push origin master
rge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'retiolum/bin')
-rwxr-xr-xretiolum/bin/dump-graph9
1 files changed, 9 insertions, 0 deletions
diff --git a/retiolum/bin/dump-graph b/retiolum/bin/dump-graph
new file mode 100755
index 00000000..87539f49
--- /dev/null
+++ b/retiolum/bin/dump-graph
@@ -0,0 +1,9 @@
+#! /bin/sh
+set -euf
+
+t0="`date '+%Y-%m-%d %H:%M:%S'`"
+systemctl kill --signal=USR2 tincd@retiolum
+sleep 5
+journalctl --since="$t0" | sed -n '
+ s/.*tinc\.retiolum\[[0-9]\+\]: \([^ ]\+\) to \([^ ]\+\) at \([^ ]\+\) .*$/\1 \2 \3/p
+'