Get-LXCAEvent
This cmdlet retrieves one or more management server and hardware events from the Lenovo XClarity Administrator server.
Note
You cannot pipe objects to this cmdlet.
Syntax
Get-LXCAEvent [-Connection LXCAConnection]
[-EventID String[]]
[-SourceID String[]]
[-Severity EventSeverity[]]
[-EventClass EventClass[]]
[-PreviousHours Int]
[-StartSequenceNumber Long]
[-EndSequenceNumber Long]
[-All]
[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 event IDs. If you do not specify an event ID, all events are returned.NoteYou can use the Get-LXCAEvent cmdlet to retrieve a list of event IDs.
- -SourceID String[]
- Specifies one or more UUIDs of the components that are the event source (raiser or owner).
- -Severity EventSeverity[]
- Specifies one or more event severities. 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 - -EventClass EventClass[]
- Specifies the event source type. You can specify one or more of the following types, separated by a comma.
- ADAPTOR (adapter card)
- AUDIT
- BLADE (Flex System server)
- COOLING
- DISKS (storage)
- EXPANSION (expansion card)
- IOMODULE (Flex System switch)
- MEMORY
- OTHER
- POWER
- PROCESSOR
- SWITCH (RackSwitch switch)
- SYSTEM (rack or tower server)
- TEST
- UNKNOWN
- OTHER
- BACKPLANE
- CHASSIS
- DRIVE
- EXTDRIVE. External drive
- FAN
- M2_ADAPTER
- M2DRIVE
- OCP
- PCIE
- PSU
- RETIMER
- RISER
- _7MMDrive
- PUMP
- -PreviousHours Int
- Specifies the number hours before the current time in which events are to be obtained.
- -StartSequenceNumber Long
- Specifies the start sequence number for obtaining events.
- -EndSequenceNumber Long
- Specifies the end sequence number for obtaining events.
- -All
- If specified, the cmdlets also returns the event log entries.
- 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 Event objects.
Examples
- The following example retrieves a list of all events with a severity of Critical.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$events = Get-LXCAEvent -Severity Critical
Disconnect-LXCA - The following example retrieves a list of all of the Major, Critical, and Fatal events that have occurred for a server in the previous 12 hours.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$events = Get-LXCAEvent -Severity Fatal,Critical -EventClass Blade -PreviousHours 12
Disconnect-LXCA - The following example retrieves a list of all of the Major, Critical, and Fatal events that are within the sequence number range from 100 to 1000.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$events = Get-LXCAEvent -Severity Major,Critical,Fatal -StartSequenceNumber 100 -EndSequenceNumber 1000
Disconnect-LXCA
Give documentation feedback