X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-hwinfo;h=be80cd62ab28eba0a308597401bdaa4e8bcc744d;hb=08c13525812c5bf2d5b072169a1e3ea1c5b1b472;hp=d2605f53cb94d3d8e94374080270c5165a0facf0;hpb=058f4d8478d2b8b4b9047596efa7ed2f4ae34356;p=grml-hwinfo.git diff --git a/grml-hwinfo b/grml-hwinfo index d2605f5..be80cd6 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -206,12 +206,26 @@ cd "${OUTDIR}" || exit 1 exectest hwinfo && hwinfo log=hwinfo exectest numactl && numactl --hardware > numactl exectest x86info && x86info > x86info 2>x86info.2 - - # net stuff - exectest ifconfig && ifconfig -v -a > ifconfig - exectest ip && ip route show > ip_route - exectest ip && ip link show > ip_link - exectest route && route -n > route + exectest lscpu && lscpu > lscpu + + # net stuff, net-tools: + exectest ifconfig && ifconfig -v -a > ifconfig + exectest route && route -n > route + + # net stuff, iproute: + exectest ip && ip addrlabel list > ip_addrlabel + exectest ip && ip addr show > ip_addr + exectest ip && ip link show > ip_link + exectest ip && ip maddr show > ip_maddr + exectest ip && ip mroute show > ip_mroute + exectest ip && ip mrule show > ip_mrule + exectest ip && ip neigh show > ip_neigh + exectest ip && ip netns list > ip_netns + exectest ip && ip ntable show > ip_ntable + exectest ip && ip route show > ip_route + exectest ip && ip rule show > ip_rule + exectest ip && ip tunnel show > ip_tunnel + exectest ip && ip tuntap show > ip_tuntap # software if exectest dpkg ; then @@ -221,7 +235,10 @@ cd "${OUTDIR}" || exit 1 # power management exectest laptop-detect && laptop-detect >/dev/null 2>/dev/null && echo "0" > laptop_detected - exectest acpi_available && acpi_available && cat /proc/acpi/info > acpi_info + if [ -r /proc/acpi/info ] ; then + cat /proc/acpi/info > acpi_info + fi + exectest acpi && acpi > acpi 2> acpi.error && acpi -v > acpi.version [ -r /proc/apm/ ] && apm > apm @@ -286,6 +303,8 @@ cd "${OUTDIR}" || exit 1 exectest lvdisplay && lvdisplay > lvdisplay 2>lvdisplay.error exectest dmsetup && dmsetup ls > dmsetup_ls 2>dmsetup_ls.error + exectest dmsetup && dmsetup ls --tree > dmsetup_ls_tree 2>dmsetup_ls_tree.error + exectest lsblk && lsblk > lsblk 2>lsblk.error # iSCSI if exectest iscsiadm ; then @@ -297,6 +316,11 @@ cd "${OUTDIR}" || exit 1 iscsiadm -m discovery > iscsiadm_discovery 2>iscsiadm_discovery.error fi + if exectest lsscsi ; then + lsscsi > lsscsi 2>lsscsi.error + lsscsi -t > lsscsi_transport 2>lsscsi_transport.error + fi + for disk in $disklist; do if exectest smartctl ; then echo -e "smartctl -a /dev/${disk}:\n" >> smartctl @@ -328,6 +352,12 @@ cd "${OUTDIR}" || exit 1 echo -e "\n\n" >> sdparm fi + if exectest sg_inq ; then + echo -e "sg_inq /dev/${disk}:\n" >> sg_inq + sg_inq /dev/$disk >> sg_inq + echo -e "\n\n" >> sg_inq + fi + file -s /dev/$disk?* | grep -v ": empty" >> file_disk done fi