This file contains 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
#! /usr/bin/env bash | |
export iLO=192.168. | |
export AUTH="user:pass" | |
export HTTP_ISO="http:/<IP>/iso/<ISO>" | |
bios_status(){ | |
curl -k -s -L -u "$AUTH" -w "%{http_code} %{url_effective}\\n" -H "Content-Type: application/json" -H "Accept: application/json" \ | |
-X GET https://"$iLO"/redfish/v1/Systems/1/Bios | |
} |