netapp_eseries.santricity.na_santricity_alerts_syslog 模块 – NetApp E 系列管理接收存储系统警报的 syslog 服务器。

注意

此模块是 netapp_eseries.santricity 集合 (版本 1.4.1) 的一部分。

如果您使用的是 ansible 软件包,则可能已安装此集合。它不包含在 ansible-core 中。要检查是否已安装它,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install netapp_eseries.santricity

要在剧本中使用它,请指定:netapp_eseries.santricity.na_santricity_alerts_syslog

概要

  • 管理将接收潜在关键事件通知的 syslog 服务器列表。

参数

参数

注释

api_password

字符串 / 必需

用于对 SANtricity Web Services Proxy 或嵌入式 Web Services API 进行身份验证的密码。

api_url

字符串 / 必需

SANtricity Web Services Proxy 或嵌入式 Web Services API 的 URL。

示例 https://prod-1.wahoo.acme.com:8443/devmgr/v2

api_username

字符串 / 必需

用于对 SANtricity Web Services Proxy 或嵌入式 Web Services API 进行身份验证的用户名。

servers

列表 / 元素=任意

字典列表,其中每个字典包含一个 syslog 服务器条目。

address

字符串 / 必需

Syslog 服务器地址可以是完全限定域名、IPv4 地址或 IPv6 地址。

port

字符串

UDP 端口必须是 0 到 65535 之间的数值。通常,syslog 的 UDP 端口为 514。

默认值: 514

ssid

字符串

要管理的阵列的 ID。此值对于每个阵列必须唯一。

默认值: "1"

test

布尔值

这会强制将测试 syslog 消息发送到指定的 syslog 服务器。

只有在进行更改时才会发出测试。

选项

  • false ← (默认)

  • true

validate_certs

布尔值

是否应验证 https 证书?

选项

  • false

  • true ← (默认)

备注

注意

  • 支持检查模式。

  • 此 API 当前仅支持嵌入式 Web Services API v2.12(捆绑在 SANtricity OS 11.40.2 中)及更高版本。

  • E 系列 Ansible 模块需要 Web Services Proxy (WSP) 实例可用以管理存储系统,或者支持嵌入式 Web Services API 的 E 系列存储系统。

  • 嵌入式 Web Services 目前适用于 E2800、E5700、EF570 和更新的硬件型号。

  • netapp_eseries.santricity.netapp_e_storage_system 可用于配置由 WSP 实例管理的系统。

示例

- name: Add two syslog server configurations to NetApp E-Series storage array.
  na_santricity_alerts_syslog:
    ssid: "1"
    api_url: "https://192.168.1.100:8443/devmgr/v2"
    api_username: "admin"
    api_password: "adminpass"
    validate_certs: true
    servers:
        - address: "192.168.1.100"
        - address: "192.168.2.100"
          port: 514
        - address: "192.168.3.100"
          port: 1000

返回值

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

描述

msg

字符串

成功消息

返回:成功时

示例: "The settings have been updated."

作者

  • Nathan Swartz (@swartzn)

  • Vu Tran (@VuTran007)