Skip to main content

Get-LXCAActiveAlert

This cmdlet retrieves all active alerts from the Lenovo XClarity Administrator server.

For information about viewing active alerts in the XClarity Administrator web interface, see Viewing active alerts.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAActiveAlert [-Connection LXCAConnection] 
-ComponentID String[]
[CommonParameter]

Get-LXCAActiveAlert [-Connection LXCAConnection]
[-Severity EventSeverity[]]
[-EventClass EventClass[]]
[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.
-Component ID String[]
Specifies one or more UUIDs of the components to which alerts apply.
-Severity EventSeverity[]
Specifies the alert severity. You can specify one or more of the following severities, separated by a comma.
  • Unknown
  • Informational
  • Warning
  • Minor
  • Major
  • Critical
  • Fatal
Note
The severities that are listed through this cmdlet differ from those listed in the Lenovo XClarity Administrator web interface.
Lenovo XClarity Administrator web interface severitySeverity parameter
CriticalFatal, Critical, Major
WarningMinor, Warning
InformationalInformational
UnknownUnknown
-EventClass EventClass[]
Specifies the alert source type. You can specify one or more of the following event classes, 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
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 ActiveAlert objects.

Examples

  • The following example retrieves all active alerts from the XClarity Administrator server.

    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $alerts = Get-LXCAActiveAlert

    Disconnect-LXCA
  • The following example retrieves a list of all critical and fatal active alerts for a Flex System server.

    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $alerts = Get-LXCAActiveAlert -Severity Critical,Fatal -EventClass Blade

    Disconnect-LXCA
    l