|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcAudit
NAME
Get-NcAudit
SYNOPSIS
Get the cluster administrative audit settings.
SYNTAX
Get-NcAudit [-Attributes <AuditInfo>] [-Controller <NcController[]>] [<Commo
nParameters>]
Get-NcAudit -Template [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get the cluster administrative audit settings.
PARAMETERS
-Attributes <AuditInfo>
Provide an AuditInfo object with various fields set to indicate which fi
elds to return on all objects. Undesired fields should remain set to nu
ll. Use "Get-NcAudit -Template" to get the initially empty AuditInfo ob
ject. If not specified, all data is returned for each object.
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
-Template
Specify to get an empty AuditInfo object for use with advanced queries i
nvolving the Query attribute.
Required? true
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.Audit.AuditInfo
NOTES
Category: audit
API: audit-get
Family: cluster
-------------- Example 1 --------------
C:\PS>Get-NcAudit
Get all of the audit settings for the current cluster.
CliGet : False
CliSet : True
HttpGet : False
HttpSet : True
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
Get-NcAudit -Attributes $t
Get the value of only the specified audit settings: CliGet, OntapiGet, and S
nmpGet.
CliGet : False
CliSet :
HttpGet :
HttpSet :
OntapiGet : False
OntapiSet :
SnmpGet : False
SnmpSet :
RELATED LINKS
Set-NcAudit
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|