installed_progs.t: Python checks stdout too, 150 ok
[sunny256-utils.git] / avlytt
blob20bbed5baa25ac53f716fa544e21e5eb0cbe3dee
1 #!/bin/sh
3 # avlytt
4 # File ID: 2814c376-5d37-11df-bff6-90e6ba3022ac
6 if [ -e /ww.mrk ]; then
7 ntpservs='(gps\.dix\.dk|swisstime\.ee\.ethz\.ch|ntp1-rz\.rrze\.uni-erlangen\.de|hora\.cs\.tu-berlin\.de|svn\.sunbase\.org|194\.248\.216\.3|nett\.ba\.no|194\.248\.216\.20|vagen|stein)'
8 tethereal -t ad -l -q -f '(not port 80)' | \
9 egrep -v \
10 -e '194\.248\.216\.3 .*TCP .*ssh' \
11 -e 'Intel_22:.*Ethernet II' \
12 -e 'Cisco_[1-9].* -> ' \
13 -e '(radio1\.hiof\.no|nett\.ba\.no) -> (radio1\.hiof\.no|nett\.ba\.no)' \
14 -e '(ns\.online\.no|nett\.ba\.no) -> (ns\.online\.no|nett\.ba\.no)' \
15 -e " nett.ba.no -> $ntpservs +NTP NTP" \
16 -e "$ntpservs -> nett.ba.no NTP NTP"
17 # -e ' nett.ba.no -> svn.sunbase.org ARP Who has 194.248.216.20? Tell 194.248.216.19'
18 # -e ' svn.sunbase.org -> nett.ba.no ARP 194.248.216.20 is at 00:50:04:3b:83:3f'
19 elif [ -e /nett2.mrk ]; then
20 tethereal -t ad -l -q -f '' | \
21 egrep -v \
22 -e '194\.248\.216\.3 .*TCP .*ssh' \
23 -e 'Intel_22:.*Ethernet II' \
24 -e 'Cisco_[1-9].* -> ' \
25 -e '(ns\.online\.no|194\.248\.216\.20|nett2\.ba\.no) -> (ns\.online\.no|194\.248\.216\.20|nett2\.ba\.no)' \
26 -e ' HTTP Continuation'
27 elif [ -e /sunba.mrk ]; then
28 tethereal -t ad -l -q -f '' $* | \
29 egrep -v \
30 -e '32\.10\.69\.18[01] .*TCP .*ssh' \
31 -e '(sunba\.sunbase\.org|ba0614|badomain.banett.ba.no) -> (ba0614|sunba\.sunbase\.org|badomain.banett.ba.no)' \
32 -e '(Intel|INTEL)_.*(Intel ANS |Ethernet II)' \
33 -e 'Cisco_[1-9].* -> ' \
34 -e ' ff:ff:ff:ff:ff:ff ' \
35 -e '0\.ffffffffffff'
38 # vim: set ts=2 sw=2 sts=2 et :