Skip to content

Get HPOVAlert

Chris Lynch edited this page Aug 23, 2019 · 37 revisions

Library Version 4.20

Library Version 4.10

HPE OneView 4.10 Library

Get-HPOVAlert

List alerts logged.

SYNTAX

Get-HPOVAlert[ [-InputObject] <Object>][ [-Severity] <String>][ [-HealthCategory] <String>][ [-AssignedToUser] <String>][ [-AlertState] <String>][ [-Count] <String>][ [-TimeSpan] <Timespan>][ [-Start] <DateTime>][ [-End] <DateTime>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

Obtain all the alerts for the specified resource and/or with the specified severity.

Parameters

-AlertState <String>

Alerts with given alert state will be returned. State values include Active and Cleared

Aliases State
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-AssignedToUser <String>

Alerts assigned to the given user will be returned.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Count <String>

Return only the number of alerts from the appliance. Can be combined with other parameters to return a pruned list of alerts.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-End <DateTime>

Return alerts that were created on the specified date. Hour, Min and Seconds will not be used, only Month, Day and Year of the DateTime value.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-HealthCategory <String>

Alerts with given health category will be returned. Allowed health category values are:

* Appliance
* DeviceBay
* Enclosure
* Fan
* Firmware
* Host
* Instance
* InterconnectBay
* LogicalSwitch
* Logs
* ManagementProcessor
* Memory
* Network
* Operational
* Power
* Processor
* RemoteSupport
* Storage
* Thermal
* Unknown
Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Aliases [-resourceUri] Alerts for the specified resource will be returned.

Aliases resourceUri, Resource
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Severity <String>

Alerts with given severity will be returned. Allowed severity values are:

* Unknown
* Ok
* Disabled
* Warning
* Critical
Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Start <DateTime>

Return alerts that were created starting from the specified date. Hour, Min and Seconds will not be used, only Month, Day and Year of the DateTime value.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-TimeSpan <Timespan>

Return the number of alerts created from today to the defined number of days.

Aliases None
Required? false
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, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

System.String

Resource URI.

System.Management.Automation.PSCustomObject

Resource object (i.e. Get-HPOVServer).

Return Values

HPOneView.Alert [System.Management.Automation.PSCustomObject]

Singel HPE OneView Alert.

System.Collections.ArrayList

Collection of HPE OneView Alerts.

Examples

 -------------------------- EXAMPLE 1 --------------------------

$alerts = Get-HPOVAlert -severity CRITICAL

Return all the critical alerts.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVServer "Encl1, Bay 2" | Get-HPOVAlert -severity CRITICAL

Return all the critical alerts for server "Encl1, Bay 2".

 -------------------------- EXAMPLE 3 --------------------------

Get-HPOVServerProfile "Profile 1" | Get-HPOVAlert

Return all the alerts for server profile "Profile 1".

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVInterconnect "Encl1, interconnect 2" | Get-HPOVAlert

Get all alerts for "Encl1, interconnect 2" interconnect module.

 -------------------------- EXAMPLE 5 --------------------------

Get-HPOVInterconnect "Encl1, interconnect 2" | Get-HPOVAlert -severity Critical

Get "critical" severity alerts for "Encl1, interconnect 2" interconnect module.

 -------------------------- EXAMPLE 6 --------------------------

Get-HPOVAlert -severity Critical -Count 5

Return the first 5 "critical" severity alerts.

 -------------------------- EXAMPLE 7 --------------------------

Get-HPOVAlert -severity Critical -Timespan (New-TimeSpan -Days 8)

Return "critical" severity alerts for the past 8 days.

 -------------------------- EXAMPLE 8 --------------------------

Get-HPOVAlert -severity Critical -Start "2016-12-01"

Return "critical" severity alerts Starting at 2016-12-01 to now.

 -------------------------- EXAMPLE 9 --------------------------

Get-HPOVAlert -Start "2016-12-01" -End "2016-12-09

Return all alerts Starting at 2016-12-01 to 2016-12-09.

Related Links


Wiki Table of Contents

Clone this wiki locally
You can’t perform that action at this time.