Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

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 Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each 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
NetApp.Ontapi.Filer.C.Audit810.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







 Data ONTAP® PowerShell Toolkit