diff options
-rwxr-xr-x | remote/check_all.sh (renamed from remote/overview.sh) | 0 | ||||
-rwxr-xr-x | remote/check_kit.sh (renamed from remote/kit.sh) | 0 | ||||
-rwxr-xr-x | remote/logs.sh | 32 | ||||
-rwxr-xr-x | remote/netstat.sh | 15 | ||||
-rwxr-xr-x | remote/news.sh | 32 | ||||
-rwxr-xr-x | remote/todo.sh | 28 |
6 files changed, 107 insertions, 0 deletions
diff --git a/remote/overview.sh b/remote/check_all.sh index da2b83f..da2b83f 100755 --- a/remote/overview.sh +++ b/remote/check_all.sh diff --git a/remote/kit.sh b/remote/check_kit.sh index 9bdbeae..9bdbeae 100755 --- a/remote/kit.sh +++ b/remote/check_kit.sh diff --git a/remote/logs.sh b/remote/logs.sh new file mode 100755 index 0000000..91257c0 --- /dev/null +++ b/remote/logs.sh @@ -0,0 +1,32 @@ +#! /bin/bash + +. lib/status.sh + +function filter_syslog { + log="$1" + lines=${2:-20} + + tail -n $lines $log | sed -r 's/(MAC|OUT|IN|TOS|PREC|ID|RES)=[[:alnum:]:]*[[:space:]]//g' +} + + +decorate "Serv1:" purple; echo +filter_syslog /var/log/messages_darkserv1 + +echo +echo + +decorate "Serv3:" purple; echo +filter_syslog /var/log/messages_darkserv3 + +echo +echo + +decorate "Serv4:" purple; echo +filter_syslog /var/log/messages_darkserv4 + +#echo +#echo + +#decorate "Styx:" purple; echo +#filter_syslog /var/log/styx diff --git a/remote/netstat.sh b/remote/netstat.sh new file mode 100755 index 0000000..f2d1927 --- /dev/null +++ b/remote/netstat.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +. lib/status.sh + + + +decorate "Incomming:" purple; echo +scripts/netstat-in.sh | grep -v "android-d855cbd1c9f827d" | grep -v "pdv-time-capsule-2.ipe.kit.edu" | column -t + +echo +echo + +decorate "Outgoing:" purple; echo +sudo scripts/netstat-out.sh | grep -v "android-d855cbd1c9f827d" | column -t + diff --git a/remote/news.sh b/remote/news.sh new file mode 100755 index 0000000..ea24458 --- /dev/null +++ b/remote/news.sh @@ -0,0 +1,32 @@ +#! /bin/bash + +. lib/status.sh + +decorate "Security:" purple; echo +rsstail -n 8 -1 -u https://security.gentoo.org/glsa/feed.rss | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $fold + +echo +echo + +decorate "New Packages:" purple; echo +rsstail -n 8 -1 -u https://packages.gentoo.org/packages/added.atom | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $fold + +echo +echo + +decorate "Gentoo Planet:" purple; echo +rsstail -n 8 -1 -u http://planet.gentoo.org/rss20.xml | cut -d ':' -f 3- | cut -c 2- | fmt -t -w $fold + +echo +echo + +decorate "LWN Headlines:" purple; echo +rsstail -n 8 -1 -u http://lwn.net/headlines/rss | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $fold + +echo +echo + +decorate "IBM Developerworks:" purple; echo +rsstail -n 8 -1 -u 'http://www.ibm.com/developerworks/views/rss/customrssatom.jsp?zone_by=AIX&zone_by=Linux&zone_by=Open+source&type_by=Articles&type_by=Tutorials&search_by=&day=1&month=01&year=2008&max_entries=10&feed_by=rss&encoding=UTF-8&isGUI=true&Submit.x=41&Submit.y=15' | cut -d ':' -f 2- | cut -c 2- | fmt -t -w $fold + +echo diff --git a/remote/todo.sh b/remote/todo.sh new file mode 100755 index 0000000..863498a --- /dev/null +++ b/remote/todo.sh @@ -0,0 +1,28 @@ +#! /bin/bash + +. lib/status.sh + + + +decorate "ToDo:" purple; echo +t -p listpri "A-D" -@ "- x " | head -n -2 | cut -d ' ' -f 2- | fmt -t -w $fold + +echo +echo + +decorate "Work:" purple; echo +t -@ -p listpri "A-D" @work "- x " | head -n -2 | cut -d ' ' -f 2- | fmt -t -w $fold + +echo +echo + +decorate "Buy:" purple; echo +t -@ -p listpri "A-D" @buy "- x " | head -n -2 | cut -d ' ' -f 2- | fmt -t -w $fold + +echo +echo + +decorate "Travel:" purple; echo +t -@ -p listpri "A-D" @travel "- x " | head -n -2 | cut -d ' ' -f 2- | fmt -t -w $fold + + |