Debian Codegraph @

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

raw
1 .. _ome_chassis_slots_module:
2
3
4 ome_chassis_slots -- Rename sled slots on OpenManage Enterprise Modular
5 =======================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to rename sled slots on OpenManage Enterprise Modular either using device id or device service tag or using chassis service tag and slot number.
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_options (optional, list, None)
31 The ID or service tag of the sled in the slot and the new name for the slot.
32
33 :emphasis:`device\_options` is mutually exclusive with :emphasis:`slot\_options`.
34
35
36 device_id (optional, int, None)
37 Device ID of the sled in the slot.
38
39 This is mutually exclusive with :emphasis:`device\_service\_tag`.
40
41
42 device_service_tag (optional, str, None)
43 Service tag of the sled in the slot.
44
45 This is mutually exclusive with :emphasis:`device\_id`.
46
47
48 slot_name (True, str, None)
49 Provide name for the slot.
50
51
52
53 slot_options (optional, list, None)
54 The service tag of the chassis, slot number of the slot to be renamed, and the new name for the slot.
55
56 :emphasis:`slot\_options` is mutually exclusive with :emphasis:`device\_options`.
57
58
59 chassis_service_tag (True, str, None)
60 Service tag of the chassis.
61
62
63 slots (True, list, None)
64 The slot number and the new name for the slot.
65
66
67 slot_number (True, int, None)
68 The slot number of the slot to be renamed.
69
70
71 slot_name (True, str, None)
72 Provide name for the slot.
73
74
75
76
77 hostname (True, str, None)
78 OpenManage Enterprise Modular IP address or hostname.
79
80
81 username (False, str, None)
82 OpenManage Enterprise Modular username.
83
84 If the username is not provided, then the environment variable :envvar:`OME\_USERNAME` is used.
85
86 Example: export OME\_USERNAME=username
87
88
89 password (False, str, None)
90 OpenManage Enterprise Modular password.
91
92 If the password is not provided, then the environment variable :envvar:`OME\_PASSWORD` is used.
93
94 Example: export OME\_PASSWORD=password
95
96
97 x_auth_token (False, str, None)
98 Authentication token.
99
100 If the x\_auth\_token is not provided, then the environment variable :envvar:`OME\_X\_AUTH\_TOKEN` is used.
101
102 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
103
104
105 port (optional, int, 443)
106 OpenManage Enterprise Modular HTTPS port.
107
108
109 validate_certs (optional, bool, True)
110 If :literal:`false`\ , the SSL certificates will not be validated.
111
112 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
113
114 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
115
116
117 ca_path (optional, path, None)
118 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
119
120
121 timeout (optional, int, 30)
122 The socket level timeout in seconds.
123
124
125
126
127
128 Notes
129 -----
130
131 .. note::
132 - This module initiates the refresh inventory task. It may take a minute for new names to be reflected. If the task exceeds 300 seconds to refresh, the task times out.
133 - Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
134 - This module supports :literal:`check\_mode`.
135
136
137
138
139 Examples
140 --------
141
142 .. code-block:: yaml+jinja
143
144
145 ---
146 - name: Rename the slots in multiple chassis using slot number and chassis service tag
147 dellemc.openmanage.ome_chassis_slots:
148 hostname: "192.168.0.1"
149 username: "username"
150 password: "password"
151 ca_path: "/path/to/ca_cert.pem"
152 slot_options:
153 - chassis_service_tag: ABC1234
154 slots:
155 - slot_number: 1
156 slot_name: sled_name_1
157 - slot_number: 2
158 slot_name: sled_name_2
159 - chassis_service_tag: ABC1235
160 slots:
161 - slot_number: 1
162 slot_name: sled_name_1
163 - slot_number: 2
164 slot_name: sled_name_2
165
166 - name: Rename single slot name of the sled using sled ID
167 dellemc.openmanage.ome_chassis_slots:
168 hostname: "192.168.0.1"
169 username: "username"
170 password: "password"
171 ca_path: "/path/to/ca_cert.pem"
172 device_options:
173 - device_id: 10054
174 slot_name: slot_device_name_1
175
176 - name: Rename single slot name of the sled using sled service tag
177 dellemc.openmanage.ome_chassis_slots:
178 hostname: "192.168.0.1"
179 username: "username"
180 password: "password"
181 ca_path: "/path/to/ca_cert.pem"
182 device_options:
183 - device_service_tag: ABC1234
184 slot_name: service_tag_slot
185
186 - name: Rename multiple slot names of the devices
187 dellemc.openmanage.ome_chassis_slots:
188 hostname: "192.168.0.1"
189 username: "username"
190 password: "password"
191 ca_path: "/path/to/ca_cert.pem"
192 device_options:
193 - device_id: 10054
194 slot_name: sled_name_1
195 - device_service_tag: ABC1234
196 slot_name: sled_name_2
197 - device_id: 10055
198 slot_name: sled_name_3
199 - device_service_tag: PQR1234
200 slot_name: sled_name_4
201
202
203
204 Return Values
205 -------------
206
207 msg (always, str, Successfully renamed the slot(s).)
208 Overall status of the slot rename operation.
209
210
211 slot_info (if at least one slot renamed, list, [{'ChassisId': 10053, 'ChassisServiceTag': 'ABCD123', 'DeviceName': '', 'DeviceType': 1000, 'JobId': 15746, 'SlotId': '10072', 'SlotName': 'slot_op2', 'SlotNumber': '6', 'SlotType': 2000}, {'ChassisId': 10053, 'ChassisName': 'MX-ABCD123', 'ChassisServiceTag': 'ABCD123', 'DeviceType': '3000', 'JobId': 15747, 'SlotId': '10070', 'SlotName': 'slot_op2', 'SlotNumber': '4', 'SlotType': '2000'}, {'ChassisId': '10053', 'ChassisName': 'MX-PQRS123', 'ChassisServiceTag': 'PQRS123', 'DeviceId': '10054', 'DeviceServiceTag': 'XYZ5678', 'DeviceType': '1000', 'JobId': 15761, 'SlotId': '10067', 'SlotName': 'a1', 'SlotNumber': '1', 'SlotType': '2000'}])
212 Information of the slots that are renamed successfully.
213
214 The :literal:`DeviceServiceTag` and :literal:`DeviceId` options are available only if :emphasis:`device\_options` is used.
215
216 :literal:`NOTE` Only the slots which were renamed are listed.
217
218
219 rename_failed_slots (if at least one slot renaming fails, list, [{'ChassisId': '12345', 'ChassisName': 'MX-ABCD123', 'ChassisServiceTag': 'ABCD123', 'DeviceType': '4000', 'JobId': 1234, 'JobStatus': 'Aborted', 'SlotId': '10061', 'SlotName': 'c2', 'SlotNumber': '1', 'SlotType': '4000'}, {'ChassisId': '10053', 'ChassisName': 'MX-PQRS123', 'ChassisServiceTag': 'PQRS123', 'DeviceType': '1000', 'JobId': 0, 'JobStatus': 'HTTP Error 400: Bad Request', 'SlotId': '10069', 'SlotName': 'b2', 'SlotNumber': '3', 'SlotType': '2000'}])
220 Information of the valid slots that are not renamed.
221
222 :literal:`JobStatus` is shown if rename job fails.
223
224 :literal:`NOTE` Only slots which were not renamed are listed.
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': 'CGEN1014', 'RelatedProperties': [], 'Message': 'Unable to complete the operation because an invalid value is entered for the property Invalid json type: STRING for Edm.Int64 property: Id .', 'MessageArgs': ['Invalid json type: STRING for Edm.Int64 property: Id'], 'Severity': 'Critical', 'Resolution': "Enter a valid value for the property and retry the operation. For more information about valid values, see the OpenManage Enterprise-Modular User's Guide available on the support site."}]}})
228 Details of the HTTP Error.
229
230
231
232
233
234 Status
235 ------
236
237
238
239
240
241 Authors
242 ~~~~~~~
243
244 - Jagadeesh N V(@jagadeeshnv)
245 - Akash Shendge(@shenda1)
246