# Usage of community.general.ilo\_redfish\_config

**URL:** <https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591>\
**Category:** Get Help\
**Tags:** collections, galaxy-ng\
**Created:** [June 17, 2024, 11:31am UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591 "2024-06-17T11:31:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ishu](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@Ishu](https://forum.ansible.com/u/Ishu)\
**Post date:** [June 17, 2024, 11:31am UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/1 "2024-06-17T11:31:42Z")

</div>

Hi,  
I am new to ansible and currently working on to do some automation on HP ILO servers to configure some settings. I came across Ansible ILO collection [Ansible Galaxy](https://galaxy.ansible.com/ui/repo/published/hpe/ilo/docs/) which uses various modules, for example - community.general.ilo\_redfish\_config that I can use to perform various tasks. However, I could not find any information about parameter “command” in this module. Please reger below code that provide value “SetNTPServers” to command parameter.

- name: Set NTP Servers  
community.general.ilo\_redfish\_config:  
category: Manager  
command: SetNTPServers  
baseuri: 15.X.X.X  
username: Admin  
password: Testpass123  
attribute\_name: StaticNTPServers  
attribute\_value: X.X.X.X  
As per documentation, “command” parameter accepts " List of commands to execute on iLO"". Can someone please suggest where I can find the list of values that are accepted in this “command”. Are there specific values that we can use here or is it just userfriendly name and based on the attribute\_name it will do the required task ?  
There are couple of examples on this but there is no information about from where these values are taken.

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [June 17, 2024, 11:51am UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/2 "2024-06-17T11:51:50Z")

</div>

I guess you would need to refer to the HP documentation for the available commands?

Perhaps they are documented here?

> **[HPE Redfish® services](https://servermanagementportal.ext.hpe.com/docs/redfishservices/)**
>
> HPE Redfish services and clients documentations.

---

<div class="post-metadata">

**Author:** ![Ishu](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@Ishu](https://forum.ansible.com/u/Ishu)\
**Post date:** [June 17, 2024, 11:58am UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/3 "2024-06-17T11:58:07Z")

</div>

Hi Chris,  
Thanks for the reply.  
I have tried this already but I could not find anything in this documenation also. Like I said, I am new to this so maybe missing something so thought of taking help here

---

<div class="post-metadata">

**Author:** ![Ishu](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@Ishu](https://forum.ansible.com/u/Ishu)\
**Post date:** [June 18, 2024, 12:07pm UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/4 "2024-06-18T12:07:12Z")

</div>

Just in case someone comes over this topic again. I have found the solution.  
Commands that modules accepts are listed in  
[ilo-ansible-collection/plugins/modules at main · HewlettPackard/ilo-ansible-collection · GitHub](https://github.com/HewlettPackard/ilo-ansible-collection/tree/main/plugins/modules/) ilo\_redfish\_config.py under

CATEGORY\_COMMANDS\_ALL = {  
“Manager”: [  
“SetTimeZone”,  
“SetDNSserver”,  
“SetDomainName”,  
“SetNTPServers”,  
“SetWINSReg”,  
]  
}

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [June 18, 2024, 3:10pm UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/5 "2024-06-18T15:10:04Z")

</div>

BTW There’s also a collection [hpe.ilo](https://galaxy.ansible.com/ui/repo/published/hpe/ilo/). If you’re trying to automate HPE hardware / iLO and don’t know it yet, it might be worth to have a look at.

It’s not part of the Ansible Community Package so you would have to install it separately, though.

---

<div class="post-metadata">

**Author:** ![Ishu](https://avatars.discourse-cdn.com/v4/letter/i/c4cdca/32.png) [@Ishu](https://forum.ansible.com/u/Ishu)\
**Post date:** [June 18, 2024, 4:33pm UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/6 "2024-06-18T16:33:14Z")

</div>

Module that I asked question for is part of the ilo collection, so for me its not useful because it supports only few commands as of now.  
However, I have figured out for now to use API calls to modify the settings I need.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 18, 2024, 4:34pm UTC](https://forum.ansible.com/t/usage-of-community-general-ilo-redfish-config/6591/7 "2024-07-18T16:34:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
