RESTful Interface Tool - Linux
2.2(5 Feb 2018)
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_57783eaa1a7847f3a165a0e5a6
------------------------------------------------------------
> /usr/sbin/ilorest ilorest login iLO_IP_Address -u Admin_Account -p Password --selector=Chassis.
> /usr/sbin/ilorest list Status |grep Health
------------------------------------------------------------------
iLO WebUI - OK
LED - Green
Health=OK
------------------------------------------------------------------
iLO WebUI - Degraded
LED – Flashing Amber (some like lost power redundancy)
Health=Warning
------------------------------------------------------------------
iLO WebUI - Critial
LED - RED
Health=Critical
------------------------------------------------------------------
> /usr/sbin/ilorest --nocache login <% iLO_IP_Addresss %> -u Administrator -p Password --selector=Chassis.
-> Delete Cache
cf.) default cache location:
Win - C:\Users\USERNAME\AppData\Roaming\.ilorest\cache\*
LX - $HOME/.iLOrest/cache/*
RESTful Interface Tool - Windows
2.2.0.0(5 Feb 2018)
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_4a357d45353244d8b8d56fdae2
save below as gethealt.bat
----------------------------------------------------------------
:: gethealth.bat [URI] [USERNAME] [PASSWORD]
@echo off
set argC=0
for %%x in (%*) do Set /A argC+=1
if %argC% LSS 3 goto :failCondition
goto :main
:failCondition
@echo Usage:
@echo gethealth.bat [URI] [USERNAME] [PASSWORD]
goto :EOF
:main
@echo *****************************************
@echo ************* Logging in... *************
@echo *****************************************
ilorest.exe login %1 -u %2 -p %3
@echo *****************************************
@echo ******* selecting Chassis type.. ********
@echo *****************************************
ilorest.exe select Chassis.
@echo *****************************************
@echo ********* getting Health State **********
@echo *****************************************
ilorest.exe list Status
ilorest.exe logout
----------------------------------------------------------------