[debian-edu-commits] [Git][debian-edu/upstream/sitesummary][master] Made ipmi collector more robust.
Petter Reinholdtsen
gitlab at salsa.debian.org
Fri Jan 25 15:55:04 GMT 2019
Petter Reinholdtsen pushed to branch master at Debian Edu / upstream / sitesummary
Commits:
7b2f371f by Petter Reinholdtsen at 2019-01-25T15:54:49Z
Made ipmi collector more robust.
- - - - -
1 changed file:
- collect.d/ipmi
Changes:
=====================================
collect.d/ipmi
=====================================
@@ -11,7 +11,7 @@ fi
mkdir ipmi && cd ipmi
-for devnum in 0; do
- ipmitool -d$devnum lan print > dev-$devnum-lan-print
- ipmitool user list > dev-$devnum-user-list
+for devnum in $(ls /dev/ipmi* 2>/dev/null | cut -c10-); do
+ ipmitool -d$devnum lan print > dev-$devnum-lan-print 2>/dev/null
+ ipmitool -d$devnum user list 1 > dev-$devnum-user-list-1 2>/dev/null
done
View it on GitLab: https://salsa.debian.org/debian-edu/upstream/sitesummary/commit/7b2f371f87f15b4010af95024c6aec0dbe8e2311
--
View it on GitLab: https://salsa.debian.org/debian-edu/upstream/sitesummary/commit/7b2f371f87f15b4010af95024c6aec0dbe8e2311
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20190125/af4c53e5/attachment.html>
More information about the debian-edu-commits
mailing list