|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcNetInterface
NAME
Get-NcNetInterface
SYNOPSIS
Get network interface objects (LIFs).
SYNTAX
Get-NcNetInterface [[-Name] <String[]>] [-Vserver <String[]>] [-DataProtocol
s <String[]>] [-FirewallPolicy <String[]>] [-Role <String[]>] [-Attributes <
NetInterfaceInfo>] [-VserverContext <String>] [-Controller <NcController[]>]
[<CommonParameters>]
Get-NcNetInterface -Template [-VserverContext <String>] [-Controller <NcCont
roller[]>] [<CommonParameters>]
Get-NcNetInterface -Query <NetInterfaceInfo> [-Attributes <NetInterfaceInfo>
] [-VserverContext <String>] [-Controller <NcController[]>] [<CommonParamete
rs>]
DESCRIPTION
Get network interface objects (LIFs).
PARAMETERS
-Name <String[]>
The name of one or more interfaces to get. Data ONTAP wildcards are per
mitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Vserver <String[]>
Restrict results to the specified vserver(s). Data ONTAP wildcards are
permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-DataProtocols <String[]>
Restrict results to the specified data protocol(s). Data ONTAP wildcard
s are permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-FirewallPolicy <String[]>
Restrict results to the specified firewall policy(s). Data ONTAP wildca
rds are permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Role <String[]>
Restrict results to the specified LIF role(s). Data ONTAP wildcards are
permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <NetInterfaceInfo>
For improved scalability in large clusters, provide a NetInterfaceInfo o
bject with various fields set to indicate which fields to return on all
objects. Undesired fields should remain set to null. Use "Get-NcNetInt
erface -Template" to get the initially empty NetInterfaceInfo object. I
f not specified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
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 NetInterfaceInfo object for use with advanced qu
eries involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <NetInterfaceInfo>
For advanced queries, provide a NetInterfaceInfo object with various fie
lds set to indicate which records to retrieve. Other fields should rema
in set to null. Use "Get-NcNetInterface -Template" to get the initially
empty NetInterfaceInfo 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.NetInterfaceInfo
NOTES
Category: net
API: net-interface-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcNetInterface -Vserver costea01 | select InterfaceName, OpStatus,
DataProtocols
List the status of each LIF on vserver 'costea01'.
InterfaceName OpStatus DataProtocols
------------- -------- -------------
costea01_lif_data1 up {nfs, cifs, fcache}
costea01_lif_data2 up {nfs, cifs, fcache}
costea01_lif_data3 up {iscsi}
costea01_lif_data4 up {fcp}
costea01_lif_mgmt up {nfs, cifs, fcache}
-------------- Example 2 --------------
C:\PS>Get-NcNetInterface -Attributes (Get-NcNetInterface -Template) | select
InterfaceName, Vserver
Get the list of LIF names without getting all of the associated details.
InterfaceName Vserver
------------- -------
costea01_lif_data1 costea01
costea01_lif_data2 costea01
costea01_lif_data3 costea01
costea01_lif_data4 costea01
costea01_lif_mgmt costea01
costea01_lif_data1 costea02
costea02_lif_mgmt costea02
dlamotta01_lif_data1 dlamotta01
dlamotta01_lif_mgmt dlamotta01
dlamotta02_lif_data1 dlamotta02
dlamotta02_lif_mgmt dlamotta02
rashidvs_data rashidvs
rashidvs2_data rashidvs2
cluster_mgmt VxeRubble
clus1 VxeRubble-01
clus2 VxeRubble-01
mgmt1 VxeRubble-01
clus1 VxeRubble-02
clus2 VxeRubble-02
mgmt1 VxeRubble-02
RELATED LINKS
New-NcNetInterface
Remove-NcNetInterface
Set-NcNetInterface
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|