Data ONTAP® PowerShell Toolkit

Cmdlet: Set-NaNfsExport


NAME
Set-NaNfsExport

SYNOPSIS
Functionally similar to Add-NaNfsExport.

SYNTAX
Set-NaNfsExport [-Persistent] [-Path] <String> [-ActualPath <String>] [-Secu
rityFlavors <String[]>] [-Anon <String>] [-ReadOnly <String[]>] [-ReadWrite
<String[]>] [-Root <String[]>] [-NoSuid] [-Controller <NaController>] [-Warn
ingAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters
>]


DESCRIPTION
Functionally similar to Add-NaNfsExport with the following caveats: returns
an error if the rule does not exist, and only works for one rule at a time.


PARAMETERS
-Persistent
Default value is false. If specified, modifies the etc/exports file to a
ppend the rule for a permanent change. (The new rule still takes effect
immediately.)

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

-Path <String>
Directory name or file to export.

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

-ActualPath <String>
Pathname inside of the filer which is being exported. The default for th
is is value in Path.

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

-SecurityFlavors <String[]>
List of possible security flavors this rule supports. Default security i
s "sys".

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

-Anon <String>
All hosts with this userid or username have root access to this director
y.

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

-ReadOnly <String[]>
An array of hostnames which only have read privileges for all the securi
ty flavors found in the SecurityFlavors list.

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

-ReadWrite <String[]>
An array of hostnames which have read and write privileges for all the s
ecurity flavors found in the SecurityFlavors list. Any hostname in ReadO
nly must not be in ReadWrite also. Specify "all-hosts" to enable read/wr
ite access from anywhere. By default, if no ReadOnly or ReadWrite hosts
are given, then ReadWrite contains a hostname of "all-hosts".

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

-Root <String[]>
Array of hostnames which have roots with ReadWrite or ReadOnly privilege
s.

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

-NoSuid
If specified, causes the server file system to silently ignore any attem
pt to enable the setuid or setgid mode bits. Default value is false.

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

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

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

-WarningAction <ActionPreference>


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

-WarningVariable <String>


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



NOTES


Category: nfs
API: nfs-exportfs-modify-rule-2

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

C:\PS>Set-NaNfsExport /vol/testvol -Persistent -ReadWrite all-hosts -NoSuid


Modify NFS export for volume 'testvol'.






RELATED LINKS
Add-NaNfsExport
Remove-NaNfsExport
Get-NaNfsExport







 Data ONTAP® PowerShell Toolkit