Created
January 29, 2025 18:10
-
-
Save brodeynewman/ba76e65333a2d6986f11f59e7d025234 to your computer and use it in GitHub Desktop.
Dell x86 ipmi enable via Redfish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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