ubuntuusers.de

Systemeingabe

Autor:
thewayoflove
Datum:
14. April 2021 22:19
Code:
 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
58
59
60
61
62
63
#!/bin/bash
echo -e "uname -a" > systemausgabe.txt
uname -a >> systemausgabe.txt

echo -e "\n\nlsusb" >> systemausgabe.txt
lsusb >> systemausgabe.txt

echo -e "\n\nip link" >> systemausgabe.txt
ip link >> systemausgabe.txt

echo -e "\n\nip -a addr" >> systemausgabe.txt
ip -4 addr >> systemausgabe.txt

echo -e "\n\nip -a route" >> systemausgabe.txt
ip -4 route >> systemausgabe.txt

echo -e "\n\nip -a neigh" >> systemausgabe.txt
ip -4 neigh >> systemausgabe.txt

echo -e "\n\nnmcli general ; nmcli device ; nmcli connection" >> systemausgabe.txt
nmcli general ; nmcli device ; nmcli connection >> systemausgabe.txt

echo -e "\n\nls -l /etc/resolv.conf" >> system.tx
ls -l /etc/resolv.conf >> systemausgabe.txt

echo -e "\n\ncat /etc/resolv.conf" >> systemausgabe.txt
cat /etc/resolv.conf >> systemausgabe.txt

echo -e "\n\ncat /etc/hosts" >> systemausgabe.txt
cat /etc/hosts >> systemausgabe.txt

echo -e "\n\nsudo ss -pan 'sport = 53'" >> systemausgabe.txt
sudo ss -pan 'sport = 53' >> systemausgabe.txt

echo -e "\n\nping -c 2 $(ip -4 route show default | grep -o '[0-9]*[.][.0-9]*' )" >> systemausgabe.txt
ping -c 2 $(ip -4 route show default | grep -o '[0-9]*[.][.0-9]*' ) >> systemausgabe.txt

echo -e "\n\nping -c 2 213.95.41.4" >> systemausgabe.txt
ping -c 2 213.95.41.4 >> systemausgabe.txt

echo -e "\n\nping -c 2 www.ubuntuusers.de" >> systemausgabe.txt
ping -c 2 www.ubuntuusers.de >> systemausgabe.txt

echo -e "\n\nrfkill list" >> systemausgabe.txt
rfkill list >> systemausgabe.txt

echo -e "\n\nlsmod" >> systemausgabe.txt
lsmod >> systemausgabe.txt

echo -e "\n\niwconfig" >> systemausgabe.txt
iwconfig >> systemausgabe.txt

echo -e "\n\niwlist chan" >> systemausgabe.txt
iwlist chan >> systemausgabe.txt

echo -e "\n\nsudo iwlist scan" >> systemausgabe.txt
sudo iwlist scan >> systemausgabe.txt

echo -e "\n\negrep -i 'net|eth|wlan|firm|reason' /var/log/syslog" >> systemausgabe.txt
egrep -i 'net|eth|wlan|firm|reason' /var/log/syslog >> systemausgabe.txt

echo -e "\n\ndmesg | egrep 'net|eth|sky|sun|sis|via|3c3|3c5|e100|8139|8169|acx|air|ath|atl|ar9|carl|atme|at7|herm|iwl|ipw|rtl8|r81|rt2|rt3|rt6|rt7|tg3|ssb|wl|b43|b44|ori|p>dmesg | egrep 'net|eth|sky|sun|sis|via|3c3|3c5|e100|8139|8169|acx|air|ath|atl|ar9|carl|atme|at7|herm|iwl|ipw|rtl8|r81|rt2|rt3|rt6|rt7|tg3|ssb|wl|b43|b44|ori|pri|p5|zd|ndis>
dmesg | egrep 'net|eth|sky|sun|sis|via|3c3|3c5|e100|8139|8169|acx|air|ath|atl|ar9|carl|atme|at7|herm|iwl|ipw|rtl8|r81|rt2|rt3|rt6|rt7|tg3|ssb|wl|b43|b44|ori|pri|p5|zd|ndis>