I also use reverse connection with Torque (same commands used by PBS). <br><br>Here it goes the script that I use to start my PV session (reverse connection and offscreen rendering):<br><br>#====================================================================<br>

#PBS -l nodes=1:ppn=8<br>#PBS -l walltime=12:00:00<br>#PBS -N pv-omp<br>#PBS -j oe<br>#PBS -V<br># PBS -m ae<br># PBS -M <a href="mailto:user@domain.ufrj.br">user@domain.ufrj.br</a><br><br>PVCLIENT=ip.to.pvclient.machine<br>

<br>export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/sw/shared/x86_64/paraview/openmpi/3.4.0/lib/paraview-3.4:/sw/shared/x86_64/Mesa/7.2/lib64<br><br># change directory<br>cd ${PBS_O_WORKDIR}<br><br># get the number of processors and nodes<br>

NUM_PROC=`cat ${PBS_NODEFILE} | wc -l`<br><br># mpi program launch<br>mpirun -np ${NUM_PROC} /sw/shared/x86_64/paraview/openmpi/3.4.0/bin/pvserver --use-offscreen-rendering -rc -ch=${PVCLIENT}<br><br>#====================================================================<br>

<br>Of course, you&#39;ll need to leave your pvclient waiting the reverse connection. <br><br>I hope it helps you...<br><br>Regards<br><br>Renato.<br><br><br><br><div class="gmail_quote">On Fri, Apr 17, 2009 at 11:12 AM, Moreland, Kenneth <span dir="ltr">&lt;<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">For what it’s worth, I use reverse connect all the time to connect a server launched with pbs, and it works quite well (although you will have problems if your client is behind a firewall).  Reverse connection also has the added advantage of having the connection happen as soon as the pbs job launches; you don’t have to guess how long the job is going to take to launch to connect to the server.<br>


<br>
-Ken<div><div></div><div class="h5"><br>
<br>
<br>
On 4/16/09 2:01 PM, &quot;John Patchett&quot; &lt;<a href="http://patchett@lanl.gov" target="_blank">patchett@lanl.gov</a>&gt; wrote:<br>
<br>
</div></div></span></font><div><div></div><div class="h5"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">I have not tried a reverse connection from a batch job to a waiting <br>


client, but it sounds like it should work.  Have you tried using a <br>
normal batch script something like:<br>
#PBS -A myproject<br>
#PBS -N paraview<br>
#PBS -j oe<br>
#PBS -l walltime=00:01:00,size=512<br>
cd /myparaviewbindir<br>
mpirun  -n 512  ./pvserver  --reverse-connection --client-<br>
host=myheadnode<br>
<br>
<br>
as an aside,<br>
forwarding X is generally much slower than it has to be.<br>
My environment makes it very difficult to get the reverse connection <br>
all the way to my desktop but i can do some port forwarding to get <br>
port 11111 from my desktop to the back end node.<br>
ssh -L11111:process0:11111 myheadnode<br>
which would probably work a lot better/faster than forwarding X<br>
We have a some machines that have a gateway and then a front end node, <br>
which gets a lot more complicated, but can still be done with port <br>
forwarding.<br>
<br>
-John.<br>
<br>
On Apr 16, 2009, at 1:47 PM, Jack Gundrum wrote:<br>
<br>
&gt; John,<br>
&gt; If the client is running on the login/head node (with X-forwarding <br>
&gt; to my laptop) and from the client I want to start the parallel<br>
&gt; backend I would enter the commands in the connect gui to choose a <br>
&gt; server. Have you ever tried using qsub this way?<br>
&gt;<br>
<br>
<br>
<br>
&gt;<br>
&gt; Patchett wrote:<br>
&gt;&gt; Hi Jack,<br>
&gt;&gt; Usually you have to figure out what process 0 is going to be, so <br>
&gt;&gt; you get an interactive session using something like:<br>
&gt;&gt; qsub -I -A myproject -q debug -V -lsize=64,walltime=20:00<br>
&gt;&gt; which I use on one of the machines I use...<br>
&gt;&gt;<br>
&gt;&gt; I then do an<br>
&gt;&gt; mpirun -n 1 hostname<br>
&gt;&gt; to find out the first node from MPI&#39;s perspective so I can connect <br>
&gt;&gt; to it with a client.<br>
&gt;&gt;<br>
&gt;&gt; then:<br>
&gt;&gt; mpirun -n 64 pvserver<br>
&gt;&gt;<br>
&gt;&gt; If you are really trying to do batch I think there is still a <br>
&gt;&gt; pvbatch.<br>
&gt;&gt;<br>
&gt;&gt; -John.<br>
&gt;&gt; On Apr 16, 2009, at 12:32 PM, Jack Gundrum wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt; I would like to launch pvserver from paraview using a PBS script <br>
&gt;&gt;&gt; for submitting thru qsub.<br>
&gt;&gt;&gt; Are there docs or better yet examples that could be shared about <br>
&gt;&gt;&gt; this? - Thanks<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Jack Gundrum<br>
&gt;&gt;&gt; ITS - Research Computing &amp; Cyberinfrastucture<br>
&gt;&gt;&gt; Penn State University<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Jack Gundrum<br>
&gt; ITS - Research Computing &amp; Cyberinfrastucture<br>
&gt; Penn State University<br>
&gt;<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></div></div><font size="1"><font face="Monaco, Courier New"><span style="font-size: 7.5pt;"><br>
   ****      Kenneth Moreland<br>
    ***      Sandia National Laboratories<br>
***********  <br>
*** *** ***  email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
**  ***  **  phone: (505) 844-8919<br>
    ***      web:   <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div>


<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>