dell / redfish-ansible-module

Ansible modules for Out-Of-Band Controllers using Redfish APIs
GNU General Public License v3.0
197 stars 80 forks source link

DELL Redfish API to forward DELL R840 diagnostic logs as a syslog to syslog server #115

Closed ashokbeh closed 2 years ago

ashokbeh commented 2 years ago

Hi,

Would appreciate if you can help on forwarding hardware diagnostic logs as a syslog to syslog server. Is there any API available for iDRAC9 to perform this activity.

Regards Ashok Behera

anupamaloke commented 2 years ago

@ashokbeh, you can add the syslog servers in iDRAC and iDRAC will forward the logs:

  - name: Enable Syslog and set Syslog servers in iDRAC
    community.general.idrac_redfish_config:
      category: Manager
      command: SetManagerAttributes
      resource_id: iDRAC.Embedded.1
      manager_attributes:
        SysLog.1.SysLogEnable: "Enabled"
        SysLog.1.Server1: "{{ syslog_server1 }}"
        SysLog.1.Server2: "{{ syslog_server2 }}"
      baseuri: "{{ idrac_ip}}"
      username: "{{ idrac_username}}"
      password: "{{ idrac_password }}" 
ashokbeh commented 2 years ago

Thank you Anupam. Will try this method.