diff options
author | euer <root@euer.krebsco.de> | 2012-11-28 09:48:06 +0100 |
---|---|---|
committer | euer <root@euer.krebsco.de> | 2012-11-28 09:48:06 +0100 |
commit | f629c9e0c216150ef8f5c868eacd10507846d766 (patch) | |
tree | c14ec730917994d1d9dcab8501fa2a87022a5346 /retiolum/scripts/adv_graphgen | |
parent | 50d63b50779bca78978d5ac1049604a4c6d37c69 (diff) | |
parent | 105cff1f36a13e76013309e928a2704bdea2de7e (diff) |
Merge branch 'master' of github.com:krebscode/painload
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 |