Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Set-NaOption


NAME
Set-NaOption

SYNOPSIS
Set the value of a single option.

SYNTAX
Set-NaOption [-OptionName] <String> [-OptionValue] <String> [-Controller <Na
Controller>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Set the value of a single option.


PARAMETERS
-OptionName <String>
The name of the option to set.

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

-OptionValue <String>
The value of the option to set.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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

-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.Types.Options.OptionInfo


NOTES


Category: options
API: options-set

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

C:\PS>Set-NaOption ssh.enable off


Disable SSH.


ClusterConstraint Name Value
----------------- ---- -----
none ssh.enable off



RELATED LINKS
Get-NaOption
Compare-NaOption







 Data ONTAP® PowerShell Toolkit