DxPS Admin Guide
Overview
DH2i software includes Windows PowerShell cmdlets (DxPS) that you can use to control and administer DxEnterprise cluster(s) locally or remotely. This admin guide includes all of the DxEnterprise cmdlets and sample scripts to successfully manage a DxEnterprise cluster. For additional information on how to use Windows PowerShell, please reference Microsoft Windows PowerShell documentation.
DxPowerShell Requirements
DxPS requires a minimum Windows PowerShell version 3. This version is installed by default on Windows operating systems.
To confirm which version you have installed, check the Version property of the Get-Host cmdlet or the PSVersion property of the $PSVersionTable variable.
If required, Windows PowerShell version 3 setup package can be downloaded from Microsoft's website
Installing the DxPowerShell module
The DxPowerShell module (DxPS.dll) is installed as part of DxEnterprise software bundle. There are no additional steps required.
Importing the DxPowerShell module
DxPowerShell module (DxPS.dll) must be imported before you can begin using it. The module can be found in the \bin subdirectory where you install DH2i software. The default installation location is C:\Program Files\DH2i\bin.
To import the DxPowerShell (DxPS.dll) module use one of the below options:
-
Use the Windows PowerShell Import-Module cmdlet with -DisableNameChecking option. If nothing is returned, then the import was successful.
-
Execute the Start_DxPS.cmd in the DH2i\bin folder.
-
Select the "DxPowerShell Utility" option under Advanced Configuration in DxAdmin.
DxPowerShell Classes and Cmdlets
DxPowerShell module is defined by a set of classes and cmdlets. Through the following classes and cmdlets, you can locally or remotely administer and manage a DxEnterprise cluster.
DxResult
This class represents the xml result set returned by DxPowerShell cmdlets.
Properties
|Name|Type|Description| |---|---| | Status | Integer | Status code. Non-zero value represents an error has occurred. | | Result | String | A well-formed xml string represents the output from the process. |
Examples
PS C:> [xml]$xml = Dx-GetVersion | Select-Object -ExpandProperty Result
PS C:> $xml.result
Commands
Dx-AddAddressFilter
Adds an address filter.
Syntax
Dx-AddAddressFilter [-Name] <string> [-Addresses] <string> [-DefaultAction] <string> [<CommonParameters>]
Detailed Description
Adds an address filter for accepting or denying connections from specific IP addresses or subnets.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Name | String | The name of the filter. | True | True |
Addresses | String | The IP address or subnet. | True | True |
DefaultAction | String | Whether or not to accept or deny the IP address or subnet. Must be accept or deny. | True | True |
Examples
Dx-AddAddressFilter -Name "filter1" -Addresses "10.1.1.0,accept|10.1.2.0,accept" -DefaultAction "deny"
Dx-AddAGS
Add an availability group to a Vhost.
Syntax
Dx-AddAGS [-VhostName] <string> [-AGSName] <string> -AGSParams <string[]> [-AGSOptions <string>] [<CommonParameters>]
Detailed Description
This cmdlet adds an availability group to an existing Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
AGSParams | String | Comma-delimited parameter sets for each participant in the availability group. | True | True |
AGSOptions | String | Additional options to pass in when creating the availability group, such as "CONTAINED". | False | True |
Examples
Dx-AddAGS -VhostName "vhost1" -AGSName "AGS1" -AGSParams "node1|instance1|sa|qC0Tfb6Px/bfFDA5PTSDlA==|5022|synchronous_commit" -AGSOptions "CONTAINED"
Dx-AddAGS -VhostName "vhost1" -AGSName "ags1" -AGSParams "node1|instance1|sa|qC0Tfb6Px/bfFDA5PTSDlA==|5022|synchronous_commit","node2|mssqlserver|sa|qC0Tfb6Px/bfFDA5PTSDlA==|5022|synchronous_commit","node3|mssqlserver|sa|qC0Tfb6Px/bfFDA5PTSDlA==|5022|asynchronous_commit"
Dx-AddAGSDatabases
Add a database to an availability group.
Syntax
Dx-AddAGSDatabases [-VhostName] <string> [-AGSName] <string> -Databases <string> [<CommonParameters>]
Detailed Description
This cmdlet adds databases to an existing availability group.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
Databases | String | Comma delimited list of database names. | True | True |
Examples
Dx-AddAGSDatabases -VhostName "vhost1" -AGSName "ags1" -Databases "db1,db2,db3"
Dx-AddAGSListener
Add a listener port to an availability group.
Syntax
Dx-AddAGSListener [-VhostName] <string> [-AGSName] <string> [-TCPPort] <int> [<CommonParameters>]
Detailed Description
This cmdlet adds a TCP listener port to the primary replica of an availability group.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
TCPPort | Integer | The TCP port to listen on. | True | True |
Examples
Dx-AddAGSListener -VhostName "vhost1" -AGSName "ags1" -TCPPort 11433
Dx-AddAGSNode
Add a member to an availability group.
Syntax
Dx-AddAGSNode [-VhostName] <string> [-AGSName] <string> -AGSParams <string> [<CommonParameters>]
Detailed Description
This cmdlet adds a new member to an existing availability group.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
AGSParams | String | Space-delimited parameter sets for each participant in the availability group. | True | True |
Examples
Dx-AddAGSNode -VhostName "vhost1" -AGSName "ags1" -AGSParams "node3|instance1|sa|qC0Tfb6Px/bfFDA5PTSDlA==|5022|asynchronous_commit"
Dx-AddClient
Adds a DxConnect client to the cluster.
Syntax
Dx-AddClient [-Name] <string> [-Password] <string> [[-Description] <string>] [[-MaxSession] <string>] [[-Groups]<string>] [<CommonParameters>]
Detailed Description
This cmdlet adds a new client to an existing cluster.
Parameters
|Name| Type| Description | Required | Command-line Input |
|---|---|---|---|
|Name|String|The name of the client.|True|True|
|Password|String|The password for the client. Can be encrypted using dx-encrypttext
.|True|True|
|Description|String|The description for the client.|False|False|
|MaxSession|Integer|The maximum number of active sessions for the client.|False|False|
|Groups|String|The name of the client group to add the client to.|False|False|
Examples
Dx-AddClient -Name "Testuser" -Password "Pa$$w0rd" -Description "New User in accounting" -MaxSession 10 -Groups "Accounting"
Dx-AddClientGroup
Adds a client group consisting of one or more clients.
Syntax
Dx-AddClientGroup [-Name] <string> [[-MemberList] <string>] [[-Description] <string>] [<CommonParameters>]
Detailed Description
This cmdlet adds a new client group to an existing cluster.
Parameters
|Name|Type|Description|Required|Command-line Input| |---|---|---|---| |Name|String|The name of the client.|String|True| |MemberList|String|The name of the members to add to the client group. Running the command without a client will create an empty client group.|True|False| |Description|String|The description for the group.|False|False|
Examples
Dx-AddClientGroup -Name "NewGroup" -MemberList "Testuser" -Description "New group for accounting"
Dx-AddContact
Add a contact to the address book.
Syntax
Dx-AddContact [-Name] <string> [-Email] <string> [<CommonParameters>]
Detailed Description
This cmdlet adds a contact to the address book for the currently connected cluster.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Name | String | Contact Name. | True | True |
String | Contact email address. | True | True |
Examples
Dx-AddContact -Name "support" -Email "support@dh2i.com"
Dx-AddDisk
Add a disk to the current cluster.
Syntax
Dx-AddDisk [-DiskID] <string> [[-Label] <string>] [<CommonParameters>]
Detailed Description
This cmdlet puts the disk under DxEnterprise management.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskID | String | The GUID Disk ID. | True | True |
Label | String | Name of the disk on the current cluster. | False | False |
Examples
Dx-AddDisk -DiskID "dad7b407-b77a-b98b-edbb-df64556eeb17" -Label "Cluster Disk 1"
Dx-AddDocker
Add an instance of a Docker container to a Vhost.
Syntax
Dx-AddDocker [-VhostName] <string> [-DockerName] <string> [-Image] <string> [-DockerParams] <string[]> [<CommonParameters>]
Detailed Description
This cmdlet adds an instance of a Docker container to a Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
DockerName | String | The name of the Docker container. | False | False |
Image | String | The name of the Docker image. | True | True |
DockerParams | String | The docker run parameters that the Docker instance will use on startup (comma delimited for multiples). The parameters are a triplet of <docker_run_option>|<value>|<value_is_encrypted> | True | True |
Examples
Dx-AddDocker -VhostName "vhost1" -DockerName "mssql1" -Image "microsoft/mssql-server-linux" -DockerParams "-e|ACCEPT_EULA=Y|False","-e|CDGvv+sAhk1YXCeceIN3AyHbmFZ1jfxpJhENAm8FWbM=|True","-p|50250:1433|False","-h|VHOST1|False","-v|/mnt/mssql:/var/opt/mssql|False","-os|linux|False"
Dx-AddFileshare
Add a network file share.
Syntax
Dx-AddFileshare [-VhostName] <string> [-ShareName] <string> [-SharePath] <string> -Grants <string[]> [-Comments <string>] [-MaxAllowedUsers <int>] [-Caching {manual | BranchCache | documents | programs | none}] [<CommonParameters>]
Detailed Description
This cmdlet adds a network file share to a Vhost. The Windows file share will be created on all nodes associated with the Vhost. The path must be accessible on all associated nodes.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
ShareName | String | The name of the file share. | True | True |
SharePath | String | Local share path. | True | True |
Grants | String | Grant parameter string array delimited by a comma (,). Each parameter name and value pair is delimited by a colon (:). | True | True |
Comments | String | User defined comment. | False | False |
MaxAllowedUsers | Integer | Max concurrent users allowed to the share. Default is unlimited. | False | False |
Caching | String | Caching mode for the share. Possible mode : manual, BranchCache, documents, programs, none. | False | False |
Examples
Dx-AddFileshare -VhostName "vhost1" -ShareName "share1" -SharePath "K:\Share1"
-Grants "everyone,read:administrators,full"
Dx-AddInstance
Add an instance to a Vhost.
Syntax
Dx-AddInstance [-InstanceName] <string> [-TCPPort] <int> [-DataPath] <string> [-LogPath] <string> [[-KeepExistingData]] [<CommonParameters>]
Detailed Description
This cmdlet adds a named instance of SQL Server to a Vhost and puts it under DxEnterprise management. The named instance must already be installed on all nodes associated with the Vhost. The data and log paths must point to a SAN location that is accessible to all nodes. If the optional KeepExistingData is specified, the current data and log files on the SAN are retained, otherwise they are overwritten with the local data files.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
InstanceName | String | The name of the instance. | True | True |
TCPPort | Integer | Static SQL Server listening port. | True | True |
DataPath | String | Root path for SQL Server data (*.mdf, *.ndf). | True | True |
LogPath | String | Root path for SQL Server logs (*.ldf). | True | True |
KeepExistingData | Switch Parameter | Whether to overwrite the target data in the DataPath and LogPath or to preserve it. Default is false if not specified. | False | False |
Examples
Dx-AddInstance -InstanceName "vhost1\customer" -TCPPort 50001 -DataPath "S:\Sqldata\Customer\Data" - LogPath "S:\Sqldata\Customer\Logs"
Dx-AddNode
Add node(s) to a Vhost.
Syntax
Dx-AddNode [-VhostName] <string> [-Nodes] <string> [<CommonParameters>]
Detailed Description
This cmdlet adds node(s) to a Vhost. If the Vhost has any instances under its management, the node(s) will undergo hosting readiness for these instances.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
Nodes | String | Node name(s). Delimited by comma. | True | True |
Examples
Dx-AddNode -VhostName "vhost1" -Nodes "node1,node2,node3"
Dx-AddPolicy
Add a policy.
Syntax
Dx-AddPolicy -SYSTEM -ObjectName <string> [-Enabled] [-PolicyID <string>] [-Description <string>] [-CounterName <string>] [-Threshold <int>] [-Operator <string>] [<CommonParameters>]
Dx-AddPolicy -PERF -ObjectName <string> -CounterName <string> -Threshold <int> [-Percent] [-Loadbalance] [-Enabled] [-PolicyID <string>] [-Description <string>] [-Operator <string>] [-ScriptPath <string>] [-Priority <int>] [<CommonParameters>]
Dx-AddPolicy -ALLOC -ObjectName <string> -CounterName <string> -Threshold <int> [-Enabled] [-PolicyID <string>] [-Description <string>] [-Operator <string>] [-ScriptPath <string>] [<CommonParameters>]
Dx-AddPolicy -FILTER [-Enabled] [-Information] [-Warning] [-Error] [-Critical] [-VhostFilter <string>] [-InstanceFilter <string>] [-DockerFilter <string>] [-NodeFilter <string>] [-PolicyID <string>] [-Description <string>] [-Operator <string>] [<CommonParameters>]
Detailed Description
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
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
SYSTEM | Switch Parameter | System type policy. Used to alert when a system is down. | True | False |
PERF | Switch Parameter | Performance type policy. | True | False |
ALLOC | Switch Parameter | Allocation type policy. | True | False |
FILTER | Switch Parameter | Global filter alert type policy. | True | False |
PolicyID | String | Unique policy ID. | False | False |
Description | String | User defined description. | False | False |
ObjectName | String | Instance, Docker or system name. | False | False |
CounterName | String | Resource/counter name. Applicable to SYSTEM, PERF, and ALLOC policies. Resource/counter names are located in drop down under Policy Types above. | False | False |
Threshold | Integer | Trigger limit applicable for PERF and ALLOC policies. When this threshold is met or exceeded the system will raise an alert and carry any predefined corrective actions. | False | False |
Percent | Switch Parameter | Whether or not the threshold value is a percent of total system resource. Default is false. | False | False |
Operator | String | Email addresses to be sent when the policy is triggered. | False | False |
ScriptPath | String | Full path to the script file to be executed when the policy is triggered. | False | False |
Priority | Integer | Policy priority relative to other policies in the cluster. Valid values are between 1 and 5. With 1 being the lowest or least prioritized. Applicable to PERF policy. | False | False |
LoadBalance | Switch Parameter | Whether or not to failover when the policy is triggered. Default is false. | False | False |
Enabled | Switch Parameter | Whether or not the policy is enabled. Default is true. | False | False |
Information | Switch Parameter | Whether or not filter only for Information severity alerts. Applicable to FILTER policy. Default is true. | False | False |
Warning | Switch Parameter | Whether or not filter only for Warning severity alerts. Applicable to FILTER policy. Default is true. | False | False |
Error | Switch Parameter | Whether or not filter only for Error severity alerts. Applicable to FILTER policy. Default is true. | False | False |
Critical | Switch Parameter | Whether or not filter only for Critical severity alerts. Applicable to FILTER policy. Default is true. | False | False |
VhostFilter | String | Inclusive list of Vhosts to raise alert for. Applicable to FILTER policy. Default is all Vhosts. | False | False |
InstanceFilter | String | Inclusive list of instances to raise alert for. Applicable to FILTER policy. Default is all instances. | False | False |
NodeFilter | String | Inclusive list of nodes to raise alert for. Applicable to FILTER policy. Default is all nodes. | False | False |
DockerFilter | String | Inclusive list of containers to raise alert for. Applicable to FILTER policy. Default is all containers. | False | False |
Examples
Dx-Add-Policy -SYSTEM -ObjectName "NODE1"
Dx-Add-Policy -PERF -ObjectName "CUSTOMER" -CounterName "instance-working-set" -Threshold 1000
Dx-AddPolicy -ALLOC -ObjectName "CUSTOMER" -CounterName "instance-working-set" -Threshold 2500
Dx-AddPolicy -FILTER -InstanceFilter "CUSTOMER" -Operator "support@dh2i.com"
Dx-AddService
Add a service.
Syntax
Dx-AddService [-VhostName] <string> [-ServiceName] <string> [-Description <string>] [-AssumeVhostName] [<CommonParameters>]
Detailed Description
This cmdlet adds a service to a Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
ServiceName | String | The name of the service. | True | True |
Description | String | User defined description. | False | False |
AssumeVhostName | Switch Parameter | Whether or not the service runs under the Vhost name. | False | False |
Examples
Dx-AddService -VhostName "vhost1" -ServiceName "alg"
Dx-AddServiceRegistry
Add a service registry.
Dx-AddServiceRegistry [-VhostName] <string> [-ServiceName] <string> [-RegKey] <string> [-RegPath] <string> [<CommonParameters>]
Detailed Description
Adds a registry key to an existing service on a Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
ServiceName | String | The name of the service. | True | True |
RegKey | String | The full path to the registry key. | True | True |
RegPath | String | 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. | True | True |
Examples
Dx-AddServiceRegistry -VhostName "vhost1" -ServiceName "service1" -RegKey "HKLM\Software\service1" -RegPath "c:\mounts\volume1\service1"
Dx-AddSMTP
Configure SMTP server and credentials for email alerts.
Syntax
Dx-AddSMTP -ServerName <string> -Email <string> [-Port <int>] [-Protocol {NONE | TLS | SSL}] [-EncryptedPassword] [-Password <string>] [-UserName <string>] [<CommonParameters>]
Detailed Description
This cmdlet sets the SMTP information used to send email alerts.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
ServerName | String | SMTP server name or address. | True | True |
String | Sender email address. | True | True | |
Port | Integer | SMTP server connection port. Default is 25. | False | False |
Protocol | String | SMTP server protocol. Valid value is NONE, TLS, or SSL. Default is NONE. | False | False |
EncryptedPassword | Switch Parameter | Whether or not the supplied password value is an encrypted string obtained from Dx-EncryptText cmdlet. Default is false. | False | False |
UserName | String | The username to connect to the server | True | False |
Password | String | The password for the user. | True | False |
Examples
Dx-AddSMTP -ServerName "smtp.mail.com" -Email "user1@mail.com" -Port 557 -Protocol "TLS" -EncryptedPassword $false -UserName "user1" -Password "Pa$$w0rd"
Dx-AddTunnel
Add a tunnel to the cluster.
Syntax
Dx-AddTunnel [-Name] <string> [-Enabled] <bool> [-DestinationNodeName] <string> [-DestinationAddresses] <string> [-Origin] <string> [[-vHost] <string>] [<CommonParameters>]
Detailed Description
Adds a new tunnel to an existing cluster.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Name | String | The name of the tunnel. | True | True |
Enabled | Bool | Enable the tunnel. | True | True |
Destination_node_name | String | The name of the destination node. | True | True |
Destination_address | String | The target IP address or hostname of the tunnel destination. | True | True |
Origin | String | The name of the origin node. This is the node where the tunnel listener will be active. | True | True |
Vhost | String | The name of the Vhost to associate with the tunnel. | True | True |
Examples
Dx-AddTunnel -Name "test" -Enabled $true -DestinationNodeName "node1" -DestinationAddresses "10.1.2.10:4455" -Origin "node1,0.0.0.0:30004 " -Vhost "vhost1”
Dx-AddVhost
Add a Vhost to the cluster.
Syntax
Dx-AddVhost [-VhostName] <string> [-VIPs] <string> [-Nodes] <string> [[-AutoFailback]] [[-Priority] <int>] [<CommonParameters>]
Detailed Description
This cmdlet adds a new Vhost to the cluster configuration.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
VIPS | String | IP address(es) of the Vhost. Delimited by comma. | True | True |
Nodes | String | List of nodes participating in the Vhost. Delimited by comma. | True | True |
AutoFailback | Switch Parameter | Whether or not to support auto failback for the Vhost. Default is false. | False | False |
Priority | Integer | Vhost priority relative to other Vhosts in the cluster. Valid values are between 1 and 5. With 1 being the lowest or least prioritized. | False | False |
Examples
Dx-AddVhost -VhostName "vhost1" -VIPS "10.1.200.151" -Nodes "node1,node2,node3"
Dx-AddWitness
Add a network share witness to the cluster.
This command has been superseded by Dx-SetWitness. Do not use this command for Azure Blob Storage.
Syntax
Dx-AddWitness [-Shares] <string> [-UserName] <string> [-Password] <string>
Detailed Description
This cmdlet adds a new network share witness to the cluster configuration.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Shares | String | Up to three UNC network shares. Delimited by comma. | True | True |
UserName | String | The name of the user. | True | True |
Password | String | The password of the user (recommended to encrypt using Dx-EncryptText | True | True |
Examples
Dx-AddWitness -Shares "\server1\share1" -UserName "user1" -Password "6pnFaDrRS+W/F+dkRuPKAA=="
Dx-CleanDisk
Cleans the disk of all partitions, volumes, and any hidden sector information.
All volumes and data will be destroyed by running this command.
Syntax
Dx-CleanDisk [-DiskID] <string> [<CommonParameters>]
Detailed Description
This cmdlet deletes the partition table on the selected disk. All user data on disk will be destroyed.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskID | String | The GUID Disk ID or disk label. | True | True |
Examples
Dx-CleanDisk -DiskID "dad7b407-b77a-b98b-edbb-df64556eeb17"
Dx-ClearOTPK
Clears the one-time passkey.
Syntax
Dx-ClearOTPK [<CommonParameters>]
Detailed Description
This cmdlet clears all currently registered one-time passkeys for the cluster.
Examples
Dx-ClearOTPK
Dx-ClearReservation
Clears all reservations on the selected disk.
Syntax
Dx-ClearReservation [-DiskID] <string> [<CommonParameters>]
Detailed Description
This cmdlet 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.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskID | String | The GUID Disk ID(s) or disk lable(s). Delimited by pipe (|). | True | True |
Examples
Dx-ClearReservation -DiskID "dad7b407-b77a-b98b-edbb-df64556eeb17"
Dx-ClusterGetDockerImages
Returns a list of Docker images.
Syntax
Dx-ClusterGetDockerImages [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all Docker images available on each cluster node.
Examples
Dx-ClusterGetDockerImages
Dx-ClusterGetFeatures
Returns a list of features enabled on the connected node.
Syntax
Dx-ClusterGetFeatures [<CommanParameters>]
Detailed Description
This cmdlet returns a list of features enabled on the connected node.
Examples
Dx-ClusterGetFeatures
Dx-ClusterGetInstances
Returns a list of SQL Server instances.
Syntax
Dx-ClusterGetInstances [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all SQL Server instances available on each cluster node.
Examples
Dx-ClusterGetInstances
Dx-ClusterRehostDocker
Rehosts an instance of a Docker container from one Vhost to another.
Syntax
Dx-ClusterRehostDocker [-FromVhost] <string> [-ToVhost] <string> [-DockerName] <string> [<CommonParameters>]
Detailed Description
This cmdlet removes the specified Docker instance from the source Vhost and adds it to the target Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
FromVhost | String | The source Vhost name. | True | True |
ToVhost | String | The target Vhost name. | True | True |
DockerName | String | The name of the Docker container. | True | True |
Examples
Dx-ClusterRehostDocker -FromVhost "vhost1" -ToVhost "vhost2" -DockerName "mssql1"
Dx-ClusterRehostInstance
Rehosts a SQL Server instance from one Vhost to another.
Syntax
Dx-ClusterRehostInstance [-FromVhost] <string> [-ToVhost] <string> [-InstanceName] <string> [<CommonParameters>]
Detailed Description
This cmdlet removes the specified instance from the source Vhost and adds it to the target Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
FromVhost | String | The source Vhost name. | True | True |
ToVhost | String | The target Vhost name. | True | True |
InstanceName | String | The name of the instance. | True | True |
Examples
Dx-ClusterRehostInstance -FromVhost "vhost1" -ToVhost "vhost2" -InstanceName "instance1"
Dx-ClusterRehostService
Rehosts a service from one Vhost to another.
Syntax
Dx-ClusterRehostService [-FromVhost] <string> [-ToVhost] <string> [-ServiceName] <string> [<CommonParameters>]
Detailed Description
This cmdlet removes the specified service from the source Vhost and adds it to the target Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
FromVhost | String | The source Vhost name. | True | True |
ToVhost | String | The target Vhost name. | True | True |
ServiceName | String | The name of the service. | True | True |
Examples
Dx-ClusterRehostService -FromVhost "vhost1" -ToVhost "vhost2" -ServiceName "SQLBrowser"
Dx-ClusterResync
Refresh cluster configuration for all members.
Syntax
Dx-ClusterResync [<CommonParameters>]
Detailed Description
This cmdlet instructs all members to refresh their cluster configuration (DxVhost.xml) file. This ensures every member has a consistent image of the cluster configuration.
Parameters
None
Examples
Dx-ClusterResync
Dx-CollectLog
Run DxCollect utility on each cluster member.
Syntax
Dx-CollectLog [<CommonParameters>]
Detailed Description
This cmdlet instructs all members to execute DxCollect.exe utility and return the status code and the newly created log file.
Parameters
None
Examples
Dx-CollectLog
Dx-CreateVolume
Creates a volume.
Syntax
Dx-CreateVolume [-DiskSpace] <string> [<CommonParameters>]
Detailed Description
This cmdlet creates a volume from any empty space available on the disk(s).
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskSpace | String | A pipe (|) delimited list of <disk_id_or_disk_label>,<disk_size_in_bytes> | True | True |
Examples
Dx-CreateVolume -DiskSpace "dad7b407-b77a-b98b-edbb-df64556eeb17,17179869184"
Dx-CreateVolume -DiskSpace "dad7b407-b77a-b98b-edbb-df64556eeb17,17179869184|f1ea67c8-e85c-5ae9-4e13-e95dc7a3d04a,1073741824"
Dx-DeactivateServer
Deactivates and clears the license on the specified node.
Syntax
Dx-DeactivateServer [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
To reclaim the license on a node no longer in use this will clear the license which can then be used on a new node.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | Name of the node to deactivate the license on. | True | True |
Examples
Dx-DeactivateServer -NodeName "node1"
Dx-DeleteVolume
Delete a specified volume.
Syntax
Dx-DeleteVolume [-VolID] <string> [<CommonParameters>]
Detailed Description
This cmdlet deletes the specified volume. All user data on the volume will be destroyed.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VolID | String | The GUID Volume ID. | True | True |
Examples
Dx-DeleteVolume -VolID "deb7b407-a77b-889b-eddb-df63556eeb17"
Dx-DemoteAGSNode
Demote a node in the availability group.
Syntax
Dx-DemoteAGSNode [-VhostName] <string> [-AGSName] <string> -NodeName <string> [<CommonParameters>]
Detailed Description
This cmdlet sets the specified node in the availability group to be a secondary replica.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
NodeName | String | The name of the node. | True | True |
Examples
Dx-DemoteAGSNode -VhostName "vhost1" -AGSName "ags1" -NodeName "node1"
Dx-DetachAGS
Detach an availability group from DxEnterprise management.
Syntax
Dx-DetachAGS [-VhostName] <string> [-AGSName] <string> [<CommonParameters>]
Detailed Description
This cmdlet detaches an availability group from DxEnterprise management. The availability group stays active and functional, but will no longer be under the control of the DxEnterprise high availability engine for automatic health detection and failover.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
Examples
Dx-DetachAGS -VhostName "vhost1" -AGSName "ags1"
Dx-DisableNode
Disable a cluster node.
Syntax
Dx-DisableNode [-NodeName] <string> [<CommonParameters>]
Detailed Description
This cmdlet puts a node into a "disabled" state. A disabled node is a node that is still part of the cluster but is no longer qualified to host any applications. If there are running/active applications on the node prior to the state change, they will be relocated to other node(s) in the cluster.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
Examples
Dx-DisableNode -NodeName "node1"
Dx-EnableNode
Enable a cluster node.
Syntax
Dx-EnableNode [-NodeName] <string> [<CommonParameters>]
Detailed Description
This cmdlet clears the "disabled" state for a node, and potentially relocates applications on to it according to allocation and auto-failback policies.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
Examples
Dx-EnableNode -NodeName "node1"
Dx-EncryptText
Encrypt a text value.
Syntax
Dx-EncryptText [-Text] <string> [<CommonParameters>]
Detailed Description
This cmdlet encrypts a text value.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Text | String | Text value to be encrypted. | True | True |
Examples
Dx-EncryptText -Text "Pa$$w0rd"
Dx-ExecuteDebugCommand
Internal use only.
Syntax
Dx-ExecuteDebugCommand [[-Action] <string>] [-Values <string[]>] [<CommonParameters>]
Detailed Description
This cmdlet executes a command. For internal use only.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Action | String | The action to be executed. | False | True |
Values | String[] | Applicable values for Action. | False | True |
Examples
Dx-ExecuteDebugCommand -Action "get-vhost" -Values "vhost1"
Dx-ExportConfig
Exports a client configuration file to be used on DxConnect client machines.
Syntax
Dx-ExportConfig [-Name] [<CommonParameters>]
Detailed Description
This cmdlet exports a configuration file to be used on DxConnect client machines to allow users to connect to either DxEnterprise or DxOdyssey nodes.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
FileName | String | 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. | True | True |
Examples
Dx-ExportConfig -FileName dxe_client.dh2i
Dx-ExtendVolume
Extend the volume size.
Syntax
Dx-ExtendVolume [-VolID] <string> [-DiskSpace] <string> [<CommonParameters>]
Detailed Description
This cmdlet extends the volume size.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VolID | String | The GUID Volume ID to be extended. | True | True |
DiskSpace | String | A pipe (|) delimited list of <disk_id_or_disk_label>,<disk_size_in_bytes> | True | True |
Examples
Dx-ExtendVolume -VolID "dad7b407-b77a-b98b-edbb-df64556eeb17"
-DiskSpace "deb7b407-a77b-889b-eddb-df63556eeb17,17179869184"
The first GUID is the VolID. The second GUID is a Disk ID,(comma)
17179869184 (the size in bytes)
Dx-FormatVolume
Formats the specified volume.
Formatting will delete all data on the specified volume.
Syntax
Dx-FormatVolume [-VolID] <string> [-FileSystem {NTFS | FAT32 | ReFS}] [-VolumeLabel <string>] [-BlockSize <int>] [-QuickFormat <bool>] [-Compression <bool>] [<CommonParameters>]
Detailed Description
This cmdlet administratively formats the selected volume.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VolID | String | The GUID Volume ID. | True | True |
FileSystem | String | Filesystem type. Valid values are NTFS on Windows or EXT4 or XFS on Linux. Default is NTFS on Windows and EXT4 on Linux | False | False |
VolumeLabel | String | Name of the volume. Default is New Dx Volume. | False | False |
BlockSize | Integer | Blocksize of the volume. Valid values are 512, 1024, 4096, 8192, 16384, 32768, or 65536. Default is 4096. | False | False |
QuickFormat | Bool | Whether or not to perform quick format. Quick format does not zero data on disk. Default is true. | False | False |
Compression | Bool | Enable coompression support for the volume or not. Default is false. | False | False |
Examples
Dx-FormatVolume -VolID "dad7b407-b77a-b98b-edbb-df64556eeb17" -FileSystem "NTFS" -VolumeLabel "volume1" -BlockSize 65536 -QuickFormat $true -Compression $false
Dx-FormatVolumeEx
Format a volume with support for Windows format optional flags.
Syntax
Dx-FormatVolumeEx [-VolID] <string> [-FileSystem {NTFS | FAT32 | ReFS}] [-VolumeLabel <string>] [-BlockSize <int>] [-QuickFormat <bool>] [-Compression <bool>] [-Optional <string>] [<CommonParameters>]
Detailed Description
This cmdlet administratively formats the selected volume and allows Windows format optional flags to be used.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VolID | String | The GUID Volume ID. | True | True |
FileSystem | String | Filesystem type. Valid values are NTFS on Windows or EXT4 or XFS on Linux. Default is NTFS on Windows and EXT4 on Linux | False | False |
VolumeLabel | String | Name of the volume. Default is New Dx Volume. | False | False |
BlockSize | Integer | Blocksize of the volume. Valid values are 512, 1024, 4096, 8192, 16384, 32768, or 65536. Default is 4096. | False | False |
QuickFormat | Bool | Whether or not to perform quick format. Quick format does not zero data on disk. Default is true. | False | False |
Compression | Bool | Enable coompression support for the volume or not. Default is false. | False | False |
Optional | String | Optional flags available to Windows format. | False | False |
Examples
Dx-FormatVolumeEx -VolID "dad7b407-b77a-b98b-edbb-df64556eeb17" -FileSystem "NTFS" -VolumeLabel "volume1" -BlockSize 65536 -QuickFormat $true -Compression $false -Optional "/L:enable"
Dx-FormatVolumeEx2
Format a volume with additional filesystem types and support for Windows format optional flags.
Syntax
Dx-FormatVolumeEx2 [-VolID] <string> [-FileSystem {NTFS | EXT4 | XFS | BTRFS}] [-VolumeLabel <string>] [-BlockSize <int>] [-QuickFormat <bool>] [-Compression <bool>] [-Optional <string>] [<CommonParameters>]
Detailed Description
This cmdlet administratively formats the selected volume and allows additional filesystem types to be used.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VolID | String | The GUID Volume ID. | True | True |
FileSystem | String | Filesystem type. Valid values are NTFS on Windows or EXT4, XFS or BTRFS on Linux. Default is NTFS on Windows and EXT4 on Linux | False | False |
VolumeLabel | String | Name of the volume. Default is New Dx Volume. | False | False |
BlockSize | Integer | Blocksize of the volume. Valid values are 512, 1024, 4096, 8192, 16384, 32768, or 65536. Default is 4096. | False | False |
QuickFormat | Bool | Whether or not to perform quick format. Quick format does not zero data on disk. Default is true. | False | False |
Compression | Bool | Enable coompression support for the volume or not. Default is false. | False | False |
Optional | String | Optional flags available to Windows format. | False | False |
Examples
Dx-FormatVolumeEx2 -VolID "dad7b407-b77a-b98b-edbb-df64556eeb17" -FileSystem "NTFS" -VolumeLabel "volume1" -BlockSize 65536 -QuickFormat $true -Compression $false -Optional "/L:enable"
Dx-FreezeNode
Freeze a cluster node.
Syntax
Dx-FreezeNode [-NodeName] <string> [<CommonParameters>]
Detailed Description
This cmdlet administratively puts a node into "frozen" state. While the node is in this frozen state, all applications continue to run on the node even if the DxEnterprise software is removed from the node. If the node is rebooted, all SQL Server instances running on the node would require manual restart.
This cmdlet is designed to support in-place upgrade of DxEnterprise software.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
Examples
Dx-FreezeNode -NodeName "node1"
Dx-FreezeVhost
Freeze a Vhost.
Syntax
Dx-FreezeVhost [-VhostName] <string> [<CommonParameters>]
Detailed Description
This cmdlet administratively puts a Vhost into "frozen" state. While the Vhost is in this frozen state, applications running under the Vhost can be stopped and started without causing the cluster to initiate a failover. If the node is rebooted, all SQL Server instances running on the node would require manual restart.
This cmdlet is applicable when maintenance of application registry or configuration is needed.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
Examples
Dx-FreezeVhost -VhostName "vhost1"
Dx-GenerateOTPK
Generates a new One-Time PassKey to use with Dx-SetOTPK.
Syntax
Dx-GenerateOTPK [<CommonParameters]
Detailed Description
This cmdlet generates a new One-Time Passkey to use with Dx-SetOTPK. When joining a cluster via the NatMatchAgent, supply the OTPK instead of the passkey.
Parameters
None
Examples
Dx-GenerateOTPK
Dx-GetAddressFilter
Returns details for the specified address filter.
Syntax
Dx-GetAddressFilter [-Name] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the details for the specified address filter.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Name | String | The name of the address filter. | True | True |
Examples
Dx-GetAddressFilter -Name "filter1"
Dx-GetAGSDBMirror
Returns availability group details on a node.
Syntax
Dx-GetAGSDBMirror [-Node] <string> [-Instance] <string> [-Login] <string> [-Password] <string> [<CommonParameters>]
Detailed Description
This cmdlet will return details of availability group on a specified node.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | Node name to aquire the availability group details. | True | True |
Instance | String | Name of the SQL instance. | True | True |
Login | String | The SQL instance login. | True | True |
Password | String | The SQL instance password. | True | True |
Examples
Dx-GetAGSDBMirror -NodeName "node1" -Instance "instance1" -Login "sa" -Password "qC0Tfb6Px/bfFDA5PTSDlA=="
Dx-GetAGSDetail
Get details about an availability group.
Syntax
Dx-GetAGSDetail [-VhostName] <string> [-AGSName] <string> [<CommonParameters>]
Detailed Description
This cmdlet gets all of the details, connection status and health status for the specified availability group.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
AGSName | String | The name of the availability group. | True | True |
Examples
Dx-GetAGSDetail -VhostName "vhost1" -AGSName "ags1"
Dx-GetAlerts
Get all alerts for the cluster.
Syntax
Dx-GetAlerts [<CommonParameters>]
Detailed Description
This cmdlet returns all active and persistent alerts for the current cluster.
Parameters
None
Examples
Dx-GetAlerts
Dx-GetClientConnections
Returns all active client connections.
Syntax
Dx-GetClientConnections [<CommonParameters>]
Detailed Description
This cmdlet returns active client connections on the cluster.
Parameters
None
Examples
Dx-GetClientConnections
Dx-GetClientDetail
Returns the details for the specified client.
Syntax
Dx-GetClientDetail [-Name] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the details for the specified client showing with which tunnels the client is associated.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
Name | String | The name of the client. | True | True |
Examples
Dx-GetClientDetail -Name "client1"
Dx-GetClusterDisks
Get a list of current cluster disks.
Syntax
Dx-GetClusterDisks [<CommonParameters>]
Detailed Description
This cmdlet returns a list of known cluster disks, including disks that are inaccessible.
Parameters
None
Examples
Dx-GetClusterDisks
Dx-GetClusterMembers
Get a list of current cluster members.
Syntax
Dx-GetClusterMembers [<CommonParameters>]
Detailed Description
This cmdlet returns a list of known cluster members, including members that are inaccessible.
Parameters
None
Examples
Dx-GetClusterMembers
Dx-GetConnectionInfo
Get current cluster connection details.
Syntax
Dx-GetConnectionInfo [<CommonParameters>]
Detailed Description
This cmdlet returns a detailed list of properties for the current cluster connection.
Parameters
None
Examples
Dx-GetConnectionInfo
Dx-GetContacts
Get a list of contacts.
Syntax
Dx-GetContacts [<CommonParameters>]
Detailed Description
This cmdlet returns a list of contacts.
Parameters
None
Examples
Dx-GetContacts
Dx-GetCoordinators
Get a list of current coordinators.
Syntax
Dx-GetCoordinators [<CommonParameters>]
Detailed Description
This cmdlet returns a list of the current cluster, application and storage coordinators.
Parameters
None
Examples
Dx-GetCoordinators
Dx-GetCoordinatorStatus
Get status for the current cluster coordinator.
Syntax
Dx-GetCoordinatorStatus [<CommonParameters>]
Detailed Description
This cmdlet returns the detailed status for the current cluster Coordinator.
Parameters
None
Examples
Dx-GetCoordinatorStatus
Dx-GetCounters
Get system counters.
Syntax
Dx-GetCounters [<CommonParameters>]
Detailed Description
This cmdlet returns a list of supported counters for DxEnterprise.
Parameters
None
Examples
Dx-GetCounters
Dx-GetCredentials
Returns all stored credentials.
Syntax
Dx-GetCredentials [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all stored credentials for DxEnterprise.
Parameters
None
Examples
Dx-GetCredentials
Dx-GetDiskDetail
Get detailed information from a specified disk.
Syntax
Dx-GetDiskDetail [-DiskID] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the detail information from the specified disk.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskID | String | The GUID Disk ID or disk label of the individual disk information is being requested about. | True | True |
Examples
Dx-GetDiskDetail -DiskID "dad7b407-b77a-b98b-edbb-df64556eeb17"
Dx-GetDiskInfo
Get detailed information from a specified disk on a specified node.
Syntax
Dx-GetDiskInfo [-DiskID] <string> [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
This cmdlet returns the detail information from the specified disk on the specified node.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskID | String | The GUID Disk ID or disk label of the individual disk information is being requested about. | True | True |
NodeName | String | Node name to retrieve the disk info from. The disk must be visible to the node specified. | False | False |
Examples
Dx-GetDiskInfo -DiskID "dad7b407-b77a-b98b-edbb-df64556eeb17" -NodeName "node1"
Dx-GetDisks
Get disk details organized by node.
Syntax
Dx-GetDisks [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
This cmdlet returns the disk information from the cluster or a specific node. If a node name is given only information from that node is returned.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | Node name to acquire the disk details from. | False | True |
Examples
Dx-GetDisks -NodeName "node1"
Dx-GetDockerDetail
Get detailed information for a Docker container.
Syntax
Dx-GetDockerDetail [-VhostName] <string> [-DockerName] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the detailed information regarding a Docker container that is currently managed by DxEnterprise.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
DockerName | String | The name of the Docker container. | True | True |
Examples
Dx-GetDockerDetail -VhostName "vhost1" -DockerName "mssql1"
Dx-GetFeatures
Returns a list of features enabled on the connected node.
Dx-GetFeatures [<CommonParameters>]
Detailed Description
This cmdlet returns returns a list of enabled features on the connected node such as tunneling, storage, ags etc.
Parameters
None
Examples
Dx-GetFeatures
Dx-GetGlobalSettings
Get global settings.
Syntax
Dx-GetGlobalSettings [<CommonParameters>]
Detailed Description
This cmdlet returns global settings that are explicitly set by the user.
Parameters
None
Examples
Dx-GetGlobalSettings
Dx-GetInstanceDetail
Get detailed information for a SQL Server instance.
Syntax
Dx-GetInstanceDetail [-InstanceName] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the detailed information regarding a SQL Server instance that is currently managed by DxEnterprise.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
InstanceName | String | Target SQL Server instance name to be queried. The format is as follow: 1. Named Instance - <Vhost>\<InstanceName> 2. Default Instance - <Vhost>\MSSQLServer | True | True |
Examples
Dx-GetInstanceDetail -InstanceName "vhost1\customer"
Dx-GetInterfaces
Returns interfaces set on a node.
Syntax
Dx-GetInterfaces [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
This cmdlet returns an XML output of all interfaces available for connected cluster, or a specified node if supplied.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | Node name to acquire what interfaces are configured. | False | True |
Examples
Dx-GetInterfaces -NodeName "node1"
Dx-GetLicense
Get a current license from a node.
Syntax
Dx-GetLicense [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
This cmdlet returns the license information from a node.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | Node name to acquire the license from. Default is currently connected host. | False | True |
Examples
Dx-GetLicense -NodeName "node1"
GetLicenseDetail
Returns product license details.
Syntax
Dx-GetLicenseDetail [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
This cmdlet returns details for the product license including the key, product, expiration, etc. for the connected server or a specified node.
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | Node name to acquire the license details from. Default is currently connected host. | False | True |
Examples
Dx-GetLicenseDetail -NodeName "node1"
Dx-GetLicenseRequest
Get a current license request from a node.
Syntax
Dx-GetLicenseRequest [[-LicenseCode] <string>] [[-NodeName] <string>] [<CommonParameters>]
Detailed Description
This cmdlet returns the license request information from a node.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
LicenseCode | String | License code to generate the license request. Default is blank. If not specified, license request is the existing one from the target node. | True | True |
NodeName | String | Node name to acquire the license request from. Default is the currently connected host. | False | True |
Examples
Dx-GetLicenseRequest -LicenseCode "AAAA-BBBB-CCCC-DDDD" -NodeName "node1"
Dx-GetLicenses
Get a composite list of licenses from all nodes.
Syntax
Dx-GetLicenses [<CommonParameters>]
Detailed Description
This cmdlet returns a composite list of licenses from all cluster member nodes.
Parameters
None
Examples
Dx-GetLicenses
Dx-GetMonitoredApps
Get a list of all monitored applications.
Syntax
Dx-GetMonitoredApps [-NodeName] <string> [-DxHealth] [-DxReg] [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all monitored applications by DxHealth and DxReg.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
DxHealth | Switch Parameter | Whether or not to get list of monitored containers by DxHealth only. | False | False |
DxReg | Switch Parameter | Whether or not to get list of monitored containers by DxReg only. | False | False |
Examples
Dx-GetMonitoredApps -NodeName "node1" -DxHeath
Dx-GetMonitoredDockers
Get a list of all monitored Docker containers.
Syntax
Dx-GetMonitoredDockers [-NodeName] <string> [-DxHealth] [-DxReg] [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all monitored Docker containers by DxHealth and DxReg.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
DxHealth | Switch Parameter | Whether or not to get list of monitored containers by DxHealth only. | False | False |
DxReg | Switch Parameter | Whether or not to get list of monitored containers by DxReg only. | False | False |
Examples
Dx-GetMonitoredDockers -NodeName "node1" -DxHealth
Dx-GetMonitoredFileShares
Get a list of all monitored fileshares.
Syntax
Dx-GetMonitoredFileShares [-NodeName] <string> [-DxHealth] [-DxReg] [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all monitored fileshares by DxHealth and DxReg.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
DxHealth | Switch Parameter | Whether or not to get list of monitored fileshares by DxHealth only. | False | False |
DxReg | Switch Parameter | Whether or not to get list of monitored fileshares by DxReg only. | False | False |
Examples
Dx-GetMonitoredFileShares -NodeName "node1" -DxHealth
Dx-GetMonitoredInstances
Get a list of all monitored SQL Server instances.
Syntax
Dx-GetMonitoredInstances [-NodeName] <string> [-DxHealth] [-DxReg] [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all monitored SQL Server instances by DxHealth and DxReg.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
DxHealth | Switch Parameter | Whether or not to get list of monitored instances by DxHealth only. | False | False |
DxReg | Switch Parameter | Whether or not to get list of monitored instances by DxReg only. | False | False |
Examples
Dx-GetMonitoredIntances -NodeName "node1" -DxReg
Dx-GetMonitoredServices
Get a list of all monitored services.
Syntax
Dx-GetMonitoredServices [-NodeName] <string> [-DxHealth] [-DxReg] [<CommonParameters>]
Detailed Description
This cmdlet returns a list of all monitored services by DxHealth and DxReg.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | True | True |
DxHealth | Switch Parameter | Whether or not to get list of monitored services by DxHealth only. | False | False |
DxReg | Switch Parameter | Whether or not to get list of monitored services by DxReg only. | False | False |
Examples
Dx-GetMonitoredServices -NodeName "node1" -DxHealth
Dx-GetNodeDetail
Get a node detail.
Syntax
Dx-GetNodeDetail [-NodeName] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns system info for a cluster member node.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
NodeName | String | The name of the node. | False | True |
Examples
Dx-GetNodeDetail -NodeName "node1"
Dx-GetOTPK
Get any registered one-time passkeys.
Syntax
Dx-GetOTPK [<CommonParameters>]
Detailed Description
This cmdlet returns any currently registerd one-time passkeys for the cluster.
Parameters
None
Examples
Dx-GetPolicies
Dx-GetPolicies
Get a list of policies.
Syntax
Dx-GetPolicies [<CommonParameters>]
Detailed Description
This cmdlet returns a list of policies currently configured for DxEnterprise.
Parameters
None
Examples
Dx-GetPolicies
Dx-GetPolicy
Get a policy detail.
Syntax
Dx-GetPolicy [-PolicyID] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns policy details.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
PolicyID | String | The GUID of the policy. | True | True |
Examples
Dx-GetPolicy -PolicyID "2D2E01D6-D912-4887-BAC0-9622CB1BE71E"
Dx-GetProductType
Get product type.
Syntax
Dx-GetProductType [<CommonParameters>]
Detailed Description
This cmdlet returns the product type and version of the connected cluster.
Parameters
None
Examples
Dx-GetProductType
Dx-GetReservation
Get the SCSI reservations for a specific disk ID.
Syntax
Dx-GetReservation [-DiskID] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the SCSI reservations for the specified DiskID.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
DiskID | String | The GUID Disk ID of the disk in which to query the reservations. | True | True |
Examples
Dx-GetReservation -DiskID "dad7b407-b77a-b98b-edbb-df64556eeb17"
Dx-GetServiceDetail
Get service details.
Syntax
Dx-GetServiceDetail [-VhostName] <string> [-ServiceName] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns details about the specified service.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
ServiceName | String | The name of the service. | True | True |
Examples
Dx-GetServiceDetail -VhostName "vhost1" -ServiceName "SQLBrowser"
Dx-GetSMTP
Get SMTP settings for the cluster.
Syntax
Dx-GetSMTP [<CommonParameters>]
Detailed Description
This cmdlet returns the SMTP configuration for the current cluster.
Parameters
None
Examples
Dx-GetSMTP
Dx-GetSQLPaths
Get SQL Server instance paths.
Syntax
Dx-GetSQLPaths [-InstanceName] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the SQL Server instance start up path for master data, error log, and master log.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
InstanceName | String | The name of the instance in the format of <vhost>\<instance> . | True | True |
Examples
Dx-GetSQLPaths -InstanceName "vhost1\customer"
Dx-GetTunnels
Returns tunnel details.
Syntax
Dx-GetTunnels [<CommonParameters>]
Detailed Description
This cmdlet returns all tunnel information for the cluster.
Parameters
None
Examples
Dx-GetTunnels
Dx-GetUnusedDriveLetters
Get a list of available drive letters.
Syntax
Dx-GetUnusedDriveLetters [-VolID] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns list of drive letters that are unused. If a volume ID is included, the drive letter for the volume ID will be returned also.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VolID | String | The GUID Volume ID. | False | True |
Examples
Dx-GetUnusedDriveLetters -VolID "3caa25ce-3866-283c-1243-b48e92a6cd1d"
Dx-GetVersion
Get the DxLMonitor version.
Syntax
Dx-GetVersion [<CommonParameters>]
Detailed Description
This cmdlet returns the current version of DxLMonitor being used.
Parameters
None
Examples
Dx-GetVersion
Dx-GetVhost
Get Vhost detail.
Syntax
Dx-GetVhost [-VhostName] <string> [<CommonParameters>]
Detailed Description
This cmdlet returns the configuration of a specific Vhost, including the set of nodes associated with the Vhost, and the set of instances, services or file shares associated with the Vhost.
Parameters
Name | Type | Description | Required | Command-line Input |
---|---|---|---|---|
VhostName | String | The name of the Vhost. | True | True |
Examples
Dx-GetVhost -VhostName "vhost1"
Dx-GetVhosts
Get details for all Vhosts.
Syntax
Dx-GetVhosts [<CommonParameters>]
Detailed Description
This cmdlet returns a complete contents of the cluster configuration (i.e. DxVhost.xml file).
Parameters
None
Examples
Dx-GetVhosts