From aa29ce5a243320559f8f83d9434bc55f20ae9aec Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Aug 2019 06:45:30 +0200 Subject: Overview screens also ported to remote mode --- remote/check_all.sh | 12 ++++++++++++ remote/check_kit.sh | 9 +++++++++ remote/kit.sh | 9 --------- remote/logs.sh | 32 ++++++++++++++++++++++++++++++++ remote/netstat.sh | 15 +++++++++++++++ remote/news.sh | 32 ++++++++++++++++++++++++++++++++ remote/overview.sh | 12 ------------ remote/todo.sh | 28 ++++++++++++++++++++++++++++ 8 files changed, 128 insertions(+), 21 deletions(-) create mode 100755 remote/check_all.sh create mode 100755 remote/check_kit.sh delete mode 100755 remote/kit.sh create mode 100755 remote/logs.sh create mode 100755 remote/netstat.sh create mode 100755 remote/news.sh delete mode 100755 remote/overview.sh create mode 100755 remote/todo.sh (limited to 'remote') diff --git a/remote/check_all.sh b/remote/check_all.sh new file mode 100755 index 0000000..da2b83f --- /dev/null +++ b/remote/check_all.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +. lib/status.sh + +report="short_report" + +run darksoft.sh +run ipeserv.sh +run kaas.sh +run adei.sh + +wait diff --git a/remote/check_kit.sh b/remote/check_kit.sh new file mode 100755 index 0000000..9bdbeae --- /dev/null +++ b/remote/check_kit.sh @@ -0,0 +1,9 @@ +#! /bin/bash + +. lib/status.sh + +run kaas.sh +run adei.sh +run ipeserv.sh + +wait diff --git a/remote/kit.sh b/remote/kit.sh deleted file mode 100755 index 9bdbeae..0000000 --- a/remote/kit.sh +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/bash - -. lib/status.sh - -run kaas.sh -run adei.sh -run ipeserv.sh - -wait 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/overview.sh b/remote/overview.sh deleted file mode 100755 index da2b83f..0000000 --- a/remote/overview.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /bin/bash - -. lib/status.sh - -report="short_report" - -run darksoft.sh -run ipeserv.sh -run kaas.sh -run adei.sh - -wait 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 + + -- cgit v1.2.3