Server Management - Remote Server Management
1836412 Members
2199 Online
110100 Solutions
New Discussion

[iLO][ansible] “category” and “command” parameters

 
SOLVED
Go to solution
tdene
Occasional Contributor

[iLO][ansible] “category” and “command” parameters

Hello,

We have many ProLiant DL360 Gen11; iLO 6 1.66.

We want to use ansible for change and verify some parameter but we don't understand how to configure theres modules.

Ansible module are redfish_info, redfish_command, redfish_config, ilo_redfish_config, ilo_redfish_info from https://github.com/HewlettPackard/ilo-ansible-collection/tree/main.

1) If I've understood correctly, the ilo_redshift modules are overlays on the redshift modules to address Dell-specific functionality. Right ?

2) Where can I find the list of categories and commands that can be placed in “category” and “command”?
For example, I search to set 'Power Regulator Settings' to 'Dynamic Power Savings Mode'.
How can I found the “category” and “command”? I have found the parameter "EnergyPerfBias", but the Bios categorie doesn't exist
https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/ilo5/ilo5_309/ilo5_bios_resourcedefns309/#attributes

thx

1 REPLY 1
tdene
Occasional Contributor
Solution

Re: [iLO][ansible] “category” and “command” parameters

ok

For example: if you search 'Power Regulator Settings'.
You find it on https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/ilo5/ilo5_309/ilo5_bios_resourcedefns309/.
It's "EnergyPerfBias"

So it's on the systems category and it's a bios attribute (/redfish/v1/systems/{item}/bios)

So:


- name: Get Bios Attributes
   community.general.redfish_info:
   category: Systems
   command: GetBiosAttributes
   baseuri: "{{ iLO_ip }}"
   username: "{{ iLO_user }}"
   password: "{{ iLO_password }}"

- name: Set Energy Perf
   community.general.redfish_config:
   category: Systems
   command: SetBiosAttributes
   bios_attributes: "{ 'EnergyPerfBias': 'PowerSavingsMode'}"
   baseuri: "{{ iLO_ip }}"
   username: "{{ iLO_user }}"
   password: "{{ iLO_password }}"