Debian Codegraph @

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

raw
1 .. _idrac_support_assist_module:
2
3
4 idrac_support_assist -- Run and Export iDRAC SupportAssist collection logs
5 ==========================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows you to run and export SupportAssist collection logs on iDRAC.
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 run (optional, bool, True)
31 Run the SupportAssist job based on the different types of logs in the collection on iDRAC.
32
33
34 export (optional, bool, True)
35 Exports the SupportAssist collection to the given network share.
36
37 This operation requires :emphasis:`share\_parameters`.
38
39
40 accept_eula (optional, bool, None)
41 This parameter accepts the EULA terms and conditions that are required for SupportAssist registration.
42
43 If EULA terms and conditions are not accepted, then the SupportAssist collection cannot be run or exported.
44
45
46 filter_data (optional, bool, False)
47 This option provides the choice to filter data for privacy. It does not include hostname, MAC address, thermal data, logs, or registry content.
48
49
50 data_collector (optional, list, None)
51 This option provides the choice of data to keep in SupportAssist collection.
52
53 System Information is available in on the SupportAssist collection by default.
54
55 :literal:`hardware\_data`\ , SupportAssist collection includes data that are related to hardware.
56
57 :literal:`storage\_logs`\ , SupportAssist collection includes logs that are related to storage devices.
58
59 :literal:`os\_app\_data`\ , SupportAssist collection includes data that is related to the operating system and applications.
60
61 :literal:`debug\_logs`\ , SupportAssist collection includes logs that are related to debugging.
62
63 :literal:`telemetry\_reports`\ , SupportAssist collection includes reports that are related to telemetry.
64
65 :literal:`gpu\_logs`\ , SupportAssist collection includes logs that are related to GPUs.
66
67
68 job_wait (optional, bool, True)
69 This option determines whether to wait for the job completion or not.
70
71
72 job_wait_timeout (optional, int, 3600)
73 Time in seconds to wait for job completion.
74
75 This is applicable when :emphasis:`job\_wait` is :literal:`true`.
76
77
78 share_parameters (optional, dict, None)
79 Parameters that are required for the export operation of SupportAssist collection.
80
81 :emphasis:`share\_parameters` is required when :emphasis:`export` is :literal:`true`.
82
83
84 share_type (optional, str, local)
85 Share type of the network share.
86
87 :literal:`local` uses local path for :emphasis:`export` operation.
88
89 :literal:`nfs` uses NFS share for :emphasis:`export` operation.
90
91 :literal:`cifs` uses CIFS share for :emphasis:`export` operation.
92
93 :literal:`http` uses HTTP share for :emphasis:`export` operation.
94
95 :literal:`https` uses HTTPS share for :emphasis:`export` operation.
96
97 :literal:`ftp` uses FTP share for :emphasis:`export` operation.
98
99
100 ip_address (optional, str, None)
101 IP address of the network share.
102
103 :emphasis:`ip\_address` is required when :emphasis:`share\_type` is :literal:`nfs`\ , :literal:`cifs`\ , :literal:`http`\ , or :literal:`https`.
104
105 :emphasis:`ip\_address` is not required when :emphasis:`share\_type` is :literal:`local`.
106
107
108 share_name (optional, str, None)
109 Network share path or full local path of the directory for exporting the SupportAssist collection file.
110
111 The default path will be current directory when :emphasis:`share\_type` is :literal:`local`
112
113
114 workgroup (optional, str, None)
115 -(deprecated) Workgroup of the network share. - :emphasis:`workgroup` is applicable only when :emphasis:`share\_type` is :literal:`cifs`.
116
117
118 username (optional, str, None)
119 Username of the network share.
120
121 :emphasis:`username` is required when :emphasis:`share\_type` is :literal:`cifs`.
122
123
124 password (optional, str, None)
125 Password of the network share.
126
127 :emphasis:`password` is required when :emphasis:`share\_type` is :literal:`cifs`.
128
129
130 ignore_certificate_warning (optional, str, off)
131 Ignores the certificate warning when connecting to the network share and is only applicable when :emphasis:`share\_type` is :literal:`https`.
132
133 :literal:`on` ignores the certificate warning.
134
135 :literal:`off` does not ignore the certificate warning.
136
137
138 proxy_support (optional, str, off)
139 Specifies if proxy support must be used or not.
140
141 :literal:`off` does not use proxy settings.
142
143 :literal:`default\_proxy` uses the default proxy settings.
144
145 :literal:`parameters\_proxy` uses the specified proxy settings. :emphasis:`proxy\_server` is required when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
146
147 :emphasis:`proxy\_support` is only applicable when :emphasis:`share\_type` is :literal:`http` or :literal:`https`.
148
149
150 proxy_type (optional, str, http)
151 The proxy type of the proxy server.
152
153 :literal:`http` to select HTTP proxy.
154
155 :literal:`socks` to select SOCKS proxy.
156
157 :emphasis:`proxy\_type` is only applicable when :emphasis:`share\_type` is :literal:`http` or :literal:`https` and when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
158
159
160 proxy_server (optional, str, None)
161 The IP address of the proxy server.
162
163 :emphasis:`proxy\_server` is required when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
164
165 :emphasis:`proxy\_server` is only applicable when :emphasis:`share\_type` is :literal:`http` or :literal:`https` and when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
166
167
168 proxy_port (optional, int, 80)
169 The port of the proxy server.
170
171 :emphasis:`proxy\_port` is only applicable when :emphasis:`share\_type` is :literal:`http` or :literal:`https` and when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
172
173
174 proxy_username (optional, str, None)
175 The username of the proxy server.
176
177 :emphasis:`proxy\_username` is only applicable when :emphasis:`share\_type` is :literal:`http` or :literal:`https` and when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
178
179
180 proxy_password (optional, str, None)
181 The password of the proxy server.
182
183 :emphasis:`proxy\_password` is only applicable when :emphasis:`share\_type` is :literal:`http` or :literal:`https` and when :emphasis:`proxy\_support` is :literal:`parameters\_proxy`.
184
185
186
187 resource_id (optional, str, None)
188 Id of the resource.
189
190 If the value for resource ID is not provided, the module picks the first resource ID available from the list of system resources that are returned by the iDRAC.
191
192
193 idrac_ip (True, str, None)
194 iDRAC IP Address.
195
196
197 idrac_user (False, str, None)
198 iDRAC username.
199
200 If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used.
201
202 Example: export IDRAC\_USERNAME=username
203
204
205 idrac_password (False, str, None)
206 iDRAC user password.
207
208 If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used.
209
210 Example: export IDRAC\_PASSWORD=password
211
212
213 x_auth_token (False, str, None)
214 Authentication token.
215
216 If the x\_auth\_token is not provided, then the environment variable :envvar:`IDRAC\_X\_AUTH\_TOKEN` is used.
217
218 Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token
219
220
221 idrac_port (optional, int, 443)
222 iDRAC port.
223
224
225 validate_certs (optional, bool, True)
226 If :literal:`false`\ , the SSL certificates will not be validated.
227
228 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
229
230 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
231
232
233 ca_path (optional, path, None)
234 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
235
236
237 timeout (optional, int, 30)
238 The socket level timeout in seconds.
239
240
241
242
243
244 Notes
245 -----
246
247 .. note::
248 - Run this module from a system that has direct access to Dell iDRAC.
249 - This module supports only iDRAC9 and above.
250 - This module supports IPv4 and IPv6 addresses.
251 - :literal:`local` for :emphasis:`share\_type` is applicable only when :emphasis:`run` and :emphasis:`export` is :literal:`true`.
252 - When :emphasis:`share\_type` is :literal:`local` for :emphasis:`run` and (export) operation, then job\_wait is not applicable.
253
254
255
256
257 Examples
258 --------
259
260 .. code-block:: yaml+jinja
261
262
263 ---
264 - name: Accept the EULA and run and export the SupportAssist Collection to local path
265 dellemc.openmanage.idrac_support_assist:
266 idrac_ip: "192.168.0.1"
267 idrac_user: "username"
268 idrac_password: "password"
269 accept_eula: true
270 ca_path: "path/to/ca_file"
271 data_collector: ["debug_logs", "hardware_data", "os_app_data", "storage_logs"]
272 share_parameters:
273 share_type: "local"
274 share_name: "/opt/local/support_assist_collections/"
275
276 - name: Run the SupportAssist Collection with with custom data_to_collect with filter_data
277 dellemc.openmanage.idrac_support_assist:
278 idrac_ip: "192.168.0.1"
279 idrac_user: "username"
280 idrac_password: "password"
281 ca_path: "path/to/ca_file"
282 export: false
283 filter_data: true
284 data_collector: ["debug_logs", "hardware_data"]
285
286 - name: Run and export the SupportAssist Collection to HTTPS share
287 dellemc.openmanage.idrac_support_assist:
288 idrac_ip: "192.168.0.1"
289 idrac_user: "username"
290 idrac_password: "password"
291 ca_path: "path/to/ca_file"
292 data_collector: ["hardware_data"]
293 share_parameters:
294 share_type: "https"
295 ignore_certificate_warning: "on"
296 share_name: "/share_path/support_assist_collections"
297 ip_address: "192.168.0.2"
298
299 - name: Run and export the SupportAssist Collection to NFS share
300 dellemc.openmanage.idrac_support_assist:
301 idrac_ip: "192.168.0.1"
302 idrac_user: "username"
303 idrac_password: "password"
304 ca_path: "path/to/ca_file"
305 data_collector: ["debug_logs"]
306 share_parameters:
307 share_type: "NFS"
308 share_name: "nfsshare/support_assist_collections/"
309 ip_address: "192.168.0.3"
310
311 - name: Export the last SupportAssist Collection to CIFS share
312 dellemc.openmanage.idrac_support_assist:
313 idrac_ip: "192.168.0.1"
314 idrac_user: "username"
315 idrac_password: "password"
316 ca_path: "path/to/ca_file"
317 run: false
318 share_parameters:
319 share_type: "NFS"
320 share_name: "/cifsshare/support_assist_collections/"
321 ip_address: "192.168.0.4"
322
323 - name: Export the last SupportAssist Collection to https share via proxy
324 dellemc.openmanage.idrac_support_assist:
325 idrac_ip: "192.168.0.1"
326 idrac_user: "username"
327 idrac_password: "password"
328 ca_path: "path/to/ca_file"
329 run: false
330 share_parameters:
331 share_type: "https"
332 share_name: "/share_path/support_assist_collections"
333 ignore_certificate_warning: "on"
334 ip_address: "192.168.0.2"
335 proxy_support: parameters_proxy
336 proxy_type: http
337 proxy_server: "192.168.0.5"
338 proxy_port: 1080
339 proxy_username: "proxy_user"
340 proxy_password: "proxy_password"
341
342
343
344 Return Values
345 -------------
346
347 msg (always, str, Successfully ran and exported the SupportAssist collection.)
348 Status of the SupportAssist operation.
349
350
351 job_details (For run and export operations, dict, {'ActualRunningStartTime': '2024-07-08T01:50:54', 'ActualRunningStopTime': '2024-07-08T01:56:45', 'CompletionTime': '2024-07-08T01:56:45', 'Description': 'Job Instance', 'EndTime': None, 'Id': 'JID_XXXXXXXXXXXX', 'JobState': 'Completed', 'JobType': 'SACollectExportHealthData', 'Message': 'The SupportAssist Collection and Transmission Operation is completed successfully.', 'MessageArgs': [], '[email protected]': 0, 'MessageId': 'SRV088', 'Name': 'SupportAssist Collection', 'PercentComplete': 100, 'StartTime': '2024-07-08T01:50:54', 'TargetSettingsURI': None})
352 Returns the output for status of the job.
353
354
355 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.12.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'Message': 'Unable to start the operation because the SupportAssist End User License Agreement (EULA) is not accepted.', 'MessageArgs': [], '[email protected]': 0, 'MessageId': 'IDRAC.2.8.SRV085', 'RelatedProperties': [], '[email protected]': 0, 'Resolution': 'Accept the SupportAssist End User License Agreement (EULA) by navigating to the SupportAssist page on the iDRAC GUI.', 'Severity': 'Warning'}]}})
356 Details of the HTTP Error.
357
358
359
360
361
362 Status
363 ------
364
365
366
367
368
369 Authors
370 ~~~~~~~
371
372 - Shivam Sharma(@ShivamSh3)
373