{AJS導入}10.1.1 プランニンググループの機能と運用概要

  • 物理ホスト

vim /root/unitbackup.txt

unit=jg1,,jp1admin,;
{
ty=g;
cm="jg1";
el=pg1,g,+0+0;
op=su;
op=mo;
op=tu;
op=we;
op=th;
op=fr;
op=sa;
unit=pg1,,jp1admin,;
{
ty=g;
cm="pg1";
gty=p;
el=jobnet11,n,+0+0;
el=jobnet12,n,+0+0;
cl=su;
op=mo;
cl=tu;
op=we;
cl=th;
op=fr;
cl=sa;
unit=jobnet11,,jp1admin,;
{
ty=n;
cm="jobnet11";
sz=10x8;
el=job111,j,+400+144;
el=job112,j,+560+144;
ar=(f=job111,t=job112,seq);
sd=1,2019/11/*01;
st=1,02:01;
cy=1,(1,d);
sh=1,ca;
shd=1,2;
rg=99;
ex="mmm182";
unit=job111,,jp1admin,;
{
ty=j;
cm="job111";
sc="/root/job111.sh";
un="root";
tho=0;
ex="mmm182";
}
unit=job112,,jp1admin,;
{
ty=j;
cm="job112";
sc="/root/job112.sh";
un="root";
tho=0;
ex="mmm182";
}
}
unit=jobnet12,,jp1admin,;
{
ty=n;
cm="jobnet12";
sz=10x8;
el=job121,j,+400+144;
el=job122,j,+560+144;
ar=(f=job121,t=job122,seq);
sd=1,2019/11/@01;
st=1,02:01;
cy=1,(1,d);
sh=1,no;
shd=1,2;
rg=99;
ex="mmm182";
unit=job121,,jp1admin,;
{
ty=j;
cm="job121";
sc="/root/job121.sh";
un="root";
tho=0;
ex="mmm182";
}
unit=job122,,jp1admin,;
{
ty=j;
cm="job122";
sc="/root/job122.sh";
un="root";
tho=0;
ex="mmm182";
}
}
}
}

export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJSROOT1 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajskill -F AJSROOT1 /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsleave -F AJSROOT1 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsleave -F AJSROOT1 /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsdefine -F AJSROOT1 -f -d / /root/unitbackup.txt

/opt/jp1ajs2/bin/ajsentry -F AJSROOT1 -b 2019/11/27 -e 2020/11/26 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsentry -F AJSROOT1 -b 2019/11/27 -e 2020/11/26 /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -s /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -s /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -f" %J %i %G %B" -b 2019/11/26 -e 2019/12/25 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -f" %J %i %G %B" -b 2019/11/26 -e 2019/12/25 /jg1/pg1/jobnet12

 

  • 論理ホスト


vim /root/unitbackup.txt

unit=jg1,,jp1admin,;
{
ty=g;
cm="jg1";
el=pg1,g,+0+0;
op=su;
op=mo;
op=tu;
op=we;
op=th;
op=fr;
op=sa;
unit=pg1,,jp1admin,;
{
ty=g;
cm="pg1";
gty=p;
el=jobnet11,n,+0+0;
el=jobnet12,n,+0+0;
cl=su;
op=mo;
cl=tu;
op=we;
cl=th;
op=fr;
cl=sa;
unit=jobnet11,,jp1admin,;
{
ty=n;
cm="jobnet11";
sz=10x8;
el=job111,j,+400+144;
el=job112,j,+560+144;
ar=(f=job111,t=job112,seq);
sd=1,2019/11/*01;
st=1,02:01;
cy=1,(1,d);
sh=1,ca;
shd=1,2;
rg=99;
ex="mmm194";
unit=job111,,jp1admin,;
{
ty=j;
cm="job111";
sc="/mnt/sdc2/job111.sh";
un="root";
tho=0;
ex="mmm194";
}
unit=job112,,jp1admin,;
{
ty=j;
cm="job112";
sc="/mnt/sdc2/job112.sh";
un="root";
tho=0;
ex="mmm194";
}
}
unit=jobnet12,,jp1admin,;
{
ty=n;
cm="jobnet12";
sz=10x8;
el=job121,j,+400+144;
el=job122,j,+560+144;
ar=(f=job121,t=job122,seq);
sd=1,2019/11/@01;
st=1,02:01;
cy=1,(1,d);
sh=1,no;
shd=1,2;
rg=99;
ex="mmm194";
unit=job121,,jp1admin,;
{
ty=j;
cm="job121";
sc="/mnt/sdc2/job121.sh";
un="root";
tho=0;
ex="mmm194";
}
unit=job122,,jp1admin,;
{
ty=j;
cm="job122";
sc="/mnt/sdc2/job122.sh";
un="root";
tho=0;
ex="mmm194";
}
}
}
}

export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajskill -F AJS3SCHEDULE001 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajskill -F AJS3SCHEDULE001 /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsleave -F AJS3SCHEDULE001 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsleave -F AJS3SCHEDULE001 /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsdefine -F AJS3SCHEDULE001 -f -d / /root/unitbackup.txt

/opt/jp1ajs2/bin/ajsentry -F AJS3SCHEDULE001 -b 2019/11/27 -e 2020/11/26 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsentry -F AJS3SCHEDULE001 -b 2019/11/27 -e 2020/11/26 /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -s /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -s /jg1/pg1/jobnet12

/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -f" %J %i %G %B" -b 2019/11/26 -e 2019/12/25 /jg1/pg1/jobnet11
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -f" %J %i %G %B" -b 2019/11/26 -e 2019/12/25 /jg1/pg1/jobnet12