Debian Codegraph @

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

raw
1 .. _idrac_syslog_module:
2
3
4 idrac_syslog -- Enable or disable the syslog on iDRAC
5 =====================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to enable or disable the iDRAC syslog.
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 syslog (optional, str, Enabled)
32 Enables or disables an iDRAC syslog.
33
34
35 idrac_ip (True, str, None)
36 iDRAC IP Address.
37
38
39 idrac_user (True, str, None)
40 iDRAC username.
41
42 If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used.
43
44 Example: export IDRAC\_USERNAME=username
45
46
47 idrac_password (True, str, None)
48 iDRAC user password.
49
50 If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used.
51
52 Example: export IDRAC\_PASSWORD=password
53
54
55 idrac_port (optional, int, 443)
56 iDRAC port.
57
58
59 validate_certs (optional, bool, True)
60 If :literal:`false`\ , the SSL certificates will not be validated.
61
62 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
63
64 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
65
66
67 ca_path (optional, path, None)
68 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
69
70
71 timeout (optional, int, 30)
72 The socket level timeout in seconds.
73
74
75 share_name (True, str, None)
76 Network share or a local path.
77
78
79 share_user (optional, str, None)
80 Network share user name. Use the format 'user@domain' or 'domain\\\\user' if user is part of a domain. This option is mandatory for CIFS share.
81
82
83 share_password (optional, str, None)
84 Network share user password. This option is mandatory for CIFS share.
85
86
87 share_mnt (optional, str, None)
88 Local mount path of the network share with read-write permission for ansible user. This option is mandatory for network shares.
89
90
91
92
93
94 Notes
95 -----
96
97 .. note::
98 - This module requires 'Administrator' privilege for :emphasis:`idrac\_user`.
99 - Run this module from a system that has direct access to Dell iDRAC.
100 - This module supports both IPv4 and IPv6 address for :emphasis:`idrac\_ip`.
101 - This module supports :literal:`check\_mode`.
102
103
104
105
106 Examples
107 --------
108
109 .. code-block:: yaml+jinja
110
111
112 ---
113 - name: Enable iDRAC syslog
114 dellemc.openmanage.idrac_syslog:
115 idrac_ip: "192.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.2:/share"
120 share_password: "share_user_pwd"
121 share_user: "share_user_name"
122 share_mnt: "/mnt/share"
123 syslog: "Enabled"
124
125 - name: Disable iDRAC syslog
126 dellemc.openmanage.idrac_syslog:
127 idrac_ip: "192.168.0.1"
128 idrac_user: "user_name"
129 idrac_password: "user_password"
130 ca_path: "/path/to/ca_cert.pem"
131 share_name: "192.168.0.2:/share"
132 share_password: "share_user_pwd"
133 share_user: "share_user_name"
134 share_mnt: "/mnt/share"
135 syslog: "Disabled"
136
137
138
139 Return Values
140 -------------
141
142 msg (always, str, Successfully fetch the syslogs.)
143 Overall status of the syslog export operation.
144
145
146 syslog_status (success, dict, {'@odata.context': '/redfish/v1/$metadata#DellJob.DellJob', '@odata.id': '/redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_852940632485', '@odata.type': '#DellJob.v1_0_2.DellJob', 'CompletionTime': '2020-03-27T02:27:45', 'Description': 'Job Instance', 'EndTime': None, 'Id': 'JID_852940632485', 'JobState': 'Completed', 'JobType': 'ImportConfiguration', 'Message': 'Successfully imported and applied Server Configuration Profile.', 'MessageArgs': [], '[email protected]': 0, 'MessageId': 'SYS053', 'Name': 'Import Configuration', 'PercentComplete': 100, 'StartTime': 'TIME_NOW', 'Status': 'Success', 'TargetSettingsURI': None, 'retval': True})
147 Job details of the syslog operation.
148
149
150 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.'}]}})
151 Details of the HTTP Error.
152
153
154
155
156
157 Status
158 ------
159
160
161 - This module will be removed in version
162 .
163 *[deprecated]*
164
165
166 Authors
167 ~~~~~~~
168
169 - Felix Stephen (@felixs88)
170 - Anooja Vardhineni (@anooja-vardhineni)
171 - Abhishek Sinha (@ABHISHEK-SINHA10)
172