This repository was archived by the owner on Dec 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardwaremgmt
57 lines (54 loc) · 1.46 KB
/
hardwaremgmt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
MY_PATH="`dirname \"$0\"`"
function pingpong {
echo 'Welche Adresse soll angesprochen werden?'
read destination
ping $destination -c 4
echo ">>> Zurück zum Menü, irgendeine Taste drücken <<<"
read -n 1
}
while true; do
clear
echo ' __ __ __ '
echo ' / / / /___ __________/ / ______ _________ '
echo ' / /_/ / __ `/ ___/ __ / | /| / / __ `/ ___/ _ \'
echo ' / __ / /_/ / / / /_/ /| |/ |/ / /_/ / / / __/'
echo ' /_/ /_/\__,_/_/ \__,_/ |__/|__/\__,_/_/ \___/ '
echo ' ____ '
echo ' _ _____ ______ ______ _/ / /___ ______ ____ _'
echo ' | | / / _ \/ ___/ | /| / / __ `/ / __/ / / / __ \/ __ `/'
echo ' | |/ / __/ / | |/ |/ / /_/ / / /_/ /_/ / / / / /_/ / '
echo ' |___/\___/_/ |__/|__/\__,_/_/\__/\__,_/_/ /_/\__, / '
echo ' /____/ '
echo
uptime
echo
echo ' (1) In-/Output Statistik'
echo ' (2) Virtuelle Speicherstatistik'
echo ' (3) Netzwerkschnittstellen Statistik'
echo ' (4) Prozessverwaltung'
echo ' (5) Ping'
echo ' (x) exit'
echo
read -n 1 selection
echo -ne "\r" # remove input
case $selection in
1)
iostat
read -n 1
;;
2)
vmstat
read -n 1
;;
3)
netstat -i
read -n 1
;;
4) $MY_PATH/processmgmt; ;;
5) pingpong; ;;
x)
exit;
;;
esac
done