Get Current ILo IP address without reboot

If you have ‘hponcfg’ installed and need to get the current ILo ip you can do it by running:


hponcfg -a -w /tmp/ilo.xml > /dev/null;egrep "<IP_ADDRESS VALUE=" /tmp/ilo.xml | cut -d '"' -f2;rm /tmp/ilo.xml

 
It will print a nice line with the current ILo ip of the local machine.

Sources:

https://community.hpe.com/t5/ProLiant-Servers-ML-DL-SL/how-to-obtain-iLO-IP-from-OS-without-reboot/td-p/5333543
https://community.hpe.com/hpeb/attachments/hpeb/itrc-298/3437/1/301692.pdf