collectNWData.sh V0.6
--- Welcher Netzwerkverbindungtyp soll getestet werden?
--- (2) Kabellose Verbindung (WLAN)
--- Welche Netzwerktopologie liegt vor?
--- (1) WLAN access point <---> LinuxClient
--- Auf welchem Rechner wird das Script ausgeführt?
--- (1) LinuxClient
==================================================================================================
==================================================================================================
*** uname -a
Linux linux-zl8g 2.6.25.5-1.1-pae #1 SMP 2008-06-07 01:55:22 +0200 i686 i686 i386 GNU/Linux
==================================================================================================
*** cat /etc/SuSE-release
openSUSE 11.0 (i586)
VERSION = 11.0
==================================================================================================
*** cat /etc/resolv.conf | /usr/bin/grep -v "^#" | /usr/bin/grep -v "^$"
search site
==================================================================================================
*** cat /etc/hosts | grep -v "^#" | /usr/bin/grep -v "^$" | /usr/bin/grep -v "::"
127.0.0.1 localhost
127.0.0.2 linux-zl8g.site linux-zl8g
==================================================================================================
*** cat /proc/sys/net/ipv4/ip_forward
0
==================================================================================================
*** /usr/sbin/iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
==================================================================================================
*** /sbin/route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
==================================================================================================
*** /sbin/arp -n
==================================================================================================
*** /sbin/ifconfig
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:0
RX bytes:3704 (3.6 Kb) TX bytes:3704 (3.6 Kb)
wlan0 Link encap:Ethernet Hardware Adresse 00:14:C1:39:91:EE
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wmaster0 Link encap:UNSPEC Hardware Adresse 00-14-C1-39-91-EE-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
==================================================================================================
*** /sbin/lspci -nn | /usr/bin/egrep '(Ethernet|Network).*controller'
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet [1039:0900] (rev 91)
00:08.0 Ethernet controller [0200]: 3Com Corporation 3cSOHO100-TX Hurricane [10b7:7646] (rev 30)
==================================================================================================
*** /usr/bin/lsusb
Bus 004 Device 002: ID 05af:3062 Jing-Mold Enterprise Co., Ltd
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:008a Microsoft Corp. Wireless Keyboard and Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 007: ID 0baf:0121 U.S. Robotics USR5423 WLAN
Bus 002 Device 005: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
==================================================================================================
*** /sbin/lsmod | /usr/bin/sort
3c59x 59944 0
ac97_bus 18304 1 snd_ac97_codec
af_packet 38656 4
agpgart 50868 1 sis_agp
arc4 18432 2
binfmt_misc 28040 1
button 25360 0
cdrom 50588 1 sr_mod
cfg80211 35592 1 mac80211
crypto_blkcipher 36356 1 ecb
dm_mod 78676 0
dock 27536 1 libata
ecb 20096 2
edd 26440 0
ehci_hcd 52492 0
ext3 155784 2
fan 22660 0
fat 66720 1 vfat
ff_memless 21896 1 usbhid
firmware_class 25984 2 microcode,zd1211rw
fuse 66332 5
gameport 31500 2 ns558
hid 53708 1 usbhid
i2c_core 41108 1 i2c_sis96x
i2c_sis96x 21764 0
ieee1394 107016 1 ohci1394
iptable_nat 23688 0
ip_tables 30224 1 iptable_nat
ipv6 281064 14
jbd 73376 1 ext3
libata 176220 1 pata_sis
loop 35332 0
mac80211 190484 1 zd1211rw
mbcache 25348 1 ext3
microcode 30608 0
mii 21888 2 sis900,3c59x
Module Size Used by
nf_conntrack 79188 3 iptable_nat,nf_nat,nf_conntrack_ipv4
nf_conntrack_ipv4 27652 3 iptable_nat,nf_nat
nf_nat 35736 1 iptable_nat
nls_cp437 22144 1
nls_iso8859_1 20480 1
ns558 21120 0
ohci1394 48432 0
ohci_hcd 39940 0
parport 52948 2 ppdev,parport_pc
parport_pc 55100 0
pata_sis 30212 4
pci_hotplug 46116 1 shpchp
ppdev 25348 0
processor 67504 1 thermal
rtc_cmos 27168 0
rtc_core 37148 1 rtc_cmos
rtc_lib 19328 1 rtc_core
scsi_mod 168308 5 usb_storage,sr_mod,sg,sd_mod,libata
sd_mod 45208 8
sg 52020 0
shpchp 50196 0
sis900 39296 0
sis_agp 26240 1
snd 79544 21 snd_pcm_oss,snd_mixer_oss,snd_seq_midi,snd_seq,snd_mpu401,snd_mpu401_uart,snd_ca0106,snd_intel8x0,snd_rawmidi,snd_ac97_codec,snd_seq_device,snd_pcm,snd_timer
snd_ac97_codec 120868 2 snd_ca0106,snd_intel8x0
snd_ca0106 52868 2
snd_intel8x0 50460 2
snd_mixer_oss 33408 1 snd_pcm_oss
snd_mpu401 25484 0
snd_mpu401_uart 25472 1 snd_mpu401
snd_page_alloc 27400 3 snd_ca0106,snd_intel8x0,snd_pcm
snd_pcm 100100 4 snd_pcm_oss,snd_ca0106,snd_intel8x0,snd_ac97_codec
snd_pcm_oss 64256 0
snd_rawmidi 42496 3 snd_seq_midi,snd_mpu401_uart,snd_ca0106
snd_seq 73664 2 snd_seq_midi,snd_seq_midi_event
snd_seq_device 25100 3 snd_seq_midi,snd_seq,snd_rawmidi
snd_seq_midi 26112 0
snd_seq_midi_event 23936 1 snd_seq_midi
snd_timer 40712 2 snd_seq,snd_pcm
soundcore 24264 1 snd
sr_mod 33320 0
thermal 39452 0
usbcore 164684 6 usbhid,zd1211rw,usb_storage,ehci_hcd,ohci_hcd
usbhid 60260 0
usb_storage 100744 1
vfat 28800 1
x_tables 33668 2 iptable_nat,ip_tables
zd1211rw 63876 0
==================================================================================================
*** catMyConfig
==================================================================================================
*** cat /etc/sysconfig/network/ifcfg-wlan0
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='USB2.0 WLAN'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
WIRELESS_AP=''
WIRELESS_AUTH_MODE='psk'
WIRELESS_BITRATE='auto'
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL=''
WIRELESS_CLIENT_CERT=''
WIRELESS_CLIENT_KEY=''
WIRELESS_CLIENT_KEY_PASSWORD=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_EAP_AUTH=''
WIRELESS_EAP_MODE=''
WIRELESS_ESSID='Gerhard'
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0=''
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_PEAP_VERSION=''
WIRELESS_POWER='yes'
WIRELESS_WPA_ANONID=''
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''
WIRELESS_WPA_PSK='@@@@@@'
==================================================================================================
*** /usr/sbin/iwconfig | /usr/bin/sed "s/\(Encryption key:\)\([^o][^f][^f][^ ]*\)\(.*\)/\1@@ @@@-@@@@-@@@@-@@@@-@@@@-@@@@@@@\3/"
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11g ESSID:""
Mode:Managed Frequency:2.432 GHz Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
==================================================================================================
*** /usr/bin/grep -i radio /var/log/boot.msg | /usr/bin/tail -n 5
==================================================================================================
*** /usr/bin/grep -i firmware /var/log/messages* | /usr/bin/tail -n 5
Jul 6 15:09:10 linux-zl8g kernel: zd1211rw 2-6.1:1.0: firmware version 4725
Jul 6 15:20:44 linux-zl8g firmware.sh[1925]: Cannot find firmware file 'intel-ucode/0f-02-04'
Jul 6 15:20:55 linux-zl8g kernel: zd1211rw 2-6.1:1.0: firmware version 4725
Jul 6 16:24:07 linux-zl8g firmware.sh[1934]: Cannot find firmware file 'intel-ucode/0f-02-04'
Jul 6 16:24:12 linux-zl8g kernel: zd1211rw 2-6.1:1.0: firmware version 4725
==================================================================================================
*** ls -ls /lib/firmware
insgesamt 4
4 drwxr-xr-x 2 root root 4096 5. Jul 20:32 zd1211
==================================================================================================
*** ps aux | /usr/bin/grep wpa_supplicant | /usr/bin/grep -v grep
root 2393 0.0 0.1 3852 652 ? Ss 16:24 0:00 wpa_supplicant -iwlan0 -c/var/run/wpa_supplicant-wlan0.conf -Dwext -P/var/run/wpa_supplicant/wlan0.pid -B
==================================================================================================
*** /usr/bin/grep NETWORKMANAGER /etc/sysconfig/network/config | /usr/bin/grep -v "^#"
NETWORKMANAGER=no
==================================================================================================
*** /usr/bin/grep -i persistent /etc/sysconfig/network/config | /usr/bin/grep -v "^#" | /usr/bin/grep -v "^$"
==================================================================================================
*** /usr/bin/egrep 'eth|ath|wlan|ra' /etc/udev/rules.d/*net_persistent* /etc/udev/rules.d/70-persistent-net* | /usr/bin/grep -v ":#" | grep -v ":$"
/usr/bin/egrep: /etc/udev/rules.d/*net_persistent*: Datei oder Verzeichnis nicht gefunden
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:c1:39:91:ee", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:10:dc:77:a6:2e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:da:b4:8f:8e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
==================================================================================================
*** /usr/bin/egrep -r 'eth[0-10]|ath[0-10]|wlan[0-10]|ra[0-10]' /etc/modprobe.*|/usr/bin/egrep -v '#|blacklist'
/etc/modprobe.conf:install eth0 /bin/true
/etc/modprobe.conf:install eth1 /bin/true
==================================================================================================
*** detectFirmwareMessages
Jul 6 16:24:07 linux-zl8g firmware.sh[1934]: Cannot find firmware file 'intel-ucode/0f-02-04'
Jul 6 16:24:09 linux-zl8g ifup: lo
Jul 6 16:24:09 linux-zl8g ifup: lo
Jul 6 16:24:09 linux-zl8g ifup: IP address: 127.0.0.1/8
Jul 6 16:24:09 linux-zl8g ifup:
---------------------------------------------------------------------------
Jul 6 16:24:12 linux-zl8g kernel: zd1211rw 2-6.1:1.0: firmware version 4725
Jul 6 16:24:12 linux-zl8g kernel: zd1211rw 2-6.1:1.0: zd1211b chip 0baf:0121 v4810 high 00-14-c1 AL2230_RF pa0 g--NS
Jul 6 16:24:13 linux-zl8g kernel: NET: Registered protocol family 17
Jul 6 16:24:14 linux-zl8g ifup-dhcp: wlan0 (DHCP)
Jul 6 16:24:14 linux-zl8g ifup-dhcp: .
---------------------------------------------------------------------------