Using the Command Line Tool to Manage Sessions
The Amazon DCV server includes a command line tool that can be used to start, stop, and view Amazon DCV sessions.
Using the command line tool on a Windows Amazon DCV Server
To use the command line tool on a Windows Amazon DCV server, run the commands from the Amazon DCV installation directory or add the Amazon DCV directory to the PATH environment variable. If you add the Amazon DCV directory to the PATH environment variable, you can use the commands from any directory.
To use the command line tool from the Amazon DCV installation directory
Navigate to the folder where the dcv.exe
file is located, C:\Program Files\NICE\DCV\Server\bin\
by
default, and open a command prompt window.
Or you can specify the full path when running a command from a different directory.
"
C:\>
Program Files\NICE\DCV\Server\bin\dcv.exe" list-sessions
To add the Amazon DCV directory to the PATH environment variable
-
In File Explorer, right-click This PC and choose Properties.
-
Choose Advanced system settings.
-
On the Advanced tab, choose Environment Variables.
-
In the System variables section, select the Path variable and choose Edit.
-
Choose New and specify the full path to the
bin
folder in the Amazon DCV installation directory (for example,C:\Program Files\NICE\DCV\Server\bin\
). -
Choose OK and close the Environment Variables window.
Using the command line on a Linux Amazon DCV Server
On Linux Amazon DCV servers, the command line tool is automatically configured in the $PATH
environment variable. You can
use the tool from any folder. Open a terminal window and enter the command to run.
Command line tool usage
The following table covers the available command line tool options. This list can be retrieved by using --help
when calling dcv
.
For more information on how to use each command, pass in --help
after the command you would like usage information for.
For example: dcv create-session --help
.
Command | Description |
---|---|
|
Create a new DCV session |
|
Close an active DCV session |
|
Describe a DCV session |
|
List the active DCV sessions |
|
List the client connections for a DCV session |
|
Close an active client connection |
|
Get a screenshot of the DCV console |
|
Set display layout of an active DCV session |
|
Set name for a DCV session |
|
Set permissions of an active DCV session |
|
Set storage root of an active DCV session |
|
Force reloading the licenses for all the running sessions |
|
Get server configuration |
|
List the DCV endpoints |
|
Set server configuration |
|
Show the version of DCV |
|
Show help |