Data ONTAP® PowerShell Toolkit

Cmdlet: Set-NaVfilerProtocol


NAME
Set-NaVfilerProtocol

SYNOPSIS
Allow / disallow protocols on a vfiler.

SYNTAX
Set-NaVfilerProtocol [-Name] <String> [-AllowProtocols <String[]>] [-Disallo
wProtocols <String[]>] [-Controller <NaController>] [-WarningAction <ActionP
reference>] [-WarningVariable <String>] [<CommonParameters>]


DESCRIPTION
Allow / disallow protocols on a vfiler.


PARAMETERS
-Name <String>
The name of the vfiler.

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

-AllowProtocols <String[]>
List of protocols to allow. Possible values are: nfs, cifs, rsh.

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

-DisallowProtocols <String[]>
List of protocols to disallow. Possible values are: nfs, cifs, rsh.

Required? false
Position? named
Default value
Accept pipeline input? false
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
NetApp.Ontapi.Filer.Vfiler73.VfilerInfo


NOTES


Category: vfiler
API: vfiler-allow-protocol, vfiler-disallow-protocol

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

C:\PS>Set-NaVfilerProtocol vfiler2 -AllowProtocols nfs,cifs -DisallowProtoco
ls rsh | Get-NaVfilerProtocol


Allow protocols nfs & cifs on vfiler 'vfiler2', and disallow protocol rsh.
Then display the result.


Name Value
---- -----
DisallowedProtocols {rsh}
AllowedProtocols {nfs, cifs, iscsi}



RELATED LINKS
Get-NaVfiler
Get-NaVfilerProtocol







 Data ONTAP® PowerShell Toolkit