From b231e372681e6bfc499fd2aadda840e0b607278f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 20 Apr 2014 02:36:36 +0200 Subject: Removed files from the root-directory. Moved into 'examples' dir. --- stream/reflect/count-retrofit.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 stream/reflect/count-retrofit.sh (limited to 'stream/reflect/count-retrofit.sh') diff --git a/stream/reflect/count-retrofit.sh b/stream/reflect/count-retrofit.sh deleted file mode 100755 index 1ff8c30..0000000 --- a/stream/reflect/count-retrofit.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -while :; do - date=$(date +"%Y-%m-%d-%H:%M:%S") - #( lsof -n | grep vlc ; ssh root@gaffeltruck.tg12.gathering.org 'lsof -n | grep vlc' ) > /var/log/stream-count/$date - sudo lsof -n | grep vlc > /var/log/stream-count/$date - for PORT in 3013 3014 3015 3016 3017 3018 3019 5013 5015 5019; do - for PROTO in IPv4 IPv6; do - if [ "$PROTO" = "IPv4" ]; then - GREPFOR='151\.216' - else - GREPFOR='2a02:ed02:' - fi - - # 151.216.x.x / 2a02:ed02::/32 -> TG13 - cat /var/log/stream-count/$date | grep EST | egrep $GREPFOR | egrep "(151\.216\..*|2a02:ed02:.*):$PORT->" | cut -d'>' -f2 | sed 's/:[0-9]\+ (ESTABLISHED)//' | sort -u | grep -vEc -e "\[2a02:ed02:|151\.216\." | while read foo; do echo "$date $PORT $PROTO external $foo"; done | tee -a better_datacube.log - cat /var/log/stream-count/$date | grep EST | egrep $GREPFOR | egrep "(151\.216\..*|2a02:ed02:.*):$PORT->" | cut -d'>' -f2 | sed 's/:[0-9]\+ (ESTABLISHED)//' | sort -u | grep -Ec -e "\[2a02:ed02:|151\.216\." | while read foo; do echo "$date $PORT $PROTO internal $foo"; done | tee -a better_datacube.log - done - done - sleep 60 -done; - -- cgit v1.2.3