Skip to content

Instantly share code, notes, and snippets.

@brodeynewman
Created January 29, 2025 18:10
Show Gist options
  • Select an option

  • Save brodeynewman/ba76e65333a2d6986f11f59e7d025234 to your computer and use it in GitHub Desktop.

Select an option

Save brodeynewman/ba76e65333a2d6986f11f59e7d025234 to your computer and use it in GitHub Desktop.
Dell x86 ipmi enable via Redfish
#!/bin/bash
USERNAME="admin"
PASSWORD="pass"
IP_RANGE=(10.10.5.{1..36})
for IP in "${IP_RANGE[@]}"; do
echo "Enabling IPMI on $IP..."
curl -u "$USERNAME:$PASSWORD" -k --location --request PATCH "https://$IP/redfish/v1/Managers/iDRAC.Embedded.1/NetworkProtocol/" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data-raw '{
"IPMI": {
"ProtocolEnabled": true
}
}'
echo "Completed request for $IP"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment