summaryrefslogtreecommitdiffstats
path: root/init/configure_ipmi.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:06:01 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:06:01 +0200
commit6db35a5230578e296d9f493b28e6330e22569c8f (patch)
tree86ccb8725d2ae1a779459e2d8c01087c07a37e58 /init/configure_ipmi.sh
parent78f3f37d3d8b213887fa6d47e32c5f9f05c0e299 (diff)
downloadconky-6db35a5230578e296d9f493b28e6330e22569c8f.tar.gz
conky-6db35a5230578e296d9f493b28e6330e22569c8f.tar.bz2
conky-6db35a5230578e296d9f493b28e6330e22569c8f.tar.xz
conky-6db35a5230578e296d9f493b28e6330e22569c8f.zip
Integrate also nagios-based monitoring here
Diffstat (limited to 'init/configure_ipmi.sh')
-rw-r--r--init/configure_ipmi.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/init/configure_ipmi.sh b/init/configure_ipmi.sh
new file mode 100644
index 0000000..b0dc0fa
--- /dev/null
+++ b/init/configure_ipmi.sh
@@ -0,0 +1,18 @@
+function configure_ipmi_user {
+ host="$1"
+ pass="$2"
+ echo "Configuring: $host"
+ /usr/bin/ipmitool -I lanplus -H "$host" -U ADMIN -P "$pass" user set name 3 nagios
+ /usr/bin/ipmitool -I lanplus -H "$host" -U ADMIN -P "$pass" user set password 3 _iosnag_
+ /usr/bin/ipmitool -I lanplus -H "$host" -U ADMIN -P "$pass" user priv 3 4
+ /usr/bin/ipmitool -I lanplus -H "$host" -U ADMIN -P "$pass" user enable 3
+ /usr/bin/ipmitool -I lanplus -H "$host" -U ADMIN -P "$pass" user list 1
+}
+
+#for host in 192.168.26.{152,155,156}; do
+# configure_ipmi_user "$host" 'ipepdv'
+#done
+
+for host in 192.168.26.160; do
+ configure_ipmi_user "$host" '$ipepdv$'
+done