Query the Compute Manager from the command line

The scmServer.py script is a tool, located in the binary folder of your Moldflow installation, that configures and queries the status of a running Simulation Compute Manager (SCM) process. You must have a python interpreter installed on your system to use this tool. This tool has been tested on Linux, but is portable and should also run on Windows.

Note that the easiest way to configure the SCM is by using the graphical interface by opening a web browser and going to (using SCM 1.X as example, refer to Opening firewall ports).

```
xml     localhost:43100/ComputeQueue/v1     
```

The scmServer.py provides a way to perform some configuration tasks without a web browser.

To configure a provisioner

To set up a machine to pull jobs from the queue of another machine, you need to configure the provisioner to service the queue you want to provision.

  1. Ensure that the SCM is running on the Linux machine you intend to configure:

    $ /sbin/pidof SimulationCompute

    If the SCM is running on the machine, this command returns the process identification descriptor.

  2. Check that there is no firewall blocking the required TCP ports, refer to Opening firewall ports.

  3. To check that the SCM is contactable you can run the ping command, using SCM 1.X as example

    $ scmServer.py queue ping -j http://localhost:43100/ComputeQueue/v1

    The above command will indicate whether the SCM that is running is contactable through its network port

  4. To get a list of provisioner URLs that are currently serving the queue on localhost using SCM 1.X as example:

    $ scmServer.py queue provisioners -j http://localhost:43100/ComputeQueue/v1
  5. To get a list of queues that a provisioner is servicing, where the is one of the URLs obtained with the command above.

    $ scmServer.py provisioner -u <PROVISIONER_URL> get_queues
  6. To adjust the provisioner's run limit (how many jobs for this product can be run by the provisioner in parallel), where is one of the URLs obtained with the command above and <n> is the new limit you want to set.

    $ scmServer.py provisioner -u <PROVISIONER_URL> set -l <n>
  7. To add a queue to the list of queues a provisioner is servicing, , where is one of the URLs obtained with the command above and is the jmapi of the queue to be added:

    $ scmServer.py provisioner -u <PROVISIONER_URL> set -q <QUEUE_JMAPI>