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

Diff of /trunk/lib/task_sysinfo

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2333 by lange, Mon Jul 12 04:39:46 2004 UTC revision 5415 by lange, Tue May 19 09:16:37 2009 UTC
# Line 9  echo The classes are also saved in $LOGD Line 9  echo The classes are also saved in $LOGD
9    
10  # now show hardware info  # now show hardware info
11    
12  [ -x "`which dmidecode`" ] && dmidecode  [ -x "$(which dmidecode)" ] && dmidecode
13    [ -x "$(which lshw)" ] && lshw -short
14    
15  [ -x "`which discover`" ] && {  [ -x "$(which discover)" ] && {
16      discover      discover
17      discover-modprobe -v      discover-modprobe -v
18      discover --data-path=xfree86/server/device/driver display      discover --data-path=xfree86/server/device/driver display
19      discover --data-path=linux/module/name network      discover --data-path=linux/module/name network
20  }  }
21    
22  [ -x "`which kudzu`" ] && {  [ -x "$(which hwinfo)" ] && hwinfo --short
     kudzu -q  
     mv /tmp/hwconf $LOGDIR  
 }  
23    
24  lspci  lspci
25  lsdev  lsdev
# Line 30  echo "Ethernet cards found: $netdevices_ Line 28  echo "Ethernet cards found: $netdevices_
28  echo "Ethernet cards running: $netdevices_up"  echo "Ethernet cards running: $netdevices_up"
29  ifconfig -a  ifconfig -a
30    
31  [ -x "`which sysinfo`" ] && sysinfo -class device -level all  [ -x "$(which sysinfo)" ] && sysinfo -class device -level all
32    
33  [ -x "`which sfdisk`" ] && sfdisk -d  [ -x "$(which sfdisk)" ] && sfdisk -d
34    
35  # show ide disk geometry  # show ide disk geometry
36  grep . /proc/ide/ide?/hd?/geometry /dev/null | sed -e 's#/proc/ide/ide./##' 2>/dev/null  grep . /proc/ide/ide?/hd?/geometry /dev/null | sed -e 's#/proc/ide/ide./##' 2>/dev/null
# Line 40  grep . /proc/ide/ide?/hd?/geometry /dev/ Line 38  grep . /proc/ide/ide?/hd?/geometry /dev/
38  [ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi  [ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi
39  cat /proc/partitions  cat /proc/partitions
40    
41    blkid
42    
43  for disk in $disklist; do  for disk in $disklist; do
44      smartctl -i /dev/$disk      smartctl -i /dev/$disk
45      hdparm -iv /dev/$disk      hdparm -iv /dev/$disk

Legend:
Removed from v.2333  
changed lines
  Added in v.5415

  ViewVC Help
Powered by ViewVC 1.1.5