Redfish

BMC_IP=10.0.1.123
BMC_USER=ADMIN
BMC_PASS=ADMIN

# Install redfishtool (CLI)
git clone https://github.com/DMTF/Redfishtool.git
cd Redfishtool/
python3 redfishtool.py -r ${BMC_IP} -u ${BMC_USER} -p ${BMC_PASS} Systems -F

for BMC_IP in 10.0.1.11 10.0.1.12 10.0.1.13; do
python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Systems -F | jq .SerialNumber
python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Systems -F | jq .IndicatorLED
done

python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Chassis list
python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Chassis -I 1
python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Chassis -I HA-RAID.0.StorageEnclosure.0

python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Systems -F | jq .UUID
python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Systems -F | jq .IndicatorLED

python3 redfishtool.py -r $BMC_IP -u $BMC_USER -p $BMC_PASS Chassis -I 1 setIndicatorLed Off

# gret firmware versions
# BMC
python3 redfishtool.py -r ${BMC_HOST} -u ${BMC_USER} -p ${BMC_PASS} Managers -F | jq .FirmwareVersion
# BIOS
python3 redfishtool.py -r ${BMC_HOST} -u ${BMC_USER} -p ${BMC_PASS} Systems -F | jq .BiosVersion

curl -k https://BMC_IP/registries/BiosAttributeRegistry.v1_0_0.json | python -m json.tool

curl -s https://BMC_IP/redfish/v1/Chassis/1/Thermal -k -u ADMIN:ADMIN | python -m json.tool

# SuperMicro
https://www.supermicro.com/manuals/other/RedfishRefGuide.pdf

# HP
https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#uefi-bios-standard-redfish-support
https://support.hpe.com/hpsc/doc/public/display?docId=c04423967

# Redfishtool (redfish CLI)
https://github.com/DMTF/Redfishtool

# Links
https://www.thomas-krenn.com/de/wiki/Redfish