|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaNfsExport
NAME
Get-NaNfsExport
SYNOPSIS
Returns the rules associated with exports.
SYNTAX
Get-NaNfsExport [[-Path] <String>] [-Persistent] [-Controller <NaController>
] [<CommonParameters>]
DESCRIPTION
Returns the rules associated with exports, using the new security info struc
ture. If a pathname is specified, the rules associated with the export matc
hing that pathname, are returned; otherwise, rules for all exports are retur
ned.
PARAMETERS
-Path <String>
The pathname, for whose matching export, the client wants a listing of t
he associated rules. If this parameter is provided, the Persistent param
eter is ignored.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Persistent
Default value is false. If specified, the export entries that are presen
t in the /etc/exports file are returned; otherwise, those loaded in memo
ry are returned. This parameter is ignored if the Path parameter is prov
ided.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.
Required? false
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.Nfs73.ExportsRuleInfo2
NOTES
Category: nfs
API: nfs-exportfs-list-rules-2
-------------- Example 1 --------------
C:\PS>Get-NaNfsExport -Persistent
List all persistent exports.
ActualPathname Pathname SecurityRules
-------------- -------- -------------
/vol/vol0 {True}
/vol/vol2 {True}
/vol/vol0/home {True}
/vol/testvol {}
/vol/smhv {True}
/vol/testvol2 {}
/vol/vol1 {}
/vol/vol1clone {True}
-------------- Example 2 --------------
C:\PS>(Get-NaNfsExport /vol/vol1 -Persistent).SecurityRules
Inspect the export results for volume 'vol1'.
Anon : 0
Nosuid :
ReadOnly :
ReadWrite : {}
Root : {10.61.160.6}
SecFlavor : {NetApp.Ontapi.Filer.Nfs73.SecFlavorInfo}
NosuidSpecified : False
RELATED LINKS
Add-NaNfsExport
Set-NaNfsExport
Remove-NaNfsExport
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|