Debian Codegraph @

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

raw
1 .. _ome_application_alerts_syslog_module:
2
3
4 ome_application_alerts_syslog -- Configure syslog forwarding settings on OpenManage Enterprise and OpenManage Enterprise Modular
5 ================================================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to configure syslog forwarding settings on OpenManage Enterprise and OpenManage Enterprise Modular.
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 syslog_servers (optional, list, None)
31 List of servers to forward syslog.
32
33
34 id (True, int, None)
35 The ID of the syslog server.
36
37
38 enabled (optional, bool, None)
39 Enable or disable syslog forwarding.
40
41
42 destination_address (optional, str, None)
43 The IP address, FQDN or hostname of the syslog server.
44
45 This is required if \ :emphasis:`enabled`\ is \ :literal:`true`\ .
46
47
48 port_number (optional, int, None)
49 The UDP port number of the syslog server.
50
51
52
53 hostname (True, str, None)
54 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
55
56
57 username (False, str, None)
58 OpenManage Enterprise or OpenManage Enterprise Modular username.
59
60 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
61
62 Example: export OME\_USERNAME=username
63
64
65 password (False, str, None)
66 OpenManage Enterprise or OpenManage Enterprise Modular password.
67
68 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
69
70 Example: export OME\_PASSWORD=password
71
72
73 x_auth_token (False, str, None)
74 Authentication token.
75
76 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
77
78 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
79
80
81 port (optional, int, 443)
82 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
83
84
85 validate_certs (optional, bool, True)
86 If \ :literal:`false`\ , the SSL certificates will not be validated.
87
88 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
89
90 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
91
92
93 ca_path (optional, path, None)
94 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
95
96
97 timeout (optional, int, 30)
98 The socket level timeout in seconds.
99
100
101
102
103
104 Notes
105 -----
106
107 .. note::
108 - Run this module from a system that has direct access to Dell OpenManage Enterprise or Dell OpenManage Enterprise Modular.
109 - This module supports \ :literal:`check\_mode`\ .
110
111
112
113
114 Examples
115 --------
116
117 .. code-block:: yaml+jinja
118
119
120 ---
121 - name: Configure single server to forward syslog
122 dellemc.openmanage.ome_application_alerts_syslog:
123 hostname: 192.168.0.1
124 username: "username"
125 password: "password"
126 ca_path: "/path/to/ca_cert.pem"
127 syslog_servers:
128 - id: 1
129 enabled: true
130 destination_address: 192.168.0.2
131 port_number: 514
132
133 - name: Configure multiple server to forward syslog
134 dellemc.openmanage.ome_application_alerts_syslog:
135 hostname: 192.168.0.1
136 username: "username"
137 password: "password"
138 ca_path: "/path/to/ca_cert.pem"
139 syslog_servers:
140 - id: 1
141 port_number: 523
142 - id: 2
143 enabled: true
144 destination_address: sysloghost1.lab.com
145 - id: 3
146 enabled: false
147 - id: 4
148 enabled: true
149 destination_address: 192.168.0.4
150 port_number: 514
151
152
153
154 Return Values
155 -------------
156
157 msg (always, str, Successfully updated the syslog forwarding settings.)
158 Overall status of the syslog forwarding operation.
159
160
161 syslog_details (on success, list, [{'DestinationAddress': '192.168.10.43', 'Enabled': False, 'Id': 1, 'PortNumber': 514}, {'DestinationAddress': '192.168.10.46', 'Enabled': True, 'Id': 2, 'PortNumber': 514}, {'DestinationAddress': '192.168.10.44', 'Enabled': True, 'Id': 3, 'PortNumber': 514}, {'DestinationAddress': '192.168.10.42', 'Enabled': True, 'Id': 4, 'PortNumber': 515}])
162 Syslog forwarding settings list applied.
163
164
165 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': 'CAPP1108', 'RelatedProperties': [], 'Message': 'Unable to update the Syslog settings because the request contains an invalid number of configurations. The request must contain no more than 4 configurations but contains 5.', 'MessageArgs': ['4', '5'], 'Severity': 'Warning', 'Resolution': 'Enter only the required number of configurations as identified in the message and retry the operation.'}]}})
166 Details of the HTTP Error.
167
168
169
170
171
172 Status
173 ------
174
175
176
177
178
179 Authors
180 ~~~~~~~
181
182 - Jagadeesh N V(@jagadeeshnv)
183 - Mangirish Kenkare(@MangirishK)
184