Generating server report from ILO interface (HP servers)

I should use this blog more. Here is one of the things might be useful for other admins I wrote meantime. This script generates a report, which includes all important information via ILO interface on HP servers (using python-hpilo package). Supports ILO2-3-4, which is a pretty good range for non-ancient servers I think. I’ve started to study golang as hobby, so might port this to Go later. But for now, this is really handy:

P.s.: There are some disgusting if conditions in script, thanks to ILO. It was insisting to provide inconsistent answers based on version.