{AJS運用}6.3.2 JP1/AJS3のプロセスが起動,停止,または異常終了したときにJP1イベントを発行する

  • 物理ホスト

--設定

vim /etc/opt/jp1ajs2/conf/jp1ajs_param.conf

[JP1_DEFAULT\JP1AJS2]
"SEND_SYSTEM_STARTSTOP_EVENT"=dword:1
"SEND_SYSTEM_CHILD_STARTSTOP_EVENT"=dword:1
"SEND_SYSTEM_TERMINATED_ABNORMALLY_EVENT"=dword:1
"SEND_SYSTEM_RESTART_EVENT"=dword:1


/opt/jp1base/bin/jbssetcnf /etc/opt/jp1ajs2/conf/jp1ajs_param.conf

/opt/jp1ajs2/bin/jajs_spmd_stop
/opt/jp1ajs2/bin/jajs_spmd_status
/opt/jp1ajs2/bin/jajs_spmd
/opt/jp1ajs2/bin/jajs_spmd_status


--動作確認

kill -9 `ps -ef | grep ajsdbmgrd | grep -v grep | awk '{print $2}'`

/opt/jp1base/bin/jevexport -o /root/imevexport.csv -a -t ON

tail -100 /root/imevexport.csv

設定前→JP1イベント発行なし
設定後→JP1イベント発行有

 

  • 論理ホスト

--設定

vim /mnt/sdc2/jp1ajs/jp1ajs2/conf/jp1ajs_param.conf

[mmm190\JP1AJS2]
"SEND_SYSTEM_STARTSTOP_EVENT"=dword:1
"SEND_SYSTEM_CHILD_STARTSTOP_EVENT"=dword:1
"SEND_SYSTEM_TERMINATED_ABNORMALLY_EVENT"=dword:1
"SEND_SYSTEM_RESTART_EVENT"=dword:1


/opt/jp1base/bin/jbssetcnf /mnt/sdc2/jp1ajs/jp1ajs2/conf/jp1ajs_param.conf

/etc/opt/jp1ajs2/jajs_stop.cluster mmm190
/opt/jp1ajs2/bin/jajs_spmd_status -h mmm190
/etc/opt/jp1ajs2/jajs_start.cluster mmm190
/opt/jp1ajs2/bin/jajs_spmd_status -h mmm190


--動作確認

kill -9 `ps -ef | grep ajsdbmgrd | grep -v grep | awk '{print $2}'`


/opt/jp1base/bin/jevexport -h mmm190 -o /root/imevexport.csv -a -t ON

tail -100 /root/imevexport.csv

設定前→JP1イベント発行なし
設定後→JP1イベント発行有

 

--待機系への反映

共通定義情報の出力
/opt/jp1base/bin/jbsgetcnf -h mmm190 > /root/jbscnf.txt
scp /root/jbscnf.txt mmm192:/root

共通定義情報の取り込み
ssh mmm192 "/opt/jp1base/bin/jbssetcnf /root/jbscnf.txt"