Skip to content

Test-SrmConnection

Synopsis

Check network connectivity to a Site Recovery Manager instance.

Syntax

Test-SrmConnection [-server] <String> [[-port] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

The Test-SrmConnection cmdlet checks the network connectivity to a Site Recovery Manager instance. Supports testing a connection on ports 443 (HTTPS) and 22 (SSH). Default: 443 (HTTPS).

Examples

Example 1

Test-SrmConnection -server sfo-srm01.sfo.rainpole.io

This example checks network connectivity with a Site Recovery Manager instance on default port, 443 (HTTPS).

Example 2

Test-SrmConnection -server sfo-srm01.sfo.rainpole.io -port 443

This example checks network connectivity with a Site Recovery Manager instance on port 443 (HTTPS). This is the default port.

Example 3

Test-SrmConnection -server sfo-srm01.sfo.rainpole.io -port 22

This example checks network connectivity with a Site Recovery Manager instance on port 22 (SSH).

Parameters

-server

The fully qualified domain name (FQDN) or IP address of the a Site Recovery Manager instance.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-port

The port number to test the connection. One of the following: 443 (HTTPS) or 22 (SSH). Default: 443 (HTTPS).

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 443
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Progress Action

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.