Get-EmcVcenterSystem

Gets the list of vCenter systems.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the vCenter name or UuID. Wildcards are permitted. It is a positional parameter (position = 1).

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

-ESXHostSystem <IEsxHostSystem>

Attributes: Optional, Position: named

Specifies the ESI ESX host system object, which you can get by using the Get-EmcESXHost cmdlet.

 

-ScsiLun <ScsiLun>

Attributes: Required, Position: named

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

 

-Datastore <Datastore>

Attributes: Required, Position: named

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

 

<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*

This example gets a list of all the vCenter servers with myVcenter in the name.

 

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

C:\PS>$esx = Get-EmcESXHost *99

C:\PS>$vc = Get-EmcVcenterSystem -ESXHostSystem $esx

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

 

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

C:\PS>$sc = Get-EmcScsiLun naa.60000970000192605412533032313036

C:\PS>$vc = Get-EmcVcenterSystem -ScsiLun $sc

This example gets the vCenter server of a specified SCSI Lun.

 

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

C:\PS>$datastore = Get-EmcDatastore DatastoreTest

C:\PS>$vc = Get-EmcVcenterSystem -Datastore $datastore

This example gets the vCenter server of a specified datastore.