| 1 |
.. _idrac_attributes_module: |
| 2 |
|
| 3 |
|
| 4 |
idrac_attributes -- Configure the iDRAC attributes. |
| 5 |
=================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to configure the iDRAC attributes. |
| 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 |
idrac_attributes (optional, dict, None) |
| 31 |
Dictionary of iDRAC attributes and value. The attributes should be part of the Integrated Dell Remote Access Controller Attribute Registry. To view the list of attributes in Attribute Registry for iDRAC9 and above, see, \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/iDRAC.Embedded.1) and \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Registries/ManagerAttributeRegistry). |
| 32 |
|
| 33 |
For iDRAC8 based servers, derive the manager attribute name from Server Configuration Profile. If the manager attribute name in Server Configuration Profile is \<GroupName\>.\<Instance\>#\<AttributeName\> (for Example, 'SNMP.1#AgentCommunity') then the equivalent attribute name for Redfish is \<GroupName\>.\<Instance\>.\<AttributeName\> (for Example, 'SNMP.1.AgentCommunity'). |
| 34 |
|
| 35 |
|
| 36 |
system_attributes (optional, dict, None) |
| 37 |
Dictionary of System attributes and value. The attributes should be part of the Integrated Dell Remote Access Controller Attribute Registry. To view the list of attributes in Attribute Registry for iDRAC9 and above, see, \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/System.Embedded.1) and \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Registries/ManagerAttributeRegistry). |
| 38 |
|
| 39 |
For iDRAC8 based servers, derive the manager attribute name from Server Configuration Profile. If the manager attribute name in Server Configuration Profile is \<GroupName\>.\<Instance\>#\<AttributeName\> (for Example, 'ThermalSettings.1#ThermalProfile') then the equivalent attribute name for Redfish is \<GroupName\>.\<Instance\>.\<AttributeName\> (for Example, 'ThermalSettings.1.ThermalProfile'). |
| 40 |
|
| 41 |
|
| 42 |
lifecycle_controller_attributes (optional, dict, None) |
| 43 |
Dictionary of Lifecycle Controller attributes and value. The attributes should be part of the Integrated Dell Remote Access Controller Attribute Registry.To view the list of attributes in Attribute Registry for iDRAC9 and above, see, \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/LifecycleController.Embedded.1) and \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Registries/ManagerAttributeRegistry). |
| 44 |
|
| 45 |
For iDRAC8 based servers, derive the manager attribute name from Server Configuration Profile. If the manager attribute name in Server Configuration Profile is \<GroupName\>.\<Instance\>#\<AttributeName\> (for Example, 'LCAttributes.1#AutoUpdate') then the equivalent attribute name for Redfish is \<GroupName\>.\<Instance\>.\<AttributeName\> (for Example, 'LCAttributes.1.AutoUpdate'). |
| 46 |
|
| 47 |
|
| 48 |
resource_id (optional, str, None) |
| 49 |
Redfish ID of the resource. |
| 50 |
|
| 51 |
|
| 52 |
idrac_ip (True, str, None) |
| 53 |
iDRAC IP Address. |
| 54 |
|
| 55 |
|
| 56 |
idrac_user (False, str, None) |
| 57 |
iDRAC username. |
| 58 |
|
| 59 |
If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used. |
| 60 |
|
| 61 |
Example: export IDRAC\_USERNAME=username |
| 62 |
|
| 63 |
|
| 64 |
idrac_password (False, str, None) |
| 65 |
iDRAC user password. |
| 66 |
|
| 67 |
If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used. |
| 68 |
|
| 69 |
Example: export IDRAC\_PASSWORD=password |
| 70 |
|
| 71 |
|
| 72 |
x_auth_token (False, str, None) |
| 73 |
Authentication token. |
| 74 |
|
| 75 |
If the x\_auth\_token is not provided, then the environment variable :envvar:`IDRAC\_X\_AUTH\_TOKEN` is used. |
| 76 |
|
| 77 |
Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token |
| 78 |
|
| 79 |
|
| 80 |
idrac_port (optional, int, 443) |
| 81 |
iDRAC port. |
| 82 |
|
| 83 |
|
| 84 |
validate_certs (optional, bool, True) |
| 85 |
If :literal:`false`\ , the SSL certificates will not be validated. |
| 86 |
|
| 87 |
Configure :literal:`false` only on personally controlled sites where self-signed certificates are used. |
| 88 |
|
| 89 |
Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default. |
| 90 |
|
| 91 |
|
| 92 |
ca_path (optional, path, None) |
| 93 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 94 |
|
| 95 |
|
| 96 |
timeout (optional, int, 30) |
| 97 |
The socket level timeout in seconds. |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
Notes |
| 104 |
----- |
| 105 |
|
| 106 |
.. note:: |
| 107 |
- Run this module from a system that has direct access to Dell iDRAC. |
| 108 |
- This module supports :literal:`check\_mode`. |
| 109 |
- For iDRAC8 based servers, the value provided for the attributes are not be validated. Ensure appropriate values are passed. |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
Examples |
| 115 |
-------- |
| 116 |
|
| 117 |
.. code-block:: yaml+jinja |
| 118 |
|
| 119 |
|
| 120 |
--- |
| 121 |
- name: Configure iDRAC attributes |
| 122 |
dellemc.openmanage.idrac_attributes: |
| 123 |
idrac_ip: "192.168.0.1" |
| 124 |
idrac_user: "user_name" |
| 125 |
idrac_password: "user_password" |
| 126 |
ca_path: "/path/to/ca_cert.pem" |
| 127 |
idrac_attributes: |
| 128 |
SNMP.1.AgentCommunity: public |
| 129 |
|
| 130 |
- name: Configure System attributes |
| 131 |
dellemc.openmanage.idrac_attributes: |
| 132 |
idrac_ip: "192.168.0.1" |
| 133 |
idrac_user: "user_name" |
| 134 |
idrac_password: "user_password" |
| 135 |
ca_path: "/path/to/ca_cert.pem" |
| 136 |
system_attributes: |
| 137 |
ThermalSettings.1.ThermalProfile: Sound Cap |
| 138 |
|
| 139 |
- name: Configure Lifecycle Controller attributes |
| 140 |
dellemc.openmanage.idrac_attributes: |
| 141 |
idrac_ip: "192.168.0.1" |
| 142 |
idrac_user: "user_name" |
| 143 |
idrac_password: "user_password" |
| 144 |
ca_path: "/path/to/ca_cert.pem" |
| 145 |
lifecycle_controller_attributes: |
| 146 |
LCAttributes.1.AutoUpdate: Enabled |
| 147 |
|
| 148 |
- name: Configure the iDRAC attributes for email alert settings. |
| 149 |
dellemc.openmanage.idrac_attributes: |
| 150 |
idrac_ip: "192.168.0.1" |
| 151 |
idrac_user: "user_name" |
| 152 |
idrac_password: "user_password" |
| 153 |
ca_path: "/path/to/ca_cert.pem" |
| 154 |
idrac_attributes: |
| 155 |
EmailAlert.1.CustomMsg: Display Message |
| 156 |
EmailAlert.1.Enable: Enabled |
| 157 |
EmailAlert.1.Address: [email protected] |
| 158 |
|
| 159 |
- name: Configure the iDRAC attributes for SNMP alert settings. |
| 160 |
dellemc.openmanage.idrac_attributes: |
| 161 |
idrac_ip: "192.168.0.1" |
| 162 |
idrac_user: "user_name" |
| 163 |
idrac_password: "user_password" |
| 164 |
ca_path: "/path/to/ca_cert.pem" |
| 165 |
idrac_attributes: |
| 166 |
SNMPAlert.1.Destination: 192.168.0.2 |
| 167 |
SNMPAlert.1.State: Enabled |
| 168 |
SNMPAlert.1.SNMPv3Username: username |
| 169 |
|
| 170 |
- name: Configure the iDRAC attributes for SMTP alert settings. |
| 171 |
dellemc.openmanage.idrac_attributes: |
| 172 |
idrac_ip: "192.168.0.1" |
| 173 |
idrac_user: "user_name" |
| 174 |
idrac_password: "user_password" |
| 175 |
ca_path: "/path/to/ca_cert.pem" |
| 176 |
idrac_attributes: |
| 177 |
RemoteHosts.1.SMTPServerIPAddress: 192.168.0.3 |
| 178 |
RemoteHosts.1.SMTPAuthentication: Enabled |
| 179 |
RemoteHosts.1.SMTPPort: 25 |
| 180 |
RemoteHosts.1.SMTPUserName: username |
| 181 |
RemoteHosts.1.SMTPPassword: password |
| 182 |
|
| 183 |
- name: Configure the iDRAC attributes for webserver settings. |
| 184 |
dellemc.openmanage.idrac_attributes: |
| 185 |
idrac_ip: "192.168.0.1" |
| 186 |
idrac_user: "user_name" |
| 187 |
idrac_password: "user_password" |
| 188 |
ca_path: "/path/to/ca_cert.pem" |
| 189 |
idrac_attributes: |
| 190 |
WebServer.1.SSLEncryptionBitLength: 128-Bit or higher |
| 191 |
WebServer.1.TLSProtocol: TLS 1.1 and Higher |
| 192 |
|
| 193 |
- name: Configure the iDRAC attributes for SNMP settings. |
| 194 |
dellemc.openmanage.idrac_attributes: |
| 195 |
idrac_ip: "192.168.0.1" |
| 196 |
idrac_user: "user_name" |
| 197 |
idrac_password: "user_password" |
| 198 |
ca_path: "/path/to/ca_cert.pem" |
| 199 |
idrac_attributes: |
| 200 |
SNMP.1.SNMPProtocol: All |
| 201 |
SNMP.1.AgentEnable: Enabled |
| 202 |
SNMP.1.TrapFormat: SNMPv1 |
| 203 |
SNMP.1.AlertPort: 162 |
| 204 |
SNMP.1.AgentCommunity: public |
| 205 |
|
| 206 |
- name: Configure the iDRAC LC attributes for collecting system inventory. |
| 207 |
dellemc.openmanage.idrac_attributes: |
| 208 |
idrac_ip: "192.168.0.1" |
| 209 |
idrac_user: "user_name" |
| 210 |
idrac_password: "user_password" |
| 211 |
ca_path: "/path/to/ca_cert.pem" |
| 212 |
lifecycle_controller_attributes: |
| 213 |
LCAttributes.1.CollectSystemInventoryOnRestart: Enabled |
| 214 |
|
| 215 |
- name: Configure the iDRAC system attributes for LCD configuration. |
| 216 |
dellemc.openmanage.idrac_attributes: |
| 217 |
idrac_ip: "192.168.0.1" |
| 218 |
idrac_user: "user_name" |
| 219 |
idrac_password: "user_password" |
| 220 |
ca_path: "/path/to/ca_cert.pem" |
| 221 |
system_attributes: |
| 222 |
LCD.1.Configuration: Service Tag |
| 223 |
LCD.1.vConsoleIndication: Enabled |
| 224 |
LCD.1.FrontPanelLocking: Full-Access |
| 225 |
LCD.1.UserDefinedString: custom string |
| 226 |
|
| 227 |
- name: Configure the iDRAC attributes for Timezone settings. |
| 228 |
dellemc.openmanage.idrac_attributes: |
| 229 |
idrac_ip: "192.168.0.1" |
| 230 |
idrac_user: "user_name" |
| 231 |
idrac_password: "user_password" |
| 232 |
ca_path: "/path/to/ca_cert.pem" |
| 233 |
idrac_attributes: |
| 234 |
Time.1.Timezone: CST6CDT |
| 235 |
NTPConfigGroup.1.NTPEnable: Enabled |
| 236 |
NTPConfigGroup.1.NTP1: 192.168.0.5 |
| 237 |
NTPConfigGroup.1.NTP2: 192.168.0.6 |
| 238 |
NTPConfigGroup.1.NTP3: 192.168.0.7 |
| 239 |
|
| 240 |
- name: Configure all attributes |
| 241 |
dellemc.openmanage.idrac_attributes: |
| 242 |
idrac_ip: "192.168.0.1" |
| 243 |
idrac_user: "user_name" |
| 244 |
idrac_password: "user_password" |
| 245 |
ca_path: "/path/to/ca_cert.pem" |
| 246 |
idrac_attributes: |
| 247 |
SNMP.1.AgentCommunity: test |
| 248 |
SNMP.1.AgentEnable: Enabled |
| 249 |
SNMP.1.DiscoveryPort: 161 |
| 250 |
system_attributes: |
| 251 |
ServerOS.1.HostName: demohostname |
| 252 |
lifecycle_controller_attributes: |
| 253 |
LCAttributes.1.AutoUpdate: Disabled |
| 254 |
|
| 255 |
- name: Enable idrac basic syslog |
| 256 |
dellemc.openmanage.idrac_attributes: |
| 257 |
idrac_ip: "192.168.0.1" |
| 258 |
idrac_user: "user_name" |
| 259 |
idrac_password: "user_password" |
| 260 |
ca_path: "/path/to/ca_cert.pem" |
| 261 |
idrac_attributes: |
| 262 |
SysLog.1.SysLogEnable: Enabled |
| 263 |
SysLog.1.Server1: 192.168.0.2 |
| 264 |
SysLog.1.Server2: 192.168.0.3 |
| 265 |
SysLog.1.Server3: 192.168.0.4 |
| 266 |
SysLog.1.Port: 514 |
| 267 |
|
| 268 |
- name: Disable idrac basic syslog |
| 269 |
dellemc.openmanage.idrac_attributes: |
| 270 |
idrac_ip: "192.168.0.1" |
| 271 |
idrac_user: "user_name" |
| 272 |
idrac_password: "user_password" |
| 273 |
ca_path: "/path/to/ca_cert.pem" |
| 274 |
idrac_attributes: |
| 275 |
SysLog.1.SysLogEnable: Disabled |
| 276 |
|
| 277 |
- name: Enable idrac secure syslog |
| 278 |
dellemc.openmanage.idrac_attributes: |
| 279 |
idrac_ip: "192.168.0.1" |
| 280 |
idrac_user: "user_name" |
| 281 |
idrac_password: "user_password" |
| 282 |
ca_path: "/path/to/ca_cert.pem" |
| 283 |
idrac_attributes: |
| 284 |
SysLog.1.securesyslogenable: Enabled |
| 285 |
SysLog.1.secureserver1: 192.168.0.2 |
| 286 |
SysLog.1.secureport: 6511 |
| 287 |
SysLog.1.secureclientauth: Anonymous |
| 288 |
|
| 289 |
- name: Disable idrac secure syslog |
| 290 |
dellemc.openmanage.idrac_attributes: |
| 291 |
idrac_ip: "192.168.0.1" |
| 292 |
idrac_user: "user_name" |
| 293 |
idrac_password: "user_password" |
| 294 |
ca_path: "/path/to/ca_cert.pem" |
| 295 |
idrac_attributes: |
| 296 |
SysLog.1.securesyslogenable: Disabled |
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
Return Values |
| 301 |
------------- |
| 302 |
|
| 303 |
msg (always, str, Successfully updated the attributes.) |
| 304 |
Status of the attribute update operation. |
| 305 |
|
| 306 |
|
| 307 |
invalid_attributes (on invalid attributes or values., dict, {'LCAttributes.1.AutoUpdate': 'Invalid value for Enumeration.', 'LCAttributes.1.StorageHealthRollupStatus': 'Read only Attribute cannot be modified.', 'SNMP.1.AlertPort': 'Not a valid integer.', 'SNMP.1.AlertPorty': 'Attribute does not exist.', 'SysLog.1.PowerLogInterval': 'Integer out of valid range.', 'ThermalSettings.1.AirExhaustTemp': 'Invalid value for Enumeration.'}) |
| 308 |
Dict of invalid attributes provided. |
| 309 |
|
| 310 |
|
| 311 |
error_info (when attribute value is invalid., dict, {'error': {'@Message.ExtendedInfo': [{'Message': "The value 'false' for the property LCAttributes.1.BIOSRTDRequested is of a different type than the property can accept.", 'MessageArgs': ['false', 'LCAttributes.1.BIOSRTDRequested'], '[email protected]': 2, 'MessageId': 'Base.1.12.PropertyValueTypeError', 'RelatedProperties': ['#/Attributes/LCAttributes.1.BIOSRTDRequested'], '[email protected]': 1, 'Resolution': 'Correct the value for the property in the request body and resubmit the request if the operation failed.', 'Severity': 'Warning'}], 'code': 'Base.1.12.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information'}}) |
| 312 |
Error information of the operation. |
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
Status |
| 319 |
------ |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
Authors |
| 326 |
~~~~~~~ |
| 327 |
|
| 328 |
- Husniya Abdul Hameed (@husniya-hameed) |
| 329 |
- Felix Stephen (@felixs88) |
| 330 |
|