Get-EmcESXHost

Gets the list of VMware ESX hosts.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the VMware ESX host name or Uuid. Wildcards are permitted. It is a positional parameter (position = 1).

 

-VcenterSystem <IVcenterSystem>

Attributes: Optional, Position: named

Specifies the vCenter server.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-ScsiLun <ScsiLun>

Attributes: Required, Position: named

Specifies the ESI SCSI LUN object, which you can get by using the ESI storage system object or by using the Get-EmcScsiLun cmdlet.

 

-Datastore <Datastore>

Attributes: Required, Position: named

Specifies the ESI VMware datastore object, which you can get by using the Get-EmcDatastore cmdlet.

 

-VirtualMachineConfiguration <VirtualMachineConfiguration>

Attributes: Required, Position: named

Specifies the ESI Virtual Machine configuration object, which you can get by using the VirtualMachinesConfigurations parameter or by using the Get-EmcVirtualMachineConfiguration cmdlet. This cmdlet encapsulates VM configuration information, including status, MAC addresses, GUID, and attached file-based or pass-through disks.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

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

C:\PS>$vc = Get-EmcVcenterSystem *myVcenter*

C:\PS>Get-EmcESXHost -VcenterSystem $vc

This example gets the ESX host system of a vCenter server.

 

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

C:\PS>$sl = Get-EmcScsiLun *myScsiLun*

C:\PS>Get-EmcESXHost -ScsiLun $sl

This example gets the ESX host system of the specified SCSI LUN.

 

-------------- Example 3 --------------

C:\PS>$ds = Get-EmcDatastore *myDatastore*

C:\PS>Get-EmcESXHost -Datastore $ds

This example gets the ESX host system of the specified datastore.

 

-------------- Example 4 --------------

C:\PS>$vc = Get-EmcVcenterSystem *myVcenter*

C:\PS>$vc | Update-EmcSystem

C:\PS>$vm = Get-EmcHostSystem myVM

C:\PS>$vmconfig = Get-EmcVirtualMachineConfiguration -VirtualMachine $vm

C:\PS>Get-EmcESXHost -VirtualMachineConfiguration $vmconfig

This example gets the ESX host system of the specified virtual machine configuration.