PowerCLI Reference

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

Related Commands

Online Version

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Filters the retrieved vSAN iSCSI LUNs by name.falseFalse
ClusterCluster[]Specifies the clusters from which to retrieve LUNs.falseTrue (ByValue)
IdString[]Filters the retrieved vSAN iSCSI LUNs by ID.trueFalse
LunIdInt32[]Filters the retrieved vSAN iSCSI LUNs by LUN ID.falseFalse
ServerVIServer[]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.falseFalse
VsanIscsiTargetVsanIscsiTarget[]Specifies the vSAN iSCSI targets from which to retrieve LUNs.falseTrue (ByValue)

Return Type

Zero or more VsanIscsiLun objects

Notes

Examples

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


Copyright © VMware, Inc. All rights reserved.