02-03-2012 03:35 AM
is there a way to ack/delete more than 50 alerts at once?
Due to a misconfiguration I've got ore than 4000 alerts that now I'd like to get rid of.
If there is a command line way it would be even better.
Solved! Go to Solution.
02-03-2012 06:08 AM
Thanks for the reply.
Unfortunately it selects only "all" the ones shown on the current page and I supposed I could only show up to 50 records.
Sorry, I just saw that I can display a custom number of records (option that I didn't see at first) so I can select up to 2000 at once.
I would have liked a command line command to run at the console :)
10-23-2012 09:36 AM
How does that script work? Can you provide an example?
have you tried running the alert_cleanup.pl perl script on the console?
It's in the following directory:
ACDX #420 | ACMP
[If you found my post helpful, please give kudos!]
10-23-2012 10:59 AM
The alert_cleanup.pl script will only clear out acknowledged alerts that are older than AMP Setup -> Historical Data Retention box -> Acknowledged Alerts setting. By default, the setting is 60 (days).
(scripts is alias for 'cd /root/svn/mercury/scripts)
If you don't care about any of the existing alerts (acknowledged & unacknowledged), you can simply remove them all in a single command:
# dbc 'delete from alert;'
All deletes are final.
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company