summaryrefslogtreecommitdiffstats
path: root/supermicro
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2023-11-20 11:20:40 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2023-11-20 11:20:40 +0000
commita5b58bcae05c77e6fb36e738a09d343daf76efda (patch)
tree16fc49864a2483988fd6e150521e28c4a8fa1297 /supermicro
parentAdding upstream version 20221228. (diff)
downloadopen-infrastructure-service-tools-a5b58bcae05c77e6fb36e738a09d343daf76efda.tar.xz
open-infrastructure-service-tools-a5b58bcae05c77e6fb36e738a09d343daf76efda.zip
Adding upstream version 20231120.upstream/20231120
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--supermicro/Makefile2
-rwxr-xr-xsupermicro/bin/supermicro-ipmi-reset10
2 files changed, 9 insertions, 3 deletions
diff --git a/supermicro/Makefile b/supermicro/Makefile
index 6b3744b..49377eb 100644
--- a/supermicro/Makefile
+++ b/supermicro/Makefile
@@ -1,6 +1,6 @@
# Open Infrastructure: service-tools
-# Copyright (C) 2014-2022 Daniel Baumann <daniel.baumann@open-infrastructure.net>
+# Copyright (C) 2014-2023 Daniel Baumann <daniel.baumann@open-infrastructure.net>
#
# SPDX-License-Identifier: GPL-3.0+
#
diff --git a/supermicro/bin/supermicro-ipmi-reset b/supermicro/bin/supermicro-ipmi-reset
index 6b6e11a..8bd92f6 100755
--- a/supermicro/bin/supermicro-ipmi-reset
+++ b/supermicro/bin/supermicro-ipmi-reset
@@ -16,12 +16,18 @@ fi
echo "${PROGRAM}: resetting ipmi to factory defaults (including users and lan)"
ipmicfg -fdl -d
-echo "${PROGRAM}: disabling ipv4 dhcp for ipv6-only configuration"
-ipmicfg -dhcp off
+echo "${PROGRAM}: change to protocol to dual-stack"
+ipmicfg -addrptl 3
echo "${PROGRAM}: configuring ipmi to ${ADDRESS}"
ipmicfg -ipv6 add 1 "${ADDRESS}" 64
+echo "${PROGRAM}: disabling ipv4 dhcp for ipv6-only configuration"
+ipmicfg -dhcp off
+
+echo "${PROGRAM}: clearing ipv4 address for ipv6-only configuration"
+ipmicfg -m 0.0.0.0
+
echo "${PROGRAM}: rebooting ipmi"
ipmicfg -r -d