Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Retrieve HPE OneView alerts with support for rich filtering options.Syntax
Description
Get-OVAlert queries the HPE OneView alert index and returns matching HPEOneView.Alert objects. Results are sorted by creation date, most recent first.
Alerts can be filtered by severity (Critical, Warning, OK, etc.), health category (Logical-Interconnect, Server, Storage, etc.), alert state (Active, Cleared, Locked), the user the alert is assigned to, and a creation time range.
You can optionally pipe a supported resource object (server hardware, enclosure, logical enclosure, server profile, interconnect, or logical interconnect) to scope results to that resource.
Parameters
A resource object whose alerts you want to retrieve. Accepted resource categories:
server-hardwareenclosureslogical-enclosuresserver-profilesinterconnectslogical-interconnectsspp(firmware baselines)
Filter alerts by severity level. Valid values:
UnknownOKDisabledWarningCritical
Filter alerts by health category (resource area). Examples include
Logical-Interconnect, Server, Storage, Appliance, Network.Filter alerts that are assigned to the specified username.
Filter alerts by their current state. Common values:
Active— alert is unresolvedCleared— alert has been acknowledgedLocked— alert cannot be cleared by normal means
-StateMaximum number of alert records to return. Defaults to 0 (all results).
Return only alerts created within the specified time span measured back from now. For example,
[TimeSpan]::FromHours(24) returns alerts from the last 24 hours.Mutually exclusive with -Start and -End.Return alerts created after this date/time. Use with
-End to define a date range.Return alerts created before this date/time. Defaults to the current date and time.
Specify one or more appliance connection objects or names. Defaults to the default connection in
$ConnectedSessions.Examples
Get all active critical alerts
Get active interconnect alerts and assign them to a user
Get alerts for a specific server
Get alerts from the last 48 hours
Get the 10 most recent alerts
Get alerts assigned to a specific user
Output
HPEOneView.Alert
Each object includes properties such as:
| Property | Type | Description |
|---|---|---|
description | String | Human-readable description of the alert |
severity | String | Severity level (Critical, Warning, OK, etc.) |
alertState | String | Current state (Active, Cleared, Locked) |
healthCategory | String | Resource area that generated the alert |
assignedToUser | String | Username the alert is assigned to |
created | DateTime | When the alert was created |
modified | DateTime | When the alert was last modified |
resourceUri | String | URI of the associated resource |
uri | String | URI of the alert itself |