CHECK v1
"host"
$ vim ~/scripts/check
1 #!/bin/bash
2 # check [host cpu disk network]
3 # Wrapper for inxi, nmap and ip
4 #
5
6 clear
7
8 while [ -n "$1" ]
9 do
10 case "$1" in
11 "host" )
12 echo
13 inxi -v7
14 echo
15 ;;
16 "cpu" )
17 echo
18 inxi -f
19 echo
20 ;;
21 "disk" )
22 echo
23 inxi -Dp
24 echo
25 ;;
26 "network" )
27 echo
28 inxi -i
29 nmap --iflist
30 ip neigh
31 echo
32 ;;
33 esac
34 shift
35 done
36
37 exit