Debian Codegraph @

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

raw
1 .. _ome_configuration_compliance_info_module:
2
3
4 ome_configuration_compliance_info -- Device compliance report for devices managed in OpenManage Enterprise
5 ==========================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows the generation of a compliance report of a specific or all of devices in a configuration compliance baseline.
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 baseline (True, str, None)
31 The name of the created baseline.
32
33 A compliance report is generated even when the template is not associated with the baseline.
34
35
36 device_id (False, int, None)
37 The ID of the target device which is associated with the \ :emphasis:`baseline`\ .
38
39
40 device_service_tag (False, str, None)
41 The device service tag of the target device associated with the \ :emphasis:`baseline`\ .
42
43 \ :emphasis:`device\_service\_tag`\ is mutually exclusive with \ :emphasis:`device\_id`\ .
44
45
46 hostname (True, str, None)
47 OpenManage Enterprise IP address or hostname.
48
49
50 username (False, str, None)
51 OpenManage Enterprise username.
52
53 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
54
55 Example: export OME\_USERNAME=username
56
57
58 password (False, str, None)
59 OpenManage Enterprise password.
60
61 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
62
63 Example: export OME\_PASSWORD=password
64
65
66 x_auth_token (False, str, None)
67 Authentication token.
68
69 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
70
71 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
72
73
74 port (optional, int, 443)
75 OpenManage Enterprise HTTPS port.
76
77
78 validate_certs (optional, bool, True)
79 If \ :literal:`false`\ , the SSL certificates will not be validated.
80
81 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
82
83 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
84
85
86 ca_path (optional, path, None)
87 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
88
89
90 timeout (optional, int, 30)
91 The socket level timeout in seconds.
92
93
94
95
96
97 Notes
98 -----
99
100 .. note::
101 - Run this module from a system that has direct access to Dell OpenManage Enterprise.
102 - This module supports \ :literal:`check\_mode`\ .
103
104
105
106
107 Examples
108 --------
109
110 .. code-block:: yaml+jinja
111
112
113 ---
114 - name: Retrieve the compliance report of all of the devices in the specified configuration compliance baseline.
115 dellemc.openmanage.ome_configuration_compliance_info:
116 hostname: "192.168.0.1"
117 username: "username"
118 password: "password"
119 ca_path: "/path/to/ca_cert.pem"
120 baseline: baseline_name
121
122 - name: Retrieve the compliance report for a specific device associated with the baseline using the device ID.
123 dellemc.openmanage.ome_configuration_compliance_info:
124 hostname: "192.168.0.1"
125 username: "username"
126 password: "password"
127 ca_path: "/path/to/ca_cert.pem"
128 baseline: baseline_name
129 device_id: 10001
130
131 - name: Retrieve the compliance report for a specific device associated with the baseline using the device service tag.
132 dellemc.openmanage.ome_configuration_compliance_info:
133 hostname: "192.168.0.1"
134 username: "username"
135 password: "password"
136 ca_path: "/path/to/ca_cert.pem"
137 baseline: baseline_name
138 device_service_tag: 2HFGH3
139
140
141
142 Return Values
143 -------------
144
145 msg (on error, str, Unable to complete the operation because the entered target baseline name 'baseline' is invalid.)
146 Over all compliance report status.
147
148
149 compliance_info (success, dict, [{'ComplianceAttributeGroups': [{'Attributes': [], 'ComplianceReason': 'One or more attributes on the target device(s) does not match the compliance template.', 'ComplianceStatus': 2, 'ComplianceSubAttributeGroups': [{'Attributes': [{'AttributeId': 75369, 'ComplianceReason': 'Attribute has different value from template', 'ComplianceStatus': 3, 'CustomId': 0, 'Description': None, 'DisplayName': 'Workload Profile', 'ExpectedValue': 'HpcProfile', 'Value': 'NotAvailable'}], 'ComplianceReason': 'One or more attributes on the target device(s) does not match the compliance template.', 'ComplianceStatus': 2, 'ComplianceSubAttributeGroups': [], 'DisplayName': 'System Profile Settings', 'GroupNameId': 1}], 'DisplayName': 'BIOS', 'GroupNameId': 1}], 'ComplianceStatus': 'NONCOMPLIANT', 'DeviceName': 'WIN-PLOV8MPIP40', 'DeviceType': 1000, 'Id': 25011, 'InventoryTime': '2021-03-18 00:01:57.809771', 'Model': 'PowerEdge R7525', 'ServiceTag': 'JHMBX53'}])
150 Returns the compliance report information.
151
152
153 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.'}]}})
154 Details of the HTTP Error.
155
156
157
158
159
160 Status
161 ------
162
163
164
165
166
167 Authors
168 ~~~~~~~
169
170 - Felix Stephen A (@felixs88)
171 - Kritika Bhateja (@Kritika-Bhateja)
172 - Meenakshi Dembi(@meenakshidembi691)
173