File: task_sysinfo

package info (click to toggle)
fai 3.1.8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,144 kB
  • ctags: 164
  • sloc: sh: 3,410; perl: 1,780; makefile: 113
file content (54 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download | duplicates (2)
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
#! /bin/bash

# display some information about the system and save it to the logserver


echo The defined classes are:
echo $classes
echo The classes are also saved in $LOGDIR/FAI_CLASSES

# now show hardware info

[ -x "$(which dmidecode)" ] && dmidecode
[ -x "$(which lshw)" ] && lshw -short

[ -x "$(which discover)" ] && {
    discover
    discover-modprobe -v
    discover --data-path=xfree86/server/device/driver display
    discover --data-path=linux/module/name network
}

[ -x "$(which hwinfo)" ] && hwinfo --short

lspci
lsdev
lsusb
echo "Ethernet cards found: $netdevices_all"
echo "Ethernet cards running: $netdevices_up"
ifconfig -a

[ -x "$(which sysinfo)" ] && sysinfo -class device -level all

[ -x "$(which sfdisk)" ] && sfdisk -d

# show ide disk geometry
grep . /proc/ide/ide?/hd?/geometry /dev/null | sed -e 's#/proc/ide/ide./##' 2>/dev/null

[ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi
cat /proc/partitions

for disk in $disklist; do
    smartctl -i /dev/$disk 
    hdparm -iv /dev/$disk
    fdisk -lu /dev/$disk
    parted -s /dev/$disk print
    LC_ALL=C file -s /dev/$disk?* | grep -v ": empty"
done

fdisk -lu
fai-mount-disk -f
lsmod
# - - - - - - - - - - -
save_dmesg
fai-savelog -r