< Back

Get-VsanIscsiLun

Sun Jan 19, 2020 7:16 pm

NAME Get-VsanIscsiLun



SYNOPSIS

This cmdlet retrieves the vSAN iSCSI LUNs from a cluster or target.





SYNTAX

Get-VsanIscsiLun [[-Name] <String[]>] [-Cluster <Cluster[]>] [-LunId <Int32[]>] [-Server <VIServer[]>]

[-VsanIscsiTarget <VsanIscsiTarget[]>] [<CommonParameters>]



Get-VsanIscsiLun -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]





DESCRIPTION

This cmdlet retrieves the vSAN iSCSI LUNs from a cluster or target.





PARAMETERS

-Cluster <Cluster[]>

Specifies the clusters from which to retrieve LUNs.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



-Id <String[]>

Filters the retrieved vSAN iSCSI LUNs by ID.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-LunId <Int32[]>

Filters the retrieved vSAN iSCSI LUNs by LUN ID.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String[]>

Filters the retrieved vSAN iSCSI LUNs by name.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Server <VIServer[]>

Specifies the vCenter Server systems 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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-VsanIscsiTarget <VsanIscsiTarget[]>

Specifies the vSAN iSCSI targets from which to retrieve LUNs.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VsanIscsiLun objects







NOTES









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



Get-VsanIscsiLun -Cluster "vsan-cluster"



Retrieves all vSAN iSCSI LUNs from the "vsan-cluster" cluster.

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



Get-VsanIscsiLun -Target $target -LunId 1



Retrieves the vSAN iSCSI LUNs with LunId 1 from the $target iSCSI target.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... siLun.html