|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcNetPortVlan
NAME
Get-NcNetPortVlan
SYNOPSIS
Get network VLANs.
SYNTAX
Get-NcNetPortVlan [[-Name] <String[]>] [-Node <String[]>] [-VlanId <Int16][]
>] [-ParentInterface <String[]>] [-Attributes <VlanInfo>] [-Controller <NcCo
ntroller[]>] [<CommonParameters>]
Get-NcNetPortVlan -Template [-Controller <NcController[]>] [<CommonParameter
s>]
Get-NcNetPortVlan -Query <VlanInfo> [-Attributes <VlanInfo>] [-Controller <N
cController[]>] [<CommonParameters>]
DESCRIPTION
Get network VLANs.
PARAMETERS
-Name <String[]>
The name of one or more VLANs to get. Data ONTAP wildcards are permitte
d.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Node <String[]>
Restrict results to the specified nodes(s). Data ONTAP wildcards are pe
rmitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-VlanId <Int16][]>
Restrict results to the specified VLAN ID(s). Data ONTAP wildcards are
permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ParentInterface <String[]>
Restrict results to the specified parent interfaces(s). Data ONTAP wild
cards are permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <VlanInfo>
For improved scalability in large clusters, provide a VlanInfo object wi
th various fields set to indicate which fields to return on all objects.
Undesired fields should remain set to null. Use "Get-NcNetPortVlan -T
emplate" to get the initially empty VlanInfo 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 clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach 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 VlanInfo object for use with advanced queries in
volving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <VlanInfo>
For advanced queries, provide a VlanInfo object with various fields set
to indicate which records to retrieve. Other fields should remain set t
o null. Use "Get-NcNetPortVlan -Template" to get the initially empty Vl
anInfo 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
DataONTAP.C.Types.Net.VlanInfo
NOTES
Category: net
API: net-vlan-get-iter
Family: cluster
-------------- Example 1 --------------
C:\PS>Get-NcNetPortVlan
List all VLANs in the cluster.
InterfaceName ParentInterface VlanID Node
------------- --------------- ------ ----
e0c-1 e0c 1 fas3070cluster01-02
e0c-2 e0c 2 fas3070cluster01-02
e0c-3 e0c 3 fas3070cluster01-02
i0b-1 i0b 1 fas3070cluster01-02
i0b-2 i0b 2 fas3070cluster01-02
i0b-3 i0b 3 fas3070cluster01-02
-------------- Example 2 --------------
C:\PS>$q = Get-NcNetPortVlan -Template
$q.Vlanid = "!2"
Get-NcNetPortVlan -Query $q
Get all VLANs with IDs other than '2'.
InterfaceName ParentInterface VlanID Node
------------- --------------- ------ ----
e0c-1 e0c 1 fas3070cluster01-01
e0c-3 e0c 3 fas3070cluster01-01
i0b-1 i0b 1 fas3070cluster01-02
i0b-3 i0b 3 fas3070cluster01-02
RELATED LINKS
New-NcNetPortVlan
Remove-NcNetPortVlan
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|