Starting Remote Servers from the Command Line
The functionality for starting a remote Simcenter STAR-CCM+ server involves a simple command, around which you add options depending on what needs specified.
- Starting a server without an interactive client
- Starting a server with an interactive client
Starting a Server without a Client
The server can be started on a remote machine using a remote shell such as rsh or ssh in the same way as any other command. For example, using ssh:
ssh user@myremotemachine starccm+ -server
Make sure that remote shell access is permitted and configured.
To specify that a particular simulation file, in this example file.sim, be opened:
ssh user@myremotemachine starccm+ -server <absolute_pathname>/file.sim
Make sure that file.sim is in a path accessible from myremotemachine (the sim file must be readable by the server), and that the appropriate version of Simcenter STAR-CCM+ is being started on myremotemachine.
If you wish to use a version of Simcenter STAR-CCM+ other than the one to which your $PATH environment variable points, provide the absolute pathname:
ssh user@myremotemachine <absolute_pathname>/starccm+ -server <absolute_pathname>/file.sim
Using a Client When Starting a Server
To start a local client (in this example Windows) along with a remote server:
starccm+ -rsh ssh -on user@myremotemachine <absolute_pathname>/file.sim
- The client starts locally, then attempts to start the server remotely. The
Output window includes something like the following:
Starting remote server: ssh user@myremotemachine -n -o StrictHostKeyChecking=yes
starccm+ -on user@myremotemachine -server <absolute_pathname>/file.sim
- The -rsh command is instructing the Simcenter STAR-CCM+ client in the above example to use ssh.
- The
-on is only relevant for the following purposes:
- In parallel—it is used to specify the hosts to run workers on.
- In serial—it tells the client where to start a serial server.
You can also specify the path where Simcenter STAR-CCM+ is installed:
"<STAR-CCM+_INSTALL_DIR>\starccm+" -rsh ssh -on user@myremotemachine <absolute_pathname>/file.sim