dellemc.unity.info 模块 – 收集有关 Unity 的信息
注意
此模块是 dellemc.unity 集合(版本 2.0.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install dellemc.unity
。您需要其他要求才能使用此模块,有关详细信息,请参阅要求。
要在 playbook 中使用它,请指定:dellemc.unity.info
。
dellemc.unity 1.1.0 中的新增功能
概要
收集有关 Unity 存储系统的信息包括:获取 Unity 阵列的详细信息、获取 Unity 阵列中的主机列表、获取 Unity 阵列中的 FC 启动器列表、获取 Unity 阵列中的 iSCSI 启动器列表、获取 Unity 阵列中的一致性组列表、获取 Unity 阵列中的存储池列表、获取 Unity 阵列中的卷列表、获取 Unity 阵列中的快照计划列表、获取 Unity 阵列中的 NAS 服务器列表、获取 Unity 阵列中的文件系统列表、获取 Unity 阵列中的快照列表、获取 Unity 阵列中的 SMB 共享列表、获取 Unity 阵列中的 NFS 导出列表、获取 Unity 阵列中的用户配额列表、获取 Unity 阵列中的配额树列表、获取 Unity 阵列中的 NFS 服务器列表、获取 Unity 阵列中的 CIFS 服务器列表。 获取 Unity 阵列中的以太网端口列表。获取 Unity 阵列中使用的文件接口列表。获取 Unity 阵列中的复制会话列表。
要求
执行此模块的主机需要以下要求。
Dell Unity 存储设备版本 5.1 或更高版本。
Ansible-core 2.14 或更高版本。
Python 3.9、3.10 或 3.11。
Storops Python SDK 1.2.11。
参数
参数 |
注释 |
---|---|
指定需要信息的 Unity 存储系统实体的字符串变量列表。 选择
|
|
Unity 管理服务器的密码。 |
|
与 Unity 管理服务器通信的端口号。 默认值: |
|
Unity 管理服务器的 IP 或 FQDN。 |
|
Unity 管理服务器的用户名。 |
|
布尔变量,用于指定是否验证 SSL 证书。
选择
|
备注
注意
支持 check_mode。
此集合中名为“dellemc.unity”的模块旨在支持 Dell Unity 存储平台。
示例
- name: Get detailed list of Unity entities
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- host
- fc_initiator
- iscsi_initiator
- cg
- storage_pool
- vol
- snapshot_schedule
- nas_server
- file_system
- snapshot
- nfs_export
- smb_share
- user_quota
- tree_quota
- disk_group
- nfs_server
- cifs_server
- ethernet_port
- file_interface
- replication_session
- name: Get information of Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
- name: Get list of hosts on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- host
- name: Get list of FC initiators on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- fc_initiator
- name: Get list of ISCSI initiators on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- iscsi_initiator
- name: Get list of consistency groups on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- cg
- name: Get list of storage pools on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- storage_pool
- name: Get list of volumes on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- vol
- name: Get list of snapshot schedules on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- snapshot_schedule
- name: Get list of NAS Servers on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- nas_server
- name: Get list of File Systems on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- file_system
- name: Get list of Snapshots on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- snapshot
- name: Get list of NFS exports on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- nfs_export
- name: Get list of SMB shares on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- smb_share
- name: Get list of user quotas on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- user_quota
- name: Get list of quota trees on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- tree_quota
- name: Get list of disk groups on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- disk_group
- name: Get list of NFS Servers on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- nfs_server
- name: Get list of CIFS Servers on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- cifs_server
- name: Get list of ethernet ports on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- ethernet_port
- name: Get list of file interfaces on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- file_interface
- name: Get list of replication sessions on Unity array
dellemc.unity.info:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
gather_subset:
- replication_session
返回值
此处记录了常见的返回值 这里,以下是此模块特有的字段
键 |
描述 |
---|---|
Unity 阵列的详细信息。 返回: 始终 示例: |
|
Unity 阵列的当前 API 版本。 返回: 成功 |
|
Unity 阵列的最早 API 版本。 返回: 成功 |
|
Unity 阵列的型号。 返回: 成功 |
|
Unity 阵列的名称。 返回: 成功 |
|
Unity 阵列的软件版本。 返回: 成功 |
|
CIFS 服务器的详细信息。 返回: 当 CIFS 服务器存在时。 示例: |
|
CIFS 服务器的 ID。 返回: 成功 |
|
CIFS 服务器的名称。 返回: 成功 |
|
一致性组的详细信息。 返回: 当一致性组存在时。 示例: |
|
一致性组的 ID。 返回: 成功 |
|
一致性组的名称。 返回: 成功 |
|
磁盘组的详细信息。 返回: 当磁盘组存在时。 示例: |
|
磁盘组的 ID。 返回: 成功 |
|
磁盘组的名称。 返回: 成功 |
|
磁盘组的层类型。 返回: 成功 |
|
以太网端口的详细信息。 返回: 当以太网端口存在时。 示例: |
|
以太网端口的 ID。 返回: 成功 |
|
以太网端口的名称。 返回: 成功 |
|
光纤通道启动器的详细信息。 返回: 当光纤通道启动器存在时。 示例: |
|
光纤通道启动器的 ID。 返回: 成功 |
|
光纤通道启动器的 WWN。 返回: 成功 |
|
文件接口的详细信息。 返回: 当文件接口存在时。 示例: |
|
文件接口的 ID。 返回: 成功 |
|
文件接口的 IP 地址。 返回: 成功 |
|
文件接口的名称。 返回: 成功 |
|
文件系统的详细信息。 返回: 当文件系统存在时。 示例: |
|
文件系统的 ID。 返回: 成功 |
|
文件系统的名称。 返回: 成功 |
|
主机的详细信息。 返回: 当主机存在时。 示例: |
|
主机的 ID。 返回: 成功 |
|
主机的名称。 返回: 成功 |
|
ISCSI 启动器的详细信息。 返回: 当 ISCSI 启动器存在时。 示例: |
|
ISCSI 启动器的 ID。 返回: 成功 |
|
ISCSI 启动器的 IQN。 返回: 成功 |
|
NAS 服务器的详细信息。 返回: 当 NAS 服务器存在时。 示例: |
|
NAS 服务器的 ID。 返回: 成功 |
|
NAS 服务器的名称。 返回: 成功 |
|
NFS 导出的详细信息。 返回: 当存在 NFS 导出时。 示例: |
|
NFS 导出的 ID。 返回: 成功 |
|
NFS 导出的名称。 返回: 成功 |
|
NFS 服务器的详细信息。 返回: 当存在 NFS 服务器时。 示例: |
|
NFS 服务器的 ID。 返回: 成功 |
|
复制会话的详细信息。 返回: 当存在复制会话时。 示例: |
|
复制会话的 ID。 返回: 成功 |
|
复制会话的名称。 返回: 成功 |
|
SMB 共享的详细信息。 返回: 当存在 SMB 共享时。 示例: |
|
SMB 共享的 ID。 返回: 成功 |
|
SMB 共享的名称。 返回: 成功 |
|
快照计划的详细信息。 返回: 当存在快照计划时。 示例: |
|
快照计划的 ID。 返回: 成功 |
|
快照计划的名称。 返回: 成功 |
|
快照的详细信息。 返回: 当存在快照时。 示例: |
|
快照的 ID。 返回: 成功 |
|
快照的名称。 返回: 成功 |
|
存储池的详细信息。 返回: 当存储池存在时返回。 示例: |
|
存储池的 ID。 返回: 成功 |
|
存储池的名称。 返回: 成功 |
|
配额树的详细信息。 返回: 当配额树存在时返回。 示例: |
|
配额树的 ID。 返回: 成功 |
|
配额树的路径。 返回: 成功 |
|
用户配额的详细信息。 返回: 当用户配额存在时返回。 示例: |
|
用户配额的 ID。 返回: 成功 |
|
用户配额的 UID。 返回: 成功 |
|
卷的详细信息。 返回: 当卷存在时返回。 示例: |
|
卷的 ID。 返回: 成功 |
|
卷的名称。 返回: 成功 |