How to protect a project/projects

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

Moderators: chulett, rschirm, roy

vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Post by vipson »

So here are the final steps I came up with:

Here is the command to find out the PID for dsrpcd:
ps -eo pid,comm|grep dsrpcd|grep -v grep|grep -v sed|eval sed -e '"s/^ *//"'|eval sed -e '"s:^[ ]*\([0-9]*\)[ ].*\(...dsrpcd\):\1 \2:"'|eval sed -e '"s:^[ ]*\([0-9]*\)[ ]\(../\)\(.*\):\1 \3:"'|eval grep " dsrpcd"|eval sed -e '"s/^[ ]*\([0-9]*\)[ ].*/\1/"'

Kill the dsrpcd:
kill -15 <dsrpcd_PID> > /dev/null 2>&1

Start he dsrpcd:
nohup /dsinst001/IBM/InformationServer/Server/DSEngine/bin/dsrpcd > /dev/null 2>&1 &
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

Post by BIuser »

Wow, that's a very odd command that gives you the same info as a


ps -ef |grep dsrpcd

Or if you just want the pid, ps -ef |grep dsrpc[d] |awk '{print $2}'
-------------------------
https://www.ssa.co.za
vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Post by vipson »

:)

Basically I have took that from the rc script without using my brain...kind of relying on DataStage folks...
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

But how can we protect the Project by restarting the dsrpcd?
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

But how can we protect the Project by restarting the dsrpcd?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can't. Read the entire thread.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

But how can we protect the Project by restarting the dsrpcd?
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

I guess the SUbject and topic discussed are totally different........................ :) okay.
Post Reply