How to get root cause of server reboot in IBM AIX ?
In this post we will look how to get root cause of server reboot in IBM AIX.
Lets check it step by step how to get the root cause.
1. Get last reboot time from the server.
ngeaix01--> last | grep -i reboot reboot ~ Apr 08 12:37
2. Check the shutdown/reboot error message available in errpt.
ngeaix01--> errpt | pg IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION DE84C4DB 0408123821 I O ConfigRM IBM.ConfigRM daemon has started. A6DF45AA 0408123821 I O RMCdaemon The daemon is started. 2BFA76F6 0408123721 T S SYSPROC SYSTEM SHUTDOWN BY USER
3. Check out details of the error message.
ngeaix01--> errpt -aj 2BFA76F6 --------------------------------------------------------------------------- LABEL: REBOOT_ID IDENTIFIER: 2BFA76F6 Date/Time: Thu Apr 8 12:37:18 2021 Sequence Number: 10419 Machine Id: 00C302E74C00 Node Id: ngeaix01 Class: S Type: TEMP WPAR: Global Resource Name: SYSPROC Description SYSTEM SHUTDOWN BY USER Probable Causes SYSTEM SHUTDOWN Detail Data USER ID 0 0=SOFT IPL 1=HALT 2=TIME REBOOT 0 TIME TO REBOOT (FOR TIMED REBOOT ONLY) 0 ngeaix01-->
As per the logs above, we can see a user has initiated the reboot here.