- 物理ホスト
-- 設定
-- マネージャで設定
/opt/jp1ajs2/bin/jajs_spmd_stop
/opt/jp1ajs2/bin/jajs_spmd_status
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJS2\SCHEDULER\QUEUE\MANAGER\Job]" "MaximumExecJobLogOption"=dword:00000001
/opt/jp1ajs2/bin/jajs_config -k "[JP1_DEFAULT\JP1AJS2\SCHEDULER\QUEUE\MANAGER\Job]" "MaximumExecJobLogInterval"=dword:0000003C
/opt/jp1ajs2/bin/jajs_spmd
/opt/jp1ajs2/bin/jajs_spmd_status
-- エージェントのジョブ多重度確認
/opt/jp1ajs2/bin/ajsagtshow -l
-- ジョブ登録
vim /root/unitbackup.txt
unit=jg1,,jp1admin,;
{
ty=g;
cm="jg1";
el=jobnet1,n,+0+0;
cl=su;
op=mo;
op=tu;
op=we;
op=th;
op=fr;
cl=sa;
unit=jobnet1,,jp1admin,;
{
ty=n;
cm="jobnet1";
sz=10x8;
el=job11,j,+80+48;
el=job12,j,+240+48;
el=job13,j,+400+48;
el=job14,j,+560+48;
el=job15,j,+720+48;
el=job16,j,+880+48;
sd=1,2019/11/03;
st=1,23:58;
cy=1,(1,d);
sh=1,ca;
shd=1,2;
ex="mmm182";
unit=job11,,jp1admin,;
{
ty=j;
cm="job11";
te="sleep 3000";
un="root";
tho=0;
ex="mmm182";
}
unit=job12,,jp1admin,;
{
ty=j;
cm="job12";
te="sleep 3000";
un="root";
tho=0;
ex="mmm182";
}
unit=job13,,jp1admin,;
{
ty=j;
cm="job13";
te="sleep 3000";
un="root";
tho=0;
ex="mmm182";
}
unit=job14,,jp1admin,;
{
ty=j;
cm="job14";
te="sleep 3000";
un="root";
tho=0;
ex="mmm182";
}
unit=job15,,jp1admin,;
{
ty=j;
cm="job15";
te="sleep 3000";
un="root";
tho=0;
ex="mmm182";
}
unit=job16,,jp1admin,;
{
ty=j;
cm="job16";
te="sleep 3000";
un="root";
tho=0;
ex="mmm182";
}
}
}
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 /jg1/jobnet1
/opt/jp1ajs2/bin/ajsentry -F AJSROOT1 -n /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -s /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -R /jg1/jobnet1
-- 動作確認
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -R /jg1/jobnet1
/opt/jp1ajs2/bin/ajsagtshow -l
ls -ltr /var/opt/hitachi/HNTRLib2/spool/hntr2?.log
grep KAVU4310-I /var/opt/hitachi/HNTRLib2/spool/hntr2?.log
- 論理ホスト
-- 設定
-- マネージャで設定
/etc/opt/jp1ajs2/jajs_stop.cluster mmm190
/opt/jp1ajs2/bin/jajs_spmd_status -h mmm190
/opt/jp1ajs2/bin/jajs_config -k "[mmm190\JP1AJS2\SCHEDULER\QUEUE\MANAGER\Job]" "MaximumExecJobLogOption"=dword:00000001
/opt/jp1ajs2/bin/jajs_config -k "[mmm190\JP1AJS2\SCHEDULER\QUEUE\MANAGER\Job]" "MaximumExecJobLogInterval"=dword:0000003C
/etc/opt/jp1ajs2/jajs_start.cluster mmm190
/opt/jp1ajs2/bin/jajs_spmd_status -h mmm190
-- エージェントのジョブ多重度確認
/opt/jp1ajs2/bin/ajsagtshow -h mmm190 -l
-- ジョブ登録
vim /root/unitbackup.txt
unit=jg1,,jp1admin,;
{
ty=g;
cm="jg1";
el=jobnet1,n,+0+0;
cl=su;
op=mo;
op=tu;
op=we;
op=th;
op=fr;
cl=sa;
unit=jobnet1,,jp1admin,;
{
ty=n;
cm="jobnet1";
sz=10x8;
el=job11,j,+80+48;
el=job12,j,+240+48;
el=job13,j,+400+48;
el=job14,j,+560+48;
el=job15,j,+720+48;
el=job16,j,+880+48;
sd=1,2019/11/03;
st=1,23:58;
cy=1,(1,d);
sh=1,ca;
shd=1,2;
ex="mmm194";
unit=job11,,jp1admin,;
{
ty=j;
cm="job11";
te="sleep 3000";
un="root";
tho=0;
ex="mmm194";
}
unit=job12,,jp1admin,;
{
ty=j;
cm="job12";
te="sleep 3000";
un="root";
tho=0;
ex="mmm194";
}
unit=job13,,jp1admin,;
{
ty=j;
cm="job13";
te="sleep 3000";
un="root";
tho=0;
ex="mmm194";
}
unit=job14,,jp1admin,;
{
ty=j;
cm="job14";
te="sleep 3000";
un="root";
tho=0;
ex="mmm194";
}
unit=job15,,jp1admin,;
{
ty=j;
cm="job15";
te="sleep 3000";
un="root";
tho=0;
ex="mmm194";
}
unit=job16,,jp1admin,;
{
ty=j;
cm="job16";
te="sleep 3000";
un="root";
tho=0;
ex="mmm194";
}
}
}
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 /jg1/jobnet1
/opt/jp1ajs2/bin/ajsentry -F AJS3SCHEDULE001 -n /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -s /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -R /jg1/jobnet1
-- 動作確認
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -R /jg1/jobnet1
/opt/jp1ajs2/bin/ajsagtshow -h mmm190 -l
ls -ltr /var/opt/hitachi/HNTRLib2/spool/hntr2?.log
grep KAVU4310-I /var/opt/hitachi/HNTRLib2/spool/hntr2?.log
-- 待機系への反映
共通定義情報の出力
/opt/jp1base/bin/jbsgetcnf -h mmm190 > /root/jbscnf.txt
scp /root/jbscnf.txt mmm192:/root
共通定義情報の取り込み
ssh mmm192 "/opt/jp1base/bin/jbssetcnf /root/jbscnf.txt"