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

URI path to get the LC log info #119

Open
AnaghaNooji opened this issue Jul 12, 2022 · 0 comments
Open

URI path to get the LC log info #119

AnaghaNooji opened this issue Jul 12, 2022 · 0 comments

Comments

@AnaghaNooji
Copy link

Hi,

I have created the playbook using uri to fetch the LC logs. I'm pasting the task as well as the error.
Please help me why this is failing. Thanks in advance!


  • name: Get the complete LC Logs
    hosts: local
    gather_facts: no
    become: False

    vars:
    idrac: "{{user}}"
    lc_log_url: Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog

    tasks:

    • name: get manager id
      uri:
      url: "https://{{ idrac }}/redfish/v1/Managers"
      user: "{{ user }}"
      url_password: "{{ password }}"
      validate_certs: no
      register: resource_manager

    • name: store manager_id as fact
      set_fact:
      manager_id: "{{ id }}"

    • name: Get the LC log from the url
      uri:
      url: "https//{{idrac}}{{manager_id}}/{{lc_log_url}}"
      user: "{{ user }}"
      url_password: "{{ password }}"
      validate_certs: no
      body_format: json
      method: "POST"
      headers:
      Accept: "/"
      force_basic_auth: yes
      status_code: 400
      register: lc_log

Error:
fatal: []: FAILED! => {"changed": false, "msg": "unknown url type: 'https//[]/redfish/v1/Managers/iDRAC.Embedded.1/Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog'", "status": -1, "url": "https//[]/redfish/v1/Managers/iDRAC.Embedded.1/Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog"}

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

No branches or pull requests

1 participant