summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/dump-graph
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/bin/dump-graph')
-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
+'