解决了

我如何清除旧警报


问题解决了,但警报持续使用旧时间戳。
网络维护期间生成的警报商品,现在一切正常
需要清除日志,需要过程以清除旧警报。
图标

最好的答案Rishizalani2018年11月22日,23:07

\r\n
\r\nTo resolve all the alerts in the Nutanix cluster, run the following command on any CVM.
\r\n
code:<\/b>
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
<\/pre><\/div>
\r\n
\r\n
\r\nRefer KB https:\/\/portal.nutanix.com\/#\/page\/kbs\/details?targetId=kA0600000008cOXCAY","className":"post__content__best_answer"}">
查看原件

该主题已关闭以供评论

3个答复

徽章 +3
您应该能够清除Prism的警报。此外,您也可以执行以下操作:

要解决Nutanix群集中的所有警报,请在任何CVM上运行以下命令。
代码:
nutanix@cvm $ for ncli ncli警报ls |grep id |awk'{print $ 3}'`;做回声“解决警报$警报”;\ ncli警报解析IDS = $ alert;睡眠2;完毕



请参阅kb https://portal.nutanix.com/#/page/kbs/details?targetid=ka0600000008coxcay
UserLevel 2
徽章 +11
有人知道当集群有超过1,000个警报时是否有办法进行此操作?前几天我们有一些网络问题,因此,我们的3节点群集有超过150,000个警报。
徽章 +3
@mandg打开一个带有Nutanix支持的箱子,他们将能够为您提供帮助。
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu