aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
Diffstat (limited to 'collect.d')
-rw-r--r--collect.d/system12
1 files changed, 10 insertions, 2 deletions
diff --git a/collect.d/system b/collect.d/system
index 2843731..be922af 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -6,15 +6,23 @@ set -e
mkdir system && cd system
-if type dmidecode >/dev/null; then
+if type dmidecode >/dev/null 2>&1; then
dmidecode > dmidecode
fi
-if type lspci >/dev/null; then
+if type lspci >/dev/null 2>&1; then
lspci > lspci
lspci -n > lspci-n
fi
+if type lsusb >/dev/null 2>&1; then
+ lsusb > lsusb
+fi
+
+if type lsscsi >/dev/null 2>&1; then
+ lsscsi > lsscsi
+fi
+
uname -smr > uname-smr
uname -n > hostname
ifconfig -a > ifconfig-a