netapp_eseries.santricity.na_santricity_discover 模块 – NetApp E-Series 发现 E-Series 存储系统

注意

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

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

要安装它,请使用:ansible-galaxy collection install netapp_eseries.santricity。您需要进一步的要求才能使用此模块,有关详细信息,请参阅要求

要在 Playbook 中使用它,请指定:netapp_eseries.santricity.na_santricity_discover

概要

  • 模块搜索子网范围,并返回任何可用的 E-Series 存储系统。

要求

执行此模块的主机上需要以下要求。

  • ipaddress

参数

参数

注释

ports

列表 / 元素=整数

此选项指定在发现过程中要测试的端口。

返回的 API URL 中将使用第一个可用的端口。

默认值: [8443]

prefer_embedded

布尔值

当 Web Services Proxy 和 Embedded 都存在时,优先选择 Web Services Embedded。

默认情况下,在可用时将使用 Web Services Proxy。

选择

  • false ← (默认)

  • true

proxy_password

字符串

Web Service Proxy 用户密码

proxy_url

字符串

Web Services Proxy REST API URL。示例 https://192.168.1.100:8443/devmgr/v2/

proxy_username

字符串

Web Service Proxy 用户名

proxy_validate_certs

布尔值

是否验证 Web Service Proxy SSL 证书

选择

  • false

  • true ← (默认)

subnet_mask

字符串 / 必需

这是用于发现 E-Series 存储阵列的 IPv4 搜索范围。

以 CIDR 形式指定的 IPv4 子网掩码。示例 192.168.1.0/24 将搜索 192.168.1.0 到 192.168.1.255 的范围。

请务必在搜索范围中包含所有管理路径。

备注

注意

  • 仅适用于 E2800 或更高版本的平台(必须提供 SANtricity Web Services Embedded REST API)。

  • 将发现所有带有 SANtricity 11.62 或更高版本的 E-Series 存储系统。

  • 只会发现没有设置管理密码的,运行 11.62 之前版本的 SANtricity 的 E-Series 存储系统。

  • 使用 SANtricity Web Services Proxy 来发现所有系统,无论 SANtricity 版本或密码如何。

示例

- name: Discover all E-Series storage systems on the network.
  na_santricity_discover:
    subnet_mask: 192.168.1.0/24

返回值

常见的返回值记录在 这里,以下是此模块独有的字段

描述

systems_found

字典

成功消息

已返回: 成功时

示例: "{\"012341234123\": { \"addresses\": [\"192.168.1.184\", \"192.168.1.185\"], \"api_urls\": [\"https://192.168.1.184:8443/devmgr/v2/\", \"https://192.168.1.185:8443/devmgr/v2/\"], \"label\": \"ExampleArray01\", \"proxy_ssid: \"\", \"proxy_required\": false}, \"012341234567\": { \"addresses\": [\"192.168.1.23\", \"192.168.1.24\"], \"api_urls\": [\"https://192.168.1.100:8443/devmgr/v2/\"], \"label\": \"ExampleArray02\", \"proxy_ssid\": \"array_ssid\", \"proxy_required\": true}}"

作者

  • Nathan Swartz (@swartzn)

  • Vu Tran (@VuTran007)