There is a script in the InfoCenter, but after a recent call with support, we decided to use one that utilizes QSHELL rather than SBMJOB technique outlined in the InfoCenter.
WAS CL Startup Script
200 CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES)
300 STRSBS SBSD(QWAS7/QWAS7)
400 MONMSG CPF0000
500 DLYJOB DLY(30)
600
700 QSH +
800 CMD('/qibm/userdata/websphere/appserver/v7/+
900 nd/profiles/dmgr01/bin/startServer')
1000 DLYJOB DLY(30)
1100
1200 QSH +
1300 CMD('/qibm/userdata/websphere/appserver/v7/+
1400 nd/profiles/hats/bin/startServer nodeagent')
1500 DLYJOB DLY(30)
1600
1700 QSH +
1800 CMD('/qibm/userdata/websphere/appserver/v7/+
1900 nd/profiles/hats/bin/startServer HATS9081')
2000 DLYJOB DLY(30)
2100
2200 QSH +
2300 CMD('/qibm/userdata/websphere/appserver/v7/+
2400 nd/profiles/hats/bin/startServer HATS9082')
2500 DLYJOB DLY(30)
2600
2700 QSH +
2800 CMD('/qibm/userdata/websphere/appserver/v7/+
2900 nd/profiles/hats/bin/startServer HATS9083')
* * * * E N D O F S O U R C E * * * *
WAS CL Shutdown Script
100 PGM200 CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES)
300 QSH +
400 CMD('/qibm/userdata/websphere/appserver/v7/+
500 nd/profiles/hats/bin/stopServer HATS9081')
600 DLYJOB DLY(30)
700
800 QSH +
900 CMD('/qibm/userdata/websphere/appserver/v7/+
1000 nd/profiles/hats/bin/stopServer HATS9082')
1100 DLYJOB DLY(30)
1200
1300 QSH +
1400 CMD('/qibm/userdata/websphere/appserver/v7/+
1500 nd/profiles/hats/bin/stopServer HATS9083')
1600 DLYJOB DLY(30)
1700
1800 QSH +
1900 CMD('/qibm/userdata/websphere/appserver/v7/+
2000 nd/profiles/hats/bin/stopServer nodeagent')
2100 DLYJOB DLY(30)
2200
2300 QSH +
2400 CMD('/qibm/userdata/websphere/appserver/v7/+
2500 nd/profiles/dmgr01/bin/stopServer')
2600 DLYJOB DLY(30)
2700
2800 ENDSBS SBS(QWAS7) OPTION(*CNTRLD) DELAY(30)
2900 monmsg cpf0000
* * * * E N D O F S O U R C E * * * *
Note that above there is a delay job. This is set at 30 seconds, but 5 minutes is more appropriate depending upon the speed of your system and workload being performed.

0 comments:
Post a Comment