dellemc.openmanage.ome_diagnostics – Export technical support logs(TSR) to network share location
Note
This plugin is part of the dellemc.openmanage collection (version 3.6.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.openmanage
.
To use it in a playbook, specify: dellemc.openmanage.ome_diagnostics
.
New in version 3.6.0: of dellemc.openmanage
Synopsis
This module allows to export SupportAssist collection logs from OpenManage Enterprise and OpenManage Enterprise Modular and application logs from OpenManage Enterprise Modular to a CIFS or NFS share.
Requirements
The below requirements are needed on the host that executes this module.
python >= 2.7.17
Parameters
Parameter |
Comments |
---|---|
Name of the device group to export This is applicable for This option is not applicable for OpenManage Enterprise Modular. This option is mutually exclusive with device_ids and device_service_tags. |
|
List of target device IDs. This is applicable for This option is mutually exclusive with device_service_tags and device_group_name. |
|
List of target identifier. This is applicable for This option is mutually exclusive with device_ids and device_group_name. |
|
OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname. |
|
Whether to wait for the Job completion or not. The maximum wait time is job_wait_timeout. Choices:
|
|
The maximum wait time of job_wait in minutes. This option is applicable job_wait is true. Default: 60 |
|
By default, the SupportAssist logs contains only hardware logs. To collect additional logs such as OS logs or RAID logs, specify these option in the choices list. If not provided the default hardware log will be exported.
This option is applicable only for Choices:
|
|
Choices:
|
|
Select this option to mask the personal identification information such as IPAddress, DNS, alert destination, email, gateway, inet6, MacAddress, netmask etc. This option is applicable for Choices:
|
|
OpenManage Enterprise or OpenManage Enterprise Modular password. |
|
OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port. Default: 443 |
|
Network share IP address. |
|
Network share domain name. This option is applicable for |
|
Network share path. Filename is auto generated and should not be provided as part of share_name. |
|
Network share password This option is applicable for |
|
Network share type Choices:
|
|
Network share username. This option is applicable for |
|
Test the availability of the network share location. job_wait and job_wait_timeout options are not applicable for test_connection. Choices:
|
|
OpenManage Enterprise or OpenManage Enterprise Modular username. |
Examples
---
- name: Export application log using CIFS share location
dellemc.openmanage.ome_diagnostics:
hostname: "192.168.0.1"
username: "username"
password: "password"
share_type: CIFS
share_address: "192.168.0.2"
share_user: share_username
share_password: share_password
share_name: cifs_share
log_type: application
mask_sensitive_info: false
test_connection: true
- name: Export application log using NFS share location
dellemc.openmanage.ome_diagnostics:
hostname: "192.168.0.1"
username: "username"
password: "password"
share_address: "192.168.0.3"
share_type: NFS
share_name: nfs_share
log_type: application
mask_sensitive_info: true
test_connection: true
- name: Export SupportAssist log using CIFS share location
dellemc.openmanage.ome_diagnostics:
hostname: "192.168.0.1"
username: "username"
password: "password"
share_address: "192.168.0.3"
share_user: share_username
share_password: share_password
share_name: cifs_share
share_type: CIFS
log_type: support_assist_collection
device_ids: [10011, 10022]
log_selectors: [OS_LOGS]
test_connection: true
- name: Export SupportAssist log using NFS share location
dellemc.openmanage.ome_diagnostics:
hostname: "192.168.0.1"
username: "username"
password: "password"
share_address: "192.168.0.3"
share_type: NFS
share_name: nfs_share
log_type: support_assist_collection
device_group_name: group_name
test_connection: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details of the HTTP Error. Returned: on HTTP error Sample: {“error”: {“@Message.ExtendedInfo”: [{“Message”: “Unable to process the request because an error occurred.”, “MessageArgs”: [], “MessageId”: “GEN1234”, “RelatedProperties”: [], “Resolution”: “Retry the operation. If the issue persists, contact your system administrator.”, “Severity”: “Critical”}], “code”: “Base.1.0.GeneralError”, “message”: “A general error has occurred. See ExtendedInfo for more information.”}} |
|
Details of the export log operation status. Returned: success Sample: {“Builtin”: false, “CreatedBy”: “root”, “Editable”: true, “EndTime”: “None”, “Id”: 12778, “JobDescription”: “Export device log”, “JobName”: “Export Log”, “JobStatus”: {“Id”: 2080, “Name”: “New”}, “JobType”: {“Id”: 18, “Internal”: false, “Name”: “DebugLogs_Task”}, “LastRun”: “2021-07-06 10:52:50.519”, “LastRunStatus”: {“Id”: 2060, “Name”: “Completed”}, “NextRun”: “None”, “Params”: [{“JobId”: 12778, “Key”: “maskSensitiveInfo”, “Value”: “FALSE”}, {“JobId”: 12778, “Key”: “password”, “Value”: “tY86w7q92u0QzvykuF0gQQ”}, {“JobId”: 12778, “Key”: “userName”, “Value”: “administrator”}, {“JobId”: 12778, “Key”: “shareName”, “Value”: “iso”}, {“JobId”: 12778, “Key”: “OPERATION_NAME”, “Value”: “EXTRACT_LOGS”}, {“JobId”: 12778, “Key”: “shareType”, “Value”: “CIFS”}, {“JobId”: 12778, “Key”: “shareAddress”, “Value”: “100.96.32.142”}], “Schedule”: “startnow”, “StartTime”: “None”, “State”: “Enabled”, “Targets”: [{“Data”: “”, “Id”: 10053, “JobId”: 12778, “TargetType”: {“Id”: 1000, “Name”: “DEVICE”}}], “UpdatedBy”: “None”, “UserGenerated”: true, “Visible”: true} |
|
Overall status of the export log. Returned: always Sample: “Export log job completed successfully.” |
Authors
Felix Stephen (@felixs88)