| 1 |
.. _ome_server_interface_profile_info_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_server_interface_profile_info -- Retrieves the information of server interface profile on OpenManage Enterprise Modular. |
| 5 |
============================================================================================================================ |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to retrieves the information of server interface profile 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, list, None) |
| 31 |
The ID of the device. |
| 32 |
|
| 33 |
:emphasis:`device\_id` is mutually exclusive with :emphasis:`device\_service\_tag`. |
| 34 |
|
| 35 |
|
| 36 |
device_service_tag (optional, list, None) |
| 37 |
The service tag of the device. |
| 38 |
|
| 39 |
:emphasis:`device\_service\_tag` is mutually exclusive with :emphasis:`device\_id`. |
| 40 |
|
| 41 |
|
| 42 |
hostname (True, str, None) |
| 43 |
OpenManage Enterprise Modular IP address or hostname. |
| 44 |
|
| 45 |
|
| 46 |
username (False, str, None) |
| 47 |
OpenManage Enterprise Modular username. |
| 48 |
|
| 49 |
If the username is not provided, then the environment variable :envvar:`OME\_USERNAME` is used. |
| 50 |
|
| 51 |
Example: export OME\_USERNAME=username |
| 52 |
|
| 53 |
|
| 54 |
password (False, str, None) |
| 55 |
OpenManage Enterprise Modular password. |
| 56 |
|
| 57 |
If the password is not provided, then the environment variable :envvar:`OME\_PASSWORD` is used. |
| 58 |
|
| 59 |
Example: export OME\_PASSWORD=password |
| 60 |
|
| 61 |
|
| 62 |
x_auth_token (False, str, None) |
| 63 |
Authentication token. |
| 64 |
|
| 65 |
If the x\_auth\_token is not provided, then the environment variable :envvar:`OME\_X\_AUTH\_TOKEN` is used. |
| 66 |
|
| 67 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 68 |
|
| 69 |
|
| 70 |
port (optional, int, 443) |
| 71 |
OpenManage Enterprise Modular HTTPS port. |
| 72 |
|
| 73 |
|
| 74 |
validate_certs (optional, bool, True) |
| 75 |
If :literal:`false`\ , the SSL certificates will not be validated. |
| 76 |
|
| 77 |
Configure :literal:`false` only on personally controlled sites where self-signed certificates are used. |
| 78 |
|
| 79 |
Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default. |
| 80 |
|
| 81 |
|
| 82 |
ca_path (optional, path, None) |
| 83 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 84 |
|
| 85 |
|
| 86 |
timeout (optional, int, 30) |
| 87 |
The socket level timeout in seconds. |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
Notes |
| 94 |
----- |
| 95 |
|
| 96 |
.. note:: |
| 97 |
- Run this module from a system that has direct access to OpenManage Enterprise Modular. |
| 98 |
- This module supports :literal:`check\_mode`. |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
Examples |
| 104 |
-------- |
| 105 |
|
| 106 |
.. code-block:: yaml+jinja |
| 107 |
|
| 108 |
|
| 109 |
--- |
| 110 |
- name: Retrieves the server interface profiles of all the device using device ID. |
| 111 |
dellemc.openmanage.ome_server_interface_profile_info: |
| 112 |
hostname: "192.168.0.1" |
| 113 |
username: "username" |
| 114 |
password: "password" |
| 115 |
ca_path: "/path/to/ca_cert.pem" |
| 116 |
device_id: |
| 117 |
- 10001 |
| 118 |
- 10002 |
| 119 |
|
| 120 |
- name: Retrieves the server interface profiles of all the device using device service tag. |
| 121 |
dellemc.openmanage.ome_server_interface_profile_info: |
| 122 |
hostname: "192.168.0.1" |
| 123 |
username: "username" |
| 124 |
password: "password" |
| 125 |
ca_path: "/path/to/ca_cert.pem" |
| 126 |
device_service_tag: |
| 127 |
- 6GHH6H2 |
| 128 |
- 6KHH6H3 |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
Return Values |
| 133 |
------------- |
| 134 |
|
| 135 |
msg (on success, str, Successfully retrieved the server interface profile information.) |
| 136 |
Overall status of the server interface profile information. |
| 137 |
|
| 138 |
|
| 139 |
server_profiles (success, list, [{'BondingTechnology': 'LACP', 'Id': '6KZK6K2', 'ServerInterfaceProfile': [{'FabricId': '1ea6bf64-3cf0-4e06-a136-5046d874d1e7', 'Id': 'NIC.Mezzanine.1A-1-1', 'NativeVLAN': 0, 'Networks': [{'CreatedBy': 'system', 'CreationTime': '2018-11-27 10:22:14.140', 'Description': 'VLAN 1', 'Id': 10001, 'InternalRefNWUUId': 'add035b9-a971-400d-a3fa-bb365df1d476', 'Name"': 'VLAN 1', 'Type': 2, 'UpdatedBy': None, 'UpdatedTime': '2018-11-27 10:22:14.140', 'VlanMaximum': 1, 'VlanMinimum': 1}], 'NicBonded': True, 'OnboardedPort': '59HW8X2:ethernet1/1/1'}, {'FabricId': '3ea6be04-5cf0-4e05-a136-5046d874d1e6', 'Id': 'NIC.Mezzanine.1A-2-1', 'NativeVLAN': 0, 'Networks': [{'CreatedBy': 'system', 'CreationTime': '2018-09-25 14:46:12.374', 'Description': None, 'Id': 10155, 'InternalRefNWUUId': 'f15a36b6-e3d3-46b2-9e7d-bf9cd66e180d', 'Name': 'jagvlan', 'Type': 1, 'UpdatedBy': None, 'UpdatedTime': '2018-09-25 14:46:12.374', 'VlanMaximum': 143, 'VlanMinimum': 143}], 'NicBonded': False, 'OnboardedPort': '6H7J6Z2:ethernet1/1/1'}]}]) |
| 140 |
Returns the information of collected server interface profile information. |
| 141 |
|
| 142 |
|
| 143 |
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.'}]}}) |
| 144 |
Details of the HTTP Error. |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
Status |
| 151 |
------ |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
Authors |
| 158 |
~~~~~~~ |
| 159 |
|
| 160 |
- Felix Stephen (@felixs88) |
| 161 |
|