| 1 |
.. _omevv_firmware_compliance_info_module: |
| 2 |
|
| 3 |
|
| 4 |
omevv_firmware_compliance_info -- Retrieve firmware compliance report. |
| 5 |
====================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows you to retrieve firmware compliance reports of all the hosts of the cluster, a specific host of the cluster, or multiple clusters. |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
Requirements |
| 20 |
------------ |
| 21 |
The below requirements are needed on the host that executes this module. |
| 22 |
|
| 23 |
- python \>= 3.9.6 |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
Parameters |
| 28 |
---------- |
| 29 |
|
| 30 |
clusters (optional, list, None) |
| 31 |
Cluster details to retrieve the firmware compliance report. |
| 32 |
|
| 33 |
|
| 34 |
cluster_name (True, str, None) |
| 35 |
Cluster name of the hosts for which the firmware compliance report should be retrieved. |
| 36 |
|
| 37 |
If \ :emphasis:`servicetags`\ or \ :emphasis:`hosts`\ is provided, then the firmware compliance report of only the specified hosts is retrieved and displayed. |
| 38 |
|
| 39 |
|
| 40 |
servicetags (optional, list, None) |
| 41 |
The service tag of the hosts for which the firmware compliance reports must be retrieved. |
| 42 |
|
| 43 |
|
| 44 |
hosts (optional, list, None) |
| 45 |
The IP address or hostname of the hosts for which the firmware compliance reports must be retrieved. |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
hostname (True, str, None) |
| 50 |
IP address or hostname of the OpenManage Enterprise Modular. |
| 51 |
|
| 52 |
|
| 53 |
vcenter_username (False, str, None) |
| 54 |
Username for OpenManage Enterprise Integration for VMware vCenter (OMEVV). |
| 55 |
|
| 56 |
If the username is not provided, then the environment variable \ :envvar:`OMEVV\_VCENTER\_USERNAME`\ is used. |
| 57 |
|
| 58 |
Example: export OMEVV\_VCENTER\_USERNAME=username |
| 59 |
|
| 60 |
|
| 61 |
vcenter_password (False, str, None) |
| 62 |
Password for OpenManage Enterprise Integration for VMware vCenter (OMEVV). |
| 63 |
|
| 64 |
If the password is not provided, then the environment variable \ :envvar:`OMEVV\_VCENTER\_PASSWORD`\ is used. |
| 65 |
|
| 66 |
Example: export OMEVV\_VCENTER\_PASSWORD=password |
| 67 |
|
| 68 |
|
| 69 |
vcenter_uuid (False, str, None) |
| 70 |
Universally Unique Identifier (UUID) of vCenter. |
| 71 |
|
| 72 |
vCenter UUID details can be retrieved using \ :ref:`dellemc.openmanage.omevv\_vcenter\_info <ansible_collections.dellemc.openmanage.omevv_vcenter_info_module>`\ module. |
| 73 |
|
| 74 |
If UUID is not provided, then the environment variable \ :envvar:`OMEVV\_VCENTER\_UUID`\ is used. |
| 75 |
|
| 76 |
Example: export OMEVV\_VCENTER\_UUID=uuid |
| 77 |
|
| 78 |
|
| 79 |
port (optional, int, 443) |
| 80 |
OpenManage Enterprise HTTPS port. |
| 81 |
|
| 82 |
|
| 83 |
validate_certs (optional, bool, True) |
| 84 |
Whether to check SSL certificate. - If \ :literal:`true`\ , the SSL certificates will be validated. - If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 85 |
|
| 86 |
|
| 87 |
ca_path (optional, path, None) |
| 88 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 89 |
|
| 90 |
|
| 91 |
timeout (optional, int, 30) |
| 92 |
The socket level timeout in seconds. |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
Notes |
| 99 |
----- |
| 100 |
|
| 101 |
.. note:: |
| 102 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise. |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
Examples |
| 108 |
-------- |
| 109 |
|
| 110 |
.. code-block:: yaml+jinja |
| 111 |
|
| 112 |
|
| 113 |
--- |
| 114 |
- name: Retrieve a firmware compliance report of all the clusters |
| 115 |
dellemc.openmanage.omevv_firmware_compliance_info: |
| 116 |
hostname: "192.168.0.1" |
| 117 |
vcenter_uuid: "xxxxx" |
| 118 |
vcenter_username: "username" |
| 119 |
vcenter_password: "password" |
| 120 |
ca_path: "path/to/ca_file" |
| 121 |
|
| 122 |
- name: Retrieve a firmware compliance report of all the hosts in a specific cluster |
| 123 |
dellemc.openmanage.omevv_firmware_compliance_info: |
| 124 |
hostname: "192.168.0.1" |
| 125 |
vcenter_uuid: "xxxxx" |
| 126 |
vcenter_username: "username" |
| 127 |
vcenter_password: "password" |
| 128 |
ca_path: "path/to/ca_file" |
| 129 |
clusters: |
| 130 |
- cluster_name: cluster_a |
| 131 |
|
| 132 |
- name: Retrieve a firmware compliance report of specific hosts in the cluster |
| 133 |
dellemc.openmanage.omevv_firmware_compliance_info: |
| 134 |
hostname: "192.168.0.1" |
| 135 |
vcenter_uuid: "xxxxx" |
| 136 |
vcenter_username: "username" |
| 137 |
vcenter_password: "password" |
| 138 |
ca_path: "path/to/ca_file" |
| 139 |
clusters: |
| 140 |
- cluster_name: cluster_a |
| 141 |
servicetags: |
| 142 |
- SVCTAG1 |
| 143 |
- SVCTAG2 |
| 144 |
hosts: |
| 145 |
- host1 |
| 146 |
- xx.xx.xx.xx |
| 147 |
|
| 148 |
- name: Retrieve a firmware compliance report of multiple clusters |
| 149 |
dellemc.openmanage.omevv_firmware_compliance_info: |
| 150 |
hostname: "192.168.0.1" |
| 151 |
vcenter_uuid: "xxxxx" |
| 152 |
vcenter_username: "username" |
| 153 |
vcenter_password: "password" |
| 154 |
ca_path: "path/to/ca_file" |
| 155 |
clusters: |
| 156 |
- cluster_name: cluster_a |
| 157 |
- cluster_name: cluster_b |
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
Return Values |
| 162 |
------------- |
| 163 |
|
| 164 |
msg (always, str, Successfully fetched the firmware compliance report.) |
| 165 |
Retrive the firmware compliance report. |
| 166 |
|
| 167 |
|
| 168 |
firmware_compliance_info (on HTTP error, list, [{'complianceStatus': 'NonCompliant', 'cluster': 'cluster_a', 'hostComplianceReports': [{'hostId': 1002, 'hostAddress': 'XX.XX.XX.XX', 'serviceTag': 'SVCTAG', 'deviceModel': 'PowerEdge R660xs', 'complianceStatus': 'WARNING', 'componentCompliances': [{'driftStatus': 'NonCompliant', 'componentName': 'Enterprise UEFI Diagnostics', 'currentValue': '4303A15', 'baselineValue': '4303A19', 'criticality': 'Optional', 'updateAction': 'UPGRADE', 'sourceName': 'DCIM:INSTALLED#802__Diagnostics.Embedded.1:LC.Embedded.1', 'complianceStatus': 'WARNING', 'rebootRequired': False}]}]}]) |
| 169 |
Details of the compliance report. |
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
Status |
| 176 |
------ |
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
Authors |
| 183 |
~~~~~~~ |
| 184 |
|
| 185 |
- Abhishek Sinha(@ABHISHEK-SINHA10) |
| 186 |
|