powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostRoute



NAME
Get-VMHostRoute

SYNOPSIS
Retrieves the routes from the routing table of the specified hosts.

SYNTAX
Get-VMHostRoute [[-VMHost] ] [-Server ] []


DESCRIPTION
Retrieves the routes from the routing table of the specified hosts.


PARAMETERS
-VMHost
Specify the hosts for which you want to retrieve routes.

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

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

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


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
VMHostRoute[]


NOTES


Supported only on ESX 4.0/ vCenter Server 4.0 and newer.

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

C:\PS>Get-VMHostRoute -VMHost $host


Retrieves the routes for the specified host.





-------------- Example 2 --------------

C:\PS>Get-VMHostRoute -VMHost $host1, $host2 -Server $server1, $server2


Retrieves the routes for the specified hosts and servers.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMHostRoute.html
New-VMHostRoute
Remove-VMHostRoute
Set-VMHostRoute