PowerFlex 管理平台 — 如何从 4.X PowerFlex Manager UI 手动清除警报

Summary: PowerFlex Manager4.x UI 显示来自各种来源的警报,无论是 PowerFlex 数据块群集 (MDM) 还是硬件事件。 每个事件只能由最初调用它们的系统/服务清除。有时,该服务不再运行,并且警报不会清除。本知识库文章将介绍如何清除卡住的警报。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

从其中一个 PFMP 节点运行以下命令:

提醒:“INGRESS_PASSWORD”变量,如果您的密码包含特殊字符,例如 (!#@$%^&),请在配置变量时在密码两边加上单引号。

前任。 

Password123!!
INGRESS_PASSWORD='Password123!!'
  1. 设置以下环境变量:

    INGRESS_IP=<IP_ADDRESS or HOSTNAME for PFxM>
    INGRESS_USER=admin
    INGRESS_PASSWORD=<PASSWORD>
    
  2. 运行以下 2 个命令以获取所需的身份验证令牌:
    TOKEN=$(curl -s -k --location --request POST "https://${INGRESS_IP}/rest/auth/login" --header "Accept: application/json" --header "Content-Type: application/json" --data "{\"username\": \"${INGRESS_USER}\",\"password\": \"${INGRESS_PASSWORD}\"}")
    
    ACCESS_TOKEN=$(echo "${TOKEN}" | jq -r .access_token)
  3. 在 PFxM UI 中,转至 Monitoring --> Alerts,然后查看需要清除的警报的“Alert ID”。
    它应该类似于“000000000000002d”(仅举例说明)
  4. 运行最后一个命令以清除刚刚收集的警报 ID:

    curl -i --insecure -X POST "https://${INGRESS_IP}/rest/v1/alerts/000000000000002d/clear" -H "accept: application/json" -H "Authorization: Bearer ${ACCESS_TOKEN}"

    如果命令成功,将显示以下消息:

    mno21:~ # curl -i --insecure -X POST "https://${INGRESS_IP}/rest/v1/alerts/000000000000002d/clear" -H "accept: application/json" -H "Authorization: Bearer ${ACCESS_TOKEN}"
    HTTP/2 204
    date: Thu, 30 Mar 2023 14:53:21 GMT
    strict-transport-security: max-age=15724800; includeSubDomains
    
  5. 根据需要经常执行步骤 3 和 4。访问令牌在 5 分钟内有效。因此,如果该过程超过此时间,只需重新运行步骤 2-4

Affected Products

PowerFlex rack, PowerFlex Appliance, PowerFlex custom node, PowerFlex Software
Article Properties
Article Number: 000220827
Article Type: How To
Last Modified: 18 Dec 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.