※「JP1/AJS3への接続を制限する設定」等で制限されていないことを確認
- 物理ホスト
--設定
転送先ホストのJP1/AJS3 - Managerの環境設定パラメーターREMNETSERVICENAMEの設定
/etc/opt/jp1ajs2/jajs_stop.cluster mmm190
/opt/jp1ajs2/bin/jajs_spmd_status -h mmm190
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJSMANAGER]" "REMNETSERVICENAME"="AJS3SCHEDULE001"
/etc/opt/jp1ajs2/jajs_start.cluster mmm190
/opt/jp1ajs2/bin/jajs_spmd_status -h mmm190
--待機系への反映
--mmm192で実行
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJSMANAGER]" "REMNETSERVICENAME"="AJS3SCHEDULE001"
--動作確認
vim /root/unitbackup.txt
unit=jg1,,jp1admin,;
{
ty=g;
cm="jg1";
el=jobnet1,rm,+0+0;
op=su;
op=mo;
op=tu;
op=we;
op=th;
op=fr;
op=sa;
unit=jobnet1,,jp1admin,;
{
ty=rm;
cm="jobnet1";
sz=10x8;
el=job11,j,+560+240;
el=job12,j,+720+240;
ar=(f=job11,t=job12,seq);
sd=1,en;
st=1,+00:00;
sh=1,ca;
shd=1,2;
rg=99;
ex="mmm194";
rh="mmm190";
unit=job11,,jp1admin,;
{
ty=j;
cm="job11";
sc="/mnt/sdc2/job1.sh";
un="root";
tho=0;
ex="mmm194";
}
unit=job12,,jp1admin,;
{
ty=j;
cm="job12";
sc="/mnt/sdc2/job2.sh";
un="root";
tho=0;
ex="mmm194";
}
}
}
export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJSROOT1 /jg1/jobnet1
/opt/jp1ajs2/bin/ajsleave -F AJSROOT1 /jg1/jobnet1
/opt/jp1ajs2/bin/ajsdefine -F AJSROOT1 -f -d / /root/unitbackup.txt
/opt/jp1ajs2/bin/ajsprint -F AJSROOT1 -s yes "/*"
/opt/jp1ajs2/bin/ajsentry -F AJSROOT1 -n /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -s /jg1/jobnet1
- 論理ホスト
--設定
転送先ホストのJP1/AJS3 - Managerの環境設定パラメーターREMNETSERVICENAMEの設定
/opt/jp1ajs2/bin/jajs_spmd_stop
/opt/jp1ajs2/bin/jajs_spmd_status
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJSMANAGER]" "REMNETSERVICENAME"="AJSROOT1"
/opt/jp1ajs2/bin/jajs_spmd
/opt/jp1ajs2/bin/jajs_spmd_status
--動作確認
vim /root/unitbackup.txt
unit=jg1,,jp1admin,;
{
ty=g;
cm="jg1";
el=jobnet1,rm,+0+0;
op=su;
op=mo;
op=tu;
op=we;
op=th;
op=fr;
op=sa;
unit=jobnet1,,jp1admin,;
{
ty=rm;
cm="jobnet1";
sz=10x8;
el=job11,j,+560+240;
el=job12,j,+720+240;
ar=(f=job11,t=job12,seq);
sd=1,en;
st=1,+00:00;
sh=1,ca;
shd=1,2;
rg=99;
ex="mmm182";
rh="mmm181";
unit=job11,,jp1admin,;
{
ty=j;
cm="job11";
sc="/root/job1.sh";
un="root";
tho=0;
ex="mmm182";
}
unit=job12,,jp1admin,;
{
ty=j;
cm="job12";
sc="/root/job2.sh";
un="root";
tho=0;
ex="mmm182";
}
}
}
export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJS3SCHEDULE001 /jg1/jobnet1
/opt/jp1ajs2/bin/ajsleave -F AJS3SCHEDULE001 /jg1/jobnet1
/opt/jp1ajs2/bin/ajsdefine -F AJS3SCHEDULE001 -f -d / /root/unitbackup.txt
/opt/jp1ajs2/bin/ajsprint -F AJS3SCHEDULE001 -s yes "/*"
/opt/jp1ajs2/bin/ajsentry -F AJS3SCHEDULE001 -n /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -s /jg1/jobnet1