Get-ReplMonitor
Gets a ReplicationMonitor.
Syntax
Get-ReplMonitor [-replServer] <Object> [<CommonParameters>]
Detailed Description
The Get-ReplMonitor function gets the ReplicationMonitor from the specified ReplServer.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
replServer |
ReplServer can be a string representing the server or a ServerConnection object returned from Get-ReplServer. |
true |
false |
|
Input Type
None
You cannot pipe objects to Get-ReplMonitor
Return Values
Microsoft.SqlServer.Replication.ReplicationMonitor
Get-ReplMonitor returns Microsoft.SqlServer.Replication.ReplicationMonitor object
Notes
There is a basic hierarchy with replication monitoring ReplicationServer => PublisherMonitor => PublicationMonitor. In addition to returning higher level replication information, this function is used by Get-ReplPublisherMonitor and Get-ReplPublicationMonitor.
Examples
EXAMPLE 1
Get-ReplMonitor "Z002\sql2K8"
This command gets the ReplicationMonitor for SQL Server Z002\SQL2K8.
EXAMPLE 2
Get-ReplMonitor $(Get-ReplServer "Z002\SQL2K8" sa Passw0rd).ConnectionContext
This command gets the ReplicationMonitor for SQL Server Z002\SQL2K8 using SQL authentication.