VMware Cloud Community
eddieutz
Contributor
Contributor

Clear Alerts

We are using vRealize operations manager 6.1. Is there a way to clear multiple pages of alerts at once or configure a policy to automatically clear them after x number of days?

0 Kudos
1 Reply
admin
Immortal
Immortal

You can use the REST API to clear all alerts. There are two relevant calls: queryAlert and modifyAlerts

Here is an article (in German) by Frank Bess with an example python script closeAlerts.py  (look for a ZIP link at the end of the article): http://vgeht.de/2015/11/10/alarm-alarm-die-huette-brennt/‌ - the script can be executed on vR Ops system itself. Please read the readme.txt carefully.

Usage: ./closeAlerts.py –vrops=MYVROPSHOST –uid=admin –pwd=THISISMYPWD

0 Kudos