Skip to content
Command Line

Command Line

The gpsu binary is also the command-line client. The CLI reference lists every command and flag.

CommandsTalk toWho
probe, handoffAn iDRAC directlyAnyone with the iDRAC’s credentials
login, logout, status, modeA running gpsuSigned-in users
curveA running gpsuSigned-in users. Changes need an admin.
server, providerA running gpsuAdmins
owner resetgpsu’s databaseAnyone on gpsu’s host

Talk to an iDRAC

CommandEffect
gpsu probeLists the iDRAC’s sensors. Each row shows the number, name, and entity you can select it by.
gpsu handoffHands 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/idrac

Use gpsu handoff when gpsu is stopped and the fans are stuck at a manual speed.

Sign in

gpsu login --server https://gpsu.example

gpsu 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 flagSets
--server, GPSU_SERVERThe URL of the running gpsu
GPSU_TOKENA 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 status

Change who controls the fans

CommandEffect
gpsu mode r730xd fixed 40 --for 2hHolds the fans at 40% for 2 hours
gpsu mode r730xd idrac --for 30mHands off the fans to the iDRAC for 30 minutes
gpsu mode r730xd curveEnds the override
gpsu mode --all idracHands 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.

CommandEffect
gpsu server listLists each server and whether its fan control is running
gpsu server showLists a server’s settings and the flag for each
gpsu server addAdds a server and starts fan control for it
gpsu server editChanges a server and restarts its fan control
gpsu server testReads the server’s sensors without opening a second iDRAC session
gpsu server removeHands 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 --password

At 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.

CommandEffect
gpsu curve showShows the running curve
gpsu curve historyLists its revisions
gpsu curve exportWrites the curve as YAML
gpsu curve importSaves a YAML file as a new revision
gpsu curve rollbackRuns an earlier revision
gpsu curve pinStops learning from changing the curve
gpsu curve unpinLets learning change it again
gpsu curve learnTurns learning on
gpsu curve unlearnTurns learning off