Skip to main content
Solved

How do I clear old alerts

  • November 22, 2018
  • 3 replies
  • 4668 views

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.

Best answer by RishiZalani

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.
code:
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 https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008cOXCAY
This topic has been closed for replies.

3 replies

Forum|alt.badge.img+3
  • Nutanix Employee
  • Answer
  • November 22, 2018
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.
code:
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 https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008cOXCAY

Forum|alt.badge.img+11
  • Trailblazer
  • March 25, 2019
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.

Forum|alt.badge.img+3
  • Nutanix Employee
  • March 25, 2019
@mandg Open a Case with Nutanix Support and they will be able to assist you with this .