Network Management

Reply
rb
New Contributor

Airwave: clear 4000+ alerts

Hello,

 

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.

 

Thanks

RB

Aruba Employee

Re: Airwave: clear 4000+ alerts

You should see an option to "Select All" at the bottom of the list. Is that not there?

Thanks,

Zach Jennings
rb
New Contributor

Re: Airwave: clear 4000+ alerts

Hi,

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 :)

 

Thanks again.

RB

Aruba Employee

Re: Airwave: clear 4000+ alerts

You can easily change how many show up on each page. Just click the following:

alerts_per_page.JPG

 

Then select Custom. Then enter the number of records you want per page.

Thanks,

Zach Jennings
rb
New Contributor

Re: Airwave: clear 4000+ alerts

Yes, I saw I can customize the number of record displayed and 2000 is the max.

 

But beeing a CLI fanatic I wished there was a solution from the console of the Airwave server.

 

RB

Contributor I

Re: Airwave: clear 4000+ alerts

have you tried running the alert_cleanup.pl perl script on the console?

 

It's in the following directory:

 

/root/svn/mercury/scripts

Re: Airwave: clear 4000+ alerts

How does that script work? Can you provide an example?


sfitzpatrick wrote:

have you tried running the alert_cleanup.pl perl script on the console?

 

It's in the following directory:

 

/root/svn/mercury/scripts


 

Pasquale Monardo | Senior Network Solutions Consultant
ACDX #420 | ACMP
[If you found my post helpful, please give kudos!]
Moderator

Re: Airwave: clear 4000+ alerts

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).

 

ack-alert.jpg

 

To run:

# scripts

(scripts is alias for 'cd /root/svn/mercury/scripts)

# ./alert_cleanup.pl

 

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.


Rob Gin
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: