DxEnterprise DxCLI Admin Guide
Introduction
This document contains the list of DxCLI commands used for DxEnterprise administration.
Commands
activate-server
Description
Activates the server via internet using the provided license key. See get-license-request
for offline node activation.
Syntax
dxcli activate-server <license_key> [node_name][,...] <--accept-eula>
Parameters
Name | Description | Type | Required |
---|---|---|---|
license_key | The license key. | String | True |
node_name | The name of the node. Leaving this parameter blank will activate the current node. | String | False |
,... | Comma-delimited list of node names for multiple activations. | False | |
--accept-eula | Must be specified to accept the end-user license agreement. | String | True |
Examples
dxcli activate-server "AAAA-BBBB-CCCC-DDDD" --accept-eula
dxcli activate-server "AAAA-BBBB-CCCC-DDDD" "node1,node2,node4" --accept-eula
add-addressfilter
Description
Adds an address filter for accepting or denying connections from specific IP addresses or subnets.
Syntax
dxcli add-addressfilter <filter_name> <address>,<action>[|...] <default_action>
Parameters
Name | Description | Type | Required |
---|---|---|---|
filter_name | The name of the filter. | String | True |
address | The IP address or subnet. | String | True |
action | Whether or not to accept or deny the IP address or subnet. Must be accept or deny . | String | True |
|... | Pipe-delimited list of additional address filters. | False | |
default_action | Sets the default action for the address filter to accept all or deny all connections outside of the specified IP or subnet from the previous parameter. Must be accept or deny . | String | True |
Example
dxcli add-addressfilter "filter1" "10.1.1.0,accept|10.1.2.0,accept" "deny"
add-ags
Description
Adds an availability group to a Vhost. The third positional parameter is a pipe-delimited list of configuration settings for the availability group, and can be repeated for each member being added to the AG. The third positional parameter must be passed in as a single quoted string.
Syntax
dxcli add-ags <vhost_name> <ags_name> <node_name|instance_name|sql_login|sql_password|mirror_port|availability_mode|[tunnel_port]> [...] [ag_options] [cluster_mode]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. For an extended Vhost (exVhost), then supply VHOST:<vhost_name> . | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if utilizing an exVhost, using a stored credential, or using the LocalSystem account (Windows only). | String | True |
sql_password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
mirror_port | The mirroring port to use for the availability group (default is 5022). | Int | True |
availability_mode | Synchronous_commit, asynchronous_commit or configuration_only. | String | True |
tunnel_port | The port to be used for tunnel connections (for cross-site, cross-domain replication). If set to 0, DxEnterprise will automatically assign a port. | Int | False |
... | The third positional parameter can be repeated to add multiple cluster members to the availability group. | False | |
ag_options | Additional options to pass in when creating the availability group, such as "CONTAINED". | String | False |
cluster_mode | Set the cluster type to EXTERNAL (automatic failover) or NONE (no automatic failover). Default (blank) is EXTERNAL. | String | False |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing Availability Groups.
Examples
dxcli add-ags "vhost1" "ags1" "node1|MSSQLSERVER|||5022|SYNCHRONOUS_COMMIT" "node2|MSSQLSERVER|||5022|SYNCHRONOUS_COMMIT"
dxcli add-ags "vhost1" "ags1" "node1|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==|5022|SYNCHRONOUS_COMMIT|0" "node2|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==|5022|SYNCHRONOUS_COMMIT|50222" "CONTAINED"
dxcli add-ags "vhost1" "ags1" "node1|MSSQLSERVER||cred:credential1|5022|SYNCHRONOUS_COMMIT" "node2|MSSQLSERVER||cred:credential2|5022|SYNCHRONOUS_COMMIT"
dxcli add-ags "exvhost1" "ags1" "VHOST:vhost1|MSSQLSERVER||cred:credential1|5022|SYNCHRONOUS_COMMIT" "VHOST:vhost2|MSSQLSERVER||cred:credential2|5022|SYNCHRONOUS_COMMIT"
add-ags-databases
Description
Adds one or more databases to an availability group.
Syntax
dxcli add-ags-databases <vhost_name> <ags_name> <db_name>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
db_name | The name of the database. | String | True |
,... | Comma-delimited list of additional databases. | False |
Example
dxcli add-ags-databases "vhost1" "ags1" "db1,db2,db3"
add-ags-listener
Description
Adds a listener to an availability group.
Syntax
dxcli add-ags-listener <vhost_name> <ags_name> <listener_port>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
listener_port | The port number for the listener. | Int | True |
Example
dxcli add-ags-listener "vhost1" "ags1" 55001
add-ags-node
Description
Adds a single node into a Vhost that has an availability group.
Syntax
dxcli add-ags-node <vhost_name> <ags_name> <node_name|instance_name|sql_login|sql_password|mirror_port|availability_mode|[tunnel_port]>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. For an extended Vhost (exVhost), then supply VHOST:<vhost_name> . | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if utilizing an exVhost, using a stored credential, or using the LocalSystem account (Windows only). | String | True |
sql_password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
mirror_port | The mirroring port to use for the availability group (default is 5022). | Int | True |
availability_mode | Synchronous_commit, asynchronous_commit or configuration_only. | String | True |
tunnel_port | The port to be used for tunnel connections (for cross-site, cross-domain replication). If set to 0 DxEnterprise will automatically assign a port. | Int | False |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing Availability Groups.
Example
dxcli add-ags-node "vhost1" "ags1" "node2|MSSQLSERVER|||5022|SYNCHRONOUS_COMMIT"
dxcli add-ags-node "vhost1" "ags1" "node2|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==|5022|SYNCHRONOUS_COMMIT|50222"
dxcli add-ags-node "vhost1" "ags1" "node2|MSSQLSERVER||cred:credential2|5022|SYNCHRONOUS_COMMIT"
dxcli add-ags-node "exvhost1" "ags1" "VHOST:vhost2|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==|5022|SYNCHRONOUS_COMMIT|50222"
add-authenticator
Description
Adds an authenticator to be used for RBAC.
Syntax
dxcli add-authenticator <auth_name> <auth_type> <auth_server> <distiguished_username> <password> [filter_options]
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The required value is admin . Only a single authenticator is currently supported. | String | True |
auth_type | Only the authenticator type of LDAP is currently supported. | String | True |
auth_server | The hostname or IP address of the LDAP server. | String | False |
distinguised_username | The Distinguished Name (DN) of the user that has authorization to query the LDAP server. Leave blank if using a stored credential. | String | False |
password | The password for the DN user. If using a stored credential, supply cred:<credential_name> . | String | False |
To configure a read-only user without LDAP, see the set-observer-password
command to set a password for the observer login.
The get-aduser <username>
PowerShell command can be used to obtain the distinguished name of a specific user.
Example
dxcli add-authenticator "admin" "LDAP" "10.10.10.21" "CN=user1,CN=Users,DC=test,DC=domain,DC=com" "Pa$$w0rd"
dxcli add-authenticator "admin" "LDAP" "10.10.10.21" "" "cred:ldap_admin"
add-client
Description
Adds a DxConnect client to the cluster.
Syntax
add-client <client_name> <client_password> [client_description] [max_session_count] [group_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
client_name | The name of the client. | String | True |
client_password | The password for the client. Can be encrypted using dxcli encrypt-text . | String | True |
client_description | The description for the client. | String | False |
max_session_count | The maximum number of active sessions for the client. | Int | False |
group_name | The name of the client group to add the client to. | String | False |
Example
dxcli add-client "client1" "Pa$$w0rd" "Accounting users" 25 "group1"
add-client-group
Description
Adds a client group consisting of one or more clients.
Syntax
dxcli add-client-group <group_name> [client_name][,...] [group_description]
Parameters
Name | Description | Type | Required |
---|---|---|---|
group_name | The name of the group. | String | True |
client_name | The name of the client to add to the client group. Running the command without a client will create an empty client group. | String | False |
,... | Comma-delimited list of additional clients to add to the client group. | False | |
group_description | The description for the group. | String | False |
Example
dxcli add-client-group "group1" "client1,client2,client3"
add-contact
Description
Adds contact to Contact Address Book.
Syntax
dxcli add-contact <username> <email>
Parameters
Name | Description | Type | Required |
---|---|---|---|
username | The name of the user. | String | True |
The email address of the user. | String | True |
Example
dxcli add-contact "user1" "user1@mail.com"
add-cred
Description
Adds a stored credential to the cluster. The stored credential can either be a kerberos ticket cache or a username and password.
Syntax
dxcli add-cred <cred_name> <cred_type [kerberos|login]> <[<ticket_cache>|<username> <password>]>
Parameters
Name | Description | Type | Required |
---|---|---|---|
cred_name | The name of the stored credential. | String | True |
cred_type | Either "kerberos" or "login". | Switch | True |
ticket_cache | Kerberos type only. The kerberos ticket cache in base64. | String | False |
username | Login type only. The name of the user. | String | False |
password | Login type only. The password for the user. | String | False |
Example
dxcli add-cred "credential1" "login" "user1" "Pa$$w0rd"
dxcli add-cred "credential2" "kerberos" "BQQADAABAAgAAAAAAAAAAAAAAAEAAAABAAAAD1FBVEVTVC5ESDJJLkNPTQAAAAlzcWxfYWRtaW4AAAABAAAAAQAAAA9RQVRFU1QuREgySS5DT00AAAAJc3FsX2FkbWluAAAAAgAAAAIAAAAPUUFURVNULkRIMkkuQ09NAAAABmtyYnRndAAAAA9RQVRFU1QuREgySS5DT00AEgAAACC8IOSsAuBwTUC5o2KdXA3sS9etDYcxI9FTf0QkG/QwVGMJH/1jCR/9Ywmsl2MSWncAQOEAAAAAAAAAAAAAAAAEPWGCBDkwggQ1oAMCAQWhERsPUUFURVNULkRIMkkuQ09NoiQwIqADAgECoRswGRsGa3JidGd0Gw9RQVRFU1QuREgySS5DT02jggPzMIID76ADAgESoQMCAQKiggPhBIID3aJudXHdpUyVmTdWft+vBZPIk9691bt+mNCg/wn1VZt+RZ2K0yWD8KEBu+52puF7N3fjYQ3rcfNnRtJCBWKzNR5/UZ/Qoizy3YUmIldickKPp9toeGsK81joGXd4G+DPRLvxBETfCBwp6+bl7Jkjwcq+kdTUTd3qX0U4g7ixz3FcFQuG4kFwAY8ywSO/EsIQM1HDNaPVh7AloVm8zONh6YV4m2C3UPdvoWod0ZKZJbkxMruzpE9PDGnlc3u9yMvMEuaNRRNp/1XmFtKt2W7oxne6miZL2TToIkVyJr5H+zK4bkC3zoHhUG7YmYKY8ak5DPJwsjizv7aHEcyyHoXzD5noSHi9tRrMcuHCfc0LcrcPEIMSvg06aIWwVcMhypv7ljc781yLF44vnBdVtOROPe8GvZOHYE2cr6bwkNQKWcgyEct97aE+0oXzl1se40KRBNiVEqyEOn6IsfJjiu0S9rmAMHLmbI2PXaxeY/7+rxX4uY8Zela9RFYUvxjTdMyZQS7/slTz6vPoSX8gNYfh5bfi4lJjZwAik1enqYtheoA7STLP0beJp9TOBeSN4ze7U9/CchYh9TvdBxj13bcDcH6VUu9RweN+2FgsMN2Xj0d3WRqfX8kKJgdFzP2WjiaCzIetwlvyBmQT7N8WdJxEyOQOtTZgTXYJjWjqi+B1nuiL3n6z9Lczfvg0zTWsyHJPFjfCsqOl1PWckU/VbpBHPv4E/fhFriBHb9LqTRSvAwPpSrjBQUzQ5XxRubWRf1HiA1R43ysBDB2z+qDPmvBHNjfUdTD+GyIRFLDLu3d0pRDOqo8sIFoi4qKV5gDQgTTqcwmE4UB4VfOpVpZ/LnacqFaG9qVs97Gl97G+t+kV1hOLMlqH+A9o9Ii4LRTN5CWXEOdrnEFMqzSCH8H3oXtFhznoxJWD7SxBSD4Q2QlnPAi+kEwA+IECzAMPCBg3Zp593Y+nMkC3NlKnwe1B79cT/R5c7GUHtWl6m0nILgSjKR12vUzCo4PwcKPkRCyF1aJ8dIroGu+SZFCf4U3BAur5O9SnaFHo3awEbKPF/joiHo/vamybvMtDqRKSiujeGBbysm5F0JI6iX3UelwC5ZxH+xUwlLIECYDn2BvenFBuZajXGwD3Yqj8t2OfNi66rJDzIPkwyp6us6qZ4sVtN1QFgRsM7T5Wpqx2UePBZGprYXzlMd/XcCxRp93aI4twagmKecvK4eJK5bniOUvP+ftunauVmXTgV1YAuZsB+oUI3qxYVs/PicMeExphfoqBFzFYdTj75kkN6sgbJaRc156ZWTEhzvGwxU823JzoD+J7AAAAAAAAAAEAAAABAAAAD1FBVEVTVC5ESDJJLkNPTQAAAAlzcWxfYWRtaW4AAAAAAAAAAwAAAAxYLUNBQ0hFQ09ORjoAAAAVa3JiNV9jY2FjaGVfY29uZl9kYXRhAAAAB3BhX3R5cGUAAAAma3JidGd0L1FBVEVTVC5ESDJJLkNPTUBRQVRFU1QuREgySS5DT00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEyAAAAAA=="
add-disk
Description
Adds a disk to DxEnterprise management.
Syntax
dxcli add-disk <disk_id> [disk_label]
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
disk_label | The label for the disk. | String | False |
Example
dxcli add-disk "50842140-be32-d3a7-45d4-3999bf3ad3a8" "Disk 1"
add-docker
Description
Adds a Docker container the Vhost.
Syntax
dxcli add-docker <vhost_name> <container_name> <image_name> [docker_params]...
When passing docker run
parameters through dxcli
, the parameters need to be formatted. This formatting follows the pattern:
<option>|<value>|<encryption>
The <option>
is a parameter given in docker run --help
, or also on Docker's website. For instance, use -p
to map ports to the host, or -v
to mount volumes.
The <value>
is the value for the Docker parameter. Using the above example, -p
would now look like -p|11433:1433
.
The <encryption>
is a bool that specifies whether the <value>
should be stored encrypted or unencrypted in DxEnterprise's configuration files. Sensitive information such as passwords and usernames can be encrypted using dxcli encrypt-text
. Note that the entire value must be encrypted (i.e, dxcli encrypt-text SA_PASSWORD=Pa$$W0rd
).
DxEnterprise decrypts these values before passing them into the container. These values are still visible in plain text when inspecting the container using docker inspect
. For example, the final string for a port mapping might look like -p|11433:1433|false
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
container_name | The name of the container. | String | True |
image_name | The name of the image. | String | True |
docker_params | Additional docker run parameters. For more information, view Docker documentation. | String | False |
Example
dxcli add-docker "vhost1" "centos1" "mcr.microsoft.com/mssql/server:2022-latest" "-p|11433:1433|false" "-e|ACCEPT_EULA=Y|false" "-e|CDGvv+sAhk1YXCeceIN3AyHbmFZ1jfxpJhENAm8FWbM=|true"
add-instance
Description
Adds a SQL instance to a Vhost.
Syntax
add-instance <vhost_name>\<instance_name> <instance_port> <sql_data_path> <sql_log_path> [sql_login] [sql_password] [keep]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the SQL instance. | String | True |
instance_port | The port to be used for the instance. | Int | True |
sql_data_path | The path for the SQL data. | String | True |
sql_log_path | The path for the SQL logs. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if using a stored credential, or using the LocalSystem account (Windows only). | String | True |
sql_password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
keep | Specify this parameter to keep the current SQL data. | Switch | False |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing HA Instances.
Example
dxcli add-instance "vhost1\instance1" 30002 "C:\mounts\sql\data" "C:\mounts\sql\logs" "sa" "qC0Tfb6Px/bfFDA5PTSDlA=="
dxcli add-instance "vhost1\instance1" 30002 "C:\mounts\sql\data" "C:\mounts\sql\logs"
dxcli add-instance "vhost1\mssqlserver" 30002 "/mnt/sql/data" "/mnt/sql/logs" "sa" "qC0Tfb6Px/bfFDA5PTSDlA=="
dxcli add-instance "vhost1\mssqlserver" 30002 "/mnt/sql/data" "/mnt/sql/logs" "" "cred:credential1"
add-node
Description
Adds a node to a Vhost.
Syntax
dxcli add-node <vhost_name> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
node_name | The name of the node. Comma (,) seperated list for multiples. | String | True |
Example
dxcli add-node "vhost1" "node1,node2"
add-policy
Description
Add a policy to a cluster resource. See the boxes below for constraints on each policy type.
This cmdlet defines a SYSTEM/PERF/ALLOC/FILTER policy.
Policy Types
SYSTEM
The SYSTEM policy sends alerts when a node is down.
This policy type can only be attached to ObjectName "node" and CounterName "system-down".
PERF
The PERF policy send alerts when a performance threshold is reached.
This policy type can be attached to:
ObjectName- node
- instance
- service
- Docker
CounterName
- processor-consumption
- system-free-memory
- system-networking
- system-disk-io
- docker-processor
- docker-working-set
- docker-networking
- docker-disk-io
- instance-processor
- instance-working-set
- instance-networking
- instance-disk-io
- service-processor
- service-working-set
- service-networking
- service-disk-io
ALLOC
The ALLOC policy sends alerts when an allocation threshold is reached.
This policy type can be attached to:
ObjectName- node
- instance
- service
- Docker.
CounterName
- alloc-docker-processor
- alloc-docker-memory
- alloc-docker-disk
- alloc-docker-network
- alloc-instance-processor
- alloc-instance-memory
- alloc-instance-disk
- alloc-instance-network
- alloc-node-processor
- alloc-node-memory
- alloc-node-disk
- alloc-node-network
- alloc-service-processor
- alloc-service-memory
- alloc-service-disk
- alloc-service-network
FILTER
Global filter alert type policy.
This policy type can be attached to ObjectName:
- node
- instance
- service
- Vhost
- AGS
- Docker
Syntax
add-policy <policy> <GUID> [description] <counter> <object> <threshold> <email> <script_path> <priority> [filter_options]
Parameters
Name | Description | Type | Required |
---|---|---|---|
policy | The type of policy to use. Can be SYSTEM, PERF, ALLOC, or FILTER. | String | True |
GUID | The globally unique identifier (GUID) of the policy. | String | False |
description | A description for the policy. | String | False |
counter | The performance counter, or type of resource, to be monitored (e.g. System-Disk-Io, System-Down, System-Free-Memory, System-Networking). | String | True |
object | The node, instance, service, Vhost, or Docker to attach the policy to. | String | True |
threshold | When to invoke alert i.e. 99 (where resource hits 99%). | Int | True |
The email address to send the alert to. | String | True | |
script_path | The full path to the script to invoke. | String | True |
priority | The priority level 0-5. | Int | True |
filter_options | Enables the policy when set to true. | String | False |
Example
dxcli add-policy "PERF" "f7d70673-dde1-4b71-84a7-ae7324e4ace4" "test" "System-Disk-Io" "node1" 99 "user1@email.com" "c:\scripts\script.ps1" 0 "true"
add-service
Description
Add a service to a Vhost.
Syntax
dxcli add-service <vhost_name> <service_name> [description] [assume_vhost_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
description | The description for the service. | String | False |
assume_vhost_name | Whether or not to run the service under the Vhost name. | Bool | False |
Example
dxcli add-service "vhost1" "spooler"
add-service-registry
Description
Add registry management to a virtualized service.
Syntax
dxcli add-service-registry <vhost_name> <service_name> <reg_key> <reg_path>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
reg_key | The full path to the registry key. | String | True |
reg_path | The full path of where the service reg_key is backed up. It is recommended to put this on a shared volume for the Vhost. | String | True |
Example
dxcli add-service-registry "vhost1" "service1" "HKLM\Software\service1" "c:\mounts\volume1\service1"
add-share
Description
Add a file share to a Vhost.
Syntax
dxcli add-share <vhost_name> <share_name>=<share_path> [/remarks:"text"] [/unlimited|/users:number] [/cache:<mode>] [/grant:<username>,<READ|CHANGE|FULL>] [...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
share_name | The name of the file share. | String | True |
share_path | The full path to the shared folder. | String | True |
/remarks:"text" | The description for the file share. | String | False |
/unlimited|/users:number | The number of users to allow. | String | False |
/cache:mode | Sets the caching options. Can be Manual, Documents, Programs, BranchCache, or None. | String | False |
/grant:username,READ|CHANGE|FULL | Grants the user privileges. | String | False |
... | Repeat the /grant:username parameter for each user that requires a grant. Default is READ if no grant is specified for the user. | String | False |
Example
dxcli add-share "vhost1" "share1=c:\mount1\share1" /remarks:"This is share1" /unlimited /cache:none /grant:everyone,read /grant:user1,full
add-smtp
Description
Add SMTP server configuration.
Syntax
dxcli add-smtp <server_name> <server_port> <email_address> <password> <protocol> <encrypted_password:true|false> <username>
Parameters
Name | Description | Type | Required |
---|---|---|---|
server_name | The name or IP address of the server. TLS protocol must provide the server name that is on the certificate. | String | True |
server_port | The port for the server. | Int | True |
email_address | The user email address. | String | True |
password | The password for the email account. | String | True |
protocol | Which email protocol to use. Acceptable values are NONE, TLS, and SSL. | String | True |
encrypted_password | Whether or not the supplied email password has been encrypted using dxcli encrypt-text . The default is false. | Bool | False |
username | The name of the user. | String | True |
Example
dxcli add-smtp "server.mail.com" 555 "user1@mail.com" "qC0Tfb6Px/bfFDA5PTSDlA==" "TLS" "true" "user1"
add-tunnel
Description
Add a tunnel to the cluster.
Syntax
dxcli add-tunnel <tunnel_name> <enabled> <destination_node_name> <target_address>:<target_port> <origin_node>,<origin_address>:<origin_port>[/address_filter][|...] [vhost_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
tunnel_name | The name of the tunnel. | String | True |
enabled | Enable the tunnel. | Bool | True |
destination_node_name | The name of the destination node. | String | True |
target_address | The target IP address or hostname of the tunnel destination. | String | True |
target_port | The port number for the target. | Int | True |
origin_node | The name of the origin node. This is the node where the tunnel listener will be active. | String | True |
origin_address | The IP address the origin will bind to. Can be set to 0.0.0.0 to allow connections from any IP address with network access, or 127.0.0.1 to only allow connections from the node itself. | String | True |
origin_port | The port number for the origin address. | Int | True |
address_filter | The name of the address filter to associate with the tunnel. See dxcli add-addressfilter for more information. | String | False |
|... | Pipe-delimited list of additional origins. | False | |
vhost_name | The name of the Vhost to associate with the tunnel. | String | False |
Example
dxcli add-tunnel "tunnel1" "true" "node1" "10.1.200.62:30004" "node2,0.0.0.0:30004/FILTER1|node3,127.0.0.1:30004/FILTER2" "VHOST1"
add-tunnel-clients
Description
Add clients and/or client groups to an existing tunnel.
Syntax
dxcli add-tunnel-clients <tunnel_name> <client_name>:<ip_address>:<port> <group_name>:ip_address>:<port>
Parameters
Name | Description | Type | Required |
---|---|---|---|
tunnel_name | The name of the tunnel. | String | True |
client_name | The name of the client to add to the tunnel. | String | True |
group_name | The name of the group to add to the tunnel. | String | True |
ip_address | The IP address the client or client group uses to connect to the tunnel. | String | True |
port | The port the client or client group uses to connect to the tunnel. | String | True |
Example
dxcli add-tunnel-clients "tunnel1" "client1:127.0.0.1:30001" "group1:127.0.0.1:40001"
dxcli add-tunnel-clients "tunnel1" "client1:127.0.0.1:30001,client2:127.0.0.1:40001"
dxcli add-tunnel-clients "tunnel1" "" "group1:127.0.0.1:40001"
add-witness
Description
Add a network fileshare witness.
This command has been superseded by dxcli set-witness
. Do not use this command for Azure Blob Storage.
Syntax
dxcli add-witness <share_path>[,...] <username> <password>
Parameters
Name | Description | Type | Required |
---|---|---|---|
share_path | The UNC path of the network share. | String | True |
,... | Comma-delimited list of additional UNC paths. | False | |
username | The name of the user. Leave blank if using a stored credential. | String | True |
password | The password of the user (recommended to encrypt using dxcli encrypt-text ). If using a stored credential, supply cred:<credential_name> . | String | True |
Examples
dxcli add-witness "\\server1\myshare1" "user1" "6pnFaDrRS+W/F+dkRuPKAA=="
dxcli add-witness "\\server1\myshare1" "" "cred:credential1"
dxcli add-witness "\\server1\myshare1,\\server2\myshare2" "user1" "6pnFaDrRS+W/F+dkRuPKAA=="
dxcli add-witness "\\mystorage.file.core.windows.net\azshare1" "mystorage" "/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33=="
attach-ags
Description
Attach an existing availability group to a Vhost. Make sure the existing primary node for the AG is also the current primary node for the Vhost.
Syntax
dxcli attach-ags <vhost_name> <ags_name> <node_name|instance_name|sql_login|sql_password|mirror_port|availability_mode|> <...>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if utilizing an exVhost, using a stored credential, or using the LocalSystem account (Windows only). | String | True |
sql_password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
mirror_port | The mirroring port to use for the availability group (default is 5022). | Int | True |
availability_mode | Synchronous_commit, asynchronous_commit or configuration_only. | String | True |
... | Repeat third positional parameter set to add the other availability group members to the Vhost. | True |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing Availability Groups.
Example
dxcli attach-ags "vhost1" "ags1" "node1|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==|5022|SYNCHRONOUS_COMMIT" "node2|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==|5022|SYNCHRONOUS_COMMIT"
dxcli attach-ags "vhost1" "ags1" "node1|MSSQLSERVER||cred:credential1|5022|SYNCHRONOUS_COMMIT" "node2|MSSQLSERVER||cred:credential2|5022|SYNCHRONOUS_COMMIT"
clean-disk
Description
Cleans the disk of all partitions, volumes, and any hidden sector information.
All volumes and data will be destroyed by running this command.
Syntax
dxcli clean-disk <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli clean-disk "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
clear-otpk
Description
Clears and invalidates any generated One-Time PassKey for the cluster.
Syntax
dxcli clear-otpk
Parameters
None
Example
dxcli clear-otpk
clear-reservation
Description
This command removes all SCSI-3 persistent reservations on the selected disk(s).
Clearing the reservation on a disk can cause data corruption if the disk is accessible to nodes outside of the cluster.
Syntax
dxcli clear-reservation <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli clear-reservation "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
cluster-add-vhost
Description
Adds a virtual host (Vhost) or extended virtual host (exVhost) to the cluster.
Syntax
dxcli cluster-add-vhost <vhost_name> [virtual_ip][,...] <member_name>[,...] [autofailback] [priority[1-5]] [ilb_port][,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of Vhost or exVhost. | String | True |
virtual_ip | The virtual IP for the Vhost. If no IP address is required, empty quotes "" should be used. | String | False |
,... | Comma-delimited list of additional virtual IPs for the Vhost. | False | |
member_name | The name of the node or Vhost to add to the Vhost/exVhost. | String | True |
,... | Comma-delimited list of additional nodes or Vhosts to add to the Vhost or exVhost. | False | |
autofailback | Enables autofailback behavior. Leave blank to keep autofailback disabled. | Switch | False |
priority | The priority order of failover between Vhosts (1 is the highest and 5 is the lowest). | Int | False |
ilb_port | The port to use for internal load balancer probing. | Int | False |
,... | Comma-delimited list of additional ports to use for internal load balancer probing. | False |
Examples
dxcli cluster-add-vhost "vhost1" "" "node1,node2,node3"
dxcli cluster-add-vhost "vhost1" "10.1.200.10,10.2.100.5" "node1,node2,node3"
dxcli cluster-add-vhost "exvhost1" "10.1.200.10,10.2.100.5" "VHOST:vhost1,VHOST:vhost2,VHOST:vhost3"
dxcli cluster-add-vhost "vhost1" "10.1.200.10,10.2.100.5" "node1,node2,node3" "autofailback" 2 40001
cluster-disable-node
Description
Disables the specified node.
Syntax
dxcli cluster-disable-node <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli cluster-disable-node "node1"
cluster-enable-node
Description
Enables the specified node.
Syntax
dxcli cluster-enable-node <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli cluster-enable-node "node1"
cluster-get-docker-images
Description
Returns a list of docker images.
Syntax
dxcli cluster-get-docker-images
Parameters
None
Example
dxcli cluster-get-docker-images
cluster-get-features
Description
Returns all cluster members’ enabled features on a per-node basis, in XML.
Syntax
dxcli cluster-get-features
Parameters
None
Example
dxcli cluster-get-features
cluster-get-licenses
Description
Returns a list of licenses.
Syntax
dxcli cluster-get-licenses
Parameters
None
Example
dxcli cluster-get-licenses
cluster-get-sql-instances
Description
Returns a list of SQL instances.
Syntax
dxcli cluster-get-sql-instances
Parameters
None
Example
dxcli cluster-get-sql-instances
cluster-rehost-docker
Description
Moves a docker instance from one Vhost to another Vhost.
Syntax
dxcli cluster-rehost-docker <source_vhost>\<source_docker> <target_vhost>\<target_docker>
Parameters
Name | Description | Type | Required |
---|---|---|---|
source_vhost | The name of the source Vhost. | String | True |
source_docker | The name of the source docker. | String | True |
target_vhost | The name of the target Vhost. | String | True |
target_docker | The name of the target docker. | String | True |
Example
dxcli cluster-rehost-docker "vhost1\mydocker" "vhost2\mydocker"
cluster-rehost-instance
Description
Moves an instance from one Vhost to another Vhost.
Syntax
cluster-rehost-instance <source_vhost>\<source_instance> <target_vhost>\<target_instance>
Parameters
Name | Description | Type | Required |
---|---|---|---|
source_vhost | The name of the source Vhost. | String | True |
source_instance | The name of the source instance. | String | True |
target_vhost | The name of the target Vhost. | String | True |
target_instance | The name of the target instance. | String | True |
Example
dxcli cluster-rehost-instance "vhost1\instance1" "vhost2\instance1"
cluster-rehost-service
Description
Moves a service from one Vhost to another Vhost.
Syntax
cluster-rehost-service <source_vhost>\<source_service> <target_vhost>\<target_service>
Parameters
Name | Description | Type | Required |
---|---|---|---|
source_vhost | The name of the source Vhost. | String | True |
source_service | The name of the source service. | String | True |
target_vhost | The name of the target Vhost. | String | True |
target_service | The name of the target service. | String | True |
Example
dxcli cluster-rehost-service "vhost1\spooler" "vhost2\spooler"
cluster-remove-vhost
Description
Removes a Vhost from the cluster.
Syntax
dxcli cluster-remove-vhost <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli cluster-remove-vhost "vhost1"
cluster-resync
Description
Forces a re-synchronization of the cluster.
Syntax
dxcli cluster-resync
Parameters
None
Example
dxcli cluster-resync
cluster-set-secret
Description
Begins interactive process of setting the cluster passkey. This command cannot be run remotely.
Syntax
dxcli cluster-set-secret
Parameters
Interactive only.
Example
dxcli cluster-set-secret
cluster-set-secret-ex
Description
Sets the cluster passkey non-interactively. This command cannot be run remotely.
Syntax
dxcli cluster-set-secret-ex <passkey>
Parameters
Name | Description | Type | Required |
---|---|---|---|
passkey | The passkey for the cluster. | String | True |
Example
dxcli cluster-set-secret-ex "Pa$$Key1"
collect-log
Description
Generates logs on the specified node(s). Logs will be gathered from every node in the cluster if collect log
is run without a node_name
parameter.
Log locations
-
Windows - The logs are created in the
%ProgramFiles%\DH2i\Support
folder. -
Linux - The logs are created in the
/opt/dh2i/support
folder.
Syntax
dxcli collect-log [node_name][,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
,... | Comma-delimited list of additional nodes. | False |
Example
dxcli collect-log "NODE1,NODE2,NODE3"
copy-ags-cert
Description
Copies a certificate from one node to another.
Syntax
dxcli copy-ags-cert <From_node_name>|<instance_name>|<sql_login>|<sql_password> <To_node_name>|<instance_name>|<sql_login>|<sql_password>
Parameters
Name | Description | Type | Required |
---|---|---|---|
From_node_name | The name of the node with certificate to be copied. | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if utilizing an exVhost, using a stored credential, or using the LocalSystem account (Windows only). | String | True |
sql_password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
To_node_name | The name of the node to copy the certificate to. | String | True |
instance_name | The name of the instance. | String | True |
login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if utilizing an exVhost, using a stored credential, or using the LocalSystem account (Windows only). | String | True |
password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing Availability Groups.
Example
dxcli copy-ags-cert "node1|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==" "node2|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA=="
dxcli copy-ags-cert "node1|MSSQLSERVER||cred:credential1" "node2|MSSQLSERVER||cred:credential2"
create-volume
Description
Creates a volume on the specified disk.
Syntax
dxcli create-volume <disk_id>,<size_in_bytes> [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
size_in_bytes | The size of the volume to create in bytes. Supplying "0" will use all available space on the disk. | Int | True |
node_name | The name of the node where the disk will be brought online to create the volume. | String | True |
Example
dxcli create-volume "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf,1073741824" "node1"
deactivate-server
Description
Deactivates and clears the license on the specified node.
Syntax
dxcli deactivate-server <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli deactivate-server "node1"
delete-volume
Description
Deletes a volume on the specified disk.
All volume data will be destroyed by running this command.
Syntax
dxcli delete-volume <volume_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli delete-volume "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef"
demote-ags-node
Description
Demotes the specified replica to secondary role in the availability group.
Syntax
dxcli demote-ags-node <vhost_name> <ags_name> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. | String | True |
Example
dxcli demote-ags-node "vhost1" "ags1" "node1"
detach-ags
Description
Detaches availability group from the specified Vhost, but does not delete the configuration from SQL Server. Can be reattached using dxcli attach-ags
.
Syntax
dxcli detach-ags <vhost_name> <ags_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
Example
dxcli detach-ags "vhost1" "ags1"
edit-acl
Description
Modify an access control list (ACL) for an RBAC user.
Syntax
dxcli edit-acl <acl_path> <action {grant|revoke|replace|deny}> <username|g:group> [privileges {r|s|c|e|w|f}]
Parameters
Name | Description | Type | Required |
---|---|---|---|
acl_path | The valid values are "/" or "". Currently only the root element is supported. | String | True |
action | The action to apply. Valid values are either grant, revoke, replace or deny. | Switch | True |
username or g:group | The user or group name to apply the ACL. When specifying a group name, it must be prefixed with "g:". | String | True |
privileges | The privileges to assign the user or group. Valid values are; r=read only, s=read sensitive, c=control, e=edit, w=write and f=full control. | String | True |
Example
dxcli edit-acl "" "grant" "g:admins" "f"
dxcli edit-acl "" "revoke" "user1" "e"
encrypt-text
Description
Encrypts text for use in other DxCLI commands.
Syntax
dxcli encrypt-text <value>
Parameters
Name | Description | Type | Required |
---|---|---|---|
value | The text to be encrypted. | String | True |
Example
dxcli encrypt-text "Pa$$w0rd"
export-config
Description
Exports a client configuration file to be used on DxConnect client machines.
Syntax
dxcli export-config <file_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
file_name | The name of the file, including the .dh2i extension. The file will be created in the working directory if no directory is included as part of the filename. | String | True |
Example
dxcli export-config "dxe_client.dh2i"
extend-volume
Description
Extends a volume on the specified disk.
Syntax
dxcli extend-volume <volume_id> <disk_id>,<size_in_bytes>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | True |
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
size_in_bytes | The size to extend the volume, in bytes. | Int | True |
Example
dxcli extend-volume "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef" "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf,1073741824"
format-volume
Description
Formats the specified volume.
Formatting will delete all data on the specified volume.
Syntax
dxcli format-volume <volume_id> [fstype] [label] [block_size] [quick_format] [compression] [optional_parameters]
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | True |
fstype | The file system type. Possible types: FAT, FAT32, exFAT, EXT3, EXT4, NTFS, UDF, ReFS, or XFS. Defaults to NTFS if left blank. | String | False |
label | The label for the volume. If the label is empty, the label will default to "New DxConsole Volume" | String | False |
block_size | The block size in bytes. Possible sizes: 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536. Defaults to 4096 if left blank. | Int | False |
quick_format | Whether or not to perform a quick format. Defaults to true if left blank. | Bool | False |
compression | Whether or not to enable compression. Default to false if left blank. | Bool | False |
optional_parameters | Optional parameters from FORMAT.com or mkfs . A list of FORMAT.com parameters can be found on Microsoft docs. | String | False |
Example
dxcli format-volume "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef" "NTFS" "Volume1" "" "" "true"
format-xml
Description
Formats the command output in well-formed XML.
Syntax
dxcli <command> [parameters] | dxcli format-xml
Parameters
None
Example
dxcli list-globalsettings | dxcli format-xml
freeze-node
Description
Freezes the specified node and disables automatic failover of any active Vhosts.
Syntax
dxcli freeze-node <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli freeze-node "node1"
freeze-vhost
Description
Freezes a specified Vhost and disables automatic failover.
Syntax
dxcli freeze-vhost <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli freeze-vhost "vhost1"
generate-guid
Description
Generates a new One-Time PassKey to use with dxcli set-otpk
.
Syntax
dxcli generate-guid
Parameters
None
Example
dxcli generate-guid
get-addressfilter
Description
Returns details for the specified address filter.
Syntax
dxcli get-addressfilter <filter_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
filter_name | The name of the address filter. | String | True |
Example
dxcli get-addressfilter "filter1"
get-addressfilters
Description
Returns details for all address filters.
Syntax
dxcli get-addressfilters
Parameters
None
Example
dxcli get-addressfilters
get-ags-dbmirror
Description
Returns the details of a database mirroring endpoint for a node.
Syntax
dxcli get-ags-dbmirror <node_name> <instance_name> <sql_login> <sql_password>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The instance login. Leave blank is using a stored credential. | String | True |
sql_password | The password for the instance. If using a stored credential, supply cred:<credential_name> . | String | True |
Examples
dxcli get-ags-dbmirror "node1" "instance1" "sa" "6pnFaDrRS+W/F+dkRuPKAA=="
dxcli get-ags-dbmirror "node1" "instance1" "" "cred:sql_sa"
get-ags-detail
Description
Returns details for the specified availability group.
Syntax
dxcli get-ags-detail <vhost_name> <ags_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
Example
dxcli get-ags-detail "vhost1" "AG1"
get-alerts
Description
Returns any active alerts for the cluster.
Syntax
dxcli get-alerts
Parameters
None
Example
dxcli get-alerts
get-authenticator-group
Description
Get details about the specified group from a configured authenticator.
Syntax
dxcli get-authenticator-group <auth_name> <group>
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The name of the configured authenticator to use. The value of "admin" is currently the only supported authenticator. | String | True |
group | The name of the group to lookup from the authenticator. | String | False |
Example
dxcli get-authenticator-group "admin" "dba_group"
get-authenticator-groups
Description
Search a configured authenticator for a group pattern.
Syntax
dxcli get-authenticator-groups <auth_name> [pattern]
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The name of the configured authenticator to use. The value of "admin" is currently the only supported authenticator. | String | True |
pattern | The pattern to search for. | String | False |
Example
dxcli get-authenticator-groups "admin" "dba"
get-authenticator-user
Description
Get details about the specified user from a configured authenticator.
Syntax
dxcli get-authenticator-user <auth_name> <username>
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The name of the configured authenticator to use. The value of "admin" is currently the only supported authenticator. | String | True |
username | The name of the user to lookup from the authenticator. | String | False |
Example
dxcli get-authenticator-user "admin" "bob.smith"
get-authenticator-users
Description
Search a configured authenticator for a user pattern.
Syntax
dxcli get-authenticator-users <auth_name> [pattern]
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The name of the configured authenticator to use. The value of "admin" is currently the only supported authenticator. | String | True |
pattern | The pattern to search for. | String | False |
Example
dxcli get-authenticator-users "admin" "smith"
get-authenticators
Description
Get the configured authenticator information.
Syntax
dxcli get-authenticators
Parameters
None
Example
dxcli get-authenticators
get-client-connections
Description
Returns all active client connections.
Syntax
dxcli get-client-connections
Parameters
None
Example
dxcli get-client-connections
get-client-detail
Description
Returns the details for the specified client.
Syntax
dxcli get-client-detail <client_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
client_name | The name of the client. | String | True |
Example
dxcli get-client-detail "client1"
get-client-detail-xml
Description
Returns the details for the specified client in xml format.
Syntax
dxcli get-client-detail-xml <client_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
client_name | The name of the client. | String | True |
Example
dxcli get-client-detail-xml "client1"
get-clients
Description
Returns list of all clients and groups.
Syntax
dxcli get-clients
Parameters
None
Example
dxcli get-clients
get-cluster-disks
Description
Returns all disks under DxEnterprise management.
Syntax
dxcli get-cluster-disks
Parameters
None
Example
dxcli get-cluster-disks
get-cluster-nodes
Description
Returns the name, IP, pubkey hash, status, role, and operating system of each node in the cluster.
Syntax
dxcli get-cluster-nodes
Parameters
None
Example
dxcli get-cluster-nodes
get-contacts
Description
Returns all contacts in the address book.
Syntax
dxcli get-contacts
Parameters
None
Example
dxcli get-contacts
get-coordinators
Description
Returns which cluster member(s) are the cluster and app coordinators.
Syntax
dxcli get-coordinators
Parameters
None
Example
dxcli get-coordinators
get-coordinator-status
Description
Returns detailed status information for the cluster coordinator.
Syntax
dxcli get-coordinator-status
Parameters
None
Example
dxcli get-coordinator-status
get-counters
Description
Returns all performance counters.
Syntax
dxcli get-counters
Parameters
None
Example
dxcli get-counters
get-cred
Description
Returns all stored credentials.
Syntax
dxcli get-cred
Parameters
None
Example
dxcli get-cred
get-disk-detail
Description
Returns the specified disk details.
Syntax
dxcli get-disk-detail <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli get-disk-detail "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
get-diskinfo
Description
Returns the specified disk information.
Syntax
dxcli get-diskinfo <disk_id> [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. | String | True |
node_name | The name of the node. | String | False |
Example
dxcli get-diskinfo "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf" "node1"
get-disks
Description
Returns all disk information from all nodes. Optional, specify a node to return disk info from only that node.
Syntax
dxcli get-disks <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. Optional if disk info from only one node is desired. | String | False |
Example
dxcli get-disks
dxcli get-disks "node1"
get-docker-detail
Description
Returns the specified Docker information.
Syntax
dxcli get-docker-detail <vhost_name> <docker_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
docker_name | The name of the Docker. | String | True |
Example
dxcli get-docker-detail "vhost1" "centos1"
get-dxversion
Description
Returns the version of DxEnterprise installed on the current node.
Syntax
dxcli get-dxversion
Parameters
None
Example
dxcli get-dxversion
get-features
Description
Returns a list of features enabled on the connected node.
Syntax
dxcli get-features
Parameters
None
Example
dxcli get-features
get-globalsettings
Description
Returns any non-default configurations of global settings.
Syntax
dxcli get-globalsettings
Parameters
None
Example
dxcli get-globalsettings
get-instance-cert
Description
Returns certificate information (if exists) from a specific node and instance.
Syntax
dxcli get-instance-cert <node_name> <instance_name> <sql_login> <sql_password> <cert_file_out> <private_key_file_out> [<private_key_password>]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The login name for SQL Server. Can be left blank ("") if using system login. | String | True |
sql_password | The password for the supplied login name. Can be left blank ("") if using system login. | String | True |
cert_file_out | The name of the certificate output file. | String | True |
private_key_file_out | The name of the private key output file. | String | True |
private_key_password | The password associated with the private key. Can be left blank if using default password (DxEnterprise$ags). | String | False |
Example
dxcli get-instance-cert "node1" "instance1" "sa" "6pnFaDrRS+W/F+dkRuPKAA==" "certificate.cer" "private_key.pvk" "P@ssw0rd"
dxcli get-instance-cert "node1" "instance1" "" "" "certificate.cer" "private_key.pvk" "P@ssw0rd"
dxcli get-instance-cert "node1" "instance1" "" "" "certificate.cer" "private_key.pvk"
get-instance-detail
Description
Returns the specified instance details.
Syntax
dxcli get-instance-detail <vhost_name> <instance_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the instance. | String | True |
Example
dxcli get-instance-detail "vhost1\instance1"
get-interfaces
Description
Returns an XML output of all interfaces available for connected cluster, or a specified node if supplied.
Syntax
dxcli get-interfaces [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-interfaces "node1"
get-license
Description
Returns the license key for the specified node.
Syntax
dxcli get-license <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-license "node1"
get-license-detail
Description
Returns details for the product license including the key, product, expiration, etc. for the connected server or a specified node.
Syntax
dxcli get-license-detail [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-license-detail "node1"
get-license-request
Description
Returns a license request for a node; use in conjunction with set-license
. Go to DH2i License Activation and paste the output of get-license-request
to obtain an activation response. The response from the website is used in the set-license
command to activate the server.
Syntax
dxcli get-license-request <license_key> [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
license_key | The license of the node. | String | True |
node_name | The name of the node. | String | False |
Example
dxcli get-license-request "AAAA-BBBB-CCCC-DDDD" "node1"
get-monitored-apps
Description
Returns the information on all monitored applications.
Syntax
dxcli get-monitored-apps [node] [app_monitor]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
app_monitor | Name of the application monitor. Must be DxHealthMonitor or DxRegMonitor . | String | False |
Example
dxcli get-monitored-apps
get-monitored-dockers
Description
Returns information on monitored dockers.
Syntax
dxcli get-monitored-dockers [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-monitored-dockers
get-monitored-instances
Description
Returns information on monitored instances.
Syntax
dxcli get-monitored-instances [node] [instance_monitor]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
instance_monitor | Name of the instance monitor. Must be DxHealthMonitor or DxRegMonitor . | String | False |
Example
dxcli get-monitored-instances
get-monitored-services
Description
Returns information on monitored services.
Syntax
dxcli get-monitored-services [node] [service_monitor]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
service_montior | The name of the service monitor. Must be DxHealthMonitor or DxRegMonitor . | String | False |
Example
dxcli get-monitored-services
get-monitored-shares
Description
Returns information on monitored shares.
Syntax
dxcli get-monitored-shares [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-monitored-shares
get-node-detail
Description
Returns detailed information on the node.
Syntax
dxcli get-node-detail [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-node-detail
get-node-detail-xml
Description
Returns detailed information on the node in XML.
Syntax
dxcli get-node-detail-xml [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-node-detail-xml
get-os
Description
Returns the operating system of the connected or specified node (Linux or Windows).
Syntax
dxcli get-os [<node_name>]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli get-os node1
get-otpk
Description
Returns the current One-Time PassKey (OTPK) for the cluster and its expiration date.
Syntax
dxcli get-otpk
Parameters
None
Example
dxcli get-otpk
get-policies
Description
Returns the current policies.
Syntax
dxcli get-policies
Parameters
None
Example
dxcli get-policies
get-policy
Description
Returns information on a specific policy.
Syntax
dxcli get-policy <policy_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
policy_id | The ID of the policy. | String | True |
Example
dxcli get-policy "676db1d4-91f5-4a68-b897-9fe75c27edcc"
get-producttype
Description
Returns the product name and license features.
Syntax
dxcli get-producttype
Parameters
None
Example
dxcli get-producttype
get-reservation
Description
Returns the reservation information from a specific disk.
Syntax
dxcli get-reservation <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli get-reservation "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
get-service-detail
Description
Returns the service detail.
Syntax
dxcli get-service-detail <vhost_name> <service_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
Example
dxcli get-service detail "vhost1" "spooler"
get-sql-instances
Description
Returns the installed SQL instances.
Syntax
dxcli get-sql-instances
Parameters
None
Example
dxcli get-sql-instances
get-sql-paths
Description
Returns the SQL data and log paths.
Syntax
dxcli get-sql-paths <vhost_name>\<instance_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the instance. | String | True |
Example
dxcli get-sql-paths "vhost1\instance1"
get-tunnels
Description
Returns tunnel details.
Syntax
dxcli get-tunnels
Parameters
None
Example
dxcli get-tunnels
get-unused-driveletters
Description
Returns unused drive letters.
Syntax
dxcli get-unused-driveletters [volume_id]
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | False |
Example
dxcli get-unused-driveletters
get-vhost
Description
Returns configuration information for the given Vhost.
Syntax
dxcli get-vhost <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli get-vhost "vhost1"
get-vhosts
Description
Returns configuration information for all Vhosts.
Syntax
dxcli get-vhosts
Parameters
None
Example
dxcli get-vhosts
get-volume-detail
Description
Returns the specified volume details.
Syntax
dxcli get-volume-detail <volume_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | True |
Example
dxcli get-volume-detail "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef"
get-witness
Description
Returns the current witness settings for the cluster.
Syntax
dxcli get-witness
Parameters
None
Example
dxcli get-witness
join-cluster
Description
Begin the interactive process of joining a cluster.
Syntax
dxcli join-cluster
Parameters
Interactive only.
Example
dxcli join-cluster
join-cluster-ex
Description
Join an existing cluster non-interactively.
Syntax
dxcli join-cluster-ex <target> <passkey> <use_nat>
Parameters
Name | Description | Type | Required |
---|---|---|---|
target | The IP of the target server. | String | True |
passkey | The passkey of the target server. | String | True |
use_nat | Specifies whether or not to use the DH2i Matchmaking Service. Use match.dh2i.com as the target and an OTPK instead of a passkey. Default value is false . See dxcli set-otpk for more information. | Bool | False |
Examples
dxcli join-cluster-ex "10.2.2.29" "Pa$$key"
dxcli join-cluster-ex "match.dh2i.com" "8c478877-8d78-9757-df9b-318abe925b1e" "true"
list-globalsettings
Description
Returns a list of all available global settings in plain text, including their definitions and defaults.
Syntax
dxcli list-globalsettings
Parameters
None
Example
dxcli list-globalsettings
list-globalsettings-xml
Returns a list of all available global settings in XML, including their definitions and defaults.
Syntax
dxcli list-globalsettings-xml
Parameters
None
Example
dxcli list-globalsettings-xml
login
Description
Authenticate to the cluster for executing commands.
Syntax
dxcli login <target> <username> <password> [tls_enabled true|false]
Name | Description | Type | Required |
---|---|---|---|
target | The hostname or IP of the node to authenticate to. | String | True |
username | The name of the user. | String | True |
password | The users password. | String | True |
tls_enabled | Whether or not to use TLS encryption for the connection. Default is "False". | Bool | False |
Example
dxcli login "node1" "user1" "Pa$$w0rd" "true"
reload-monitored-apps
Description
Reload the monitors for all applications.
Syntax
dxcli reload-monitored-apps [node] [app_monitor]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
app_monitor | The name of the application monitor. Must be DxHealthMonitor or DxRegMonitor . | String | False |
Example
dxcli reload-monitored-apps
reload-monitored-dockers
Description
Reload the monitors for all dockers.
Syntax
dxcli reload-monitored-dockers [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli reload-monitored-dockers
reload-monitored-instances
Description
Reload the monitors for all instances.
Syntax
dxcli reload-monitored-instances [node] [instance_monitor]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
instance_monitor | The name of the instance monitor. Must be DxHealthMonitor or DxRegMonitor . | String | False |
Example
dxcli reload-monitored-instances
reload-monitored-services
Description
Reload the monitors for all services.
Syntax
dxcli reload-monitored-services [node] [service_monitor]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
service_monitor | The name of the service monitor. Must be DxHealthMonitor or DxRegMonitor . | String | False |
Example
dxcli reload-monitored-services
reload-monitored-shares
Description
Reload the monitors for all shares.
Syntax
dxcli reload-monitored-shares [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | False |
Example
dxcli reload-monitored-shares
relocate-systemdatabases
Description
Relocate the system databases for the specified instance. Moving master is required.
Syntax
dxcli relocate-systemdatabases <vhost_name>\<instance_name> <sql_data_path> <sql_log_path> [msdb,model,tempdb]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the instance. | String | True |
sql_data_path | The new path for instance data. | String | True |
sql_log_path | The new path for instance logs. | String | True |
msdb,model,tempdb | System databases to move along with the master database. | String | False |
Example
dxcli relocate-systemdatabases "vhost1\instance1" "C:\mount1\data" "C:\mount1\logs" "msdb,model"
remove-addressfilter
Description
Removes an address filter from the cluster.
Syntax
dxcli remove-addressfilter <filter_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
filter_name | The name of the address filter. | String | True |
Example
dxcli remove-addressfilter "filter1"
remove-ags
Description
Removes an availability group from a Vhost, and deletes the configuration from SQL Server.
Syntax
dxcli remove-ags <vhost_name> <ags_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
Example
dxcli remove-ags "vhost1" "ags1"
remove-ags-databases
Description
Removes databases from an availability group.
Syntax
dxcli remove-ags-databases <vhost_name> <ags_name> <db_name>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
db_name | The name of the database. | String | True |
,... | Comma-delimited list of additional databases to remove from the availability group. | False |
Example
dxcli remove-ags-databases "vhost1" "ags1" "db1,db2,db3"
remove-ags-listener
Description
Removes listener from an availability group.
Syntax
dxcli remove-ags-listener <vhost_name> <ags_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
Example
dxcli remove-ags-listener "vhost1" "ags1"
remove-authenticator
Description
Removes a configured authenticator.
Syntax
dxcli remove-authenticator <auth_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The name of the authenticator. | String | True |
Example
dxcli remove-authenticator "admin"
remove-client
Description
Removes a DxConnect client from the cluster.
Syntax
dxcli remove-client <client_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
client_name | The name of the client. | String | True |
Example
dxcli remove-client "client1"
remove-client-group
Description
Removes a DxConnect client group from the cluster.
Syntax
dxcli remove-client-group <group_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
group_name | The name of the group. | String | True |
Example
dxcli remove-client-group "group1"
remove-cluster-members
Description
Remove node(s) from the cluster.
Syntax
dxcli remove-cluster-members <node_name>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
,... | Comma-delimited list of addtional nodes to remove from the cluster. | False |
Example
dxcli remove-cluster-members "node1"
remove-contact
Description
Remove a contact from the address book.
Syntax
dxcli remove-contact <name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
name | The name of the contact. | String | True |
Example
dxcli remove-contact "user1"
remove-cred
Description
Removes a configured stored credential.
Syntax
dxcli remove-cred <cred_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
cred_name | The name of the credential. | String | True |
Example
dxcli remove-cred "credential1"
remove-disk
Description
Removes the specified disk from DxEnterprise management.
Syntax
dxcli remove-disk <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli remove-disk "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
remove-docker
Description
Removes a Docker container from a Vhost.
Syntax
dxcli remove-docker <vhost_name> <docker_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
docker_name | The name of the Docker container. | String | True |
Example
dxcli remove-docker "vhost1" "mongo1"
remove-globalsetting
Description
Resets a global setting to its default value.
Syntax
dxcli remove-globalsetting <setting_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
setting_name | The name of the global setting. Run dxcli get-globalsettings to list any non-default global settings. | String | True |
Example
dxcli remove-globalsetting "timeout.ping"
remove-instance
Description
Removes an instance from a Vhost.
Syntax
dxcli remove-instance <vhost_name>\<instance_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the instance. | String | True |
Example
dxcli remove-instance "vhost1\instance1"
remove-node
Description
Removes a node from the specified Vhost.
Syntax
dxcli remove-node <vhost_name> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
node_name | The name of the node. Comma (,) seperated list for multiples. | String | True |
Example
dxcli remove-node "vhost1" "node1,node2"
remove-policy
Description
Removes a policy.
Syntax
dxcli remove-policy <policy_type> <guid>
Parameters
Name | Description | Type | Required |
---|---|---|---|
SYSTEM|PERF|ALLOC|FILTER | The policy type. Can be one of SYSTEM, PERF, ALLOC, or FILTER. | String | True |
guid | The globally unique identifier (GUID) of the policy. | String | True |
Example
dxcli remove-policy "PERF" "51b753b2-0969-473e-804b-a5c4db210faf"
remove-script
Description
Removes a script.
Syntax
dxcli remove-script <object_name> <script_type> <object_type> [vhost_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
object_name | The name of the instance, Vhost, service, availability group, or Docker. | String | True |
script_type | Specifies the script type. One of prestart , poststart , prestop or poststop . | String | True |
object_type | The type of object that the script is being removed from. This can be instance , vhost , service , ags , or docker . | String | True |
vhost_name | The name of the Vhost the script is associated with. This parameter is required for the service , docker , and instance object types. | String | False |
Example
dxcli remove-script "docker1" "poststop" "docker" "vhost1"
remove-service
Description
Removes a service from a Vhost.
Syntax
dxcli remove-service <vhost_name> <service_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
Example
dxcli remove-service "vhost1" "spooler"
remove-service-registry
Description
Removes registry management from a virtualized service.
Syntax
dxcli remove-service-registry <vhost_name> <service_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
Example
dxcli remove-service-registry "vhost1" "spooler"
remove-share
Description
Removes a share from a Vhost.
Syntax
dxcli remove-share <vhost_name> <share_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
share_name | The name of the share. | String | True |
Example
dxcli remove-share "vhost1" "share1"
remove-smtp
Description
Removes the SMTP configuration.
Syntax
dxcli remove-smtp <server_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
server_name | The name of the server. | String | True |
Example
dxcli remove-smtp "server.mail.com"
remove-tunnel
Description
Remove a tunnel from the cluster.
Syntax
dxcli remove-tunnel <tunnel_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
tunnel_name | The name of the tunnel. | String | True |
Example
dxcli remove-tunnel "tunnel1"
remove-tunnel-clients
Description
Remove clients and/or client groups from an existing tunnel.
Syntax
dxcli remove-tunnel-clients <tunnel_name> <client_name>:<ip_address>:<port> <group_name:ip_address>:<port>
Parameters
Name | Description | Type | Required |
---|---|---|---|
tunnel_name | The name of the tunnel. | String | True |
client_name | The name of the client to remove from the tunnel. | String | True |
group_name | The name of the group to remove from the tunnel. | String | True |
ip_address | The IP address the client or client group uses to connect to the tunnel. | String | True |
port | The port the client or client group uses to connect to the tunnel. | String | True |
Example
dxcli remove-tunnel-clients "tunnel1" "client1:127.0.0.1:30001,client2:127.0.0.1:40001" "group1:127.0.0.1:40001"
dxcli remove-tunnel-clients "tunnel1" "" "group1:127.0.0.1:40001"
remove-witness
Description
Remove current witness settings for the cluster.
Syntax
dxcli remove-witness
Parameters
None
Example
dxcli remove-witness
rescan-disk
Description
Re-scans the specified disk.
Syntax
dxcli rescan-disk <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli rescan-disk "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
resync-ags-secondary
Description
Re-synchronizes the role of an availability group's secondary node.
Syntax
dxcli resync-ags-secondary <vhost_name> <ags_name> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. | String | True |
Example
dxcli resync-ags-secondary "vhost1" "ag1" "node2"
set-acl
Description
Sets an access control list (ACL) for a user or group to be used for RBAC.
Syntax
dxcli set-acl <acl_path> <entry {<a|d>:<u|g>:<username/group_name>:<privileges {r|s|c|e|w|f}>[:<inherit>]}>[|<entry>...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
acl_path | The valid values are "/" or "". Currently only the root element is supported. | String | True |
entry | A full set of the below parameters delimited by a colon (:). | String | True |
a or d | Allow or deny. | String | True |
u or g | User or group. | String | True |
username/group_name | The name of the user or group for which to apply the ACL. | String | True |
privileges | The privileges to assign the user or group. Valid values are; r=read only, s=read sensitive, c=control, e=edit, w=write and f=full control. | String | True |
inherit | Whether or not to allow inheritence for the privileges. Default is true. | Bool | True |
entry... | Additional sets of the above parameters delimited by pipe. | String | False |
Example
dxcli set-acl "" "a:u:bob:f:true"
dxcli set-acl "" "d:g:devs:w|d:g:admins:w"
set-ags-cred
Description
Modifies an availability group node's SQL credentials.
Syntax
dxcli set-ags-cred <vhost_name> <ags_name> <node_name|instance_name|sql_login|sql_password> [...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (user@domain.com). Leave sql_login blank if utilizing an exVhost, using a stored credential, or using the LocalSystem account (Windows only). | String | True |
sql_password | The password for the supplied login, encrypted using dxcli encrypt-text . If using a stored credential, then supply cred:<credential_name> . Leave blank if using the Local System account (Windows only). | String | True |
... | The previous parameter set can be repeated to modify the credentials for multiple availability group members in one command. | False |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing Availability Groups.
Example
dxcli set-ags-cred "vhost1" "ags1" "node1|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA==" "node2|MSSQLSERVER|SA|6pnFaDrRS+W/F+dkRuPKAA=="
dxcli set-ags-cred "vhost1" "ags1" "node1|MSSQLSERVER||cred:credential1"
set-ags-description
Description
Sets an optional description for an availability group.
Syntax
dxcli set-ags-description <ags_name> <description> [vhost_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
ags_name | The name of the availability group. | String | True |
description | The description for the availability group. | String | True |
vhost_name | The name of the Vhost. | String | False |
Example
dxcli set-ags-description "AGS1" "Description for the AG"
set-ags-node-availability-mode
Description
Modifies a replica's availability mode.
Syntax
dxcli set-ags-node-availability-mode <vhost_name> <ags_name> <node_name> <availability_mode>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ags_name | The name of the availability group. | String | True |
node_name | The name of the node. | String | True |
availability_mode | Valid values are synchronous_commit or asynchronous_commit . | String | True |
Example
dxcli set-ags-node-availability-mode "vhost1" "ags1" "replica2" "asynchronous_commit"
set-appcoordinator
Description
Assigns the application coordinator role to the specified node.
Syntax
dxcli set-appcoordinator <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli set-appcoordinator node1
set-cluster-member-addresses
Description
Sets the node’s interface(s) and protocol(s) for cluster communication.
Syntax
dxcli set-cluster-member-addresses <node_name> <ip>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
ip | IP Address, alias, or asterisk("*") to assign to the node. The asterisk (*) selection will cycle through the interfaces until a valid connection is established to the other cluster members. | String | True |
,... | Ordered, comma-delimited list for multiple IP addresses and/or aliases. The order in which the interfaces and/or protocols are ordered determine their priority, from highest to lowest. | False |
Examples
dxcli set-cluster-member-addresses "node1" "192.168.1.101"
dxcli set-cluster-member-addresses "node1" "{eth0:IPV4},172.16.1.101"
dxcli set-cluster-member-addresses "node1" "*"
set-coordinator
Description
Sets the cluster coordinator.
Syntax
dxcli set-coordinator <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli set-coordinator "node1"
set-depends
Description
Defines the start-up order of services in a list of dependencies.
When an application depends on another application, it will be started after all of the depended on applications finish starting. If a circular reference is set for the dependencies (i.e. instance1 depends on service1, and service1 depends on instance1), the system will break the dependency tree and revert back to default behavior as if there is no dependency set.
Syntax
dxcli set-depends <vhost_name> <SQL:INSTANCE|SVC:SERVICE|VFS:SHARE|DCK:DOCKER> <DEPENDS [SQL:INSTANCE|SVC:SERVICE|VFS:SHARE|DCK:DOCKER]>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
SQL:INSTANCE|SVC:SERVICE|VFS:SHARE|DCK:DOCKER | The type and name of the application that has an application dependency, listed in all caps. | True | |
DEPENDS [SQL:INSTANCE|SVC:SERVICE|VFS:SHARE|DCK:DOCKER] | A comma (,) delimited list using TYPE:NAME of the dependent applications in startup order, listed in all caps. Supply an empty string to clear. | True |
Example
dxcli set-depends "vhost1" "SQL:INSTANCE1" "SVC:SQLBROWSER"
set-description
Description
Sets the description of a managed application.
Syntax
dxcli set-description <vhost_name> <application_type>:<application_name> <description>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the vhost. | String | True |
application_type | The application type. Valid options are SQL (SQL Server), SVC (service), DCK (docker), AGS (availability group) and VFS (fileshare). | String | True |
application_name | The name of the application. | String | True |
description | The description for the application. | String | True |
Example
dxcli set-description "vhost1" "SVC:SQLBrowser" "This is the SQL Browser service"
set-docker-description
Description
Sets the description of a docker.
Syntax
dxcli set-docker-description <docker_name> <description> <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
docker_name | The name of the Docker. | String | True |
description | The description for the Docker. | String | True |
vhost_name | The name of the Vhost. | String | True |
Example
dxcli set-docker-description "mongo1" "This is a mongo container" "vhost1"
set-failback
Description
Sets the auto-failback option for a Vhost.
Syntax
dxcli set-failback <vhost_name> <enabled>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
enabled | Sets whether auto-failback is enabled or disabled on the Vhost. | Bool | True |
Example
dxcli set-failback "vhost1" "true"
set-globalsetting
Description
Sets a cluster global setting. For more information on the available global settings, please see [DxCLI Global Settings for DxEnterprise].
Syntax
dxcli set-globalsetting <setting_key> <setting_value>
Parameters
Name | Description | Type | Required |
---|---|---|---|
setting_key | The name of the global setting. | String | True |
setting_value | The value for the global setting. | String, Int, Bool | True |
Example
dxcli set-globalsetting "timeout.ping" 10
set-instance-cert
Description
Sets a specific certificate for endpoint use on the specified node and instance.
Syntax
dxcli set-instance-cert <node_name> <instance_name> <sql_login> <sql_password> <cert_file_in> <private_key_file_in> [<private_key_password>] [<overwrite:true|false>]
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
instance_name | The name of the instance. | String | True |
sql_login | The login name for SQL Server. Can be left blank ("") if using system login. | String | True |
sql_password | The password for the supplied login name. Can be left blank ("") if using system login. | String | True |
cert_file_in | The name of the certificate input file. | String | True |
private_key_file_in | The name of the private key input file. | String | True |
private_key_password | The password to encrypt the private key. Can be left blank if using default password (DxEnterprise$ags). | String | False |
overwrite | Whether or not to overwrite an existing certificate. | Bool | False |
Example
dxcli set-instance-cert "node1" "instance1" "sa" "6pnFaDrRS+W/F+dkRuPKAA==" "certificate.cer" "private_key.pvk" "P@ssw0rd" true
dxcli set-instance-cert "node1" "instance1" "" "" "certificate.cer" "private_key.pvk" "P@ssw0rd" true
dxcli set-instance-cert "node1" "instance1" "" "" "certificate.cer" "private_key.pvk"
set-instance-description
Description
Sets the description for an instance.
Syntax
dxcli set-instance-description <instance_name> <description>
Parameters
Name | Description | Type | Required |
---|---|---|---|
instance_name | The name of the instance. | String | True |
description | The description for the instance. | String | True |
Example
dxcli set-instance-description "instance1" "This is a SQL 2019 instance"
set-license
Description
Activates a node that has no internet connection; used in conjunction with get-license-request
.
Syntax
dxcli set-license <license_key> <license_response> [node_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
license_key | The license key for the node. | String | True |
license_response | The activation response string given by the Client Portal. | String | True |
node_name | The name of the node. If no node is specified, the command defaults to the currently connected node. | String | False |
Example
dxcli set-license "AAAA-BBBB-CCCC-DDDD" "2ki44uOaLK4gbfjSStNVUXNQsM4eMwjVRBNyAQrp6UABN0frE9ZiGwhP1oxLD+y6F5UDwfaZkTZqQF0JfoEpGhu8V8WAS/dkOGNkBqGv2Qi+Nuc21kV/d2p4elTZSdI2rGrL==" "node2"
set-mountpoint
Description
Sets the volume mount point.
Syntax
dxcli set-mountpoint <volume_id> <mount_point>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | True |
mount_point | The mount point path or drive letter. | String | True |
Example
dxcli set-mountpoint "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef" "C:\mount1"
set-observer-password
Description
Sets the password for the built-in read-only observer login.
Syntax
dxcli set-observer-password [password]
Parameters
Name | Description | Type | Required |
---|---|---|---|
password | The password to assign. | String | False |
Example
dxcli set-observer-password "Pa$$w0rd"
set-otpk
Description
Sets the One-Time PassKey (OTPK). The OTPK is used to join cluster members together over the internet using the DH2i MatchMaking Service. When on OTPK is set, it opens a group invitation on the DH2i MatchMaking Server. Additional members that authenticate to this group using the OTPK are then allowed to find and communicate directly with each other over the internet.
Syntax
dxcli set-otpk [expiration_date] [otpk]
Parameters
Name | Description | Type | Required |
---|---|---|---|
expiration_date | The time and date the One-Time PassKey will expire. Should be formatted as YYYY-MM-DDTHH:MM:SS. Leaving this parameter empty will default the expiration to one hour. | String | False |
otpk | The One-Time Passkey in base64. A One-Time PassKey can be generated using dxcli generate-guid . | String | False |
Example
dxcli set-otpk "2021-01-01T18:00:00" "8c478877-8d78-9757-df9b-318abe925b1e"
set-script
Description
This sets a PreStart, PostStart, PreStop or Poststop script for a Vhost, instance or service.
Syntax
dxcli set-script <object_name> <script_type> <script_path>
Parameters
Name | Description | Type | Required |
---|---|---|---|
object_name | The name of the instance, Vhost, service, availability group, or Docker. | String | True |
script_type | Specifies the script type. One of prestart , poststart , prestop or poststop . | String | True |
script_path | The full path to the script file. | String | True |
Example
dxcli set-script "vhost1" "prestart" "C:\mount1\script.ps1"
set-script-embedded
Description
Sets an embedded PreStart, PostStart, PreStop or PostStop script for a Vhost, instance or service. The advantage of having an embedded script is that it is part of the cluster configuration and is always available to all of the cluster member nodes.
Syntax
dxcli set-script-embedded <object_name> <script_type> <script_content> <script_extension>
Parameters
Name | Description | Type | Required |
---|---|---|---|
object_name | The name of the instance, Vhost, service, availability group, or Docker. | String | True |
script_type | Specifies the script type. One of prestart , poststart , prestop or poststop . | String | True |
script_content | The script content to be embedded into the cluster configuration. | String | True |
script_extension | The file extension, such as CMD , BAT , or PS1 . | String | True |
Example
dxcli set-script-embedded "vhost1" "prestart" "echo %computername%" "CMD"
set-server
Description
Interactively connect to a remote node for cluster administration.
Syntax
dxcli set-server
Parameters
Interactive only.
Example
dxcli set-server
set-server-ex
Description
Non-interactively connect to a remote node for cluster administration.
Syntax
dxcli set-server-ex <target> <passkey> [tls_enabled true|false]
Parameters
Name | Description | Type | Required |
---|---|---|---|
target | The target node. Can be | String | True |
passkey | The passkey of the target node. The cluster passkey must be set using dxcli cluster-set-secret or dxcli cluster-set-secret-ex . | String | True |
tls_enabled | Whether or not to use TLS encryption for the connection. Default is "False". | Bool | False |
Example
dxcli set-server-ex "10.2.2.29" "passkey"
set-service-description
Description
Sets the description for the service.
Syntax
dxcli set-service-description <service_name> <description> [vhost_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
service_name | The name of the service. | String | True |
description | The description for the service. | String | True |
vhost_name | The name of the Vhost. This parameter is only required if there is a service with the same name already configured on another Vhost. | String | False |
Example
dxcli set-service-description "BITS" "Background Intelligent Transfer Service" "vhost2"
set-sqlcred
Description
Sets the sysadmin credentials DxEnterprise will use for instance management.
Syntax
dxcli set-sqlcred <vhost_name>\<instance_name> <sql_login> <sql_password>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the SQL instance. | String | True |
sql_login | The username used to login to SQL Server. The SQL Server login can be any SQL login or Windows domain accounts that has been assigned the sysadmin role for the instance being managed. When supplying a domain account, the username needs to follow the UPN format (for example: user@domain.com). Leave blank if using a stored credential. | String | True |
sql_password | The password used to login to SQL Server (encrypted using dxcli encrypt-text ). If using a stored credential, supply cred:<credential_name> . | String | True |
The sysadmin role is recommended, but if a more restrictive role is required, then please see Minimum SQL Server Security Privileges for Managing HA Instances.
Example
dxcli set-sqlcred "vhost1\instance1" "sa" "6pnFaDrRS+W/F+dkRuPKAA=="
dxcli set-sqlcred "vhost1\instance1" "" "cred:sql_sa"
set-storcoordinator
Description
Sets the cluster storage coordinator.
Syntax
dxcli set-storcoordinator <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli set-storcoordinator "node1"
set-tlsenabled
Description
Enables or disables TLS connections.
Syntax
dxcli set-tlsenabled <tls_enabled true|false>
Parameters
Name | Description | Type | Required |
---|---|---|---|
tls_enabled | Specifying "true" enables TLS. Specifying "false" disables TLS. Default is true. | Bool | True |
Example
dxcli set-tlsenabled true
set-vhost-ilbports
Description
Sets or removes the Vhost internal load balancer probe port.
Syntax
dxcli set-vhost-ilbports <vhost_name> <ilb_port>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
ilb_port | The port to use for internal load balancer probing. Use empty double quotes ("") to remove the port assignment. | String | True |
,... | Comma-delimited list of additional probe ports. | False |
Examples
dxcli set-vhost-ilbports "vhost1" 30001
dxcli set-vhost-ilbports "vhost1" ""
set-vhost-priority
Description
Sets the Vhost failover priority.
Syntax
dxcli set-vhost-priority <vhost_name> <priority>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
priority | The priority level (1 is the highest and 5 is the lowest). | Int | True |
Example
dxcli set-vhost-priority "vhost1" 3
set-volume-label
Description
Sets the label for the specified volume.
Syntax
dxcli set-volume-label <volume_id> <volume_label>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The name of the volume. | String | True |
volume_label | The label for the volume. | String | True |
Example
dxcli set-volume-label "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef" "Volume 1"
set-witness
Description
Sets the cluster witness settings.
Syntax
dxcli set-witness <witness_path>[|username|password] [...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
witness_path | The UNC path of the network share or Azure Blob Storage connection string or SAS URL. Prefix with az: if using Azure Blob Storage connection string or SAS URL. Empty to remove current cluster witness settings. | String | True |
username | The name of the user. Leave blank if using a stored credential, Azure Blob Storage Access Key or SAS URL. | String | False |
password | The password of the user (encrypted using dxcli encrypt-text recommended). If using a stored credential, supply cred:<credential_name> . Leave blank for Azure Blob Storage Access Key or SAS URL. | String | False |
... | Space-delimited set of parameters for multiple witness configurations. | False |
Examples
dxcli set-witness "\server1\myshare1|user1|6pnFaDrRS+W/F+dkRuPKAA=="
dxcli set-witness "\server1\myshare1||cred:credential1"
dxcli set-witness "\\mystorage.file.core.windows.net\azshare1|mystorage|/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33=="
dxcli set-witness "az:DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33==;EndpointSuffix=core.windows.net"
dxcli set-witness "az:https://mystorage.blob.core.windows.net/?sv=2020-02-10&ss=b&srt=sco&sp=rwdlactfx&se=2021-06-09T13:15:48Z&st=2021-06-09T05:15:48Z&spr=https&sig=cRDqOc25lpHfbP8X1hlkDnV4H1wJycCyuuqlgu8U1xg%3D"
dxcli set-witness "\\server1\myshare1|user1|6pnFaDrRS+W/F+dkRuPKAA=="
"\mystorage.file.core.windows.net\azshare1|mystorage|/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33=="
"az:DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33==;EndpointSuffix=core.windows.net"
shrink-volume
Description
Shrinks the current volume size.
Syntax
dxcli shrink-volume <volume_id> <size_in_bytes>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The name of the volume. | String | True |
size_in_bytes | The number of bytes the volume size will be reduced by. | Int | True |
Example
dxcli shrink-volume "23d6d8a0-c3bd-0ec3-9e98-c0021494b827" 500000000
start-disk
Description
Starts the disk on the specified node.
Syntax
dxcli start-disk <disk_id> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
node_name | The name of the node. | String | True |
Example
dxcli start-disk "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf" "node1"
start-docker
Description
Starts the specified docker.
Syntax
dxcli start-docker <vhost_name> <docker_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
docker_name | The name of the docker. | String | True |
Example
dxcli start-docker "vhost1" "centos1"
start-instance
Description
Starts the specified instance.
Syntax
dxcli start-instance <vhost_name>\<instance_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the instance. | String | True |
Example
dxcli start-instance "vhost1\instance1"
start-service
Description
Starts the specified service.
Syntax
dxcli start-service <vhost_name> <service_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
Example
dxcli start-service "vhost1" "spooler"
start-volume
Description
Starts the specified volume on a node.
Syntax
dxcli start-volume <volume_id> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | True |
node_name | The name of the node. | String | True |
Example
dxcli start-volume "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef" "node1"
stop-disk
Description
Stops the specified disk.
Syntax
dxcli stop-disk <disk_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
Example
dxcli stop-disk "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf"
stop-docker
Description
Stops the specified docker.
Syntax
dxcli stop-docker <vhost_name> <docker_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
docker_name | The name of the docker. | String | True |
Example
dxcli stop-docker "vhost1" "mongo1"
stop-instance
Description
Stops the specified instance.
Syntax
dxcli stop-instance <vhost_name>\<instance_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
instance_name | The name of the instance. | String | True |
Example
dxcli stop-instance "vhost1\instance1"
stop-service
Description
Stops the specified service.
Syntax
dxcli stop-service <vhost_name> <service_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
service_name | The name of the service. | String | True |
Example
dxcli stop-service "vhost1" "spooler"
stop-volume
Description
Stops the specified volume.
Syntax
dxcli stop-volume <volume_id>
Parameters
Name | Description | Type | Required |
---|---|---|---|
volume_id | The ID of the volume. | String | True |
Example
dxcli stop-volume "8218ceeb-6ff1-4818-89e9-4d7f1a7ad0ef"
test-acl
Description
Tests the access control list (ACL) assigned to the user or group.
Syntax
dxcli test-acl <acl_path> <username|g:group>
Parameters
Name | Description | Type | Required |
---|---|---|---|
acl_path | The valid values are "/" or "". Currently only the root element is supported. | String | True |
username or group | The user or group in which to test. If supplying a group name, the it must have a prefix of "g:". | String | True |
Example
dxcli test-acl "" "bob"
test-connection
Description
Tests the connection between the node and the cluster.
Syntax
dxcli test-connection
Parameters
None
Example
dxcli test-connection
test-nat
Description
Determines the NAT type for the connected server.
Syntax
dxcli test-nat [-v]
Parameters
Name | Description | Type | Required |
---|---|---|---|
-v | Enables verbose output. | Switch | False |
Example
dxcli test-nat -v
test-witness
Description
Tests the availability and authentication to the UNC network share(s).
This command has been superseded by dxcli test-witness-ex
. Do not use this command for Azure Blob Storage.
Syntax
dxcli test-witness <share_path>[,...] <username> <password>
Parameters
Name | Description | Type | Required |
---|---|---|---|
share_path | The UNC path of the network share. | String | True |
,... | Comma-delimited list of additional UNC paths. | False | |
username | The name of the user. Leave blank if using a stored credential. | String | True |
password | The password of the user (encrypted using dxcli encrypt-text recommended). If using a stored credential, supply cred:<credential_name> . | String | True |
Examples
dxcli test-witness "\\server1\myshare1" "user1" "6pnFaDrRS+W/F+dkRuPKAA=="
dxcli test-witness "\\mystorage.file.core.windows.net\azshare1" "mystorage" "/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33=="
test-witness-ex
Description
Tests the availability and authentication to the UNC network share(s) and/or Azure Blob Storage access key or SAS URL. Prefix with az:
if using Azure Blob Storage access key or SAS URL.
Syntax
dxcli test-witness-ex <witness_path>[|username|password] [...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
witness_path | The UNC path of the network share, Azure Blob Storage connection string, or SAS URL. Prefix with az: if using Azure Blob Storage connection string or SAS URL. Empty to remove current cluster witness settings. | String | True |
username | The name of the user. Not specified for Azure Blob Storage Access Key or SAS URL. Leave blank if using a stored credential. | String | False |
password | The password of the user (encrypted using dxcli encrypt-text recommended). Not specified for Azure Blob Storage Access Key or SAS URL. If using a stored credential, supply cred:<credential_name> . | String | False |
... | Space-delimited set of parameters for multiple witness configurations. | False |
Examples
dxcli test-witness-ex "\\server1\myshare1|user1|6pnFaDrRS+W/F+dkRuPKAA=="
dxcli test-witness-ex "\\mystorage.file.core.windows.net\azshare1|mystorage|/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33=="
dxcli test-witness-ex "az:DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33==;EndpointSuffix=core.windows.net"
dxcli test-witness-ex "az:https://mystorage.blob.core.windows.net/?sv=2020-02-10&ss=b&srt=o&sp=rwdlactfx&se=2021-06-09T13:15:48Z&st=2021-06-09T05:15:48Z&spr=https&sig=cRDqOc25lpHfbP8X1hlkDnV4H1wJycCyuuqlgu8U1xg%3D"
dxcli test-witness-ex "\\server1\myshare1|user1|6pnFaDrRS+W/F+dkRuPKAA==" "\\mystorage.file.core.windows.net\azshare1|mystorage|/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33==" "az:DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=/nbFVz1fOKH7b0RaY/5Ms8uytbY99PZsspZkcHvNtVRj//pUk4jUPV7owaUSuDd6eExv96sBvkCXsleATEsT33==;EndpointSuffix=core.windows.net"
unfreeze-node
Description
Unfreezes the specified cluster node and enables automatic failover.
Syntax
dxcli unfreeze-node <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
node_name | The name of the node. | String | True |
Example
dxcli unfreeze-node "node1"
unfreeze-vhost
Description
Unfreezes the specified Vhost and enables automatic failover.
Syntax
dxcli unfreeze-vhost <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli unfreeze-vhost "vhost1"
update-addressfilter
Description
Updates an address filter to accept or deny connections from specific IP addresses or subnets.
Syntax
dxcli update-addressfilter <filter_name> <address>,<action>[|...] <default_action>
Parameters
Name | Description | Type | Required |
---|---|---|---|
filter_name | The name of the filter. | String | True |
address | The IP address or subnet. | String | True |
action | Whether or not to accept or deny the IP address or subnet. Must be accept or deny . | String | True |
|... | Pipe-delimited list of additional address filters. | False | |
default_action | Sets the default action for the address filter to accept all or deny all connections outside of the specified IP or subnet from the previous parameter. Must be accept or deny . | String | True |
Example
dxcli update-addressfilter "filter1" "10.1.1.0,accept|10.1.2.0,accept" "deny"
update-authenticator
Description
Updates an existing authenticator to be used for RBAC.
Syntax
dxcli update-authenticator <auth_name> <auth_type> <auth_server> <distiguished_username> <password> [filter_options]
Parameters
Name | Description | Type | Required |
---|---|---|---|
auth_name | The required value is admin . Only a single authenticator is currently supported. | String | True |
auth_type | Only the authenticator type of LDAP is currently supported. | String | True |
auth_server | The hostname or IP address of the LDAP server. | String | False |
distinguised_username | The Distinguished Name (DN) of the user that has authorization to query the LDAP server. Leave blank if using a stored credential. | String | False |
password | The password for the DN user. If using a stored credential, supply cred:<credential_name> . | String | False |
To configure a read-only user without LDAP, see the set-observer-password
command to set a password for the observer login.
The get-aduser <username>
PowerShell command can be used to obtain the distinguished name of a specific user.
Example
dxcli update-authenticator "admin" "LDAP" "10.10.10.21" "CN=user1,CN=Users,DC=test,DC=domain,DC=com" "Pa$$w0rd"
dxcli update-authenticator "admin" "LDAP" "10.10.10.21" "" "cred:ldap_admin"
update-client
Description
Updates the specified client.
Syntax
dxcli update-client <client_name> <client_password> [client_description] [max_session_count] [group_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
client_name | The name of the client. | String | True |
client_password | The password of the client. Can be encrypted using dxcli encrypt-text . | String | True |
client_description | The description for the client. | String | False |
max_session_count | The number of active client sessions allowed. | Int | False |
group_name | The name of the group. | String | False |
Example
dxcli update-client "client1" "Pa$$w0rd" "Accounting Admins" 10
update-client-group
Description
Updates an existing client group.
Syntax
dxcli update-client-group <group_name> [modifier]<client_name>[,...] [group_description]
Parameters
Name | Description | Type | Required |
---|---|---|---|
group_name | The name of the group. | String | True |
modifier | Specifies whether to add or remove a client from the group. Use a plus (+) to add clients and minus (-) before the client name to remove clients. If no sign is given, the default action adds the client. | String | False |
client_name | The name of the client. | String | True |
,... | Comma-delimited list of additional clients to add or remove from the client group. | False | |
group_description | The description for the group. | String | False |
Example
dxcli update-client-group "group1" "client1,-client2"
update-contact
Description
Updates the contact in the address book.
Syntax
dxcli update-contact <name> <email>
Parameters
Name | Description | Type | Required |
---|---|---|---|
name | The name of the contact. | String | True |
The email address of contact. | String | True |
Example
dxcli update-contact "user1" "user1@mail.com"
update-cred
Description
Updates a stored credential to the cluster. The stored credential can either be a kerberos ticket cache or a username and password.
Syntax
dxcli update-cred <cred_name> <cred_type [kerberos|login]> <[<ticket_cache>|<username> <password>]>
Parameters
Name | Description | Type | Required |
---|---|---|---|
cred_name | The name of the stored credential. | String | True |
cred_type | Either "kerberos" or "login". | Switch | True |
ticket_cache | Kerberos type only. The kerberos ticket cache in base64. | String | False |
username | Login type only. The name of the user. | String | False |
password | Login type only. The password for the user. | String | False |
Example
dxcli update-cred "credential1" "login" "user2" "Pa$$w0rd"
dxcli update-cred "credential2" "kerberos" "BQQADAABAAgAAAAAAAAAAAAAAAEAAAABAAAAD1FBVEVTVC5ESDJJLkNPTQAAAAlzcWxfYWRtaW4AAAABAAAAAQAAAA9RQVRFU1QuREgySS5DT00AAAAJc3FsX2FkbWluAAAAAgAAAAIAAAAPUUFURVNULkRIMkkuQ09NAAAABmtyYnRndAAAAA9RQVRFU1QuREgySS5DT00AEgAAACC8IOSsAuBwTUC5o2KdXA3sS9etDYcxI9FTf0QkG/QwVGMJH/1jCR/9Ywmsl2MSWncAQOEAAAAAAAAAAAAAAAAEPWGCBDkwggQ1oAMCAQWhERsPUUFURVNULkRIMkkuQ09NoiQwIqADAgECoRswGRsGa3JidGd0Gw9RQVRFU1QuREgySS5DT02jggPzMIID76ADAgESoQMCAQKiggPhBIID3aJudXHdpUyVmTdWft+vBZPIk9691bt+mNCg/wn1VZt+RZ2K0yWD8KEBu+52puF7N3fjYQ3rcfNnRtJCBWKzNR5/UZ/Qoizy3YUmIldickKPp9toeGsK81joGXd4G+DPRLvxBETfCBwp6+bl7Jkjwcq+kdTUTd3qX0U4g7ixz3FcFQuG4kFwAY8ywSO/EsIQM1HDNaPVh7AloVm8zONh6YV4m2C3UPdvoWod0ZKZJbkxMruzpE9PDGnlc3u9yMvMEuaNRRNp/1XmFtKt2W7oxne6miZL2TToIkVyJr5H+zK4bkC3zoHhUG7YmYKY8ak5DPJwsjizv7aHEcyyHoXzD5noSHi9tRrMcuHCfc0LcrcPEIMSvg06aIWwVcMhypv7ljc781yLF44vnBdVtOROPe8GvZOHYE2cr6bwkNQKWcgyEct97aE+0oXzl1se40KRBNiVEqyEOn6IsfJjiu0S9rmAMHLmbI2PXaxeY/7+rxX4uY8Zela9RFYUvxjTdMyZQS7/slTz6vPoSX8gNYfh5bfi4lJjZwAik1enqYtheoA7STLP0beJp9TOBeSN4ze7U9/CchYh9TvdBxj13bcDcH6VUu9RweN+2FgsMN2Xj0d3WRqfX8kKJgdFzP2WjiaCzIetwlvyBmQT7N8WdJxEyOQOtTZgTXYJjWjqi+B1nuiL3n6z9Lczfvg0zTWsyHJPFjfCsqOl1PWckU/VbpBHPv4E/fhFriBHb9LqTRSvAwPpSrjBQUzQ5XxRubWRf1HiA1R43ysBDB2z+qDPmvBHNjfUdTD+GyIRFLDLu3d0pRDOqo8sIFoi4qKV5gDQgTTqcwmE4UB4VfOpVpZ/LnacqFaG9qVs97Gl97G+t+kV1hOLMlqH+A9o9Ii4LRTN5CWXEOdrnEFMqzSCH8H3oXtFhznoxJWD7SxBSD4Q2QlnPAi+kEwA+IECzAMPCBg3Zp593Y+nMkC3NlKnwe1B79cT/R5c7GUHtWl6m0nILgSjKR12vUzCo4PwcKPkRCyF1aJ8dIroGu+SZFCf4U3BAur5O9SnaFHo3awEbKPF/joiHo/vamybvMtDqRKSiujeGBbysm5F0JI6iX3UelwC5ZxH+xUwlLIECYDn2BvenFBuZajXGwD3Yqj8t2OfNi66rJDzIPkwyp6us6qZ4sVtN1QFgRsM7T5Wpqx2UePBZGprYXzlMd/XcCxRp93aI4twagmKecvK4eJK5bniOUvP+ftunauVmXTgV1YAuZsB+oUI3qxYVs/PicMeExphfoqBFzFYdTj75kkN6sgbJaRc156ZWTEhzvGwxU823JzoD+J7AAAAAAAAAAEAAAABAAAAD1FBVEVTVC5ESDJJLkNPTQAAAAlzcWxfYWRtaW4AAAAAAAAAAwAAAAxYLUNBQ0hFQ09ORjoAAAAVa3JiNV9jY2FjaGVfY29uZl9kYXRhAAAAB3BhX3R5cGUAAAAma3JidGd0L1FBVEVTVC5ESDJJLkNPTUBRQVRFU1QuREgySS5DT00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEyAAAAAA=="
update-disk
Description
Updates the disk label.
Syntax
dxcli update-disk <disk_id> <disk_label>
Parameters
Name | Description | Type | Required |
---|---|---|---|
disk_id | The ID of the disk. Run dxcli get-disks to find the disk ID. | String | True |
disk_label | The label for the disk. | String | True |
Example
dxcli update-disk "23d6d8a0-c3bd-0ec3-9e98-c0021494b827" "Disk 1"
update-policy
Description
Updates a policy. See dxcli add-policy
for more information.
Syntax
dxcli update-policy <policy> <GUID> [description] <counter> <object> <threshold> <email> <script_path> <priority> [filter_options]
Parameters
Name | Description | Type | Required |
---|---|---|---|
policy | The type of policy to use. Can be SYSTEM, PERF, ALLOC, or FILTER. | String | True |
GUID | The globally unique identifier (GUID) of the policy. | String | False |
description | A description for the policy. | String | False |
counter | The performance counter, or type of resource, to be monitored (e.g. System-Disk-Io, System-Down, System-Free-Memory, System-Networking). | String | True |
object | The node, instance, service, Vhost, or Docker to attach the policy to. | String | True |
threshold | When to invoke alert i.e. 99 (where resource hits 99%). | Int | True |
The email address to send the alert to. | String | True | |
script_path | The full path to the script to invoke. | String | True |
priority | The priority level 0-5. | Int | True |
filter_options | Enables the policy when set to true. | String | False |
Example
dxcli update-policy "PERF" "f7d70673-dde1-4b71-84a7-ae7324e4ace4" "test" "System-Disk-Io" "node1" 99 "user1@mail.com" "c:\scripts\script.ps1" 0 "true"
update-share
Description
Updates the file share.
Syntax
dxcli update-share <vhost_name> <share_name> [/remarks:"text"] [/unlimited|/users:number] [/cache:Manual|Documents|Programs|BranchCache|None] [/grant:username,[READ|CHANGE|FULL]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
share_name | The name of the share. | String | True |
remarks | Remarks to add to the share. | String | False |
/unlimited|/users | The number of users allowed. | String | False |
cache | The cache options for the share (manual, documents, programs, branchcache, none). | String | False |
/grant:username | Grant read, change or full permissions to the user. | String | False |
Example
dxcli update-share "vhost1" "share1=c:\mount1\share1" /remarks:"This is fileshare1" /unlimited /cache:manual /grant:everyone,READ
update-tunnel
Description
Update an existing tunnel.
Syntax
dxcli update-tunnel <tunnel_name> <enabled> <destination_node_name> <target_address>:<target_port> <origin_node>,<origin_address>:<origin_port>[/address_filter][|...] [vhost_name]
Parameters
Name | Description | Type | Required |
---|---|---|---|
tunnel_name | The name of the tunnel. | String | True |
enabled | Enable the tunnel. | Bool | True |
destination_node_name | The name of the destination node. | String | True |
target_address | The target IP address or hostname of the tunnel destination. | String | True |
target_port | The port number for the target. | Int | True |
origin_node | The name of the origin node. This is the node where the tunnel listener will be active. | String | True |
origin_address | The IP address the origin will bind to. Can be set to 0.0.0.0 to allow connections from any IP address with network access, or 127.0.0.1 to only allow connections from the node itself. | String | True |
origin_port | The port number for the origin address. | Int | True |
address_filter | The name of the address filter to associate with the tunnel. See dxcli add-addressfilter for more information. | String | False |
|... | Pipe-delimited list of additional origins. | False | |
vhost_name | The name of the Vhost. | String | False |
Example
dxcli update-tunnel "tunnel1" "true" "node1" "10.1.200.62:30004" "node2,0.0.0.0:30004/filter1|node3,127.0.0.1:30004/filter2" "vhost1"
update-tunnel-clients
Description
Updates the clients and/or client groups associated with a tunnel.
Syntax
dxcli update-tunnel-clients <tunnel_name> [modifier]<client_name>:<ip_address>:<port> [modifier]<group_name>:<ip_address>:<port>
Parameters
Name | Description | Type | Required |
---|---|---|---|
tunnel_name | The name of the tunnel. | String | True |
modifier | Add (+) or remove (-) a client or client group from the tunnel. If no sign is given, the default action is add. | String | False |
client_name | The name of the client to add or remove from the tunnel. | String | True |
group_name | The name of the group to add or remove from the tunnel. | String | True |
ip_address | The IP address the client or client group uses to connect to the tunnel. | String | True |
port | The port the client or client group uses to connect to the tunnel. | String | True |
Example
dxcli update-tunnel-clients "tunnel1" "client1:127.0.0.1:30001,client2:127.0.0.1:40001,-client3:127.0.0.1:40001" "clientgroup1:127.0.0.1:40001"
update-tunnel-dest
Description
Update an existing tunnel's destination.
Syntax
dxcli update-tunnel-dest <name> <destination_node_name> <destination_address:destination_port>
Parameters
Name | Description | Type | Required |
---|---|---|---|
name | The name of the tunnel. | String | True |
destination_node_name | The name of the destination node. | String | True |
destination_address | The address or hostname of the tunnel destination. | String | True |
destination_port | The port number for the destination. | Int | True |
Example
dxcli update-tunnel-dest "tunnel1" "node1" "10.1.200.22:30004"
update-tunnel-origin
Description
Update an existing tunnel's origin.
Syntax
dxcli update-tunnel-origin <name> [+|-]<origin_node,origin_address:origin_port[,address_filter]>[|...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
name | The name of the tunnel. | String | True |
modifier | Add (+) or remove (-) an origin from the tunnel. If no sign is given, the default action is add. | String | False |
origin_node | The name of the origin node. This is the node where the tunnel listener will be active. | String | True |
origin_address | The IP address the origin will bind to. Can be set to 0.0.0.0 to allow connections from any IP address with network access, or 127.0.0.1 to only allow connections from the node itself. | String | True |
origin_port | The port number for the origin address. | Int | True |
address_filter | The name of the address filter to associate with the tunnel. See dxcli add-addressfilter for more information. | String | False |
|... | Pipe-delimited list of additional origins. | False | |
vhost_name | The name of the Vhost. | String | False |
Example
dxcli update-tunnel-origin "tunnel1" "+node1,0.0.0.0:30004/FILTER1"
update-vhost
Description
Updates the node or Vhost list for an existing Vhost or exVhost.
Syntax
dxcli update-vhost <vhost_name> <member_name>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost or exVhost. | String | True |
member_name | The name of the node or Vhost. | String | True |
,... | Comma-delimited list of additional nodes or Vhosts. | False |
Examples
dxcli update-vhost "vhost1" "node1,node3,node2"
dxcli update-vhost "exvhost1" "VHOST:vhost1,VHOST:vhost2,VHOST:vhost3"
update-vhost-ex
Description
Updated version of the update-vhost command that adds support for modifying autofailback, priority and load balancer ports.
Syntax
dxcli update-vhost <vhost_name> [member_name[,...]] [autofailback] [priority] [ilb_ports]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost or exVhost. | String | True |
member_name | The name of the node or Vhost. | String | True |
,... | Comma-delimited list of additional nodes or Vhosts. | False | |
autofailback | Whether or not to automatically move the Vhost back to its primary node, if available. | Bool | False |
priority | The priority of the Vhost, with 1 being the lowest and 5 being the highest. | Int | False |
ilb_ports | The port number to assign for load balancer probing. This port will always be in a listening state on the active node. | Int | False |
Examples
dxcli update-vhost- "vhost1" "" "true"
dxcli update-vhost "exvhost1" "VHOST:vhost1,VHOST:vhost2,VHOST:vhost3" "" "" 30001
vhost-get-docker-images
Description
Returns a list of available docker images.
Syntax
dxcli vhost-get-docker-images <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli vhost-get-docker-images "vhost1"
vhost-get-services
Description
Returns a list of the available Vhost services.
Syntax
dxcli vhost-get-services <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli vhost-get-services "vhost1"
vhost-get-sql-instances
Description
Returns a list of the available SQL instances.
Syntax
dxcli vhost-get-sql-instances <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli vhost-get-sql-instances "vhost1"
vhost-set-diskgroup
Description
A list of disk IDs to be added to the specified Vhost diskgroup. The disk(s) will be brought online on the active node of the Vhost. The list of disk IDs must include all disk(s) that are to be assigned to the diskgroup.
Syntax
dxcli vhost-set-diskgroup <vhost_name> <disk_id>[|...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
disk_id | ID to add to the diskgroup. | String | True |
|... | A pipe-delimited list of additional disks to add to the diskgroup. | False |
Example
dxcli vhost-set-diskgroup "vhost1" "9b85d24a-5c5a-136d-e3ba-7ffd9584feaf|23d6d8a0-c3bd-0ec3-9e98-c0021494b827"
vhost-set-docker-image
Description
Sets a Docker container to use the specified image.
Syntax
dxcli vhost-set-docker-image <vhost_name> <docker_image> <image_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
docker_name | The name of the Docker container. | String | True |
image_name | The name of the Docker image. | String | True |
Example
dxcli vhost-set-docker-image "vhost1" "mongo1" "mongo"
vhost-start-diskgroup
Description
Starts the Vhost diskgroup on the specified node.
Syntax
dxcli vhost-start-diskgroup <vhost_name> <node_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
node_name | The name of the node. | String | True |
Example
dxcli vhost-start-diskgroup "vhost1" "node1"
vhost-start-node
Description
Starts hosting the Vhost or exVhost on the specified member.
Syntax
dxcli vhost-start-node <vhost_name> <member_name> [force_failover]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost or exVhost. | String | True |
member_name | The name of the node or Vhost. | String | True |
force_failover | Whether or not to force an AG to failover to an asynchronous replica. | Bool | False |
Forcing failover to an asynchronous availability group replica can result in data loss.
Example
dxcli vhost-start-node "vhost1" "node1" "true"
vhost-stop-diskgroup
Description
Stops the diskgroup on the specified Vhost.
Syntax
dxcli vhost-stop-diskgroup <vhost_name>
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost. | String | True |
Example
dxcli vhost-stop-diskgroup "vhost1"
vhost-stop-node
Description
Stops the specified Vhost or exVhost.
Syntax
dxcli vhost-stop-node <vhost_name> [member_name] [disabled]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost or exVhost. | String | True |
member_name | The name of the node or Vhost. | String | False |
disabled | Option to also disable the node. Leaving this parameter blank will leave the node in its current state. | Switch | False |
Example
dxcli vhost-stop-node "vhost1" "node1" "disabled"
vhost-update-vips
Description
Changes the virtual IP(s) used by the Vhost or exVhost.
Syntax
dxcli vhost-update-vips <vhost_name> <virtual_ip>[,...]
Parameters
Name | Description | Type | Required |
---|---|---|---|
vhost_name | The name of the Vhost or exVhost. | String | True |
virtual_ip | Virtual IP to update on the Vhost. To remove all VIPs from a Vhost, use empty quotes (""). | String | True |
,... | Comma-delimited list of additional virtual IPs to update on the Vhost. | False |
Example
dxcli vhost-update-vips "vhost1" "10.2.2.29,10.2.3.141"