Command Line
The gpsu binary is also the command-line client. The CLI reference lists every command and flag.
| Commands | Talk to | Who |
|---|---|---|
probe, handoff | An iDRAC directly | Anyone with the iDRAC’s credentials |
login, logout, status, mode | A running gpsu | Signed-in users |
curve | A running gpsu | Signed-in users. Changes need an admin. |
server, provider | A running gpsu | Admins |
owner reset | gpsu’s database | Anyone on gpsu’s host |
Talk to an iDRAC
| Command | Effect |
|---|---|
gpsu probe | Lists the iDRAC’s sensors. Each row shows the number, name, and entity you can select it by. |
gpsu handoff | Hands off the fans to the iDRAC at once |
gpsu probe --host idrac.example --username gpsu --password-file /run/secrets/idrac
gpsu handoff --host idrac.example --username gpsu --password-file /run/secrets/idracUse gpsu handoff when gpsu is stopped and the fans are stuck at a manual speed.
Sign in
gpsu login --server https://gpsu.examplegpsu login prints a link and a code. Open the link on any device and enter the code. Then approve the sign-in.
- Sign in with a browser at least once before you use
gpsu login. - The identity provider needs a public client with the device code flow turned on. An admin adds it under Settings › Sign-in in Command-line clients.
gpsu logout removes the saved sign-in from this machine.
| Variable or flag | Sets |
|---|---|
--server, GPSU_SERVER | The URL of the running gpsu |
GPSU_TOKEN | A personal API token to use instead of gpsu login |
Check status
gpsu status shows who controls each server’s fans and the latest readings.
gpsu statusChange who controls the fans
| Command | Effect |
|---|---|
gpsu mode r730xd fixed 40 --for 2h | Holds the fans at 40% for 2 hours |
gpsu mode r730xd idrac --for 30m | Hands off the fans to the iDRAC for 30 minutes |
gpsu mode r730xd curve | Ends the override |
gpsu mode --all idrac | Hands off every server’s fans to the iDRAC |
Without --for, an override lasts for the default an admin sets under Settings › Defaults. Overrides covers each kind and its limits.
Manage servers
Only admins can manage servers.
| Command | Effect |
|---|---|
gpsu server list | Lists each server and whether its fan control is running |
gpsu server show | Lists a server’s settings and the flag for each |
gpsu server add | Adds a server and starts fan control for it |
gpsu server edit | Changes a server and restarts its fan control |
gpsu server test | Reads the server’s sensors without opening a second iDRAC session |
gpsu server remove | Hands off the server’s fans to the iDRAC and removes it |
gpsu server add r730xd --host idrac.example --username gpsu --template balanced
gpsu server edit r730xd --hysteresis 2
gpsu server edit r730xd --passwordAt a terminal, add and edit --password ask for the iDRAC password twice. Otherwise they read it from standard input. Servers describes every setting.
Manage curves
gpsu curve manages each server’s curve.
| Command | Effect |
|---|---|
gpsu curve show | Shows the running curve |
gpsu curve history | Lists its revisions |
gpsu curve export | Writes the curve as YAML |
gpsu curve import | Saves a YAML file as a new revision |
gpsu curve rollback | Runs an earlier revision |
gpsu curve pin | Stops learning from changing the curve |
gpsu curve unpin | Lets learning change it again |
gpsu curve learn | Turns learning on |
gpsu curve unlearn | Turns learning off |