wti.remote.cpm_alarm_info 模块 – 从 WTI OOB 和 PDU 设备获取警报信息

注意

此模块是 wti.remote 集合(版本 1.0.10)的一部分。

如果您正在使用 ansible 包,您可能已经安装了这个集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install wti.remote

要在 playbook 中使用它,请指定:wti.remote.cpm_alarm_info

wti.remote 2.9.0 中的新功能

概要

  • 从 WTI OOB 和 PDU 设备获取温度警报

参数

参数

注释

cpm_password

字符串 / 必需

这是 WTI 设备的密码,用于发送模块。

cpm_url

字符串 / 必需

这是 WTI 设备的 URL,用于发送模块。

cpm_username

字符串 / 必需

这是 WTI 设备的用户名,用于发送模块。

use_https

布尔值

指定使用 https 连接还是 http 连接。

选项

  • false

  • true ←(默认)

use_proxy

布尔值

标志,用于控制查找在存在 HTTP 代理环境变量时是否观察它们。

选项

  • false ←(默认)

  • true

validate_certs

布尔值

如果为 false,则不会验证 SSL 证书。 这应该仅在

使用自签名证书的个人控制站点上使用。

选项

  • false

  • true ←(默认)

注意

注意

  • module_defaults 中使用 groups/cpm 来设置 CPM 模块之间使用的通用选项。)

示例

- name: Get the Alarm Information for a WTI device
  cpm_alarm_info:
    cpm_url: "nonexist.wti.com"
    cpm_username: "super"
    cpm_password: "super"
    use_https: true
    validate_certs: false

- name: Get the Alarm Information for a WTI device
  cpm_alarm_info:
    cpm_url: "nonexist.wti.com"
    cpm_username: "super"
    cpm_password: "super"
    use_https: false
    validate_certs: false

返回值

通用返回值已在此处记录,以下是此模块独有的字段

描述

数据

复杂

从发送的命令返回的 JSON 输出

返回:总是

警报

字典

模块执行后 WTI 设备的当前警报状态。

返回:成功

示例: [{"name": "过电流(初始)", "status": "0"}, {"name": "过电流(严重)", "status": "0"}, {"name": "超温(初始)", "status": "0"}]

状态

字典

模块完成后返回状态

返回:总是

示例: {"code": "0", "text": "OK"}

作者

  • Western Telematic Inc. (@wtinetworkgear)