| 1 |
.. _ome_alert_policies_message_id_info_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_alert_policies_message_id_info -- Get message ID information of alert policies. |
| 5 |
=================================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module retrieves the message ID information of alert policies for 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 |
hostname (True, str, None) |
| 31 |
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
| 32 |
|
| 33 |
|
| 34 |
username (False, str, None) |
| 35 |
OpenManage Enterprise or OpenManage Enterprise Modular username. |
| 36 |
|
| 37 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 38 |
|
| 39 |
Example: export OME\_USERNAME=username |
| 40 |
|
| 41 |
|
| 42 |
password (False, str, None) |
| 43 |
OpenManage Enterprise or OpenManage Enterprise Modular password. |
| 44 |
|
| 45 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 46 |
|
| 47 |
Example: export OME\_PASSWORD=password |
| 48 |
|
| 49 |
|
| 50 |
x_auth_token (False, str, None) |
| 51 |
Authentication token. |
| 52 |
|
| 53 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 54 |
|
| 55 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 56 |
|
| 57 |
|
| 58 |
port (optional, int, 443) |
| 59 |
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. |
| 60 |
|
| 61 |
|
| 62 |
validate_certs (optional, bool, True) |
| 63 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 64 |
|
| 65 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 66 |
|
| 67 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 68 |
|
| 69 |
|
| 70 |
ca_path (optional, path, None) |
| 71 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 72 |
|
| 73 |
|
| 74 |
timeout (optional, int, 30) |
| 75 |
The socket level timeout in seconds. |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
Notes |
| 82 |
----- |
| 83 |
|
| 84 |
.. note:: |
| 85 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular. |
| 86 |
- This module supports \ :literal:`check\_mode`\ . |
| 87 |
- This module supports IPv4 and IPv6 addresses. |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
Examples |
| 93 |
-------- |
| 94 |
|
| 95 |
.. code-block:: yaml+jinja |
| 96 |
|
| 97 |
|
| 98 |
--- |
| 99 |
- name: Get message ID details of all alert policies |
| 100 |
dellemc.openmanage.ome_alert_policies_message_id_info: |
| 101 |
hostname: "192.168.0.1" |
| 102 |
username: "username" |
| 103 |
password: "password" |
| 104 |
ca_path: "/path/to/ca_cert.pem" |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
Return Values |
| 109 |
------------- |
| 110 |
|
| 111 |
msg (always, str, Successfully retrieved alert policies message ids information.) |
| 112 |
Status of the alert policies message ids fetch operation. |
| 113 |
|
| 114 |
|
| 115 |
message_ids (success, dict, [{'Category': 'System Health', 'DetailedDescription': 'The current sensor identified in the message has failed. This condition can cause system performance issues and degradation in the monitoring capability of the system.', 'Message': 'The ${0} sensor has failed, and the last recorded value by the sensor was ${1} A.', 'MessageId': 'AMP400', 'Prefix': 'AMP', 'RecommendedAction': 'Check the Embedded System Management (ESM) Log for any sensor related faults. If there is a failed sensor, replace the system board. For more information, contact your service provider.', 'SequenceNo': 400, 'Severity': 'Critical', 'SubCategory': 'Amperage'}, {'Category': 'System Health', 'DetailedDescription': 'The current sensor identified in the message has failed. This condition can cause system performance issues and degradation in the monitoring capability of the system.', 'Message': 'Unable to read the ${0} sensor value.', 'MessageId': 'AMP401', 'Prefix': 'AMP', 'RecommendedAction': 'Check the Embedded System Management (ESM) Log for any sensor related faults. If there is a failed sensor, replace the system board. For more information, contact your service provider.', 'SequenceNo': 401, 'Severity': 'Warning', 'SubCategory': 'Amperage'}]) |
| 116 |
Details of the message ids. |
| 117 |
|
| 118 |
|
| 119 |
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.'}]}}) |
| 120 |
Details of the HTTP Error. |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
Status |
| 127 |
------ |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
Authors |
| 134 |
~~~~~~~ |
| 135 |
|
| 136 |
- Shivam Sharma (@ShivamSh3) |
| 137 |
|