Page 2 of 2

Posted: Tue Nov 11, 2008 12:54 pm
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 &

Posted: Fri Nov 21, 2008 5:48 am
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}'

Posted: Fri Nov 21, 2008 6:44 am
by vipson
:)

Basically I have took that from the rc script without using my brain...kind of relying on DataStage folks...

Posted: Fri Nov 21, 2008 8:43 am
by Nagaraj
But how can we protect the Project by restarting the dsrpcd?

Posted: Fri Nov 21, 2008 8:45 am
by Nagaraj
But how can we protect the Project by restarting the dsrpcd?

Posted: Fri Nov 21, 2008 9:16 am
by chulett
You can't. Read the entire thread.

Posted: Fri Nov 21, 2008 9:37 am
by Nagaraj
But how can we protect the Project by restarting the dsrpcd?

Posted: Fri Nov 21, 2008 9:38 am
by Nagaraj
I guess the SUbject and topic discussed are totally different........................ :) okay.