summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/find_super
blob: c89a94fbff22726d783bd1c0f42d3e658ea06a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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