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
Posts: 52 Joined: Thu Jan 03, 2008 10:31 pm
Post
by vipson » Tue Nov 11, 2008 12:54 pm
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
Posts: 238 Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa
Post
by BIuser » Fri Nov 21, 2008 5:48 am
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}'
vipson
Premium Member
Posts: 52 Joined: Thu Jan 03, 2008 10:31 pm
Post
by vipson » Fri Nov 21, 2008 6:44 am
Basically I have took that from the rc script without using my brain...kind of relying on DataStage folks...
Nagaraj
Premium Member
Posts: 383 Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore
Post
by Nagaraj » Fri Nov 21, 2008 8:43 am
But how can we protect the Project by restarting the dsrpcd?
Nagaraj
Premium Member
Posts: 383 Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore
Post
by Nagaraj » Fri Nov 21, 2008 8:45 am
But how can we protect the Project by restarting the dsrpcd?
chulett
Charter Member
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Fri Nov 21, 2008 9:16 am
You can't. Read the entire thread.
-craig
"You can never have too many knives" -- Logan Nine Fingers
Nagaraj
Premium Member
Posts: 383 Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore
Post
by Nagaraj » Fri Nov 21, 2008 9:37 am
But how can we protect the Project by restarting the dsrpcd?
Nagaraj
Premium Member
Posts: 383 Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore
Post
by Nagaraj » Fri Nov 21, 2008 9:38 am
I guess the SUbject and topic discussed are totally different........................
okay.