Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_application_console_preferences.rst

raw
1 .. _ome_application_console_preferences_module:
2
3
4 ome_application_console_preferences -- Configure console preferences on OpenManage Enterprise.
5 ==============================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows user to configure the console preferences 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 report_row_limit (optional, int, None)
31 The maximum number of rows that you can view on OpenManage Enterprise reports.
32
33
34 device_health (optional, dict, None)
35 The time after which the health of the devices must be automatically monitored and updated on the OpenManage Enterprise dashboard.
36
37
38 health_check_interval (optional, int, None)
39 The frequency at which the device health must be recorded and data stored.
40
41
42 health_check_interval_unit (optional, str, None)
43 The time unit of the frequency at which the device health must be recorded and data stored.
44
45 \ :literal:`Hourly`\ to set the frequency in hours.
46
47 \ :literal:`Minutes`\ to set the frequency in minutes.
48
49
50 health_and_power_state_on_connection_lost (optional, str, None)
51 The latest recorded device health.
52
53 \ :literal:`last\_known`\ to display the latest recorded device health when the power connection was lost.
54
55 \ :literal:`unknown`\ to display the latest recorded device health when the device status moved to unknown.
56
57
58
59 discovery_settings (optional, dict, None)
60 The device naming to be used by the OpenManage Enterprise to identify the discovered iDRACs and other devices.
61
62
63 general_device_naming (optional, str, DNS)
64 Applicable to all the discovered devices other than the iDRACs.
65
66 \ :literal:`DNS`\ to use the DNS name.
67
68 \ :literal:`NETBIOS`\ to use the NetBIOS name.
69
70
71 server_device_naming (optional, str, IDRAC_SYSTEM_HOSTNAME)
72 Applicable to iDRACs only.
73
74 \ :literal:`IDRAC\_HOSTNAME`\ to use the iDRAC hostname.
75
76 \ :literal:`IDRAC\_SYSTEM\_HOSTNAME`\ to use the system hostname.
77
78
79 invalid_device_hostname (optional, str, None)
80 The invalid hostnames separated by a comma.
81
82
83 common_mac_addresses (optional, str, None)
84 The common MAC addresses separated by a comma.
85
86
87
88 server_initiated_discovery (optional, dict, None)
89 Server initiated discovery settings.
90
91
92 device_discovery_approval_policy (optional, str, None)
93 Discovery approval policies.
94
95 \ :literal:`Automatic`\ allows servers with iDRAC Firmware version 4.00.00.00, which are on the same network as the console, to be discovered automatically by the console.
96
97 \ :literal:`Manual`\ for the servers to be discovered by the user manually.
98
99
100 set_trap_destination (optional, bool, None)
101 Trap destination settings.
102
103
104
105 mx7000_onboarding_preferences (optional, str, None)
106 Alert-forwarding behavior on chassis when they are onboarded.
107
108 \ :literal:`all`\ to receive all alert.
109
110 \ :literal:`chassis`\ to receive chassis category alerts only.
111
112
113 builtin_appliance_share (optional, dict, None)
114 The external network share that the appliance must access to complete operations.
115
116
117 share_options (optional, str, None)
118 The share options.
119
120 \ :literal:`CIFS`\ to select CIFS share type.
121
122 \ :literal:`HTTPS`\ to select HTTPS share type.
123
124
125 cifs_options (optional, str, None)
126 The SMB protocol version.
127
128 \ :emphasis:`cifs\_options`\ is required \ :emphasis:`share\_options`\ is \ :literal:`CIFS`\ .
129
130 \ :literal:`V1`\ to enable SMBv1.
131
132 \ :literal:`V2`\ to enable SMBv2
133
134
135
136 email_sender_settings (optional, str, None)
137 The email address of the user who is sending an email message.
138
139
140 trap_forwarding_format (optional, str, None)
141 The trap forwarding format.
142
143 \ :literal:`Original`\ to retain the trap data as is.
144
145 \ :literal:`Normalized`\ to normalize the trap data.
146
147
148 metrics_collection_settings (optional, int, None)
149 The frequency of the PowerManager extension data maintenance and purging.
150
151
152 hostname (True, str, None)
153 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
154
155
156 username (False, str, None)
157 OpenManage Enterprise or OpenManage Enterprise Modular username.
158
159 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
160
161 Example: export OME\_USERNAME=username
162
163
164 password (False, str, None)
165 OpenManage Enterprise or OpenManage Enterprise Modular password.
166
167 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
168
169 Example: export OME\_PASSWORD=password
170
171
172 x_auth_token (False, str, None)
173 Authentication token.
174
175 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
176
177 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
178
179
180 port (optional, int, 443)
181 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
182
183
184 validate_certs (optional, bool, True)
185 If \ :literal:`false`\ , the SSL certificates will not be validated.
186
187 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
188
189 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
190
191
192 ca_path (optional, path, None)
193 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
194
195
196 timeout (optional, int, 30)
197 The socket level timeout in seconds.
198
199
200
201
202
203 Notes
204 -----
205
206 .. note::
207 - This module supports \ :literal:`check\_mode`\ .
208
209
210
211
212 Examples
213 --------
214
215 .. code-block:: yaml+jinja
216
217
218 ---
219 - name: Update Console preferences with all the settings.
220 dellemc.openmanage.ome_application_console_preferences:
221 hostname: "192.168.0.1"
222 username: "username"
223 password: "password"
224 ca_path: "/path/to/ca_cert.pem"
225 report_row_limit: 123
226 device_health:
227 health_check_interval: 1
228 health_check_interval_unit: Hourly
229 health_and_power_state_on_connection_lost: last_known
230 discovery_settings:
231 general_device_naming: DNS
232 server_device_naming: IDRAC_HOSTNAME
233 invalid_device_hostname: "localhost"
234 common_mac_addresses: "::"
235 server_initiated_discovery:
236 device_discovery_approval_policy: Automatic
237 set_trap_destination: true
238 mx7000_onboarding_preferences: all
239 builtin_appliance_share:
240 share_options: CIFS
241 cifs_options: V1
242 email_sender_settings: "[email protected]"
243 trap_forwarding_format: Normalized
244 metrics_collection_settings: 31
245
246 - name: Update Console preferences with report and device health settings.
247 dellemc.openmanage.ome_application_console_preferences:
248 hostname: "192.168.0.1"
249 username: "username"
250 password: "password"
251 ca_path: "/path/to/ca_cert.pem"
252 report_row_limit: 236
253 device_health:
254 health_check_interval: 10
255 health_check_interval_unit: Hourly
256 health_and_power_state_on_connection_lost: last_known
257
258 - name: Update Console preferences with invalid device health settings.
259 dellemc.openmanage.ome_application_console_preferences:
260 hostname: "192.168.0.1"
261 username: "username"
262 password: "password"
263 ca_path: "/path/to/ca_cert.pem"
264 device_health:
265 health_check_interval: 65
266 health_check_interval_unit: Minutes
267
268 - name: Update Console preferences with discovery and built in appliance share settings.
269 dellemc.openmanage.ome_application_console_preferences:
270 hostname: "192.168.0.1"
271 username: "username"
272 password: "password"
273 ca_path: "/path/to/ca_cert.pem"
274 discovery_settings:
275 general_device_naming: DNS
276 server_device_naming: IDRAC_SYSTEM_HOSTNAME
277 invalid_device_hostname: "localhost"
278 common_mac_addresses: "00:53:45:00:00:00"
279 builtin_appliance_share:
280 share_options: CIFS
281 cifs_options: V1
282
283 - name: Update Console preferences with server initiated discovery, mx7000 onboarding preferences, email sender,
284 trap forwarding format, and metrics collection settings.
285 dellemc.openmanage.ome_application_console_preferences:
286 hostname: "192.168.0.1"
287 username: "username"
288 password: "password"
289 ca_path: "/path/to/ca_cert.pem"
290 server_initiated_discovery:
291 device_discovery_approval_policy: Automatic
292 set_trap_destination: true
293 mx7000_onboarding_preferences: chassis
294 email_sender_settings: "[email protected]"
295 trap_forwarding_format: Original
296 metrics_collection_settings: 365
297
298
299
300 Return Values
301 -------------
302
303 msg (always, str, Successfully update the console preferences.)
304 Overall status of the console preferences.
305
306
307 console_preferences (on success, list, [{'Name': 'DEVICE_PREFERRED_NAME', 'DefaultValue': 'SLOT_NAME', 'Value': 'PREFER_DNS,PREFER_IDRAC_SYSTEM_HOSTNAME', 'DataType': 'java.lang.String', 'GroupName': 'DISCOVERY_SETTING'}, {'Name': 'INVALID_DEVICE_HOSTNAME', 'DefaultValue': '', 'Value': 'localhost,localhost.localdomain,not defined,pv132t,pv136t,default,dell,idrac-', 'DataType': 'java.lang.String', 'GroupName': 'DISCOVERY_SETTING'}, {'Name': 'COMMON_MAC_ADDRESSES', 'DefaultValue': '', 'Value': '00:53:45:00:00:00,33:50:6F:45:30:30,50:50:54:50:30:30,00:00:FF:FF:FF:FF,20:41:53:59:4E:FF,00:00:00:00:00:00,20:41:53:59:4e:ff,00:00:00:00:00:00', 'DataType': 'java.lang.String', 'GroupName': 'DISCOVERY_SETTING'}, {'Name': 'SHARE_TYPE', 'DefaultValue': 'CIFS', 'Value': 'CIFS', 'DataType': 'java.lang.String', 'GroupName': 'BUILT_IN_APPLIANCE_SHARE_SETTINGS'}, {'Name': 'TRAP_FORWARDING_SETTING', 'DefaultValue': 'AsIs', 'Value': 'Normalized', 'DataType': 'java.lang.String', 'GroupName': ''}, {'Name': 'DATA_PURGE_INTERVAL', 'DefaultValue': '365', 'Value': '3650000', 'DataType': 'java.lang.Integer', 'GroupName': ''}, {'Name': 'CONSOLE_CONNECTION_SETTING', 'DefaultValue': 'last_known', 'Value': 'last_known', 'DataType': 'java.lang.String', 'GroupName': 'CONSOLE_CONNECTION_SETTING'}, {'Name': 'MIN_PROTOCOL_VERSION', 'DefaultValue': 'V2', 'Value': 'V1', 'DataType': 'java.lang.String', 'GroupName': 'CIFS_PROTOCOL_SETTINGS'}, {'Name': 'ALERT_ACKNOWLEDGEMENT_VIEW', 'DefaultValue': '2000', 'Value': '2000', 'DataType': 'java.lang.Integer', 'GroupName': ''}, {'Name': 'AUTO_CONSOLE_UPDATE_AFTER_DOWNLOAD', 'DefaultValue': 'false', 'Value': 'false', 'DataType': 'java.lang.Boolean', 'GroupName': 'CONSOLE_UPDATE_SETTING_GROUP'}, {'Name': 'NODE_INITIATED_DISCOVERY_SET_TRAP_DESTINATION', 'DefaultValue': 'false', 'Value': 'false', 'DataType': 'java.lang.Boolean', 'GroupName': ''}, {'Name': 'REPORTS_MAX_RESULTS_LIMIT', 'DefaultValue': '0', 'Value': '2000000000000000000000000', 'DataType': 'java.lang.Integer', 'GroupName': ''}, {'Name': 'EMAIL_SENDER', 'DefaultValue': '[email protected]', 'Value': '[email protected]@[email protected]', 'DataType': 'java.lang.String', 'GroupName': ''}, {'Name': 'MX7000_ONBOARDING_PREF', 'DefaultValue': 'all', 'Value': 'test_chassis', 'DataType': 'java.lang.String', 'GroupName': ''}, {'Name': 'DISCOVERY_APPROVAL_POLICY', 'DefaultValue': 'Automatic', 'Value': 'Automatic_test', 'DataType': 'java.lang.String', 'GroupName': ''}])
308 Details of the console preferences.
309
310
311 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': 'CGEN1006', 'RelatedProperties': [], 'Message': 'Unable to complete the request because the resource URI does not exist or is not implemented.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Enter a valid URI and retry the operation.'}]}})
312 Details of the HTTP error.
313
314
315
316
317
318 Status
319 ------
320
321
322
323
324
325 Authors
326 ~~~~~~~
327
328 - Sachin Apagundi(@sachin-apa)
329 - Husniya Hameed (@husniya-hameed)
330 - ShivamSh3 (@ShivamSh3)
331