Skip to content

Instantly share code, notes, and snippets.

View jgato's full-sized avatar
🎩
Open unlocks the world's potential

Jose Gato Luis jgato

🎩
Open unlocks the world's potential
View GitHub Profile
#! /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
}