Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redfish API to evaluate DELL R840 Lifcycle logs for error code MEM0802/MEM0804 #117

Open
ashokbeh opened this issue Jun 10, 2022 · 1 comment
Labels

Comments

@ashokbeh
Copy link

Hi,

Would appreciate if we can be helped with Redfish API that can evaluate Lifecycle logs for iDRAC9 on error codes MEM0802/MEM0804.

@anupamaloke
Copy link
Collaborator

@ashokbeh, I know this is a pretty late response. If you are looking to query LC log with a specific Message ID (such as for e.g. MEM0802 or MEM0804), then you can use something like below:

  tasks:
  - name: Get LC log with message ID MEM0802
    ansible.builtin.uri:
      url: "https://{{ inventory_hostname }}/redfish/v1/Managers/iDRAC.Embedded.1/LogServices/Lclog/Entries?$filter=MessageId%20eq%20%27MEM0802%27"
      user: "{{ user }}"
      password: "{{ password }}"
      headers:
        Accept: "application/json"
        OData-Version: "4.0"
      validate_certs: no
      force_basic_auth: yes
    register: result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants