Automatic restart datastage server8.7 script

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
srikanthds2007
Participant
Posts: 4
Joined: Wed Jun 20, 2012 6:57 am
Location: chennai

Automatic restart datastage server8.7 script

Post by srikanthds2007 »

Hi All,

Do you have any script like if AIX server 7.0v was rebooted automatically our datastage server also need to start automatically.

If you have any script please send me.

we tried the below script to start automatically. But its not working. when we ran the same script manually it was working fine.

We added the below script in AIX inittab.

script:
echo "env. to be set"
. /aras/IBM/InformationServer/Server/DSEngine/dsenv
echo "env. has been set"
whoami
/aras/IBM/InformationServer/ASBServer/bin/MetadataServer.sh run
echo "websphere has been started"
/aras/IBM/InformationServer/ASBNode/bin/NodeAgents.sh start
echo "node agent has been started"
/aras/IBM/InformationServer/Server/DSEngine/bin/uv -admin -start
echo "engine has been started"

Please suggest me. Datastage version 8.7

Thanks in advance.


Thanks,
Sreekanth
GSREEKANTH
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

no return code testing huh? You must be very confident about your server reboots and mounts being present. ;)

Also, if this is an automated script, why the echo statements to stdout and not a echo "something" > /path/datastageStartUp.log


You are also failing to remember that MetadataServer.sh and NodeAgents.sh run as root, where uv -admin should be run as your datastage admin ID.


Side note:

1 post will do, not 5.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

PaulVL wrote:Side note:

1 post will do, not 5.
Further side note: private messages seeking assistance are assumed to be seeking that assistance on a commercial basis.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srikanthds2007
Participant
Posts: 4
Joined: Wed Jun 20, 2012 6:57 am
Location: chennai

Post by srikanthds2007 »

Hi Paul,

Mounts was presented.

If the server was rebooted the script was running root user.

We have the startup log. Please find the log below.

Please help and thanks in advance.

Code: Select all

env. has been set
root
ADMU0116I: Tool information is being logged in file
           /aras/IBM/WebSphere/AppServer/profiles/InfoSphere/logs/server1/startServer.log
ADMU0128I: Starting tool with the InfoSphere profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3011E: Server launched but failed initialization. startServer.log,
           SystemOut.log(or job log in zOS) and other log files under
           /aras/IBM/WebSphere/AppServer/profiles/InfoSphere/logs/server1
           should contain failure information.
websphere has been started
node agent has been started
Starting JobMonApp
JobMonApp is already running. Please run /aras/IBM/InformationServer/Server/PXEngine/java/jobmoninit stop first.
engine has been started

for the /aras/IBM/WebSphere/AppServer/profiles/InfoSphere/logs/server1/startServer.log

Host Operating System is AIX, version 7.1
Java version = JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr9-20110216_75791 (JIT enabled, AOT enabled)
J9VM - 20110216_075791
JIT  - r9_20101028_17488ifx4
GC   - 20101027_AA, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = /aras/IBM/WebSphere/AppServer
user.install.root = /aras/IBM/WebSphere/AppServer/profiles/InfoSphere
Java Home = /aras/IBM/WebSphere/AppServer/java/jre <snip>
Classpath = /aras/IBM/WebSphere/AppServer/profiles/InfoSphere/properties:<snip>
Java Library path = /aras/IBM/WebSphere/AppServer/java/jre/lib/ppc64/default:<snip>
Current trace specification = *=info
************* End Display Current Environment *************
[7/19/16 8:12:58:166 GST] 00000000 ManagerAdmin  I   TRAS0017I: The startup trace state is *=info.
[7/19/16 8:12:58:232 GST] 00000000 AdminTool     A   ADMU0128I: Starting tool with the InfoSphere profile
[7/19/16 8:12:58:235 GST] 00000000 AdminTool     A   ADMU3100I: Reading configuration for server: server1
[7/19/16 8:12:58:457 GST] 00000000 AdminTool     A   ADMU3200I: Server launched. Waiting for initialization status.
[7/19/16 8:13:59:808 GST] 00000000 AdminTool     A   ADMU3000I: Server server1 open for e-business; process id is 6160586
GSREEKANTH
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

The product documentation details how to start and stop all parts of the server, so you can tweak it if needed, but as far as my experience has gone on AIX, a normal installation will automatically start everything after a reboot.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply