1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[AIX]AIX 7.3環境でのOS再起動方法によるerrptの出力パターン

Posted at

[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);
}
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?