Get-LXCAAuditLog
This cmdlet retrieves the audit log from the Lenovo XClarity Administrator server.
Note
You cannot pipe objects to this cmdlet.
Syntax
Get-LXCAAuditLog [-Connection LXCAConnection]
[-EventID String[]]
[-SourceID String[]]
[-Severity EventSeverity[]]
[-PreviousHours Int]
[-StartSequenceNumber Long]
[-EndSequenceNumber Long]
[CommonParameter]
Parameters
- -Connection LXCAConnection
- Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
- -EventID String[]
- Specifies one or more audit event IDs. If you do not specify an event ID, all events are returned.NoteYou can use the
Get-LXCAAuditLog cmdlet to retrieve a list of audit event IDs. - -SourceID String[]
- Specifies the UUID of the component that is the event source (raiser or owner).
- -Severity EventSeverity[]
- Specifies the event severity. You can specify one or more of the following severities, separated by a comma.
- Unknown
- Informational
- Warning
- Minor
- Major
- Critical
- Fatal
NoteThe severities that are listed through this cmdlet differ from those listed in theLenovo XClarity Administrator web interface. Lenovo XClarity Administrator web interface severity Severity parameter Critical Fatal, Critical, Major Warning Minor, Warning Informational Informational Unknown Unknown - -PreviousHours Int
- Specifies the number of hours before the current time that is to be used for obtaining events.
- -StartSequenceNumber Long
- Specifies the start sequence number for obtaining events.
- -EndSequenceNumber Long
- Specifies the end sequence number for obtaining events.
- CommonParameters
- This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.
Results
This cmdlet returns one or more AuditLog objects
Examples
The following example retrieves the entire audit log.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$auditlog = Get-LXCAAuditLog
Disconnect-LXCAThe following example retrieves the critical and fatal audit log entries that have occurred in the last 12 hours.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$auditlog = Get-LXCAAuditLog -Severity Critical,Fatal, -PreviousHours 12
Disconnect-LXCA
Related links
Give documentation feedback