| 1 |
.. _ome_firmware_baseline_compliance_info_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_firmware_baseline_compliance_info -- Retrieves baseline compliance details on OpenManage Enterprise |
| 5 |
======================================================================================================= |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to retrieve firmware compliance for a list of devices, or against a specified baseline on OpenManage Enterprise. |
| 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 |
baseline_name (optional, str, None) |
| 31 |
Name of the baseline, for which the device compliance report is generated. |
| 32 |
|
| 33 |
This option is mandatory for generating baseline based device compliance report. |
| 34 |
|
| 35 |
\ :emphasis:`baseline\_name`\ is mutually exclusive with \ :emphasis:`device\_ids`\ , \ :emphasis:`device\_service\_tags`\ and \ :emphasis:`device\_group\_names`\ . |
| 36 |
|
| 37 |
|
| 38 |
device_ids (optional, list, None) |
| 39 |
A list of unique identifier for device based compliance report. |
| 40 |
|
| 41 |
Either \ :emphasis:`device\_ids`\ , \ :emphasis:`device\_service\_tags`\ or \ :emphasis:`device\_group\_names`\ is required to generate device based compliance report. |
| 42 |
|
| 43 |
\ :emphasis:`device\_ids`\ is mutually exclusive with \ :emphasis:`device\_service\_tags`\ , \ :emphasis:`device\_group\_names`\ and \ :emphasis:`baseline\_name`\ . |
| 44 |
|
| 45 |
Devices without reports are ignored. |
| 46 |
|
| 47 |
|
| 48 |
device_service_tags (optional, list, None) |
| 49 |
A list of service tags for device based compliance report. |
| 50 |
|
| 51 |
Either \ :emphasis:`device\_ids`\ , \ :emphasis:`device\_service\_tags`\ or \ :emphasis:`device\_group\_names`\ is required to generate device based compliance report. |
| 52 |
|
| 53 |
\ :emphasis:`device\_service\_tags`\ is mutually exclusive with \ :emphasis:`device\_ids`\ , \ :emphasis:`device\_group\_names`\ and \ :emphasis:`baseline\_name`\ . |
| 54 |
|
| 55 |
Devices without reports are ignored. |
| 56 |
|
| 57 |
|
| 58 |
device_group_names (optional, list, None) |
| 59 |
A list of group names for device based compliance report. |
| 60 |
|
| 61 |
Either \ :emphasis:`device\_ids`\ , \ :emphasis:`device\_service\_tags`\ or \ :emphasis:`device\_group\_names`\ is required to generate device based compliance report. |
| 62 |
|
| 63 |
\ :emphasis:`device\_group\_names`\ is mutually exclusive with \ :emphasis:`device\_ids`\ , \ :emphasis:`device\_service\_tags`\ and \ :emphasis:`baseline\_name`\ . |
| 64 |
|
| 65 |
Devices without reports are ignored. |
| 66 |
|
| 67 |
|
| 68 |
hostname (True, str, None) |
| 69 |
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
| 70 |
|
| 71 |
|
| 72 |
username (False, str, None) |
| 73 |
OpenManage Enterprise or OpenManage Enterprise Modular username. |
| 74 |
|
| 75 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 76 |
|
| 77 |
Example: export OME\_USERNAME=username |
| 78 |
|
| 79 |
|
| 80 |
password (False, str, None) |
| 81 |
OpenManage Enterprise or OpenManage Enterprise Modular password. |
| 82 |
|
| 83 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 84 |
|
| 85 |
Example: export OME\_PASSWORD=password |
| 86 |
|
| 87 |
|
| 88 |
x_auth_token (False, str, None) |
| 89 |
Authentication token. |
| 90 |
|
| 91 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 92 |
|
| 93 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 94 |
|
| 95 |
|
| 96 |
port (optional, int, 443) |
| 97 |
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. |
| 98 |
|
| 99 |
|
| 100 |
validate_certs (optional, bool, True) |
| 101 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 102 |
|
| 103 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 104 |
|
| 105 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 106 |
|
| 107 |
|
| 108 |
ca_path (optional, path, None) |
| 109 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 110 |
|
| 111 |
|
| 112 |
timeout (optional, int, 30) |
| 113 |
The socket level timeout in seconds. |
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
Notes |
| 120 |
----- |
| 121 |
|
| 122 |
.. note:: |
| 123 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise. |
| 124 |
- This module supports \ :literal:`check\_mode`\ . |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
Examples |
| 130 |
-------- |
| 131 |
|
| 132 |
.. code-block:: yaml+jinja |
| 133 |
|
| 134 |
|
| 135 |
--- |
| 136 |
- name: Retrieves device based compliance report for specified device IDs |
| 137 |
dellemc.openmanage.ome_firmware_baseline_compliance_info: |
| 138 |
hostname: "192.168.0.1" |
| 139 |
username: "username" |
| 140 |
password: "password" |
| 141 |
ca_path: "/path/to/ca_cert.pem" |
| 142 |
device_ids: |
| 143 |
- 11111 |
| 144 |
- 22222 |
| 145 |
|
| 146 |
- name: Retrieves device based compliance report for specified service Tags |
| 147 |
dellemc.openmanage.ome_firmware_baseline_compliance_info: |
| 148 |
hostname: "192.168.0.1" |
| 149 |
username: "username" |
| 150 |
password: "password" |
| 151 |
ca_path: "/path/to/ca_cert.pem" |
| 152 |
device_service_tags: |
| 153 |
- MXL1234 |
| 154 |
- MXL4567 |
| 155 |
|
| 156 |
- name: Retrieves device based compliance report for specified group names |
| 157 |
dellemc.openmanage.ome_firmware_baseline_compliance_info: |
| 158 |
hostname: "192.168.0.1" |
| 159 |
username: "username" |
| 160 |
password: "password" |
| 161 |
ca_path: "/path/to/ca_cert.pem" |
| 162 |
device_group_names: |
| 163 |
- "group1" |
| 164 |
- "group2" |
| 165 |
|
| 166 |
- name: Retrieves device compliance report for a specified baseline |
| 167 |
dellemc.openmanage.ome_firmware_baseline_compliance_info: |
| 168 |
hostname: "192.168.0.1" |
| 169 |
username: "username" |
| 170 |
password: "password" |
| 171 |
ca_path: "/path/to/ca_cert.pem" |
| 172 |
baseline_name: "baseline_name" |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
Return Values |
| 177 |
------------- |
| 178 |
|
| 179 |
msg (on error, str, Failed to fetch the compliance baseline information.) |
| 180 |
Overall baseline compliance report status. |
| 181 |
|
| 182 |
|
| 183 |
baseline_compliance_info (success, dict, [{'CatalogId': 53, 'ComplianceSummary': {'ComplianceStatus': 'CRITICAL', 'NumberOfCritical': 2, 'NumberOfDowngrade': 0, 'NumberOfNormal': 0, 'NumberOfWarning': 0}, 'Description': '', 'DeviceComplianceReports': [{'ComplianceStatus': 'CRITICAL', 'ComponentComplianceReports': [{'ComplianceDependencies': [], 'ComplianceStatus': 'DOWNGRADE', 'Criticality': 'Ok', 'CurrentVersion': 'OSC_1.1', 'Id': 1258, 'ImpactAssessment': '', 'Name': 'OS COLLECTOR 2.1', 'Path': 'FOLDER04118304M/2/Diagnostics_Application_JCCH7_WN64_4.0_A00_01.EXE', 'PrerequisiteInfo': '', 'RebootRequired': False, 'SourceName': 'DCIM:INSTALLED#802__OSCollector.Embedded.1', 'TargetIdentifier': '101734', 'UniqueIdentifier': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'UpdateAction': 'DOWNGRADE', 'Uri': 'http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=XXXXX', 'Version': '4.0'}, {'ComplianceDependencies': [], 'ComplianceStatus': 'CRITICAL', 'Criticality': 'Recommended', 'CurrentVersion': 'DN02', 'Id': 1259, 'ImpactAssessment': '', 'Name': 'TOSHIBA AL14SE 1.8 TB 2.5 12Gb 10K 512n SAS HDD Drive', 'Path': 'FOLDER04086111M/1/SAS-Drive_Firmware_VDGFM_WN64_DN03_A00.EXE', 'PrerequisiteInfo': '', 'RebootRequired': True, 'SourceName': 'DCIM:INSTALLED#304_C_Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1', 'TargetIdentifier': '103730', 'UniqueIdentifier': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'UpdateAction': 'UPGRADE', 'Uri': 'http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=XXXXX', 'Version': 'DN03'}], 'DeviceId': 11603, 'DeviceModel': 'PowerEdge R630', 'DeviceName': None, 'DeviceTypeId': 1000, 'DeviceTypeName': 'CPGCGS', 'FirmwareStatus': 'Non-Compliant', 'Id': 194, 'RebootRequired': True, 'ServiceTag': 'MXL1234'}], 'DowngradeEnabled': True, 'Id': 53, 'Is64Bit': False, 'LastRun': '2019-09-27 05:08:16.301', 'Name': 'baseline1', 'RepositoryId': 43, 'RepositoryName': 'catalog2', 'RepositoryType': 'CIFS', 'Targets': [{'Id': 11603, 'Type': {'Id': 1000, 'Name': 'DEVICE'}}], 'TaskId': 11710, 'TaskStatusId': 0}]) |
| 184 |
Details of the baseline compliance report. |
| 185 |
|
| 186 |
|
| 187 |
error_info (on http error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to retrieve baseline list either because the device ID(s) entered are invalid', 'Resolution': 'Make sure the entered device ID(s) are valid and retry the operation.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}}) |
| 188 |
Details of http error. |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
Status |
| 195 |
------ |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
Authors |
| 202 |
~~~~~~~ |
| 203 |
|
| 204 |
- Sajna Shetty(@Sajna-Shetty) |
| 205 |
|