dellemc.openmanage.idrac_lifecycle_controller_logs module – Export Lifecycle Controller logs to a network share or local path with advanced features.
Note
This module is part of the dellemc.openmanage collection (version 11.0.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.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.openmanage.idrac_lifecycle_controller_logs.
New in dellemc.openmanage 2.1.0
Synopsis
Export Lifecycle Controller logs to a given network share or local path.
Support for filtering by date range, severity, category, and message content.
Support for multi-format export (JSON, CSV, text) with metadata envelope.
Support for compliance export verification, filter optimization, storage monitoring, and comment insertion.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9.6
Parameters
Parameter |
Comments |
|---|---|
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
|
List of Dell OEM categories to filter log entries. Uses server-side OData $filter for efficient querying. Common categories include Audit, Configuration, Updates, SystemHealth, Storage, and WorkNotes. |
|
SHA-256 fingerprint of the expected TLS certificate (hex digest, with or without colons). When supplied together with |
|
End date for filtering log entries (ISO 8601 format). Only entries created on or before this date are included. Uses server-side OData $filter for efficient querying. Must not be earlier than date_start. Example format - 2026-08-31T23:59:59Z or 2026-08-31. |
|
Start date for filtering log entries (ISO 8601 format). Only entries created on or after this date are included. Uses server-side OData $filter for efficient querying. Example format - 2026-08-01T00:00:00Z or 2026-08-01. |
|
If Choices:
|
|
Format for exporting log entries to local file.
Only applicable when exporting to local path. Choices:
|
|
Fetch only log service metadata without retrieving log entries. Returns statistics like total entries, oldest/newest timestamps, severity breakdown. Only applicable when using local file path. Choices:
|
|
Filter optimization mode for combined filter operations.
Choices:
|
|
iDRAC IP Address. |
|
iDRAC user password. If the password is not provided, then the environment variable Example: export IDRAC_PASSWORD=password |
|
iDRAC port. Default: |
|
iDRAC username. If the username is not provided, then the environment variable Example: export IDRAC_USERNAME=username |
|
Insert a custom comment into the LC logs during automation workflows. Maximum length is 256 characters. Requires ConfigureManager or Login+TestAlerts privilege. Returns inserted_entry_id and inserted_entry_timestamp on success. |
|
Whether to wait for the running job completion or not. Choices:
|
|
Substring to search for in log messages (case-insensitive). Applied client-side after server-side filters. Use for searching specific keywords in log messages. |
|
List of severity levels to filter log entries. Uses server-side OData $filter for efficient querying. Valid values are Choices:
|
|
Network share or local path. CIFS, NFS network share types are supported. |
|
Network share user password. This option is mandatory for CIFS Network Share. |
|
Network share user in the format ‘user@domain’ or ‘domain\user’ if user is part of a domain else ‘user’. This option is mandatory for CIFS Network Share. |
|
Storage overflow monitoring threshold percentage. When storage utilization exceeds this threshold, a warning is returned. Set to 0 to disable storage monitoring. Default is 80 percent. Default: |
|
The socket level timeout in seconds. Default: |
|
If Configure Prior to collection version Choices:
|
|
Enable compliance export verification with entry count comparison. When enabled, compares expected vs actual entry count after export. Returns export_verification field with verification results. Choices:
|
Notes
Note
This module requires ‘Administrator’ privilege for idrac_user.
Exporting data to a local share is supported only on iDRAC9-based PowerEdge Servers and later.
Run this module from a system that has direct access to Dell iDRAC.
This module supports both IPv4 and IPv6 address for idrac_ip.
This module does not support
check_mode.No job will be created when exporting data to a local share in iDRAC9 and iDRAC 10.
The insert_comment parameter requires ConfigureManager or Login+TestAlerts privilege.
Server-side OData $filter is used for date_start, date_end, severity, and category filters.
The message_contains filter is applied client-side after server-side filtering.
Examples
---
- name: Export lifecycle controller logs to NFS share.
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "192.168.0.0:/nfsfileshare"
- name: Export lifecycle controller logs to CIFS share.
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "\\\\192.168.0.2\\share"
share_user: "share_user_name"
share_password: "share_user_pwd"
- name: Export lifecycle controller logs to LOCAL path.
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
- name: Filter logs by date range (AC-001).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
date_start: "2026-08-01T00:00:00Z"
date_end: "2026-08-31T23:59:59Z"
- name: Filter logs by severity (AC-002).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
severity:
- Critical
- Warning
- name: Export logs in CSV format (AC-003).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc/logs.csv"
export_format: "csv"
- name: Export logs in JSON format with metadata envelope (AC-005).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc/logs.json"
export_format: "json"
date_start: "2026-08-01"
severity:
- Critical
- name: Filter logs by category and message content.
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
category:
- Audit
- Configuration
message_contains: "firmware"
- name: Fetch LC log metadata only.
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/tmp"
fetch_metadata_only: true
- name: Export with compliance verification (AC-006).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
verify_export: true
- name: Combined filters with optimization (AC-007).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
date_start: "2026-08-01"
severity:
- Critical
category:
- SystemHealth
filter_optimization: "single_query"
- name: Export with storage overflow monitoring (AC-008).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/example/export_lc"
storage_threshold_pct: 75
- name: Insert comment into LC logs (AC-009).
dellemc.openmanage.idrac_lifecycle_controller_logs:
idrac_ip: "190.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
share_name: "/tmp"
insert_comment: "Automation workflow started - backup initiated"
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: |
|
Export verification results when verify_export is true. Returned: when verify_export is true Sample: |
|
Number of log entries exported to file. Returned: when export_format is specified Sample: |
|
Summary of filters that were applied to the query. Returned: when any filter parameter is specified Sample: |
|
ID of the inserted comment entry. Returned: when insert_comment is provided Sample: |
|
Timestamp of the inserted comment entry. Returned: when insert_comment is provided Sample: |
|
List of filtered log entries when filters are applied. Returned: when filters are applied and export_format is not specified Sample: |
|
Status of the export operation along with job details and file path. Returned: success Sample: |
|
Log service metadata when fetch_metadata_only is true. Returned: when fetch_metadata_only is true Sample: |
|
Status of the export lifecycle controller logs job. Returned: always Sample: |
|
Storage overflow warning when utilization exceeds threshold. Returned: when storage utilization exceeds storage_threshold_pct Sample: |
Authors
Rajeev Arakkal (@rajeevarakkal)
Anooja Vardhineni (@anooja-vardhineni)
Sapana Gupta (@sapana05)