Note
This module is part of the ibm.spectrum_virtualize collection (version 2.0.0).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install ibm.spectrum_virtualize.
To use it in a playbook, specify: ibm.spectrum_virtualize.ibm_svc_info.
Note
The ibm.spectrum_virtualize collection has been renamed to ibm.storage_virtualize and will be removed from Ansible 12. If you use content from ibm.spectrum_virtualize, please update FQCNs in your playbooks and roles! When creating new playbooks or roles, directly use content from ibm.storage_virtualize instead.
New in ibm.spectrum_virtualize 1.0.0
Parameter | Comments |
|---|---|
clustername string / required | The hostname or management IP of the Spectrum Virtualize storage system. |
domain string | Domain for the Spectrum Virtualize storage system. Valid when hostname is used for the parameter clustername. |
gather_subset list / elements=string | List of string variables to specify the Spectrum Virtualize entities for which information is required. all - list of all Spectrum Virtualize entities supported by the module. vol - lists information for VDisks. pool - lists information for mdiskgrps. node - lists information for nodes. iog - lists information for I/O groups. host - lists information for hosts. hostvdiskmap - lists all VDisks mapped to host ‘objectname’ vdiskhostmap - lists all hosts VDisk ‘objectname’ is mapped to hc - lists information for host clusters. fc - lists information for FC connectivity. fcport - lists information for FC ports. targetportfc - lists information for WWPN which is required to set up FC zoning and to display the current failover status of host I/O ports. fcmap - lists information for FC maps. rcrelationship - lists information for remote copy relationships. fcconsistgrp - displays a concise list or a detailed view of flash copy consistency groups. rcconsistgrp - displays a concise list or a detailed view of remote copy consistency groups. iscsiport - lists information for iSCSI ports. vdiskcopy - lists information for volume copy. array - lists information for array MDisks. system - displays the storage system information. cloudaccount - lists all the configured cloud accounts. cloudaccountusage - lists the usage information about the configured cloud storage accounts. cloudimportcandidate - lists information about systems that have data that is stored in the cloud accounts. ldapserver - lists the most recent details for all configured Lightweight Directory Access Protocol (LDAP) servers. drive - lists the configuration information and drive vital product data (VPD). user - lists all the users that are created on the system. usergroup - lists the user groups that is created on the system. ownershipgroup - displays the ownership groups that are available in the system. partnership - lists all the clustered systems (systems) that are associated with the local system. replicationpolicy - lists all the replication policies on the system. cloudbackup - lists the volumes that have cloud snapshot enabled and volumes that have cloud snapshots in the cloud account. cloudbackupgeneration - lists any volume snapshots available on the specified volume. objectname is a mandatory parameter. snapshotpolicy - lists all the snapshot policies on the system. snapshotpolicyschedule - lists all snapshot schedules on the system. volumegroup - lists all volume groups on the system. volumegroupsnapshotpolicy - lists the snapshot policy attributes associated with a volume group on the system. volumesnapshot - lists all volume snapshots. dnsserver - lists the information for any Domain Name System (DNS) servers in the system. systemcertificate - lists the information about the current system Secure Sockets Layer (SSL) certificate. truststore - lists the current certificate stores. sra - command to check both secure remote assistance status and the time of the last login. syslogserver - lists the syslog servers that are configured on the clustered system. emailserver - lists the email servers that are configured on the system. emailuser - lists the Email event notification settings for all Email recipients, an individual Email recipient, or a specified type (local or support) of an Email recipient. provisioningpolicy - lists the provisioning policies available on the system. volumegroupsnapshot - lists the snapshot objects available on the system. callhome - displays the status of the Call Home information that is sent to a server in the Cloud. ip - lists the currently configured IP addresses. portset - lists the currently configured portset on the system. safeguardedpolicy - lists the Safeguarded policies available on the system. mdisk - displays a concise list or a detailed view of managed disks (MDisks) visible to the system. safeguardedpolicyschedule - displays the Safeguarded backup schedule that is associated with Safeguarded policies. eventlog - displays the concise view of system event log enclosurestats - lists the most recent values (averaged) of all enclosure statistics. enclosurestatshistory - lists the history values of all enclosure statistics including power consumed, temperature in fahrenheit and temperature in celsius. Choices:
Default: |
log_path string | Path of debug log file. |
objectname string | If specified, only the instance with the objectname is returned. If not specified, all the instances are returned. |
password string | REST API password for the Spectrum Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
token string added in ibm.spectrum_virtualize 1.5.0 | The authentication token to verify a user on the Spectrum Virtualize storage system. To generate a token, use the ibm_svc_auth module. |
username string | REST API username for the Spectrum Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
validate_certs boolean | Validates certification. Choices:
|
Note
check_mode.- name: Get volume info
ibm.spectrum_virtualize.ibm_svc_info:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/ansible.log
gather_subset: vol
- name: Get volume info
ibm.spectrum_virtualize.ibm_svc_info:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/ansible.log
objectname: volumename
gather_subset: vol
- name: Get pool info
ibm.spectrum_virtualize.ibm_svc_info:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/ansible.log
gather_subset: pool
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
Array list / elements=dictionary | Data will be populated when gather_subset=array or gather_subset=all Lists information for array MDisks Returned: success Sample: |
CallHome list / elements=dictionary | Data will be populated when gather_subset=callhome or gather_subset=all Displays the status of the Call Home information that is sent to a server in the Cloud Returned: success Sample: |
CloudAccount list / elements=dictionary | Data will be populated when gather_subset=cloudaccount or gather_subset=all Lists all the configured cloud accounts Returned: success Sample: |
CloudAccountUsage list / elements=dictionary | Data will be populated when gather_subset=cloudaccountusage or gather_subset=all Lists the usage information about the configured cloud storage accounts Returned: success Sample: |
CloudBackup list / elements=dictionary | Data will be populated when gather_subset=cloudbackup or gather_subset=all Lists the volumes that have cloud snapshot that enabled and volumes that have cloud snapshots in the cloud account Returned: success Sample: |
CloudBackupGeneration list / elements=dictionary | Data will be populated when gather_subset=cloudbackupgeneration List any volume snapshots available on the specified volume Returned: success Sample: |
CloudImportCandidate list / elements=dictionary | Data will be populated when gather_subset=cloudimportcandidate or gather_subset=all Lists information about systems that have data that is stored in the cloud accounts Returned: success Sample: |
DnsServer list / elements=dictionary | Data will be populated when gather_subset=dnsserver or gather_subset=all Lists the information for any Domain Name System (DNS) servers in the system Returned: success Sample: |
Drive list / elements=dictionary | Data will be populated when gather_subset=drive or gather_subset=all Lists the configuration information and drive vital product data (VPD) Returned: success Sample: |
EmailServer list / elements=dictionary | Data will be populated when gather_subset=emailserver or gather_subset=all Lists the Email servers that are configured on the system Returned: success Sample: |
EmailUser list / elements=dictionary | Data will be populated when gather_subset=emailuser or gather_subset=all Lists the Email event notification settings for all Email recipients, an individual Email recipient, or a specified type (local or support) of Email recipient Returned: success Sample: |
EnclosureStats list / elements=dictionary | Data will be populated when gather_subset=enclosurestats or gather_subset=all Lists the most recent values (averaged) of all enclosure statistics. Returned: success Sample: |
EnclosureStatsHistory list / elements=dictionary | Data will be populated when gather_subset=enclosurestatshistory or gather_subset=all Lists the history values of all enclosure statistics including power consumed, temperature in fahrenheit and temperature in celsius. Returned: success Sample: |
EventLog list / elements=dictionary | Data will be populated when gather_subset=eventlog or gather_subset=all Lists information about the system event log Returned: success Sample: |
FCConnectivitie list / elements=dictionary | Data will be populated when gather_subset=fc or gather_subset=all Lists information for FC connectivity Returned: success Sample: |
FCConsistgrp list / elements=dictionary | Data will be populated when gather_subset=fcconsistgrp or gather_subset=all Displays a concise list or a detailed view of flash copy consistency groups Returned: success Sample: |
FCMap list / elements=dictionary | Data will be populated when gather_subset=fcmap or gather_subset=all Lists information for FC maps Returned: success Sample: |
FCPort list / elements=dictionary | Data will be populated when gather_subset=fcport or gather_subset=all Lists information for FC ports Returned: success Sample: |
Host list / elements=dictionary | Data will be populated when gather_subset=host or gather_subset=all Lists information for hosts Returned: success Sample: |
HostCluster list / elements=dictionary | Data will be populated when gather_subset=hc or gather_subset=all Lists information for host clusters Returned: success Sample: |
HostVdiskMap list / elements=dictionary | Data will be populated when gather_subset=hostvdiskmap or gather_subset=all Lists all VDisks mapped to host ‘objectname’ Returned: success Sample: |
IOGroup list / elements=dictionary | Data will be populated when gather_subset=iog or gather_subset=all Lists information for I/O groups Returned: success Sample: |
IP list / elements=dictionary | Data will be populated when gather_subset=ip or gather_subset=all Lists the currently configured IP addresses Returned: success Sample: |
iSCSIPort list / elements=dictionary | Data will be populated when gather_subset=iscsiport or gather_subset=all Lists information for iSCSI ports Returned: success Sample: |
LdapServer list / elements=dictionary | Data will be populated when gather_subset=ldapserver or gather_subset=all Lists the most recent details for all configured Lightweight Directory Access Protocol (LDAP) servers Returned: success Sample: |
Mdisk list / elements=dictionary | Data will be populated when gather_subset=mdisk or gather_subset=all Displays a concise list or a detailed view of managed disks (MDisks) visible to the system Returned: success Sample: |
Node list / elements=dictionary | Data will be populated when gather_subset=node or gather_subset=all Lists information for nodes Returned: success Sample: |
Ownershipgroup list / elements=dictionary | Data will be populated when gather_subset=ownershipgroup or gather_subset=all Displays the ownership groups that are available in the system Returned: success Sample: |
Partnership list / elements=dictionary | Data will be populated when gather_subset=partnership or gather_subset=all Lists all the clustered systems (systems) that are associated with the local system Returned: success Sample: |
Pool list / elements=dictionary | Data will be populated when gather_subset=pool or gather_subset=all Lists information for mdiskgrps Returned: success Sample: |
Portset list / elements=dictionary | Data will be populated when gather_subset=portset or gather_subset=all Lists the currently configured portset on the system Returned: success Sample: |
ProvisioningPolicy list / elements=dictionary | Data will be populated when gather_subset=provisioningpolicy or gather_subset=all Lists the provisioning policies available on the system Returned: success Sample: |
RCConsistgrp list / elements=dictionary | Data will be populated when gather_subset=rcconsistgrp or gather_subset=all Displays a concise list or a detailed view of remote copy consistency groups Returned: success Sample: |
RemoteCopy list / elements=dictionary | Data will be populated when gather_subset=rcrelationship or gather_subset=all Lists information for remote copy relationships Returned: success Sample: |
ReplicationPolicy list / elements=dictionary | Data will be populated when gather_subset=replicationpolicy or gather_subset=all Lists all the replication policies on the system Returned: success Sample: |
SafeguardedPolicy list / elements=dictionary | Data will be populated when gather_subset=safeguardedpolicy or gather_subset=all Lists the Safeguarded policies available on the system Returned: success Sample: |
SafeguardedSchedule list / elements=dictionary | Data will be populated when gather_subset=safeguardedpolicyschedule or gather_subset=all Displays the Safeguarded backup schedule that is associated with Safeguarded policies Returned: success Sample: |
SnapshotPolicy list / elements=dictionary | Data will be populated when gather_subset=snapshotpolicy or gather_subset=all Lists all the snapshot policies on the system Returned: success Sample: |
SnapshotSchedule list / elements=dictionary | Data will be populated when gather_subset=snapshotpolicyschedule or gather_subset=all Lists all snapshot schedules on the system Returned: success Sample: |
Sra list / elements=dictionary | Data will be populated when gather_subset=sra or gather_subset=all Command to check both secure remote assistance status and the time of the last login Returned: success Sample: |
SysLogServer list / elements=dictionary | Data will be populated when gather_subset=syslogserver or gather_subset=all Lists the syslog servers that are configured on the clustered system Returned: success Sample: |
System list / elements=dictionary | Data will be populated when gather_subset=system or gather_subset=all Displays the storage system information Returned: success Sample: |
SystemCert list / elements=dictionary | Data will be populated when gather_subset=systemcertificate or gather_subset=all Lists the information about the current system Secure Sockets Layer (SSL) certificate Returned: success Sample: |
TargetPortFC list / elements=dictionary | Data will be populated when gather_subset=targetportfc or gather_subset=all Lists information for WWPN which is required to set up FC zoning and to display the current failover status of host I/O ports Returned: success Sample: |
TrustStore list / elements=dictionary | Data will be populated when gather_subset=truststore or gather_subset=all Lists the current certificate stores Returned: success Sample: |
User list / elements=dictionary | Data will be populated when gather_subset=user or gather_subset=all Lists all the users that are created on the system Returned: success Sample: |
UserGrp list / elements=dictionary | Data will be populated when gather_subset=usergroup or gather_subset=all Lists the user groups that is created on the system Returned: success Sample: |
VdiskCopy list / elements=dictionary | Data will be populated when gather_subset=vdiskcopy or gather_subset=all Lists information for volume copy Returned: success Sample: |
VdiskHostMap list / elements=dictionary | Data will be populated when gather_subset=vdiskhostmap or gather_subset=all Lists all hosts the VDisk ‘objectname’ is mapped to Returned: success Sample: |
Volume list / elements=dictionary | Data will be populated when gather_subset=vol or gather_subset=all Lists information for VDisks Returned: success Sample: |
VolumeGroup list / elements=dictionary | Data will be populated when gather_subset=volumegroup or gather_subset=all Lists all volume groups on the system Returned: success Sample: |
VolumeGroupSnapshot list / elements=dictionary | Data will be populated when gather_subset=volumegroupsnapshot or gather_subset=all Lists the snapshot objects available on the system based on volume group Returned: success Sample: |
VolumeGroupSnapshotPolicy list / elements=dictionary | Data will be populated when gather_subset=volumegroupsnapshotpolicy or gather_subset=all Lists view snapshot objects on the system Returned: success Sample: |
VolumeSnapshot list / elements=dictionary | Data will be populated when gather_subset=volumesnapshot or gather_subset=all Lists all volume snapshots Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/ibm/spectrum_virtualize/ibm_svc_info_module.html