projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
53034c3
)
Add support retrieving iSCSI information using iscsiadm from open-iscsi
author
Michael Prokop
<mika@grml.org>
Thu, 20 Sep 2012 08:48:43 +0000
(10:48 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 20 Sep 2012 08:48:43 +0000
(10:48 +0200)
debian/control
patch
|
blob
|
history
grml-hwinfo
patch
|
blob
|
history
diff --git
a/debian/control
b/debian/control
index
c10a937
..
dd34ae4
100644
(file)
--- a/
debian/control
+++ b/
debian/control
@@
-26,6
+26,7
@@
Recommends: acpi,
mdadm,
net-tools,
numactl,
mdadm,
net-tools,
numactl,
+ open-iscsi,
parted,
powermgmt-base,
procinfo,
parted,
powermgmt-base,
procinfo,
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
42596e8
..
d2605f5
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-287,6
+287,16
@@
cd "${OUTDIR}" || exit 1
exectest dmsetup && dmsetup ls > dmsetup_ls 2>dmsetup_ls.error
exectest dmsetup && dmsetup ls > dmsetup_ls 2>dmsetup_ls.error
+ # iSCSI
+ if exectest iscsiadm ; then
+ iscsiadm -m session > iscsiadm_session 2>iscsiadm_session.error
+ iscsiadm -m fw > iscsiadm_fw 2>iscsiadm_fw.error
+ iscsiadm -m host > iscsiadm_host 2>iscsiadm_host.error
+ iscsiadm -m iface > iscsiadm_iface 2>iscsiadm_iface.error
+ iscsiadm -m node > iscsiadm_node 2>iscsiadm_node.error
+ iscsiadm -m discovery > iscsiadm_discovery 2>iscsiadm_discovery.error
+ fi
+
for disk in $disklist; do
if exectest smartctl ; then
echo -e "smartctl -a /dev/${disk}:\n" >> smartctl
for disk in $disklist; do
if exectest smartctl ; then
echo -e "smartctl -a /dev/${disk}:\n" >> smartctl