Get-EmcHostLunIdentifier

Gets the host LUN identifier.

 

Syntax

 

Parameters

-Lun <Lun>

Attributes: Required, Position: 1

Specifies the ESI LUN object. You can get a LUN object 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.

 

-ClusterSystem <IClusterSystem>

Attributes: Required, Position: named

Specifies the ESI cluster system object. You can add a cluster system object to ESI by using the Get-EmcClusterSystemCredential and Connect-EmcSystem cmdlets. You can get a cluster system object by using the Get-EmcClusterSystem cmdlet.

 

-HostSystem <IHostSystem>

Attributes: Required, Position: named

Specifies the ESI host system object. You can add a host system object to ESI by using the Get-EmcHostSystemCredential and Connect-EmcSystem cmdlets. You can get a host system object by using the Get-EmcHostSystem cmdlet. The object can be a stand-alone host system, a virtual machine, or a hypervisor.

 

<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>$h = Get-EmcHostSystemCredential

C:\PS>$Host1 = $h | Connect-EmcSystem

C:\PS>$Lun95 = Get-EmcLUN Site2*Farm95*

C:\PS>Get-EmcHostLunIdentifier -Lun $Lun95 -HostSystem $Host1

This example gets the host LUN identifier for the specified LUN and host system.

 

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

C:\PS>$Cluser1 = Get-EmcClusterSystem

C:\PS>$Cluser1

C:\PS>$Lun29 = Get-EmcLUN 11529*

C:\PS>$Lun29

C:\PS>Get-EmcHostLunIdentifier -Lun $Lun29 -ClusterSystem $Cluster1

This example gets the host LUN identifier for the specified LUN and cluster system.

 

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

C:\PS>$l = Get-EmcLUN mylun*

C:\PS>Get-EmcHostLunIdentifier -Lun $l

This example gets the host LUN identifier for the specified LUN.