Get-EmcScsiLun

Gets the list of VMware SCSI LUNs.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the device name, canonical name, or ID for the VMware SCSI LUN. Wildcards are permitted. It is a positional parameter (position = 1).

 

-VcenterSystem <IVcenterSystem>

Attributes: Optional, Position: named

Specifies the vCenter server.

 

-Lun <Lun>

Attributes: Optional, Position: named

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

 

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

 

-Datastore <Datastore>

Attributes: Required, Position: named

Specifies the ESI VMware 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*

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

This example gets all SCSI LUNs of a specified Vcenter server.

 

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

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

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

C:\PS>Get-EmcScsiLun -ESXHostSystem $esxhost

This example gets all SCSI LUNs for a specified ESX host.

 

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

C:\PS>$lun = Get-EmcLUN -ID 298

C:\PS> Get-EmcScsiLun -Lun $lun

This example gets the SCSI LUN associated with a specified LUN object.

 

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

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

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

This example gets the SCSI LUN associated with the specified database object.