Debian Codegraph @

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

raw
1 .. _idrac_lifecycle_controller_logs_module:
2
3
4 idrac_lifecycle_controller_logs -- Export Lifecycle Controller logs to a network share or local path.
5 =====================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Export Lifecycle Controller logs to a given network share or local path.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - omsdk \>= 1.2.488
24 - python \>= 3.9.6
25
26
27
28 Parameters
29 ----------
30
31 share_name (True, str, None)
32 Network share or local path.
33
34 CIFS, NFS network share types are supported.
35
36
37 share_user (optional, str, None)
38 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.
39
40
41 share_password (optional, str, None)
42 Network share user password. This option is mandatory for CIFS Network Share.
43
44
45 job_wait (optional, bool, True)
46 Whether to wait for the running job completion or not.
47
48
49 idrac_ip (True, str, None)
50 iDRAC IP Address.
51
52
53 idrac_user (True, str, None)
54 iDRAC username.
55
56 If the username is not provided, then the environment variable \ :envvar:`IDRAC\_USERNAME`\ is used.
57
58 Example: export IDRAC\_USERNAME=username
59
60
61 idrac_password (True, str, None)
62 iDRAC user password.
63
64 If the password is not provided, then the environment variable \ :envvar:`IDRAC\_PASSWORD`\ is used.
65
66 Example: export IDRAC\_PASSWORD=password
67
68
69 idrac_port (optional, int, 443)
70 iDRAC port.
71
72
73 validate_certs (optional, bool, True)
74 If \ :literal:`false`\ , the SSL certificates will not be validated.
75
76 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
77
78 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
79
80
81 ca_path (optional, path, None)
82 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
83
84
85 timeout (optional, int, 30)
86 The socket level timeout in seconds.
87
88
89
90
91
92 Notes
93 -----
94
95 .. note::
96 - This module requires 'Administrator' privilege for \ :emphasis:`idrac\_user`\ .
97 - Exporting data to a local share is supported only on iDRAC9-based PowerEdge Servers and later.
98 - Run this module from a system that has direct access to Dell iDRAC.
99 - This module supports both IPv4 and IPv6 address for \ :emphasis:`idrac\_ip`\ .
100 - This module does not support \ :literal:`check\_mode`\ .
101 - No job will be created when exporting data to a local share in iDRAC9 and iDRAC 10.
102
103
104
105
106 Examples
107 --------
108
109 .. code-block:: yaml+jinja
110
111
112 ---
113 - name: Export lifecycle controller logs to NFS share.
114 dellemc.openmanage.idrac_lifecycle_controller_logs:
115 idrac_ip: "190.168.0.1"
116 idrac_user: "user_name"
117 idrac_password: "user_password"
118 ca_path: "/path/to/ca_cert.pem"
119 share_name: "192.168.0.0:/nfsfileshare"
120
121 - name: Export lifecycle controller logs to CIFS share.
122 dellemc.openmanage.idrac_lifecycle_controller_logs:
123 idrac_ip: "190.168.0.1"
124 idrac_user: "user_name"
125 idrac_password: "user_password"
126 ca_path: "/path/to/ca_cert.pem"
127 share_name: "\\\\192.168.0.2\\share"
128 share_user: "share_user_name"
129 share_password: "share_user_pwd"
130
131 - name: Export lifecycle controller logs to LOCAL path.
132 dellemc.openmanage.idrac_lifecycle_controller_logs:
133 idrac_ip: "190.168.0.1"
134 idrac_user: "user_name"
135 idrac_password: "user_password"
136 ca_path: "/path/to/ca_cert.pem"
137 share_name: "/example/export_lc"
138
139
140
141 Return Values
142 -------------
143
144 msg (always, str, Successfully exported the lifecycle controller logs.)
145 Status of the export lifecycle controller logs job.
146
147
148 lc_logs_status (success, dict, {'ElapsedTimeSinceCompletion': '0', 'InstanceID': 'JID_274774785395', 'JobStartTime': 'NA', 'JobStatus': 'Completed', 'JobUntilTime': 'NA', 'Message': 'LCL Export was successful', 'MessageArguments': 'NA', 'MessageID': 'LC022', 'Name': 'LC Export', 'PercentComplete': '100', 'Status': 'Success', 'file': '192.168.0.0:/nfsfileshare/190.168.0.1_20210728_133437_LC_Log.log', 'retval': True})
149 Status of the export operation along with job details and file path.
150
151
152 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.'}]}})
153 Details of the HTTP Error.
154
155
156
157
158
159 Status
160 ------
161
162
163
164
165
166 Authors
167 ~~~~~~~
168
169 - Rajeev Arakkal (@rajeevarakkal)
170 - Anooja Vardhineni (@anooja-vardhineni)
171