|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcAudit
NAME
Set-NcAudit
SYNOPSIS
Set the cluster administrative audit settings.
SYNTAX
Set-NcAudit [-CliSet [<Boolean>]] [-CliGet [<Boolean>]] [-HttpSet [<Boolean>
]] [-HttpGet [<Boolean>]] [-SnmpSet [<Boolean>]] [-SnmpGet [<Boolean>]] [-On
tapiSet [<Boolean>]] [-OntapiGet [<Boolean>]] [-Controller <NcController[]>]
[<CommonParameters>]
Set-NcAudit [-Attributes] <AuditInfo> [-Controller <NcController[]>] [<Commo
nParameters>]
DESCRIPTION
Set the cluster administrative audit settings.
PARAMETERS
-CliSet [<Boolean>]
If true, enable auditing of CLI set operations. If false, disable audit
ing of CLI set operations. If not specified, the setting will remain un
changed.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CliGet [<Boolean>]
If true, enable auditing of CLI get operations. If false, disable audit
ing of CLI get operations. If not specified, the setting will remain un
changed.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-HttpSet [<Boolean>]
If true, enable auditing of HTTP set operations. If false, disable audi
ting of HTTP set operations. If not specified, the setting will remain
unchanged.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-HttpGet [<Boolean>]
If true, enable auditing of HTTP get operations. If false, disable audi
ting of HTTP get operations. If not specified, the setting will remain
unchanged.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SnmpSet [<Boolean>]
If true, enable auditing of SNMP set operations. If false, disable audi
ting of SNMP set operations. If not specified, the setting will remain
unchanged.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SnmpGet [<Boolean>]
If true, enable auditing of SNMP get operations. If false, disable audi
ting of SNMP get operations. If not specified, the setting will remain
unchanged.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OntapiSet [<Boolean>]
If true, enable auditing of ONTAPI set operations. If false, disable au
diting of ONTAPI set operations. If not specified, the setting will rem
ain unchanged.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OntapiGet [<Boolean>]
If true, enable auditing of ONTAPI get operations. If false, disable au
diting of ONTAPI get operations. If not specified, the setting will rem
ain unchanged.
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
-Attributes <AuditInfo>
AuditInfo object containing the audit settings to give the cluster.
Required? true
Position? 1
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.Audit.AuditInfo
NOTES
Category: audit
API: audit-modify
Family: cluster
-------------- Example 1 --------------
C:\PS>Set-NcAudit -CliSet $false -HttpSet $false -HttpGet $true
Set the cluster to have the given audit settings. Any settings not specifie
d remain unchanged.
CliGet : False
CliSet : False
HttpGet : True
HttpSet : False
OntapiGet : False
OntapiSet : True
SnmpGet : False
SnmpSet : True
-------------- Example 2 --------------
C:\PS>$t = Get-NcAudit -Template
$t.CliGet = $true
$t.OntapiGet = $true
$t.SnmpGet = $true
Set-NcAudit -Attributes $t
Set the cluster to have the given audit settings using an AuditInfo object.
Any settings not specified remain unchanged.
CliGet : True
CliSet : False
HttpGet : True
HttpSet : False
OntapiGet : True
OntapiSet : True
SnmpGet : True
SnmpSet : True
RELATED LINKS
Get-NcAudit
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|