Last modified: September 07 2020.
Contact: hpchelp [at] iitd.ac.in

PARAVIEW

Remote paraview access using Forward Connection Over SSH Tunnel (Client- Server)


Pre-requisites :
  • Need to be in IITD network
  • Paraview version on client i.e on your PC should match the version which you are using on HPC.
  • Step 1: Server Setup "Run the pvserver on HPC using batch or interactive job"

    Login to the HPC
  • Submit a PBS job (interactive/batch) with pvserver running on node : copy the sample submission script from : /home/apps/skeleton/paraviewServer.sh
  • Change project name & resources as per your requirement.
  • Batch Job Submission:

    Please read the given instructions carefully

    Script (paraviewServer.sh :)
    #!/usr/bin/env bash
    #!/bin/bash
    #PBS -N ParaviewServer
    #PBS -P cc
    #PBS -q standard
    #PBS -m bea
    #PBS -M $USER@iitd.ac.in
    #PBS -l select=1:ncpus=4
    #PBS -l walltime=00:30:00
    #PBS -l software=Paraview
    
    
    ## Client & Server both need to have same Paraview Version
    cd $PBS_O_WORKDIR
    
    module purge
    module load apps/visualization/paraview/4.4.0-Qt4-OpenGL2/precompiled
    module load suite/intel/parallelStudio/2018
    
    # Run executable with mpirun , 
    # note down the port no. which you are using i.e here we are using default port for Paraview i.e 11111
    mpirun -np $PBS_NTASKS pvserver --server-port=11111
    
    
    Submit the batch job
    qsub paraviewServer.sh

    Interactive job submission
    qsub -I -P cc -l select=1:ncpus=4 -l walltime=00:30:00 -q standard
    You will land on the particular node. Please refer the meaning of below lines from the above bash script.
    module purge
    module load apps/visualization/paraview/4.4.0-Qt4-OpenGL2/precompiled
    module load suite/intel/parallelStudio/2018
    mpirun -np $PBS_NTASKS pvserver --server-port=11111
    NOTE:Read the comments present in batch job submission section , the meaning is same here.

    Step 2: Port Forwarding

    PBS will allocate an node for you, note down the node name for ex. chas112 Open another terminal, login to HPC

  • You can use any login node Note: use e with hostname allocated to you
  • Use the same port no. on which pvserver is running
  • Execute:
    ssh -L 11111:echas112:11111 login03 

    Step 3: Client Setup

  • One time Step : Install Paraview on your PC i.e same version which you are using on HPC
  • Open Paraview on your machine/PC which is IITD network
  • Go To : file --> connect --> add server

    Name : (Any e.x) IITD

    host : i.e echas112.hpc.iitd.ac.in

    port : 11111

    Configure --> Choose manual connection option --> save

    Note: This setting will change every time as the allocated node may be different every time.
  • Select the server when your job is in running state, and click on connect.
  • Sometimes you may get display warning, click ok.
  • To check whether you are successfully connected or not . check the output file of your job it will show that , client is connected.