HPE OneView
1825051 Members
3403 Online
109678 Solutions
New Discussion юеВ

Locked Alerts

 
Oneview1
Occasional Visitor

Locked Alerts

How do I clear alerts with a status of LOCKED ??

I have several servers that have no issues but are marked as critical because an old alert is locked.

5 REPLIES 5
UserName1
Frequent Advisor

Re: Locked Alerts

I'd like to know this also, we have a locked alert that isnt true and needs clearing but have no way to clear it.

tech3d
HPE Pro

Re: Locked Alerts

Hi,

Deleting a locked alert isn't an option from the HPE OneView GUI.

This can however be done using a RECT API client.

Check this video for details & a demo : https://support.hpe.com/hpesc/public/videoDisplay?videoId=vtc00000234en_us

 

P.S: Moderator Edit: Post edited and replaced with the correct link. 


I work for HPE

Accept or Kudo


ChrisLynch
HPE Pro

Re: Locked Alerts

When there are locked alerts, then it is likely that the SNMP trap changing the status condition to OK wasn't received by OneView thus the locked alert remains. You can use the REST API to clear locked alerts. Or you can use the Set-OVAlert PowerShell Cmdlet to clear them.

For instance, you could use the following to attempt clearing all locked alerts:

Get-OVAlert -State Locked | Set-OVAlert -Cleared $True
I work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
UserName1
Frequent Advisor

Re: Locked Alerts

Chris - just tried the powershell above but get the following error:

Get-OVAlert -State Locked | Set-OVAlert -Cleared $True

Set-OVAlert : A positional parameter cannot be found that accepts argument 'True'.
At line:1 char:29
+ Get-OVAlert -State Locked | Set-OVAlert -Cleared $True
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-OVAlert], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Set-OVAlert

 

What did I do wrong?

ChrisLynch
HPE Pro

Re: Locked Alerts

The -Cleared parameter is not a boolean parameter.  It is a Switch Parameter.  If you wanted to override it, you would use this format instead:

# Notice the : between -Cleared and $True
Get-OVAlert -State Locked | Set-OVAlert -Cleared:$True

 

I work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo