Debian Codegraph @

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

raw
1 .. _ome_device_network_services_module:
2
3
4 ome_device_network_services -- Configure chassis network services settings on OpenManage Enterprise Modular
5 ===========================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to configure the network services on 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 device_id (optional, int, None)
31 The ID of the chassis for which the settings need to be updated.
32
33 If the device ID is not specified, this module updates the network services settings for the :emphasis:`hostname`.
34
35 :emphasis:`device\_id` is mutually exclusive with :emphasis:`device\_service\_tag`.
36
37
38 device_service_tag (optional, str, None)
39 The service tag of the chassis for which the setting needs to be updated.
40
41 If the device service tag is not specified, this module updates the network services settings for the :emphasis:`hostname`.
42
43 :emphasis:`device\_service\_tag` is mutually exclusive with :emphasis:`device\_id`.
44
45
46 snmp_settings (optional, dict, None)
47 The settings for SNMP configuration.
48
49
50 enabled (True, bool, None)
51 Enables or disables the SNMP settings.
52
53
54 port_number (optional, int, None)
55 The SNMP port number.
56
57
58 community_name (optional, str, None)
59 The SNMP community string.
60
61 Required when :emphasis:`enabled` is :literal:`true`.
62
63
64
65 ssh_settings (optional, dict, None)
66 The settings for SSH configuration.
67
68
69 enabled (True, bool, None)
70 Enables or disables the SSH settings.
71
72
73 port_number (optional, int, None)
74 The port number for SSH service.
75
76
77 max_sessions (optional, int, None)
78 Number of SSH sessions.
79
80
81 max_auth_retries (optional, int, None)
82 The number of retries when the SSH session fails.
83
84
85 idle_timeout (optional, float, None)
86 SSH idle timeout in minutes.
87
88
89
90 remote_racadm_settings (optional, dict, None)
91 The settings for remote RACADM configuration.
92
93
94 enabled (True, bool, None)
95 Enables or disables the remote RACADM settings.
96
97
98
99 hostname (True, str, None)
100 OpenManage Enterprise Modular IP address or hostname.
101
102
103 username (False, str, None)
104 OpenManage Enterprise Modular username.
105
106 If the username is not provided, then the environment variable :envvar:`OME\_USERNAME` is used.
107
108 Example: export OME\_USERNAME=username
109
110
111 password (False, str, None)
112 OpenManage Enterprise Modular password.
113
114 If the password is not provided, then the environment variable :envvar:`OME\_PASSWORD` is used.
115
116 Example: export OME\_PASSWORD=password
117
118
119 x_auth_token (False, str, None)
120 Authentication token.
121
122 If the x\_auth\_token is not provided, then the environment variable :envvar:`OME\_X\_AUTH\_TOKEN` is used.
123
124 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
125
126
127 port (optional, int, 443)
128 OpenManage Enterprise Modular HTTPS port.
129
130
131 validate_certs (optional, bool, True)
132 If :literal:`false`\ , the SSL certificates will not be validated.
133
134 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
135
136 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
137
138
139 ca_path (optional, path, None)
140 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
141
142
143 timeout (optional, int, 30)
144 The socket level timeout in seconds.
145
146
147
148
149
150 Notes
151 -----
152
153 .. note::
154 - Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
155 - This module supports :literal:`check\_mode`.
156
157
158
159
160 Examples
161 --------
162
163 .. code-block:: yaml+jinja
164
165
166 ---
167 - name: Update network services settings of a chassis using the device ID
168 dellemc.openmanage.ome_device_network_services:
169 hostname: "192.168.0.1"
170 username: "username"
171 password: "password"
172 ca_path: "/path/to/ca_cert.pem"
173 device_id: 25011
174 snmp_settings:
175 enabled: true
176 port_number: 161
177 community_name: public
178 ssh_settings:
179 enabled: false
180 remote_racadm_settings:
181 enabled: false
182
183 - name: Update network services settings of a chassis using the device service tag.
184 dellemc.openmanage.ome_device_network_services:
185 hostname: "192.168.0.2"
186 username: "username"
187 password: "password"
188 ca_path: "/path/to/ca_cert.pem"
189 device_service_tag: GHRT2RL
190 snmp_settings:
191 enabled: false
192 ssh_settings:
193 enabled: true
194 port_number: 22
195 max_sessions: 1
196 max_auth_retries: 3
197 idle_timeout: 1
198 remote_racadm_settings:
199 enabled: false
200
201 - name: Update network services settings of the host chassis.
202 dellemc.openmanage.ome_device_network_services:
203 hostname: "192.168.0.3"
204 username: "username"
205 password: "password"
206 ca_path: "/path/to/ca_cert.pem"
207 snmp_settings:
208 enabled: false
209 ssh_settings:
210 enabled: false
211 remote_racadm_settings:
212 enabled: true
213
214
215
216 Return Values
217 -------------
218
219 msg (always, str, Successfully updated the network services settings.)
220 Overall status of the network services settings.
221
222
223 network_services_details (success, dict, {'EnableRemoteRacadm': True, 'SettingType': 'NetworkServices', 'SnmpConfiguration': {'PortNumber': 161, 'SnmpEnabled': True, 'SnmpV1V2Credential': {'CommunityName': 'public'}}, 'SshConfiguration': {'IdleTimeout': 60, 'MaxAuthRetries': 3, 'MaxSessions': 1, 'PortNumber': 22, 'SshEnabled': False}})
224 returned when network services settings are updated successfully.
225
226
227 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': 'CAPP1042', 'RelatedProperties': [], 'Message': 'Unable to update the network configuration because the SNMP PortNumber is already in use.', 'MessageArgs': ['SNMP PortNumber'], 'Severity': 'Informational', 'Resolution': 'Enter a different port number and retry the operation.'}]}})
228 Details of the HTTP Error.
229
230
231
232
233
234 Status
235 ------
236
237
238
239
240
241 Authors
242 ~~~~~~~
243
244 - Felix Stephen (@felixs88)
245 - Kritika Bhateja (@Kritika-Bhateja-03)
246