iLO event log¶
The iLO keeps two separate logs: for iLO events and for server events. While iLO 4 can also log to a central syslog server, for others you will need to query this log yourself, using the functions below.
-
class
hpilo.
Ilo
-
get_ilo_event_log
()¶ Get the full iLO event log
>>> ilo.get_ilo_event_log() [{'class': 'iLO 3', 'count': 1, 'description': 'Event log cleared.', 'initial_update': '01/30/2011 16:33', 'last_update': '01/30/2011 16:33', 'severity': 'Informational'}, {'class': 'iLO 3', 'count': 1, 'description': 'Server reset.', 'initial_update': '01/30/2011 16:34', 'last_update': '01/30/2011 16:34', 'severity': 'Caution'}, {'class': 'iLO 3', 'count': 4, 'description': 'Server power restored.', 'initial_update': '01/30/2011 16:34', 'last_update': '01/30/2011 16:42', 'severity': 'Informational'}, (Other log entries skipped)]
-
clear_ilo_event_log
()¶ Clears the iLO event log
-
get_server_event_log
()¶ Get the IML log of the server
>>> ilo.get_server_event_log() [{'class': 'Maintenance', 'count': 1, 'description': 'Maintenance note: IML cleared through hpasmcli', 'event_class': '0x0021', 'event_code': '0x0002', 'initial_update': '04/10/2014 12:26', 'last_update': '04/10/2014 12:26', 'severity': 'Informational'}, {'class': 'Rack Infrastructure', 'count': 1, 'description': 'Chassis Enclosure Serial Number SGH035M712 requires minimum firmware revision 03.50. It is currently 03.32.', 'event_class': '0x0022', 'event_code': '0x0019', 'initial_update': '[NOT SET] ', 'last_update': '[NOT SET] ', 'severity': 'Caution'}, {'class': 'POST Message', 'count': 1, 'description': 'POST Error: 1785-Slot X Drive Array Not Configured', 'event_class': '0x000a', 'event_code': '0x0001', 'initial_update': '12/20/2013 00:03', 'last_update': '12/20/2013 00:03', 'severity': 'Caution'}, {'class': 'System Revision', 'count': 1, 'description': 'Firmware flashed (ProLiant System BIOS - I31 08/02/2014)', 'event_class': '0x0020', 'event_code': '0x0002', 'initial_update': '03/05/2015 09:38', 'last_update': '03/05/2015 09:38', 'severity': 'Informational'}, {'class': 'System Revision', 'count': 1, 'description': 'Firmware flashed (iLO 4 2.10)', 'event_class': '0x0020', 'event_code': '0x0002', 'initial_update': '04/08/2015 16:55', 'last_update': '04/08/2015 16:55', 'severity': 'Informational'}]
-
clear_server_event_log
()¶ Clears the server event log
-