| 1 |
.. _idrac_server_config_profile_module: |
| 2 |
|
| 3 |
|
| 4 |
idrac_server_config_profile -- Export or Import iDRAC Server Configuration Profile (SCP) |
| 5 |
======================================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Export the Server Configuration Profile (SCP) from the iDRAC or import from a network share (CIFS, NFS, HTTP, HTTPS) or a local path. |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
Requirements |
| 20 |
------------ |
| 21 |
The below requirements are needed on the host that executes this module. |
| 22 |
|
| 23 |
- python \>= 3.9.14 |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
Parameters |
| 28 |
---------- |
| 29 |
|
| 30 |
command (optional, str, export) |
| 31 |
If :literal:`import`\ , the module performs SCP import operation. |
| 32 |
|
| 33 |
If :literal:`export`\ , the module performs SCP export operation. |
| 34 |
|
| 35 |
If :literal:`preview`\ , the module performs SCP preview operation. |
| 36 |
|
| 37 |
:literal:`import\_custom\_defaults` allows you to import custom default iDRAC settings. |
| 38 |
|
| 39 |
:literal:`export\_custom\_defaults` allows you to export custom default iDRAC settings. |
| 40 |
|
| 41 |
:literal:`import\_custom\_defaults` and :literal:`export\_custom\_defaults` is supported only on iDRAC9 with firmware 7.00.00.00 and above. |
| 42 |
|
| 43 |
|
| 44 |
job_wait (True, bool, None) |
| 45 |
Whether to wait for job completion or not. |
| 46 |
|
| 47 |
|
| 48 |
job_wait_timeout (optional, int, 900) |
| 49 |
The maximum wait time of :emphasis:`job\_wait` in seconds. |
| 50 |
|
| 51 |
The job is tracked only for this duration. |
| 52 |
|
| 53 |
This option is applicable when :emphasis:`job\_wait` is :literal:`true`. |
| 54 |
|
| 55 |
|
| 56 |
share_name (optional, str, None) |
| 57 |
Network share or local path. |
| 58 |
|
| 59 |
CIFS, NFS, HTTP, and HTTPS network share types are supported. |
| 60 |
|
| 61 |
:emphasis:`share\_name` is mutually exclusive with :emphasis:`import\_buffer`. |
| 62 |
|
| 63 |
Only "local" is supported when the :emphasis:`command` is :literal:`import\_custom\_defaults` or :literal:`export\_custom\_defaults`. |
| 64 |
|
| 65 |
|
| 66 |
share_user (optional, str, None) |
| 67 |
Network share user in the format 'user@domain' or 'domain\\\\user' if user is part of a domain else 'user'. This option is mandatory for CIFS Network Share. |
| 68 |
|
| 69 |
|
| 70 |
share_password (optional, str, None) |
| 71 |
Network share user password. This option is mandatory for CIFS Network Share. |
| 72 |
|
| 73 |
|
| 74 |
scp_file (optional, str, None) |
| 75 |
Name of the server configuration profile (SCP) file. |
| 76 |
|
| 77 |
Only XML file format is supported when :emphasis:`command` is :literal:`import` or :literal:`import\_custom\_defaults` or :literal:`export\_custom\_defaults`. |
| 78 |
|
| 79 |
The default format \<idrac\_ip\>\_YYmmdd\_HHMMSS\_scp is used if this option is not specified for :literal:`export` or :literal:`export\_custom\_defaults`. |
| 80 |
|
| 81 |
:emphasis:`export\_format` is used if the valid extension file is not provided for :literal:`export`. |
| 82 |
|
| 83 |
|
| 84 |
scp_components (optional, list, ALL) |
| 85 |
If :literal:`ALL`\ , this option exports or imports all components configurations from the SCP file. |
| 86 |
|
| 87 |
If :literal:`IDRAC`\ , this option exports or imports iDRAC configuration from the SCP file. |
| 88 |
|
| 89 |
If :literal:`BIOS`\ , this option exports or imports BIOS configuration from the SCP file. |
| 90 |
|
| 91 |
If :literal:`NIC`\ , this option exports or imports NIC configuration from the SCP file. |
| 92 |
|
| 93 |
If :literal:`RAID`\ , this option exports or imports RAID configuration from the SCP file. |
| 94 |
|
| 95 |
If :literal:`FC`\ , this option exports or imports FiberChannel configurations from the SCP file. |
| 96 |
|
| 97 |
If :literal:`InfiniBand`\ , this option exports or imports InfiniBand configuration from the SCP file. |
| 98 |
|
| 99 |
If :literal:`SupportAssist`\ , this option exports or imports SupportAssist configuration from the SCP file. |
| 100 |
|
| 101 |
If :literal:`EventFilters`\ , this option exports or imports EventFilters configuration from the SCP file. |
| 102 |
|
| 103 |
If :literal:`System`\ , this option exports or imports System configuration from the SCP file. |
| 104 |
|
| 105 |
If :literal:`LifecycleController`\ , this option exports or imports SupportAssist configuration from the SCP file. |
| 106 |
|
| 107 |
If :literal:`AHCI`\ , this option exports or imports EventFilters configuration from the SCP file. |
| 108 |
|
| 109 |
If :literal:`PCIeSSD`\ , this option exports or imports PCIeSSD configuration from the SCP file. |
| 110 |
|
| 111 |
When :emphasis:`command` is :literal:`export` or :literal:`import` :emphasis:`target` with multiple components is supported only on iDRAC9 with firmware 6.10.00.00 and above. |
| 112 |
|
| 113 |
|
| 114 |
shutdown_type (optional, str, Graceful) |
| 115 |
This option is applicable for :literal:`import` command. |
| 116 |
|
| 117 |
If :literal:`Graceful`\ , the job gracefully shuts down the operating system and turns off the server. |
| 118 |
|
| 119 |
If :literal:`Forced`\ , it forcefully shuts down the server. |
| 120 |
|
| 121 |
If :literal:`NoReboot`\ , the job that applies the SCP will pause until you manually reboot the server. |
| 122 |
|
| 123 |
|
| 124 |
end_host_power_state (optional, str, On) |
| 125 |
This option is applicable for :literal:`import` command. |
| 126 |
|
| 127 |
If :literal:`On`\ , End host power state is on. |
| 128 |
|
| 129 |
If :literal:`Off`\ , End host power state is off. |
| 130 |
|
| 131 |
|
| 132 |
export_format (optional, str, XML) |
| 133 |
Specify the output file format. This option is applicable for :literal:`export` or :literal:`export\_custom\_defaults` command. |
| 134 |
|
| 135 |
The default export file format is always XML when the :emphasis:`command` is :literal:`export\_custom\_defaults`. |
| 136 |
|
| 137 |
|
| 138 |
export_use (optional, str, Default) |
| 139 |
Specify the type of Server Configuration Profile (SCP) to be exported. |
| 140 |
|
| 141 |
This option is applicable when :emphasis:`command` is :literal:`export`. |
| 142 |
|
| 143 |
:literal:`Default` Creates a non\-destructive snapshot of the configuration. |
| 144 |
|
| 145 |
:literal:`Replace` Replaces a server with another or restores the servers settings to a known baseline. |
| 146 |
|
| 147 |
:literal:`Clone` Clones settings from one server to another server with the identical hardware setup. All settings except I/O identity are updated (e.g. will reset RAID). The settings in this export will be destructive when uploaded to another system. |
| 148 |
|
| 149 |
|
| 150 |
ignore_certificate_warning (optional, str, ignore) |
| 151 |
If :literal:`ignore`\ , it ignores the certificate warnings. |
| 152 |
|
| 153 |
If :literal:`showerror`\ , it shows the certificate warnings. |
| 154 |
|
| 155 |
:emphasis:`ignore\_certificate\_warning` is considered only when :emphasis:`share\_name` is of type HTTPS and is supported only on iDRAC9. |
| 156 |
|
| 157 |
|
| 158 |
include_in_export (optional, str, default) |
| 159 |
This option is applicable when :emphasis:`command` is :literal:`export`. |
| 160 |
|
| 161 |
If :literal:`default`\ , it exports the default Server Configuration Profile. |
| 162 |
|
| 163 |
If :literal:`readonly`\ , it exports the SCP with readonly attributes. |
| 164 |
|
| 165 |
If :literal:`passwordhashvalues`\ , it exports the SCP with password hash values. |
| 166 |
|
| 167 |
If :literal:`customtelemetry`\ , exports the SCP with custom telemetry attributes supported only in the iDRAC9. |
| 168 |
|
| 169 |
|
| 170 |
import_buffer (optional, str, None) |
| 171 |
Used to import the buffer input of xml or json into the iDRAC. |
| 172 |
|
| 173 |
When the :emphasis:`command` is :literal:`import\_custom\_defaults`\ , only XML file format is supported. |
| 174 |
|
| 175 |
This option is applicable when :emphasis:`command` is :literal:`import` or :literal:`preview` or :literal:`import\_custom\_defaults`. |
| 176 |
|
| 177 |
:emphasis:`import\_buffer` is mutually exclusive with :emphasis:`share\_name`. |
| 178 |
|
| 179 |
|
| 180 |
proxy_support (optional, bool, False) |
| 181 |
Proxy to be enabled or disabled. |
| 182 |
|
| 183 |
:emphasis:`proxy\_support` is considered only when :emphasis:`share\_name` is of type HTTP or HTTPS and is supported only on iDRAC9. |
| 184 |
|
| 185 |
|
| 186 |
proxy_type (optional, str, http) |
| 187 |
:literal:`http` to select HTTP type proxy. |
| 188 |
|
| 189 |
:literal:`socks4` to select SOCKS4 type proxy. |
| 190 |
|
| 191 |
:emphasis:`proxy\_type` is considered only when :emphasis:`share\_name` is of type HTTP or HTTPS and is supported only on iDRAC9. |
| 192 |
|
| 193 |
|
| 194 |
proxy_server (optional, str, None) |
| 195 |
:emphasis:`proxy\_server` is required when :emphasis:`share\_name` is of type HTTPS or HTTP and :emphasis:`proxy\_support` is :literal:`true`. |
| 196 |
|
| 197 |
:emphasis:`proxy\_server` is considered only when :emphasis:`share\_name` is of type HTTP or HTTPS and is supported only on iDRAC9. |
| 198 |
|
| 199 |
|
| 200 |
proxy_port (optional, str, 80) |
| 201 |
Proxy port to authenticate. |
| 202 |
|
| 203 |
:emphasis:`proxy\_port` is required when :emphasis:`share\_name` is of type HTTPS or HTTP and :emphasis:`proxy\_support` is :literal:`true`. |
| 204 |
|
| 205 |
:emphasis:`proxy\_port` is considered only when :emphasis:`share\_name` is of type HTTP or HTTPS and is supported only on iDRAC9. |
| 206 |
|
| 207 |
|
| 208 |
proxy_username (optional, str, None) |
| 209 |
Proxy username to authenticate. |
| 210 |
|
| 211 |
:emphasis:`proxy\_username` is considered only when :emphasis:`share\_name` is of type HTTP or HTTPS and is supported only on iDRAC9. |
| 212 |
|
| 213 |
|
| 214 |
proxy_password (optional, str, None) |
| 215 |
Proxy password to authenticate. |
| 216 |
|
| 217 |
:emphasis:`proxy\_password` is considered only when :emphasis:`share\_name` is of type HTTP or HTTPS and is supported only on iDRAC9. |
| 218 |
|
| 219 |
|
| 220 |
idrac_ip (True, str, None) |
| 221 |
iDRAC IP Address. |
| 222 |
|
| 223 |
|
| 224 |
idrac_user (False, str, None) |
| 225 |
iDRAC username. |
| 226 |
|
| 227 |
If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used. |
| 228 |
|
| 229 |
Example: export IDRAC\_USERNAME=username |
| 230 |
|
| 231 |
|
| 232 |
idrac_password (False, str, None) |
| 233 |
iDRAC user password. |
| 234 |
|
| 235 |
If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used. |
| 236 |
|
| 237 |
Example: export IDRAC\_PASSWORD=password |
| 238 |
|
| 239 |
|
| 240 |
x_auth_token (False, str, None) |
| 241 |
Authentication token. |
| 242 |
|
| 243 |
If the x\_auth\_token is not provided, then the environment variable :envvar:`IDRAC\_X\_AUTH\_TOKEN` is used. |
| 244 |
|
| 245 |
Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token |
| 246 |
|
| 247 |
|
| 248 |
idrac_port (optional, int, 443) |
| 249 |
iDRAC port. |
| 250 |
|
| 251 |
|
| 252 |
validate_certs (optional, bool, True) |
| 253 |
If :literal:`false`\ , the SSL certificates will not be validated. |
| 254 |
|
| 255 |
Configure :literal:`false` only on personally controlled sites where self\-signed certificates are used. |
| 256 |
|
| 257 |
Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default. |
| 258 |
|
| 259 |
|
| 260 |
ca_path (optional, path, None) |
| 261 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 262 |
|
| 263 |
|
| 264 |
timeout (optional, int, 30) |
| 265 |
The socket level timeout in seconds. |
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
Notes |
| 272 |
----- |
| 273 |
|
| 274 |
.. note:: |
| 275 |
- This module requires 'Administrator' privilege for :emphasis:`idrac\_user`. |
| 276 |
- Run this module from a system that has direct access to Dell iDRAC. |
| 277 |
- This module supports :literal:`check\_mode`. |
| 278 |
- To import Server Configuration Profile (SCP) on the iDRAC8\-based servers, the servers must have iDRAC Enterprise license or later. |
| 279 |
- For :literal:`import` operation, :literal:`check\_mode` is supported only when :emphasis:`target` is :literal:`ALL`. |
| 280 |
- This module supports IPv4 and IPv6 addresses. |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
Examples |
| 286 |
-------- |
| 287 |
|
| 288 |
.. code-block:: yaml+jinja |
| 289 |
|
| 290 |
|
| 291 |
--- |
| 292 |
- name: Export SCP with IDRAC components in JSON format to a local path |
| 293 |
dellemc.openmanage.idrac_server_config_profile: |
| 294 |
idrac_ip: "192.168.0.1" |
| 295 |
idrac_user: "user_name" |
| 296 |
idrac_password: "user_password" |
| 297 |
ca_path: "/path/to/ca_cert.pem" |
| 298 |
share_name: "/scp_folder" |
| 299 |
scp_components: |
| 300 |
- IDRAC |
| 301 |
scp_file: example_file |
| 302 |
export_format: JSON |
| 303 |
export_use: Clone |
| 304 |
job_wait: true |
| 305 |
|
| 306 |
- name: Import SCP with IDRAC components in JSON format from a local path |
| 307 |
dellemc.openmanage.idrac_server_config_profile: |
| 308 |
idrac_ip: "192.168.0.1" |
| 309 |
idrac_user: "user_name" |
| 310 |
idrac_password: "user_password" |
| 311 |
ca_path: "/path/to/ca_cert.pem" |
| 312 |
share_name: "/scp_folder" |
| 313 |
command: import |
| 314 |
scp_components: |
| 315 |
- IDRAC |
| 316 |
scp_file: example_file.json |
| 317 |
shutdown_type: Graceful |
| 318 |
end_host_power_state: "On" |
| 319 |
job_wait: false |
| 320 |
|
| 321 |
- name: Export SCP with BIOS components in XML format to a NFS share path with auto-generated file name |
| 322 |
dellemc.openmanage.idrac_server_config_profile: |
| 323 |
idrac_ip: "192.168.0.1" |
| 324 |
idrac_user: "user_name" |
| 325 |
idrac_password: "user_password" |
| 326 |
ca_path: "/path/to/ca_cert.pem" |
| 327 |
share_name: "192.168.0.2:/share" |
| 328 |
scp_components: |
| 329 |
- BIOS |
| 330 |
export_format: XML |
| 331 |
export_use: Default |
| 332 |
job_wait: true |
| 333 |
|
| 334 |
- name: Import SCP with BIOS components in XML format from a NFS share path |
| 335 |
dellemc.openmanage.idrac_server_config_profile: |
| 336 |
idrac_ip: "192.168.0.1" |
| 337 |
idrac_user: "user_name" |
| 338 |
idrac_password: "user_password" |
| 339 |
ca_path: "/path/to/ca_cert.pem" |
| 340 |
share_name: "192.168.0.2:/share" |
| 341 |
command: import |
| 342 |
scp_components: |
| 343 |
- BIOS |
| 344 |
scp_file: 192.168.0.1_20210618_162856.xml |
| 345 |
shutdown_type: NoReboot |
| 346 |
end_host_power_state: "Off" |
| 347 |
job_wait: false |
| 348 |
|
| 349 |
- name: Export SCP with RAID components in XML format to a CIFS share path with share user domain name |
| 350 |
dellemc.openmanage.idrac_server_config_profile: |
| 351 |
idrac_ip: "192.168.0.1" |
| 352 |
idrac_user: "user_name" |
| 353 |
idrac_password: "user_password" |
| 354 |
ca_path: "/path/to/ca_cert.pem" |
| 355 |
share_name: "\\\\192.168.0.2\\share" |
| 356 |
share_user: share_username@domain |
| 357 |
share_password: share_password |
| 358 |
scp_file: example_file.xml |
| 359 |
scp_components: |
| 360 |
- RAID |
| 361 |
export_format: XML |
| 362 |
export_use: Default |
| 363 |
job_wait: true |
| 364 |
|
| 365 |
- name: Import SCP with RAID components in XML format from a CIFS share path |
| 366 |
dellemc.openmanage.idrac_server_config_profile: |
| 367 |
idrac_ip: "192.168.0.1" |
| 368 |
idrac_user: "user_name" |
| 369 |
idrac_password: "user_password" |
| 370 |
ca_path: "/path/to/ca_cert.pem" |
| 371 |
share_name: "\\\\192.168.0.2\\share" |
| 372 |
share_user: share_username |
| 373 |
share_password: share_password |
| 374 |
command: import |
| 375 |
scp_components: |
| 376 |
- RAID |
| 377 |
scp_file: example_file.xml |
| 378 |
shutdown_type: Forced |
| 379 |
end_host_power_state: "On" |
| 380 |
job_wait: true |
| 381 |
|
| 382 |
- name: Export SCP with ALL components in JSON format to a HTTP share path |
| 383 |
dellemc.openmanage.idrac_server_config_profile: |
| 384 |
idrac_ip: "192.168.0.1" |
| 385 |
idrac_user: "user_name" |
| 386 |
idrac_password: "user_password" |
| 387 |
ca_path: "/path/to/ca_cert.pem" |
| 388 |
share_name: "http://192.168.0.3/share" |
| 389 |
share_user: share_username |
| 390 |
share_password: share_password |
| 391 |
scp_file: example_file.json |
| 392 |
scp_components: |
| 393 |
- ALL |
| 394 |
export_format: JSON |
| 395 |
job_wait: false |
| 396 |
|
| 397 |
- name: Import SCP with ALL components in JSON format from a HTTP share path |
| 398 |
dellemc.openmanage.idrac_server_config_profile: |
| 399 |
idrac_ip: "192.168.0.1" |
| 400 |
idrac_user: "user_name" |
| 401 |
idrac_password: "user_password" |
| 402 |
ca_path: "/path/to/ca_cert.pem" |
| 403 |
command: import |
| 404 |
share_name: "http://192.168.0.3/share" |
| 405 |
share_user: share_username |
| 406 |
share_password: share_password |
| 407 |
scp_file: example_file.json |
| 408 |
shutdown_type: Graceful |
| 409 |
end_host_power_state: "On" |
| 410 |
job_wait: true |
| 411 |
|
| 412 |
- name: Export SCP with ALL components in XML format to a HTTPS share path without SCP file name |
| 413 |
dellemc.openmanage.idrac_server_config_profile: |
| 414 |
idrac_ip: "192.168.0.1" |
| 415 |
idrac_user: "user_name" |
| 416 |
idrac_password: "user_password" |
| 417 |
ca_path: "/path/to/ca_cert.pem" |
| 418 |
share_name: "https://192.168.0.4/share" |
| 419 |
share_user: share_username |
| 420 |
share_password: share_password |
| 421 |
scp_components: |
| 422 |
- ALL |
| 423 |
export_format: XML |
| 424 |
export_use: Replace |
| 425 |
job_wait: true |
| 426 |
|
| 427 |
- name: Import SCP with ALL components in XML format from a HTTPS share path |
| 428 |
dellemc.openmanage.idrac_server_config_profile: |
| 429 |
idrac_ip: "192.168.0.1" |
| 430 |
idrac_user: "user_name" |
| 431 |
idrac_password: "user_password" |
| 432 |
ca_path: "/path/to/ca_cert.pem" |
| 433 |
command: import |
| 434 |
share_name: "https://192.168.0.4/share" |
| 435 |
share_user: share_username |
| 436 |
share_password: share_password |
| 437 |
scp_file: 192.168.0.1_20160618_164647.xml |
| 438 |
shutdown_type: Graceful |
| 439 |
end_host_power_state: "On" |
| 440 |
job_wait: false |
| 441 |
|
| 442 |
- name: Preview SCP with IDRAC components in XML format from a CIFS share path |
| 443 |
dellemc.openmanage.idrac_server_config_profile: |
| 444 |
idrac_ip: "{{ idrac_ip }}" |
| 445 |
idrac_user: "{{ idrac_user }}" |
| 446 |
idrac_password: "{{ idrac_password }}" |
| 447 |
ca_path: "/path/to/ca_cert.pem" |
| 448 |
share_name: "\\\\192.168.0.2\\share" |
| 449 |
share_user: share_username |
| 450 |
share_password: share_password |
| 451 |
command: preview |
| 452 |
scp_components: |
| 453 |
- ALL |
| 454 |
scp_file: example_file.xml |
| 455 |
job_wait: true |
| 456 |
|
| 457 |
- name: Preview SCP with IDRAC components in JSON format from a NFS share path |
| 458 |
dellemc.openmanage.idrac_server_config_profile: |
| 459 |
idrac_ip: "{{ idrac_ip }}" |
| 460 |
idrac_user: "{{ idrac_user }}" |
| 461 |
idrac_password: "{{ idrac_password }}" |
| 462 |
ca_path: "/path/to/ca_cert.pem" |
| 463 |
share_name: "192.168.0.2:/share" |
| 464 |
command: preview |
| 465 |
scp_components: |
| 466 |
- IDRAC |
| 467 |
scp_file: example_file.xml |
| 468 |
job_wait: true |
| 469 |
|
| 470 |
- name: Preview SCP with IDRAC components in XML format from a HTTP share path |
| 471 |
dellemc.openmanage.idrac_server_config_profile: |
| 472 |
idrac_ip: "{{ idrac_ip }}" |
| 473 |
idrac_user: "{{ idrac_user }}" |
| 474 |
idrac_password: "{{ idrac_password }}" |
| 475 |
ca_path: "/path/to/ca_cert.pem" |
| 476 |
share_name: "http://192.168.0.1/http-share" |
| 477 |
share_user: share_username |
| 478 |
share_password: share_password |
| 479 |
command: preview |
| 480 |
scp_components: |
| 481 |
- ALL |
| 482 |
scp_file: example_file.xml |
| 483 |
job_wait: true |
| 484 |
|
| 485 |
- name: Preview SCP with IDRAC components in XML format from a local path |
| 486 |
dellemc.openmanage.idrac_server_config_profile: |
| 487 |
idrac_ip: "{{ idrac_ip }}" |
| 488 |
idrac_user: "{{ idrac_user }}" |
| 489 |
idrac_password: "{{ idrac_password }}" |
| 490 |
ca_path: "/path/to/ca_cert.pem" |
| 491 |
share_name: "/scp_folder" |
| 492 |
command: preview |
| 493 |
scp_components: |
| 494 |
- IDRAC |
| 495 |
scp_file: example_file.json |
| 496 |
job_wait: false |
| 497 |
|
| 498 |
- name: Import SCP with IDRAC components in XML format from the XML content. |
| 499 |
dellemc.openmanage.idrac_server_config_profile: |
| 500 |
idrac_ip: "{{ idrac_ip }}" |
| 501 |
idrac_user: "{{ idrac_user }}" |
| 502 |
idrac_password: "{{ idrac_password }}" |
| 503 |
ca_path: "/path/to/ca_cert.pem" |
| 504 |
command: import |
| 505 |
scp_components: |
| 506 |
- IDRAC |
| 507 |
job_wait: true |
| 508 |
import_buffer: "<SystemConfiguration><Component FQDD='iDRAC.Embedded.1'><Attribute Name='IPMILan.1#Enable'> |
| 509 |
Disabled</Attribute></Component></SystemConfiguration>" |
| 510 |
|
| 511 |
- name: Export SCP with ALL components in XML format using HTTP proxy. |
| 512 |
dellemc.openmanage.idrac_server_config_profile: |
| 513 |
idrac_ip: "{{ idrac_ip }}" |
| 514 |
idrac_user: "{{ idrac_user }}" |
| 515 |
idrac_password: "{{ idrac_password }}" |
| 516 |
ca_path: "/path/to/ca_cert.pem" |
| 517 |
scp_components: |
| 518 |
- ALL |
| 519 |
share_name: "http://192.168.0.1/http-share" |
| 520 |
proxy_support: true |
| 521 |
proxy_server: 192.168.0.5 |
| 522 |
proxy_port: 8080 |
| 523 |
proxy_username: proxy_username |
| 524 |
proxy_password: proxy_password |
| 525 |
proxy_type: http |
| 526 |
include_in_export: passwordhashvalues |
| 527 |
job_wait: true |
| 528 |
|
| 529 |
- name: Import SCP with IDRAC and BIOS components in XML format using SOCKS4 proxy |
| 530 |
dellemc.openmanage.idrac_server_config_profile: |
| 531 |
idrac_ip: "{{ idrac_ip }}" |
| 532 |
idrac_user: "{{ idrac_user }}" |
| 533 |
idrac_password: "{{ idrac_password }}" |
| 534 |
ca_path: "/path/to/ca_cert.pem" |
| 535 |
command: import |
| 536 |
scp_components: |
| 537 |
- IDRAC |
| 538 |
- BIOS |
| 539 |
share_name: "https://192.168.0.1/http-share" |
| 540 |
proxy_support: true |
| 541 |
proxy_server: 192.168.0.6 |
| 542 |
proxy_port: 8080 |
| 543 |
proxy_type: socks4 |
| 544 |
scp_file: filename.xml |
| 545 |
job_wait: true |
| 546 |
|
| 547 |
- name: Import SCP with IDRAC components in JSON format from the JSON content. |
| 548 |
dellemc.openmanage.idrac_server_config_profile: |
| 549 |
idrac_ip: "{{ idrac_ip }}" |
| 550 |
idrac_user: "{{ idrac_user }}" |
| 551 |
idrac_password: "{{ idrac_password }}" |
| 552 |
ca_path: "/path/to/ca_cert.pem" |
| 553 |
command: import |
| 554 |
scp_components: |
| 555 |
- IDRAC |
| 556 |
job_wait: true |
| 557 |
import_buffer: "{\"SystemConfiguration\": {\"Components\": [{\"FQDD\": \"iDRAC.Embedded.1\",\"Attributes\": |
| 558 |
[{\"Name\": \"SNMP.1#AgentCommunity\",\"Value\": \"public1\"}]}]}}" |
| 559 |
|
| 560 |
- name: Export custom default |
| 561 |
dellemc.openmanage.idrac_server_config_profile: |
| 562 |
idrac_ip: "192.168.0.1" |
| 563 |
idrac_user: "user_name" |
| 564 |
idrac_password: "user_password" |
| 565 |
ca_path: "/path/to/ca_cert.pem" |
| 566 |
job_wait: true |
| 567 |
share_name: "/scp_folder" |
| 568 |
command: export_custom_defaults |
| 569 |
scp_file: example_file |
| 570 |
|
| 571 |
- name: Import custom default |
| 572 |
dellemc.openmanage.idrac_server_config_profile: |
| 573 |
idrac_ip: "192.168.0.1" |
| 574 |
idrac_user: "user_name" |
| 575 |
idrac_password: "user_password" |
| 576 |
ca_path: "/path/to/ca_cert.pem" |
| 577 |
job_wait: true |
| 578 |
share_name: "/scp_folder" |
| 579 |
command: import_custom_defaults |
| 580 |
scp_file: example_file.xml |
| 581 |
|
| 582 |
- name: Import custom default using buffer |
| 583 |
dellemc.openmanage.idrac_server_config_profile: |
| 584 |
idrac_ip: "192.168.0.1" |
| 585 |
idrac_user: "user_name" |
| 586 |
idrac_password: "user_password" |
| 587 |
ca_path: "/path/to/ca_cert.pem" |
| 588 |
job_wait: true |
| 589 |
command: import_custom_defaults |
| 590 |
import_buffer: "<SystemConfiguration><Component FQDD='iDRAC.Embedded.1'><Attribute Name='IPMILan.1#Enable'>Disabled</Attribute> |
| 591 |
</Component></SystemConfiguration>" |
| 592 |
|
| 593 |
|
| 594 |
|
| 595 |
Return Values |
| 596 |
------------- |
| 597 |
|
| 598 |
msg (always, str, Successfully imported the Server Configuration Profile) |
| 599 |
Status of the import or export SCP job. |
| 600 |
|
| 601 |
|
| 602 |
scp_status (success, dict, {'Id': 'JID_XXXXXXXXX', 'JobState': 'Completed', 'JobType': 'ImportConfiguration', 'Message': 'Successfully imported and applied Server Configuration Profile.', 'MessageArgs': [], 'MessageId': 'XXX123', 'Name': 'Import Configuration', 'PercentComplete': 100, 'StartTime': 'TIME_NOW', 'Status': 'Success', 'TargetSettingsURI': None, 'retval': True}) |
| 603 |
SCP operation job and progress details from the iDRAC. |
| 604 |
|
| 605 |
|
| 606 |
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.'}]}}) |
| 607 |
Details of the HTTP Error. |
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
Status |
| 614 |
------ |
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
Authors |
| 621 |
~~~~~~~ |
| 622 |
|
| 623 |
- Jagadeesh N V(@jagadeeshnv) |
| 624 |
- Felix Stephen (@felixs88) |
| 625 |
- Jennifer John (@Jennifer-John) |
| 626 |
- Shivam Sharma (@ShivamSh3) |
| 627 |
- Lovepreet Singh (@singh-lovepreet1) |
| 628 |
|