|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcExportRule
NAME
Get-NcExportRule
SYNOPSIS
Get export rule configurations.
SYNTAX
Get-NcExportRule [-Vserver <String[]>] [[-Policy] <String[]>] [[-Index] <Str
ing[]>] [-Protocol <String[]>] [-Attributes <ExportRuleInfo>] [-VserverConte
xt <String>] [-Controller <NcController[]>] [<CommonParameters>]
Get-NcExportRule -Template [-VserverContext <String>] [-Controller <NcContro
ller[]>] [<CommonParameters>]
Get-NcExportRule -Query <ExportRuleInfo> [-Attributes <ExportRuleInfo>] [-Vs
erverContext <String>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get export rule configurations.
PARAMETERS
-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
-Policy <String[]>
The name of the export policy to get rules for. Data ONTAP wildcards ar
e permitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Index <String[]>
Export rule index. Data ONTAP wildcards are permitted.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Protocol <String[]>
The name of the protocol. Data ONTAP wildcards are permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <ExportRuleInfo>
For improved scalability in large clusters, provide an ExportRuleInfo ob
ject with various fields set to indicate which fields to return on all o
bjects. Undesired fields should remain set to null. Use "Get-NcExportR
ule -Template" to get the initially empty ExportRuleInfo 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
-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 ExportRuleInfo object for use with advanced quer
ies involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <ExportRuleInfo>
For advanced queries, provide an ExportRuleInfo object with various fiel
ds set to indicate which records to retrieve. Other fields should remai
n set to null. Use "Get-NcExportRule -Template" to get the initially em
pty ExportRuleInfo 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.Exports.ExportRuleInfo
NOTES
Category: exports
API: export-rule-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcExportRule -Vserver dlamotta01
Get all of the export rules for the vserver dlamotta01.
PolicyName RuleIndex ClientMatch Protocol RoRule
RwRule Vserver
---------- --------- ----------- -------- ------
------ -------
default 1 0.0.0.0/0 {any} {any}
{any} dlamotta01
dlamotta0112 1 0.0.0.0/0 {any} {sys}
{sys} dlamotta01
dlamotta0114 1 10.69.169.74 {any} {sys}
{sys} dlamotta01
-------------- Example 2 --------------
C:\PS>$q = Get-NcExportRule -Template
$q.ClientMatch = "10.61.167.167"
Get-NcExportRule -Query $q
Get the export rules that match the client 10.61.167.167.
PolicyName RuleIndex ClientMatch Protocol RoRule
RwRule Vserver
---------- --------- ----------- -------- ------
------ -------
costea010 1 10.61.167.167 {any} {sys}
{sys} costea01
costea011 1 10.61.167.167 {any} {sys}
{sys} costea01
costea0110 1 10.61.167.167 {any} {sys}
{sys} costea01
costea0118 1 10.61.167.167 {any} {sys}
{sys} costea01
costea0122 1 10.61.167.167 {any} {sys}
{sys} costea01
costea013 1 10.61.167.167 {any} {sys}
{sys} costea01
RELATED LINKS
New-NcExportRule
Remove-NcExportRule
Set-NcExportRule
Set-NcExportRuleIndex
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|