summaryrefslogtreecommitdiffstats
path: root/init/configure_ipmi.sh
diff options
context:
space:
mode:
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