Get-RedgateMonitorInstance
Published 18 April 2024
Gets the details of all of the SQL Server Instances for the given Cluster or Machine.
Syntax
Get-RedgateMonitorInstance [[-Machine] <Machine>] [[-Name] <string>] [-BaseMonitor <BaseMonitor>] [<CommonParameters>] Get-RedgateMonitorInstance [[-Name] <string>] [-BaseMonitor <BaseMonitor>] [-Group <Group>] [<CommonParameters>] Get-RedgateMonitorInstance [[-Cluster] <Cluster>] [[-Name] <string>] [-BaseMonitor <BaseMonitor>] [<CommonParameters>] Get-RedgateMonitorInstance [[-LinuxMachine] <LinuxMachine>] [[-Name] <string>] [-BaseMonitor <BaseMonitor>] [<CommonParameters>]
Description
The Get-RedgateMonitorInstance cmdlet gets details of Instances from the Redgate Monitor Server.
Connect-RedgateMonitor must be called before this cmdlet.
Parameters
-BaseMonitor
<BaseMonitor>
The Base Monitor to limit results to.
Aliases | None |
Required? | false |
Position? | named |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-Group
<Group>
{{ Fill Group Description }}
Aliases | None |
Required? | false |
Position? | named |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-Cluster
<Cluster>
The Cluster to get Instances from.
Aliases | None |
Required? | false |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-Machine
<Machine>
The Machine to limit results to.
Aliases | None |
Required? | false |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-LinuxMachine
<LinuxMachine>
The Linux Machine to limit results to.
Aliases | None |
Required? | false |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-Name
<String>
The name of the specific instance to retrieve.
Aliases | None |
Required? | false |
Position? | 2 |
Default Value | None |
Accept Pipeline Input | False |
Accept Wildcard Characters | false |
-ProgressAction
<ActionPreference>
{{ Fill ProgressAction Description }}
Aliases | None |
Required? | false |
Position? | named |
Default Value | None |
Accept Pipeline Input | False |
Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
[Cluster] For more information, see https://www.red-gate.com/monitor14/powershell-custom-types#CustomTypes-Cluster.
-
[Machine] For more information, see https://www.red-gate.com/monitor14/powershell-custom-types#CustomTypes-Machine.
-
[LinuxMachine] For more information, see https://www.red-gate.com/monitor14/powershell-custom-types#CustomTypes-LinuxMachine.
Return values
The output type is the type of the objects that the cmdlet emits.
-
[Instance] For more information, see https://www.red-gate.com/monitor14/powershell-custom-types#CustomTypes-Instance.
Examples
-------------------------- EXAMPLE 1 --------------------------
Get-RedgateMonitorInstance -Cluster $cluster
-------------------------- EXAMPLE 2 --------------------------
Get-RedgateMonitorInstance -Machine $machine
-------------------------- EXAMPLE 3 --------------------------
Get-RedgateMonitorInstance -LinuxMachine $linuxMachine