| 1 |
.. _ome_firmware_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_firmware -- Update firmware on PowerEdge devices and its components through OpenManage Enterprise |
| 5 |
===================================================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module updates the firmware of PowerEdge devices and all its components through 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 |
device_service_tag (optional, list, None) |
| 31 |
List of service tags of the targeted devices. |
| 32 |
|
| 33 |
Either \ :emphasis:`device\_id`\ or \ :emphasis:`device\_service\_tag`\ can be used individually or together. |
| 34 |
|
| 35 |
This option is mutually exclusive with \ :emphasis:`device\_group\_names`\ and \ :emphasis:`devices`\ . |
| 36 |
|
| 37 |
|
| 38 |
device_id (optional, list, None) |
| 39 |
List of ids of the targeted device. |
| 40 |
|
| 41 |
Either \ :emphasis:`device\_id`\ or \ :emphasis:`device\_service\_tag`\ can be used individually or together. |
| 42 |
|
| 43 |
This option is mutually exclusive with \ :emphasis:`device\_group\_names`\ and \ :emphasis:`devices`\ . |
| 44 |
|
| 45 |
|
| 46 |
device_group_names (optional, list, None) |
| 47 |
Enter the name of the device group that contains the devices on which firmware needs to be updated. |
| 48 |
|
| 49 |
This option is mutually exclusive with \ :emphasis:`device\_id`\ and \ :emphasis:`device\_service\_tag`\ . |
| 50 |
|
| 51 |
|
| 52 |
dup_file (optional, path, None) |
| 53 |
The path of the Dell Update Package (DUP) file that contains the firmware or drivers required to update the target system device or individual device components. |
| 54 |
|
| 55 |
This is mutually exclusive with \ :emphasis:`baseline\_name`\ , \ :emphasis:`components`\ , and \ :emphasis:`devices`\ . |
| 56 |
|
| 57 |
|
| 58 |
baseline_name (optional, str, None) |
| 59 |
Enter the baseline name to update the firmware of all devices or list of devices that are not complaint. |
| 60 |
|
| 61 |
This option is mutually exclusive with \ :emphasis:`dup\_file`\ and \ :emphasis:`device\_group\_names`\ . |
| 62 |
|
| 63 |
|
| 64 |
components (optional, list, []) |
| 65 |
List of components to be updated. |
| 66 |
|
| 67 |
If not provided, all components applicable are considered. |
| 68 |
|
| 69 |
This option is case sensitive. |
| 70 |
|
| 71 |
This is applicable to \ :emphasis:`device\_service\_tag`\ , \ :emphasis:`device\_id`\ , and \ :emphasis:`baseline\_name`\ . |
| 72 |
|
| 73 |
|
| 74 |
devices (optional, list, None) |
| 75 |
This option allows to select components on each device for firmware update. |
| 76 |
|
| 77 |
This option is mutually exclusive with \ :emphasis:`dup\_file`\ , \ :emphasis:`device\_group\_names`\ , \ :emphasis:`device\_id`\ , and \ :emphasis:`device\_service\_tag`\ . |
| 78 |
|
| 79 |
|
| 80 |
id (optional, int, None) |
| 81 |
The id of the target device to be updated. |
| 82 |
|
| 83 |
This option is mutually exclusive with \ :emphasis:`service\_tag`\ . |
| 84 |
|
| 85 |
|
| 86 |
service_tag (optional, str, None) |
| 87 |
The service tag of the target device to be updated. |
| 88 |
|
| 89 |
This option is mutually exclusive with \ :emphasis:`id`\ . |
| 90 |
|
| 91 |
|
| 92 |
components (optional, list, []) |
| 93 |
The target components to be updated. If not specified, all applicable device components are considered. |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
schedule (optional, str, RebootNow) |
| 98 |
Select the schedule for the firmware update. |
| 99 |
|
| 100 |
if \ :literal:`StageForNextReboot`\ is chosen, the firmware will be staged and updated during the next reboot of the target device. |
| 101 |
|
| 102 |
if \ :literal:`RebootNow`\ will apply the firmware updates immediately. |
| 103 |
|
| 104 |
|
| 105 |
reboot_type (optional, str, GracefulRebootForce) |
| 106 |
This option provides the choices to reboot the server immediately after the firmware update. |
| 107 |
|
| 108 |
This is applicable when \ :emphasis:`schedule`\ is \ :literal:`RebootNow`\ . |
| 109 |
|
| 110 |
\ :literal:`GracefulRebootForce`\ performs a graceful reboot with forced shutdown. |
| 111 |
|
| 112 |
\ :literal:`GracefulReboot`\ performs a graceful reboot without forced shutdown. |
| 113 |
|
| 114 |
\ :literal:`PowerCycle`\ performs a power cycle for a hard reset on the device. |
| 115 |
|
| 116 |
|
| 117 |
hostname (True, str, None) |
| 118 |
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
| 119 |
|
| 120 |
|
| 121 |
username (False, str, None) |
| 122 |
OpenManage Enterprise or OpenManage Enterprise Modular username. |
| 123 |
|
| 124 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 125 |
|
| 126 |
Example: export OME\_USERNAME=username |
| 127 |
|
| 128 |
|
| 129 |
password (False, str, None) |
| 130 |
OpenManage Enterprise or OpenManage Enterprise Modular password. |
| 131 |
|
| 132 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 133 |
|
| 134 |
Example: export OME\_PASSWORD=password |
| 135 |
|
| 136 |
|
| 137 |
x_auth_token (False, str, None) |
| 138 |
Authentication token. |
| 139 |
|
| 140 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 141 |
|
| 142 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 143 |
|
| 144 |
|
| 145 |
port (optional, int, 443) |
| 146 |
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. |
| 147 |
|
| 148 |
|
| 149 |
validate_certs (optional, bool, True) |
| 150 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 151 |
|
| 152 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 153 |
|
| 154 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 155 |
|
| 156 |
|
| 157 |
ca_path (optional, path, None) |
| 158 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 159 |
|
| 160 |
|
| 161 |
timeout (optional, int, 30) |
| 162 |
The socket level timeout in seconds. |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
Notes |
| 169 |
----- |
| 170 |
|
| 171 |
.. note:: |
| 172 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise. |
| 173 |
- This module supports \ :literal:`check\_mode`\ . |
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
Examples |
| 179 |
-------- |
| 180 |
|
| 181 |
.. code-block:: yaml+jinja |
| 182 |
|
| 183 |
|
| 184 |
--- |
| 185 |
- name: Update firmware from DUP file using device ids |
| 186 |
dellemc.openmanage.ome_firmware: |
| 187 |
hostname: "192.168.0.1" |
| 188 |
username: "username" |
| 189 |
password: "password" |
| 190 |
ca_path: "/path/to/ca_cert.pem" |
| 191 |
device_id: |
| 192 |
- 11111 |
| 193 |
- 22222 |
| 194 |
dup_file: "/path/Chassis-System-Management_Firmware_6N9WN_WN64_1.00.01_A00.EXE" |
| 195 |
|
| 196 |
- name: Update firmware from a DUP file using a device service tags |
| 197 |
dellemc.openmanage.ome_firmware: |
| 198 |
hostname: "192.168.0.1" |
| 199 |
username: "username" |
| 200 |
password: "password" |
| 201 |
ca_path: "/path/to/ca_cert.pem" |
| 202 |
device_service_tag: |
| 203 |
- KLBR111 |
| 204 |
- KLBR222 |
| 205 |
dup_file: "/path/Network_Firmware_NTRW0_WN64_14.07.07_A00-00_01.EXE" |
| 206 |
|
| 207 |
- name: Update firmware from a DUP file using a device group names |
| 208 |
dellemc.openmanage.ome_firmware: |
| 209 |
hostname: "192.168.0.1" |
| 210 |
username: "username" |
| 211 |
password: "password" |
| 212 |
ca_path: "/path/to/ca_cert.pem" |
| 213 |
device_group_names: |
| 214 |
- servers |
| 215 |
dup_file: "/path/BIOS_87V69_WN64_2.4.7.EXE" |
| 216 |
|
| 217 |
- name: Update firmware using baseline name |
| 218 |
dellemc.openmanage.ome_firmware: |
| 219 |
hostname: "192.168.0.1" |
| 220 |
username: "username" |
| 221 |
password: "password" |
| 222 |
ca_path: "/path/to/ca_cert.pem" |
| 223 |
baseline_name: baseline_devices |
| 224 |
|
| 225 |
- name: Stage firmware for the next reboot using baseline name |
| 226 |
dellemc.openmanage.ome_firmware: |
| 227 |
hostname: "192.168.0.1" |
| 228 |
username: "username" |
| 229 |
password: "password" |
| 230 |
ca_path: "/path/to/ca_cert.pem" |
| 231 |
baseline_name: baseline_devices |
| 232 |
schedule: StageForNextReboot |
| 233 |
|
| 234 |
- name: "Update firmware using baseline name and components." |
| 235 |
dellemc.openmanage.ome_firmware: |
| 236 |
hostname: "192.168.0.1" |
| 237 |
username: "username" |
| 238 |
password: "password" |
| 239 |
ca_path: "/path/to/ca_cert.pem" |
| 240 |
baseline_name: baseline_devices |
| 241 |
components: |
| 242 |
- BIOS |
| 243 |
|
| 244 |
- name: Update firmware of device components from a DUP file using a device ids in a baseline |
| 245 |
dellemc.openmanage.ome_firmware: |
| 246 |
hostname: "192.168.0.1" |
| 247 |
username: "username" |
| 248 |
password: "password" |
| 249 |
ca_path: "/path/to/ca_cert.pem" |
| 250 |
baseline_name: baseline_devices |
| 251 |
device_id: |
| 252 |
- 11111 |
| 253 |
- 22222 |
| 254 |
components: |
| 255 |
- iDRAC with Lifecycle Controller |
| 256 |
|
| 257 |
- name: Update firmware of device components from a baseline using a device service tags under a baseline |
| 258 |
dellemc.openmanage.ome_firmware: |
| 259 |
hostname: "192.168.0.1" |
| 260 |
username: "username" |
| 261 |
password: "password" |
| 262 |
ca_path: "/path/to/ca_cert.pem" |
| 263 |
baseline_name: baseline_devices |
| 264 |
device_service_tag: |
| 265 |
- KLBR111 |
| 266 |
- KLBR222 |
| 267 |
components: |
| 268 |
- IOM-SAS |
| 269 |
|
| 270 |
- name: Update firmware using baseline name with a device id and required components |
| 271 |
dellemc.openmanage.ome_firmware: |
| 272 |
hostname: "192.168.0.1" |
| 273 |
username: "username" |
| 274 |
password: "password" |
| 275 |
ca_path: "/path/to/ca_cert.pem" |
| 276 |
baseline_name: baseline_devices |
| 277 |
devices: |
| 278 |
- id: 12345 |
| 279 |
components: |
| 280 |
- Lifecycle Controller |
| 281 |
- id: 12346 |
| 282 |
components: |
| 283 |
- Enterprise UEFI Diagnostics |
| 284 |
- BIOS |
| 285 |
|
| 286 |
- name: "Update firmware using baseline name with a device service tag and required components." |
| 287 |
dellemc.openmanage.ome_firmware: |
| 288 |
hostname: "192.168.0.1" |
| 289 |
username: "username" |
| 290 |
password: "password" |
| 291 |
ca_path: "/path/to/ca_cert.pem" |
| 292 |
baseline_name: baseline_devices |
| 293 |
devices: |
| 294 |
- service_tag: ABCDE12 |
| 295 |
components: |
| 296 |
- PERC H740P Adapter |
| 297 |
- BIOS |
| 298 |
- service_tag: GHIJK34 |
| 299 |
components: |
| 300 |
- OS Drivers Pack |
| 301 |
|
| 302 |
- name: "Update firmware using baseline name with a device service tag or device id and required components." |
| 303 |
dellemc.openmanage.ome_firmware: |
| 304 |
hostname: "192.168.0.1" |
| 305 |
username: "username" |
| 306 |
password: "password" |
| 307 |
ca_path: "/path/to/ca_cert.pem" |
| 308 |
baseline_name: baseline_devices |
| 309 |
devices: |
| 310 |
- service_tag: ABCDE12 |
| 311 |
components: |
| 312 |
- BOSS-S1 Adapter |
| 313 |
- PowerEdge Server BIOS |
| 314 |
- id: 12345 |
| 315 |
components: |
| 316 |
- iDRAC with Lifecycle Controller |
| 317 |
|
| 318 |
- name: "Update firmware using baseline name and components and perform Powercycle." |
| 319 |
dellemc.openmanage.ome_firmware: |
| 320 |
hostname: "192.168.0.1" |
| 321 |
username: "username" |
| 322 |
password: "password" |
| 323 |
ca_path: "/path/to/ca_cert.pem" |
| 324 |
baseline_name: baseline_devices |
| 325 |
components: |
| 326 |
- BIOS |
| 327 |
reboot_type: PowerCycle |
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
Return Values |
| 332 |
------------- |
| 333 |
|
| 334 |
msg (always, str, Successfully submitted the firmware update job.) |
| 335 |
Overall firmware update status. |
| 336 |
|
| 337 |
|
| 338 |
update_status (success, dict, {'LastRun': 'None', 'CreatedBy': 'user', 'Schedule': 'startnow', 'LastRunStatus': {'Id': 1111, 'Name': 'NotRun'}, 'Builtin': False, 'Editable': True, 'NextRun': 'None', 'JobStatus': {'Id': 1111, 'Name': 'New'}, 'JobName': 'Firmware Update Task', 'Visible': True, 'State': 'Enabled', 'JobDescription': 'dup test', 'Params': [{'Value': 'true', 'Key': 'signVerify', 'JobId': 11111}, {'Value': 'false', 'Key': 'stagingValue', 'JobId': 11112}, {'Value': 'false', 'Key': 'complianceUpdate', 'JobId': 11113}, {'Value': 'INSTALL_FIRMWARE', 'Key': 'operationName', 'JobId': 11114}], 'Targets': [{'TargetType': {'Id': 1000, 'Name': 'DEVICE'}, 'Data': 'DCIM:INSTALLED#701__NIC.Mezzanine.1A-1-1=1234567654321', 'Id': 11115, 'JobId': 11116}], 'StartTime': 'None', 'UpdatedBy': 'None', 'EndTime': 'None', 'Id': 11117, 'JobType': {'Internal': False, 'Id': 5, 'Name': 'Update_Task'}}) |
| 339 |
The firmware update job and progress details from the OME. |
| 340 |
|
| 341 |
|
| 342 |
error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}}) |
| 343 |
Details of the HTTP Error. |
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
Status |
| 350 |
------ |
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
Authors |
| 357 |
~~~~~~~ |
| 358 |
|
| 359 |
- Felix Stephen (@felixs88) |
| 360 |
- Jagadeesh N V (@jagadeeshnv) |
| 361 |
- Abhishek Sinha (@ABHISHEK-SINHA10) |
| 362 |
|