January 10, 2013 \ Ananth TM Restart Commands for IIS Datstage 8.5 or 8.7 UNIX/Linux We will stop in this order: Stop DataStage Stop Node Agents Stop WebSphere Log into your Unix/Linux machine as root (you can run first part as dsadm). Make sure that no one is using DataStage. Check if there are any processes left by executing the following commands:ps -ef | grep phantom – This would show processes from jobsps -ef | grep osh – This would show processes for parallel jobsps -ef | grep dsapi – This would show processes for client connectionps -ef | grep dscs – This would show processes for client connectionThese commands shouldn’t return any results. If they return results, it means that there are still some processes. You need to wait for the users to stop their processes or kill the processes (using kill -9 PID) if you confirm that these are not longer valid connections . Check if DataStage RPC Daemon (dsrpc) is running by executing:netstat -a | grep dsrpcIf dsrpc is running then you should see one line with the status LISTEN. If you get more lines it means that there are still some connections and you need to wait. If you see that dsrpc or other connections are in status CLOSE_WAIT then you also need to wait until these disappear (you can also reboot the machine) Stop DataStage (you have to run this from $DSHOME). ./dsenvbin/uv -admin -stop Check to see if there are any shared memory segments left:ipcs -m | grep adeNote: If you are not running with the default itag of “ade” use that instead of “ade”. For example if you have two DataStage instances one would be “ade” and the second would have another tag, say “801” or “efg”.If you get a result, take note of the ID and remove it (you will need root access for this part)ipcrm -m ID Then check dsrpc again usingnetstat -a | grep dsrpcYou shouldn’t get any results. If you get any and/or the dsrpc is in CLOSE_WAIT then you need to wait until this it disappears (you can also reboot the machine) Stop the ASB Agent (you need to be root here)Go to <InstallPath>/IBM/InformationServer/ASBNode/binRun ./NodeAgents.sh stopType ‘yes’ if you receive the following message: rm: remove write-protected regular file Agent.pid’? Check the agents have stopped:ps -ef | grep javaTo see full command in Solaris:/usr/ucb/ps -auxww | grep javaIf still see the Logging Agent or ASB Agent then you need to kill these. e.g. kill -9 PID Stop the WebSphere Server (you need to be root here)Go to <InstallPath>/IBM/WebSphere/AppServer/binRun ./stopServer.sh server1* if that does not work, try ./bin/stopServer.sh server1 -username wasadmin -password wasadminNow check that the WebSphere java processes is gone:ps -ef | grep javaTo see full command in Solaris:/usr/ucb/ps -auxww | grep javaremove it if it exists with: kill PID (no -9 in the kill command) Now, you can restart, in this order: Start WebSphere Server Start ASB Agent Start DataStage Start WebSphere Server as rootGo to <InstallPath>/IBM/WebSphere/AppServer/binRun ./startServer.sh server1Wait until you get back a line saying:Server server1 open for e-business; Start ASB Agent as rootGo to <InstallPath>/IBM/InformationServer/ASBNode/binRun ./NodeAgents.sh start Start DataStage (as dsadm)Go to $DSHOMERun bin/uv -admin -start Reference: http://www-01.ibm.com/support/docview.wss?uid=swg21431700