vSphere PowerCLI Reference

Get-VMHostRoute

Synopsis

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

Syntax

Get-VMHostRoute [[-VMHost] <VMHost[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
New-VMHostRoute
Remove-VMHostRoute
Set-VMHostRoute

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specify the hosts for which you want to retrieve routes.falsetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

VMHostRoute[]

Notes

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

Examples

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

Get-VMHostRoute -VMHost $host

Retrieves the routes for the specified host.

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

Get-VMHostRoute -VMHost $host1, $host2 -Server $server1, $server2

Retrieves the routes for the specified hosts and servers.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.