How to clear old alerts

issue resolved, but alerts persisting with old time stamp.
alerts ware generated during network maintenance, now all ok
need to clear logs, need procedure to clear the old alerts.

3 replies

Badge +3
You should be able to clear the alerts from Prism .Also you can perform the following :

To resolve all the alerts in the Nutanix cluster, run the following command on any CVM.
nutanix@cvm$ for alert in `ncli alert ls | grep ID | awk '{print $3}'`; do echo "Resolving alert $alert"; \ncli alert resolve ids=$alert; sleep 2; done

Refer KB
Userlevel 1
Badge +12
Does anyone know if there's a way to do this when a cluster has more than 1,000 alerts? We had some network issue the other day and our 3-node cluster has over 150,000 alerts as a result.
Badge +3
@mandg Open a Case with Nutanix Support and they will be able to assist you with this .