/[fai]/trunk/lib/task_sysinfo
ViewVC logotype

Contents of /trunk/lib/task_sysinfo

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2273 - (hide annotations) (download)
Mon Jul 5 19:01:12 2004 UTC (8 years, 10 months ago) by lange
File size: 1159 byte(s)
call smarctl for each disk
1 lange 1319 #! /bin/bash
2    
3 lange 1385 # display some information about the system and save it to the logserver
4 lange 1319
5    
6 lange 2163 echo The defined classes are:
7     echo $classes
8     echo The classes are also saved in $LOGDIR/FAI_CLASSES
9 lange 2131
10 lange 2163 # now show hardware info
11 lange 1319
12 lange 2163 [ -x "`which dmidecode`" ] && dmidecode
13 lange 1786
14 lange 2163 [ -x "`which discover`" ] && {
15 lange 2239 discover
16     discover-modprobe -v
17     discover --data-path=xfree86/server/device/driver display
18     discover --data-path=linux/module/name network
19 lange 2163 }
20 lange 1873
21 lange 2163 [ -x "`which kudzu`" ] && {
22     kudzu -q
23     mv /tmp/hwconf $LOGDIR
24     }
25 lange 2131
26 lange 2239 lspci
27     lsdev
28     echo "Ethernet cards found: $netdevices_all"
29     echo "Ethernet cards running: $netdevices_up"
30     ifconfig -a
31 lange 2144
32 lange 2163 [ -x "`which sysinfo`" ] && sysinfo -class device -level all
33 lange 1319
34 lange 2163 [ -x "`which sfdisk`" ] && sfdisk -d
35 lange 1319
36 lange 2163 # show ide disk geometry
37     grep . /proc/ide/ide?/hd?/geometry /dev/null | sed -e 's#/proc/ide/ide./##' 2>/dev/null
38 lange 1319
39 lange 2163 [ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi
40     cat /proc/partitions
41    
42     for disk in $disklist; do
43 lange 2273 smartctl -i /dev/$disk
44 lange 2163 hdparm -iv /dev/$disk
45     fdisk -lu /dev/$disk
46     LC_ALL=C file -s /dev/$disk?* | grep -v ": empty"
47     done
48    
49     fdisk -lu
50     fai-mount-disk -f
51     lsmod
52     # - - - - - - - - - - -
53 lange 1319 save_dmesg
54 lange 1369 fai-savelog -r

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5