projects
/
grml-hwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for sg_inq from sg3-utils
[grml-hwinfo.git]
/
grml-hwinfo
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
15959eb
..
6cbda82
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-206,6
+206,7
@@
cd "${OUTDIR}" || exit 1
exectest hwinfo && hwinfo log=hwinfo
exectest numactl && numactl --hardware > numactl
exectest x86info && x86info > x86info 2>x86info.2
exectest hwinfo && hwinfo log=hwinfo
exectest numactl && numactl --hardware > numactl
exectest x86info && x86info > x86info 2>x86info.2
+ exectest lscpu && lscpu > lscpu
# net stuff
exectest ifconfig && ifconfig -v -a > ifconfig
# net stuff
exectest ifconfig && ifconfig -v -a > ifconfig
@@
-286,6
+287,8
@@
cd "${OUTDIR}" || exit 1
exectest lvdisplay && lvdisplay > lvdisplay 2>lvdisplay.error
exectest dmsetup && dmsetup ls > dmsetup_ls 2>dmsetup_ls.error
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
# iSCSI
if exectest iscsiadm ; then
@@
-333,6
+336,12
@@
cd "${OUTDIR}" || exit 1
echo -e "\n\n" >> sdparm
fi
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
file -s /dev/$disk?* | grep -v ": empty" >> file_disk
done
fi