[AIX]AIX 7.3環境でのOS再起動方法によるerrptの出力パターン
テスト環境:
# oslevel -s
7300-03-00-2446
パターン | ERRLOG_OFF | ERRLOG_ON | REBOOT_ID | PARTID_BOOT_REASON |
---|---|---|---|---|
shutdown -Fr commnad/HMCからアクション->再始動->オペレーティング・システムの即時 | 〇 | 〇 | reboot ksh93 | 00FF |
shutdown -F commnad/HMCからアクション->シャットダウン->オペレーティング・システムの即時 | 〇 | 〇 | halt ksh93 | 0006 |
HMCからアクション->再始動->即時 | × | 〇 | × | 00FF |
HMCからアクション->シャットダウン->即時 | × | 〇 | × | 0006 |
halt -q command | × | 〇 | halt ksh | 0006 |
reboot command | 〇 | 〇 | reboot ksh | 00FF |
reboot -q command | × | 〇 | reboot ksh | 00FF |
reboot -l command | 〇 | 〇 | reboot ksh | 00FF |
reboot function(RB_SOFTIPL) | × | 〇 | reboot ksh | 00FF |
reboot function(RB_HALT) | × | 〇 | reboot ksh | 0006 |
PARTID_BOOT_REASONのコードの意味はこちらの文書に記載があります。
参考: The PARTID_BOOT_REASON error log
https://www.ibm.com/support/pages/node/633697
reboot function実行用のサンプルは以下の通りです。
# cat reboot.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/reboot.h>
extern void reboot ( int, void*);
int main(int argc, char *argv[]){
if ( argc == 1 ){
printf("RB_SOFTIPL\n");
reboot(RB_SOFTIPL, 0);
}else{
printf("RB_HALT\n");
reboot(RB_HALT, 0);
}
exit (0);
}