Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Add-NcNfsService


NAME
Add-NcNfsService

SYNOPSIS
Create a new NFS configuration.

SYNTAX
Add-NcNfsService [[-Attributes] <NfsInfo>] [-VserverContext <String>] [-Cont
roller <NcController[]>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Create a new NFS configuration.


PARAMETERS
-Attributes <NfsInfo>
Specify the attributes to give the created NFS configuration. Use Get-N
cNfsService -Default to get the default configuration or Get-NcNfsServic
e -Template to get an empty configuration. If this parameter is omitted
, the NFS service is created with the default configuration.

Required? false
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-create
Family: vserver

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

C:\PS>Add-NcNfsService


Create an NFS service with the default configuration.


Vserver : dlamotta01
ChownMode : use_export_policy
DefaultWindowsUser :
EnableEjukebox : False
IsNfsAccessEnabled : True
IsNfsv2Enabled : False
IsNfsv3ConnectionDropEnabled : True
IsNfsv3Enabled : True
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 : 1326996473
NtfsUnixSecurityOps : use_export_policy
RpcsecCtxHigh : 0
RpcsecCtxIdle : 0


-------------- Example 2 --------------

C:\PS>$config = Get-NcNfsService -Default
$config.IsNfsv2Enabled = $true
Add-NcNfsService $config


Configure the NFS service to the default configuration with Nfsv2 enabled.


ChownMode : use_export_policy
DefaultWindowsUser :
EnableEjukebox : False
IsNfsAccessEnabled : True
IsNfsv2Enabled : True
IsNfsv3ConnectionDropEnabled : True
IsNfsv3Enabled : True
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 : 1327068135
NtfsUnixSecurityOps : use_export_policy
RpcsecCtxHigh : 0
RpcsecCtxIdle : 0
Vserver : dlamotta01



RELATED LINKS
Remove-NcNfsService
Get-NcNfsService
Set-NcNfsService







 Data ONTAP® PowerShell Toolkit