X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-hwinfo;h=52fabd4c60cf41cc2f9eafe4de4d184651fa5447;hb=8fa5a7070ae4fdc94d9b8c4e0f1267318126ba59;hp=a379c86d3c9519aabb674eeb44496c9c737a0a60;hpb=9cc721d27207efefad5242bc9e9a187cd11c8e0f;p=grml-hwinfo.git diff --git a/grml-hwinfo b/grml-hwinfo index a379c86..52fabd4 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Filename: grml-hwinfo # Purpose: get hardware information # Authors: grml-team (grml.org), (c) Michael Prokop @@ -14,7 +14,7 @@ UNAME="$(uname -r)" PN="$(basename $0)" [ -n "$WORKING_DIR" -a -d "$WORKING_DIR" ] || WORKING_DIR=$(pwd) -VERSION='0.4.1' +VERSION='***UNRELEASED***' # data collection should not be affected by user locale export LANG=C @@ -149,6 +149,7 @@ cd "${OUTDIR}" || exit 1 for i in free lsmod mount lsdev ; do exectest $i && $i > $i done + swapon -s > swapon 2>swapon.error # proc stuff for i in cpuinfo interrupts cmdline devices dma fb iomem ioports \ @@ -164,6 +165,7 @@ cd "${OUTDIR}" || exit 1 # hwinfo exectest discover && discover -v --type-summary --enable-bus all > discover 2> discover.2 exectest hwinfo && hwinfo log=hwinfo + exectest numactl && numactl --hardware > numactl exectest x86info && x86info > x86info 2>x86info.2 # net stuff @@ -228,6 +230,16 @@ else /usr/share/doc/lm-sensors/examples/eeprom/decode-dimms.pl > decode-dimms 2>decode-dimms.error fi + exectest mdadm && mdadm --detail /dev/md[0-9]* >> mdadm 2>mdadm.error + + # LVM + exectest pvs && pvs > pvs 2>pvs.error + exectest vgs && vgs > vgs 2>vgs.error + exectest lvs && lvs > lvs 2>lvs.error + exectest lvdisplay && lvdisplay > lvdisplay 2>lvdisplay.error + + exectest dmsetup && dmsetup ls > dmsetup_ls 2>dmsetup_ls.error + for disk in $disklist; do exectest smartctl && echo "smartctl -a /dev/$disk :\n" >> smartctl && smartctl -a /dev/$disk >> smartctl && echo "\n\n" >> smartctl exectest hdparm && echo "hdparm -iv /dev/$disk :\n" >> hdparm && hdparm -iv /dev/$disk >> hdparm && echo "\n\n" >> hdparm