Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Get-NcPortset


NAME
Get-NcPortset

SYNOPSIS
Get a list of portset objects.

SYNTAX
Get-NcPortset [[-Name] <String[]>] [-Vserver <String[]>] [-Attributes <Ports
etInfo>] [-Controller <NcController[]>] [<CommonParameters>]

Get-NcPortset -Template [-Controller <NcController[]>] [<CommonParameters>]

Get-NcPortset -Query <PortsetInfo> [-Attributes <PortsetInfo>] [-Controller
<NcController[]>] [<CommonParameters>]


DESCRIPTION
Get a list of portset objects.


PARAMETERS
-Name <String[]>
The name of one or more portsets to get. Data ONTAP wildcards are permi
tted.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Vserver <String[]>
Restrict results to the specified vservers. Data ONTAP wildcards are pe
rmitted.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Attributes <PortsetInfo>
For improved scalability in large clusters, provide a PortsetInfo object
with various fields set to indicate which fields to return on all objec
ts. Undesired fields should remain set to null. Use "Get-NcPortset -Te
mplate" to get the initially empty PortsetInfo object. If not specified
, all data is returned for each object.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Template
Specify to get an empty PortsetInfo object for use with advanced queries
involving the Query attribute.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Query <PortsetInfo>
For advanced queries, provide a PortsetInfo object with various fields s
et to indicate which records to retrieve. Other fields should remain se
t to null. Use "Get-NcPortset -Template" to get the initially empty Por
tsetInfo object.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.C.Portset810.PortsetInfo


NOTES


Category: portset
API: portset-get-iter
Family: cluster, vserver

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

C:\PS>Get-NcPortset


Get all portsets.


NcController : cerebus
InitiatorGroupInfo :
PortsetName : portset_fc1
PortsetPortInfo : {Cerebus-03_fc_if1, Cerebus-03_fc_if2, Cerebus-04_fc_if
1, Cerebus-04_fc_if2...}
PortsetPortTotal : 8
PortsetType : fcp
Vserver : Barker03

NcController : cerebus
InitiatorGroupInfo :
PortsetName : portset_iscsi1
PortsetPortInfo : {Cerebus-03_iscsi_if1, Cerebus-03_iscsi_if2, Cerebus-04
_iscsi_if1, Cerebus-04_iscsi_if2...}
PortsetPortTotal : 8
PortsetType : iscsi
Vserver : Barker03

NcController : cerebus
InitiatorGroupInfo :
PortsetName : portset_fc1
PortsetPortInfo : {Cerebus-03_fc_if1, Cerebus-03_fc_if2, Cerebus-04_fc_if
1, Cerebus-04_fc_if2...}
PortsetPortTotal : 8
PortsetType : fcp
Vserver : Lionetti01

NcController : cerebus
InitiatorGroupInfo :
PortsetName : portset_iscsi1
PortsetPortInfo : {Cerebus-03_iscsi_if1, Cerebus-03_iscsi_if2, Cerebus-04
_iscsi_if1, Cerebus-04_iscsi_if2...}
PortsetPortTotal : 8
PortsetType : iscsi
Vserver : Lionetti01

NcController : cerebus
InitiatorGroupInfo : {fuji05_FC}
PortsetName : parkerFD_portset
PortsetPortInfo : {Parker_lif3-1_0c, Parker_lif3-2_0d, Parker_lif4-1_0c,
Parker_lif4-2_0d...}
PortsetPortTotal : 8
PortsetType : fcp
Vserver : Parker01



RELATED LINKS
New-NcPortset
Remove-NcPortset







 Data ONTAP® PowerShell Toolkit