From 8fdd623b2fe36ccb7454f56e1aaae6b0cd2071b0 Mon Sep 17 00:00:00 2001 From: Petar Cubela Date: Mon, 17 Jun 2024 13:11:41 +0200 Subject: [PATCH] inital commit --- README.md | 10 ++++++++++ ipmi-supermicro.sh | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 README.md create mode 100644 ipmi-supermicro.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d76398 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Supermicro Helper Script(s) +The script in this repository makes it possible to generate License keys for old (need to ask Philip for which BIOS version +exactly we used it) Supermicro BIOS systems. + + +``` +``` +``` + + diff --git a/ipmi-supermicro.sh b/ipmi-supermicro.sh new file mode 100644 index 0000000..52c9dd4 --- /dev/null +++ b/ipmi-supermicro.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +read -p -r "IPMI MAC: " macaddr +echo -n "$macaddr" | xxd -r -p | openssl dgst -sha1 -mac HMAC -macopt hexkey:8544E3B47ECA58F9583043F8 | awk '{print $2}' | cut -c 1-24 | sed 's/./&-/4;s/./&-/9;s/./&-/14;s/./&-/19;s/./&-/24;'