Enable CI/CD by adding .onedev-buildspec.yml
| ilo4ctrl | Loading last commit info... | |
| .gitignore | ||
| README.md | ||
| ilo4ctrl.sln |
README.md
ilo4ctrl
ilo4ctrl is a simple command-line tool designed to control the fan speeds of HP servers via the iLO (Integrated Lights-Out) interface using SSH.
Prerequisites
- .NET 9.0 SDK (to build the project)
- An HP server with iLO access (SSH enabled)
Configuration
Before using the tool, you must create a configuration file to store your iLO connection details.
- Create the directory:
~/.ilo4ctrl - Create a file named
config.iniinside that directory. - Add the following content, replacing the placeholders with your actual iLO credentials:
[ilo]
host=YOUR_ILO_IP_ADDRESS
username=YOUR_ILO_USERNAME
password=YOUR_ILO_PASSWORD
Usage
Run the tool providing the desired fan speed as a percentage (0-100).
./ilo4ctrl <fan-speed-percentage>
Example
To set the fans to 35% speed:
./ilo4ctrl 35
Building
You can build the project using the standard dotnet build command.
Building a Self-Contained Binary
To build a single, self-contained binary for Linux (x64) that does not require the .NET runtime to be installed on the target machine, use the following command:
dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:IncludeAllContentForSelfExtract=true
The resulting binary will be located in the bin/Release/net9.0/linux-x64/publish/ directory.