Documente Academic
Documente Profesional
Documente Cultură
Installation
Commands
Help
Login
Logout
GetQueues
RunMAPDL
RunFluent
RunAedt
JobInfo
GetOutputs
JobState
deleteJob
Monitor
Installation
The ANSYS Cloud Command Line Interface is distributed with the ANSYS Cloud installation
downloadable from https://cloud.ansys.com/downloads.
With the Windows Installation the ANSYS Cloud CLI is directly accessible for a command
windows with the simple command : ansyscloudcli
Commands
Help
> AnsysCloudCLI -h
Or
> AnsysCloudCLI --help
List all commands. In the same way, for any command the help can be displayed.
Login
> AnsysCloudCLI login
Allows the user to login to his account.
The token generated is saved so next commands can use it to connect again.
Logout
> AnsysCloudCLI logout
GetQueues
> AnsysCloudCLI getQueues [-p <product>] [-v <version>] [-r
<region>]
Lists all allowed queues. Can be filtered per product, version or region.
Example:
> AnsysCloudCLI getQueues -v 192 -r eastus
Version 1.0.1902.7
List of queues:
Small_EastUS_Fluent_192
Medium_EastUS_Fluent_192
Large_EastUS_Fluent_192
Small_EastUS_MAPDL_192
Medium_EastUS_MAPDL_192
Large_EastUS_MAPDL_192
RunMAPDL
> AnsysCloudCLI.exe runMAPDL -j <job name> -q <queue> -i <input
file> -v <solver version> [-n <num nodes>] [-m <max cores>] [-w
[-d <result file>]] [-f <filter>
This command has to be run in the folder where the input files are.
● -j: job name
● -q: name of the queue (cf. GetQueues)
● -v target solver version (192, 2019R1)
● -i: name of the input file for the solver
● -w: (optional) wait end of the job
● -d: (optional) download the output folder at the end
● -f: (optional) filter the files sent to VMs for the solve. By default, all the files of the
current folder are sent. Filter accepts wildcard and more than one can be added
separated by ; :
-f “.*[.]dat;.*[.]txt”
Example:
RunFluent
This command has to be run in the folder where the input files are.
> AnsysCloudCLI.exe runFluent -j <job name> -q <queue> -i <input
file> -v <solver version> [--jou <journal>] [-n <num nodes>] [-m
<max cores>] [-w [-d <dest folder>] [-f <filter>]
● -j: job name
● -q: name of the queue (cf. GetQueues)
● -i: name of the input file for the solver
● --jou: journal to execute (if set, -i is not used).
● -2d: switch to 2ddp (by default the solve is done using 3ddp)
● -v target solver version (192, 2019R1)
● -w: (optional) wait the job to finish
● -d: (optional) download the result files at the end into the provided folder.
● -f: (optional) filter the files sent to VMs for the solve. By default, all the files of the
current folder are sent. Filter accepts wildcard and more than one can be added
separated by ; :
-f “.*[.]dat;.*[.]txt”
Example:
RunAedt
This command has to be run in the folder where the input files are.
> AnsysCloudCLI.exe runAedt -j <job name> -q <queue> -v <solver
version> -i <input file> [-n <num nodes>] [-m <max cores>] [-w [-d
<dest folder>]] [-f <filter>
Example:
> AnsysCloudCLI.exe runAedt -j AedtCLI -r westeurope -i
viawizard.aedtz -p "D2v2 182" -v 182 -n 1 -f viawizard.aedtz -w -d
output
JobInfo
> AnsysCloudCLI.exe jobInfo [-j <job name> | -i <job id>]
If more than one job have this job name, only the list of the job will be printed with their ids.
In this case, you need to issue a new command with the id of the job to display more info.
GetOutputs
> AnsysCloudCLI.exe getOutputs [-j <job name> | -i <job id>] [-f
<filter>]
JobState
> AnsysCloudCLI.exe jobState [-j <job name> | -i <job id>]
deleteJob
> AnsysCloudCLI.exe deleteJob [-j <job name> | -i <job id>]
Delete a job.
Monitor
> AnsysCloudCLI.exe monitor [-j <job name> | -i <job id>] [-t
<task name>] [-l <last line count>] [-n <number of lines>] [-p
<last position>]
Example:
Retrieve the 10 last lines for the WorkflowState output for job JobCLI:
> AnsysCloudCLI.exe monitor -j JobCLI -t WorkflowEventOrState -l
10
Interrupt
> AnsysCloudCLI interrupt -i <job id> [--hard]
● -i : job id
● --hard: hard interrupt (no data saved), optionnal
Share Job
> AnsysCloudCLI sharejob [-j <job name> | -i <job id>] [-e email]
● -j | --job <name> : Job name
● -i | --id <jobId> : Job Id
● -e | --email <email>: Email to share with.