Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Ping-NaHost


NAME
Ping-NaHost

SYNOPSIS
Ping a host.

SYNTAX
Ping-NaHost [-Host] <String> [[-Count] <Int32>] [-Controller <NaController>]
[<CommonParameters>]


DESCRIPTION
Ping a host. Returns true on the first successful ping of retry-count attem
pts. IPv6 is not supported at this time.


PARAMETERS
-Host <String>
The name or the IP address of the host to ping. The format is an IPv4 h
ost name or an IP address.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Count <Int32>
The number of pings to try before giving up. Default is 3. Range: [1..5
]

Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
System.Boolean


NOTES


Category: net
API: net-ping

-------------- Example 1 --------------

C:\PS>Ping-NaHost 10.61.167.61 -Count 5


Ping host at 10.61.167.61 up to five times.


True



RELATED LINKS
Resolve-NaHost
Ping-NaHostInfo







 Data ONTAP® PowerShell Toolkit