Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Set-NcNfsService


NAME
Set-NcNfsService

SYNOPSIS
Modify an NFS configuration.

SYNTAX
Set-NcNfsService [-Attributes] <NfsInfo> [-VserverContext <String>] [-Contro
ller <NcController[]>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Modify an NFS configuration.


PARAMETERS
-Attributes <NfsInfo>
An NfsInfo object containing the configuration values to set on the NFS
service. Use Get-NcNfsService -Template to get an empty NfsInfo object
and fill in the values to be set.

Required? true
Position? 1
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

-WhatIf


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

-Confirm


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
DataONTAP.C.Types.Nfs.NfsInfo


NOTES


Category: nfs
API: nfs-service-modify
Family: vserver

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

C:\PS>$config = Get-NcNfsService -Template
$config.IsNfsv2Enabled = $false
$config.IsNfsv3Enabled = $false
Set-NcNfsService $config


Set the NFS service configuration, disabling Nfsv2 and Nfsv3.


ChownMode : use_export_policy
DefaultWindowsUser :
EnableEjukebox : False
IsNfsAccessEnabled : True
IsNfsv2Enabled : False
IsNfsv3ConnectionDropEnabled : True
IsNfsv3Enabled : False
IsNfsv3FsidChangeEnabled : True
IsNfsv4FsidChangeEnabled : True
IsNfsv4NumericIdsEnabled : True
IsNfsv40AclEnabled : False
IsNfsv40Enabled : False
IsNfsv40MigrationEnabled : False
IsNfsv40ReadDelegationEnabled : False
IsNfsv40ReferralsEnabled : False
IsNfsv40ReqOpenConfirmEnabled : False
IsNfsv40WriteDelegationEnabled : False
IsNfsv41AclEnabled : False
IsNfsv41AclPreserveEnabled : True
IsNfsv41Enabled : False
IsNfsv41MigrationEnabled : False
IsNfsv41PnfsEnabled : True
IsNfsv41PnfsStripedVolumesEnabled : False
IsNfsv41ReferralsEnabled : False
IsNfsv41StateProtectionEnabled : True
Nfsv4GraceSeconds : 45
Nfsv4IdDomain : defaultv4iddomain.com
Nfsv4LeaseSeconds : 30
Nfsv41ImplementationIdDomain : defaultv41impliddomain.com
Nfsv41ImplementationIdName : defaultv41implidname
Nfsv41ImplementationIdTime : 1327069779
NtfsUnixSecurityOps : use_export_policy
RpcsecCtxHigh : 0
RpcsecCtxIdle : 0
Vserver : dlamotta01



RELATED LINKS
Get-NcNfsService
Add-NcNfsService
Remove-NcNfsService







 Data ONTAP® PowerShell Toolkit