diff options
Diffstat (limited to 'retiolum/scripts/adv_graphgen')
-rw-r--r-- | retiolum/scripts/adv_graphgen/find_super | 14 |
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 |