How can I use ssh instead of rsh to launch tvdsvr processes? Part 2

 

Last week's tip showed how you can use ssh to launch tvdsvr processes. This week's tip shows how to make these settings the default for your site.

Note   
Someone wrote in to complain that I should have explained what tvdsvr is. Complaint noted. "tvdsvr", which is the TotalView Debugger Server, is a process that assists TotalView with remote debugging. It runs on the same machine as the executable and communicates back to TotalView over a TCP/IP port. For example, if you are running an MPI job, you will have executables executing on other machines. tvdsvr is needed to communicate information from TotalView to the process or from your process to TotalView.

Here's what last week's tip told you to place the following command in a preferences file:

dset -version 2 \
-version {[string compare $TV::platform linux-x86] == 0}\
TV::server_launch_string {ssh %R -n \
"%B/tvdsvr -working_directory %D -callback %L
-set_pw %P -verbosity %V %F"}

 

If you add the -set_as_default option to the dset command, this launch string also becomes the default launch string. (Notice the second line.)

dset -version 2 \
-set_as_default
-version {[string compare $TV::platform linux-x86] == 0}\
TV::server_launch_string {ssh %R -n \
"%B/tvdsvr -working_directory %D -callback %L
-set_pw %P -verbosity %V %F"}

 

Why bother? When you use the -set_as_default option, TotalView overwrites its default with your definition. So, if a user makes local changes--local changes override system defaults--and later presses the Default button on a launch string's page, what you enter here is displayed instead of TotalView's default.


You can find tips that we've already sent out in our Tip Archive

Help us improve these tips!