{AJS設計業}3.5.1 2日にまたがる業務のスケジュールを立てる

  • 物理ホスト

--設定
/opt/jp1ajs2/bin/jajs_spmd_stop
/opt/jp1ajs2/bin/jajs_spmd_status

--マネージャで設定
--48時間制
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJSMANAGER\AJSROOT2]" "ROOTJOBNETSCHEDULERANGE"=dword:00000030
--24時間制
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJSMANAGER\AJSROOT1]" "ROOTJOBNETSCHEDULERANGE"=dword:00000018

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

/opt/jp1ajs2/bin/ajsstatus -F AJSROOT1
/opt/jp1ajs2/bin/ajsstatus -F AJSROOT2

--動作確認
vim /root/unitbackup.txt


unit=jg21,,jp1admin,;
{
ty=g;
cm="jg21";
el=jobnet1,n,+0+0;
cl=su;
op=mo;
op=tu;
op=we;
op=th;
cl=fr;
cl=sa;
unit=jobnet1,,jp1admin,;
{
ty=n;
cm="jobnet1";
sz=10x8;
el=job110,j,+400+144;
sd=1,2019/11/*01;
st=1,29:42;
cy=1,(1,d);
sh=1,ca;
shd=1,2;
rg=99;
ex="mmm182";
unit=job110,,jp1admin,;
{
ty=j;
te="date";
un="root";
tho=100;
wth=50;
ex="mmm182";
}
}
}

export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJSROOT1 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsleave -F AJSROOT1 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsdefine -F AJSROOT1 -f -d / /root/unitbackup.txt
/opt/jp1ajs2/bin/ajsprint -F AJSROOT1 -s yes /jg21/jobnet1
/opt/jp1ajs2/bin/ajsentry -F AJSROOT1 -g 20 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -f" %J %i %G %B" -b 2020/07/11 -e 2020/08/26 /jg21/jobnet1

export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJSROOT2 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsleave -F AJSROOT2 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsdefine -F AJSROOT2 -f -d / /root/unitbackup.txt
/opt/jp1ajs2/bin/ajsprint -F AJSROOT2 -s yes /jg21/jobnet1
/opt/jp1ajs2/bin/ajsentry -F AJSROOT2 -g 20 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT2 -f" %J %i %G %B" -b 2020/07/11 -e 2020/08/26 /jg21/jobnet1

 

 

  • 論理ホスト

--設定

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


--マネージャで設定
--48時間制
/opt/jp1ajs2/bin/jajs_config -k "[mmm190\JP1AJSMANAGER\AJSROOT2]" "ROOTJOBNETSCHEDULERANGE"=dword:00000030
--24時間制
/opt/jp1ajs2/bin/jajs_config -k "[mmm190\JP1AJSMANAGER\AJS3SCHEDULE001]" "ROOTJOBNETSCHEDULERANGE"=dword:00000018


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

/opt/jp1ajs2/bin/ajsstatus -F AJS3SCHEDULE001
/opt/jp1ajs2/bin/ajsstatus -F AJSROOT2

--動作確認
vim /root/unitbackup.txt

unit=jg21,,jp1admin,;
{
ty=g;
cm="jg21";
el=jobnet1,n,+0+0;
cl=su;
op=mo;
op=tu;
op=we;
op=th;
cl=fr;
cl=sa;
unit=jobnet1,,jp1admin,;
{
ty=n;
cm="jobnet1";
sz=10x8;
el=job110,j,+400+144;
sd=1,2019/11/*01;
st=1,29:42;
cy=1,(1,d);
sh=1,ca;
shd=1,2;
rg=99;
ex="mmm194";
unit=job110,,jp1admin,;
{
ty=j;
te="date";
un="root";
tho=100;
wth=50;
ex="mmm194";
}
}
}

export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJS3SCHEDULE001 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsleave -F AJS3SCHEDULE001 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsdefine -F AJS3SCHEDULE001 -f -d / /root/unitbackup.txt
/opt/jp1ajs2/bin/ajsprint -F AJS3SCHEDULE001 -s yes /jg21/jobnet1
/opt/jp1ajs2/bin/ajsentry -F AJS3SCHEDULE001 -g 20 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -f" %J %i %G %B" -b 2020/07/11 -e 2020/08/26 /jg21/jobnet1

export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJSROOT2 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsleave -F AJSROOT2 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsdefine -F AJSROOT2 -f -d / /root/unitbackup.txt
/opt/jp1ajs2/bin/ajsprint -F AJSROOT2 -s yes /jg21/jobnet1
/opt/jp1ajs2/bin/ajsentry -F AJSROOT2 -g 20 /jg21/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT2 -f" %J %i %G %B" -b 2020/07/11 -e 2020/08/26 /jg21/jobnet1

 


--待機系への反映
--マネージャ

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

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