summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/find_super
diff options
context:
space:
mode:
authoreuer <root@euer.krebsco.de>2012-11-28 09:48:06 +0100
committereuer <root@euer.krebsco.de>2012-11-28 09:48:06 +0100
commitf629c9e0c216150ef8f5c868eacd10507846d766 (patch)
treec14ec730917994d1d9dcab8501fa2a87022a5346 /retiolum/scripts/adv_graphgen/find_super
parent50d63b50779bca78978d5ac1049604a4c6d37c69 (diff)
parent105cff1f36a13e76013309e928a2704bdea2de7e (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'retiolum/scripts/adv_graphgen/find_super')
-rw-r--r--retiolum/scripts/adv_graphgen/find_super14
1 files changed, 14 insertions, 0 deletions
diff --git a/retiolum/scripts/adv_graphgen/find_super b/retiolum/scripts/adv_graphgen/find_super
new file mode 100644
index 00000000..c89a94fb
--- /dev/null
+++ b/retiolum/scripts/adv_graphgen/find_super
@@ -0,0 +1,14 @@
+#!/bin/sh
+cd /etc/tinc/retiolum/hosts
+ls -1 . | while read fname;
+do
+ for i in `sed -n 's/Address\s*=\s*\(.*\)/\1/p' $fname`;do
+ if nc -zw 5 $i 655 2>/dev/null; then
+ echo "$fname - $i reachable"
+ #else
+ #echo -n
+ #echo "$fname - $i unreachable"
+
+ fi
+ done
+done