X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-hwinfo;h=52fabd4c60cf41cc2f9eafe4de4d184651fa5447;hb=f5170f3dfdbc3615368b91e7184bde0dde12e483;hp=795dfb55cc8fb6b5ffeabeea0eceeb8966231257;hpb=24ef6ad2b12e2ed815f8075b4fd7f4a12c227c66;p=grml-hwinfo.git diff --git a/grml-hwinfo b/grml-hwinfo index 795dfb5..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 \ @@ -229,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