HPE OneView
cancel
Showing results for 
Search instead for 
Did you mean: 

OneView: Mass clear warnings

vanz
Occasional Contributor

OneView: Mass clear warnings

Hi Everyone,

I am strugling with a lot of old warnings on numerous servers in my appliance (version 2.00.02). I am wondering if you know a way to mass celar warnings in OneView. Maybe using Powershell or something else. I have more than 1000 activities and clearing them manually will be nightmare.

Thanks in advance!

6 REPLIES
ChrisLynchHPE
Neighborhood Moderator

Re: OneView: Mass clear warnings

Your only option really is to use the REST API.  Yes, you can use the PowerShell library to retreive alerts and then to clear them:

Get-HPOVAlert -State Active | Set-HPOVAlert -Cleared
Syed_UAE
Occasional Visitor

Re: OneView: Mass clear warnings

Hello Chris,

Could you eloborate more on this, I have a similar problem, lots of hardware errors in one view, I want to manually clear all the events. The command you have given, will it clears all the alerts or is there soem other way to clear the events.

Syed Maqdoom Ali
ChrisLynchHPE
Neighborhood Moderator

Re: OneView: Mass clear warnings

The command I provided above will retrieve all Active alerts.  Then they will be passed to the command that will update the state of the alert.  If the Alert is not Locked, then it will be cleared.  Otherwise, an error will be generated that it cannot be cleared.  For Locked alerts, you need to fix the physical issue of the resource in question first, which OneView should then automatically clear the Locked alert.

CristianRomero
Occasional Visitor

Re: OneView: Mass clear warnings

there is the way with powershell i/o othe rmethod to release these locked events that appear in oneview 4.0 (synergy)

I managed to remove the alerts with the command Get-HPOVAlert -State Active

Re: OneView: Mass clear warnings

I know one of my primary frustrations with OneView 4.1 in Monitored mode (about 200 c7000 enclosures and several hundred rack mount servers) is the blizzard of alerts that are not very useful.  It's a lot of noise.  Examples are:  "Remote Insight/Integrated Lights-Out self-test error"  "Integrated Lights-Out detected more than unauthorized login attempts"  "Unable to establish trusted communication with the server".

So I wrote a Powershell script to retrieve all the Active alerts, parse through them, and clear the ones with the text above.   I run the script to eliminate the bogus, non-useful alerts, and then go logon to the OneView GUI interface so I can focus on the realistic alerts.

Henry_B
Occasional Advisor

Re: OneView: Mass clear warnings

I found the "Remote Insight/Integrated Lights-Out self-test error" usually was an indicator for a bad NAND in my cases. Not always, but enough times to check that first.