Skip to content

Servers

Servers live in gpsu’s database. Admins manage them from any of these:

InterfaceWhere
Web UISettings › Servers
CLIgpsu server
API/api/v1/settings/servers

Changes apply at once without a restart.

Note

Managing servers needs one place to keep iDRAC passwords:

Add a server

Sign in as an admin

With an identity provider, run gpsu login. With a local account, use a personal API token from My account:

export GPSU_SERVER=https://gpsu.example.com GPSU_TOKEN=gpsu_...

Add the server

gpsu server add r730xd --host idrac.example --username gpsu --template balanced

Pick a template from Templates. gpsu prompts for the iDRAC password twice. You can also pipe it in from a file:

gpsu server add r730xd --host idrac.example --username gpsu --template balanced < idrac-password

Tip

No flag takes a password as its value. That keeps passwords out of your shell history.

Check the server

gpsu server list         # each server and whether its fan control runs
gpsu server test r730xd  # the firmware and every sensor

list says why fan control didn’t start. test shows the role of each sensor gpsu reads.

Change or remove a server

CommandEffect
gpsu server show r730xdLists every setting, its flag, and whether it’s at its default
gpsu server edit r730xd --hysteresis 2Changes only the settings you name
gpsu server edit r730xd --min-percent defaultReturns a setting to its default
gpsu server remove r730xdHands off the fans to the iDRAC and removes the server
  • Saving an edit restarts fan control for that server. Its fans run in iDRAC auto for a moment.
  • An edit with an invalid value changes nothing.
  • A removed server’s readings stay until retention removes them. Its curve revisions stay in the database.

Settings

API fieldFlagDefaultDescription
nameFirst argumentLowercase letters, digits, ., -, and _. It can’t change after you add the server.
host--hostThe iDRAC’s address, with an optional port
username--usernameThe iDRAC user
template--templateThe template the server’s curve starts from. See Templates.
passwordVault--password-vaultA key in Vault that holds the password. See Passwords.
hysteresis--hysteresisFrom the templateHow many degrees the control temperature must change before the fan speed follows
privilege--privilegeadministratorThe IPMI privilege gpsu logs in with: user, operator, or administrator. Below administrator needs passive mode.
passive--passiveDisabledRecords the fan speed gpsu would set without sending it. See Passive mode.
interval--interval5sHow long gpsu waits between readings
timeout--timeout2sHow long one exchange with the iDRAC may take
cipherSuites--cipher-suites17,3The IPMI cipher suites gpsu offers, in order of preference
pcieCooling--pcie-coolingunchangedWhat the iDRAC does for unrecognized PCIe cards. See Third-party PCIe cooling.
limits--min-percent and othersThe fan speed bounds. See Hard Limits.
sensors--cpu-sensor and othersThe sensors gpsu reads. See Sensors.
anticipation--anticipation and othersDisabledRamps the fans shortly before load that recurs at the same time each day. See Anticipation.
inletHold--inlet-hold and --inlet-hold-timeDisabledMakes a new inlet reading last before the inlet offsets use it. See Inlet hold.

Templates

TemplateControl temperatureTemperature limitsHysteresisBest for
quietHottest CPUCPU 85 °C, inlet 35 °C, exhaust 70 °C2 °CQuiet fans and warmer CPUs
balancedHottest CPUCPU 85 °C, inlet 35 °C, exhaust 70 °C2 °CA balance of noise and temperature
performanceHottest CPUCPU 85 °C, inlet 35 °C, exhaust 70 °C2 °CCool CPUs and louder fans
r730xd-legacyAverage of the CPUs, in whole degreesControl 75 °C, inlet 26 °C, exhaust 65 °CNoneMatching the widely shared R730xd fan script exactly
  • quiet, balanced, and performance differ only in their template curve. See Curves.
  • These three hand off the fans to the iDRAC when the inlet temperature can’t be read.
  • A server’s curve starts as its template curve.

r730xd-legacy reproduces the script exactly:

Inlet temperatureAdded to the control temperature
Up to 20 °CNothing
Over 20 °C, up to 21 °C10 °C
Over 21 °C, up to 24 °C15 °C
Over 24 °C, up to 26 °C20 °C

When the CPUs differ by more than 15 °C, it uses the hotter CPU in place of the average.

Tip

If you don’t need to match the script exactly, set --hysteresis 2 on an r730xd-legacy server. On an R730xd that cut fan speed changes by a third and reversals by half, for 0.1 points of mean fan.

Passwords

Stored asSet withRotate with
Encrypted with the seal keyThe prompt on gpsu server add, or Settings › Serversgpsu server edit r730xd --password
A key in Vault--password-vault gpsu/r730xd#passwordA new value in Vault

gpsu reads a password from Vault at each login. A rotated password takes effect at the next login.

--password-vault takes [MOUNT:]PATH#KEY. The mount defaults to secret. For example, kv:gpsu/r730xd#password reads the key password of gpsu/r730xd in the kv mount.

Refused logins

An iDRAC can block an address after a few failed logins. gpsu backs off to avoid that:

RefusalWait before the next login
First1 minute
Each after thatDouble the last wait, up to 16 minutes

Fallback password

gpsu keeps the last password the iDRAC accepted. It falls back to that password:

  • when Vault can’t be reached
  • for one login, when the iDRAC refuses a new password

Fallback address

gpsu looks up the iDRAC’s name again at every login. When the lookup fails, gpsu tries once more at the address where it last logged in. A host that has since taken that address learns nothing from the try. gpsu checks that the other end knows the password before it sends anything derived from it.

Sensors

By default gpsu reads every CPU temperature, Inlet Temp, and Exhaust Temp. These names match 13th-generation PowerEdge servers. Other generations may need their own selectors.

Change them with selectors:

# Select sensors by field
gpsu server edit r730xd --cpu-sensor entity=3 --inlet-sensor "name=Inlet Temp" --exhaust-sensor number=1
# Read no exhaust sensor
gpsu server edit r730xd --exhaust-sensor none
# Return to the defaults
gpsu server edit r730xd --default-sensors
ItemDetail
Fieldsnumber, name, entity, and instance, as key=value pairs joined by commas
MatchingEvery field you set must match.
namePut name last. Its value may contain commas.
--cpu-sensorReplaces every CPU selector. Repeat the flag for more than one selector. One selector may match more than one CPU.
noneAs the value of --inlet-sensor or --exhaust-sensor, reads no sensor for it
--default-sensorsResets every selector
In the APIsensors holds cpus, inlet, and exhaust. Each selector is an object such as {"entity": 3}.

gpsu server test and gpsu probe list every sensor with these fields.

Third-party PCIe cooling

In iDRAC auto, the iDRAC speeds up the fans for any PCIe card it doesn’t recognize. --pcie-cooling sets whether it does:

ValueEffect
unchangedgpsu leaves the iDRAC’s setting as it is.
enabledgpsu enables the response each time fan control starts.
disabledgpsu disables the response each time fan control starts.

Warning

The iDRAC keeps this setting. It still applies after gpsu hands off the fans to the iDRAC or stops. Disable it only if every card stays cool at the iDRAC’s own fan speeds.

  • A server in passive mode never changes it.
  • The current value shows in Settings › Servers, in gpsu server show, and in the API’s pcieCooling.
  • Test in Settings › Servers and gpsu probe both read the current value from the iDRAC.

Passive mode

In passive mode gpsu decides and records a fan speed at every reading. It sends no fan command. The iDRAC keeps running the fans.

Set withApplies to
--passive on a serverThat server
gpsu serve --passiveEvery server

Important

A server whose privilege is user or operator can’t send fan commands. Set --passive on that server itself. If it relies on gpsu serve --passive, it won’t start once gpsu runs without that flag.

Trials

Anticipation and the inlet hold each run as a trial. A trial can record what it would do before it changes anything.

ValueIn the web UIWhat it does
offDisabledNothing
recordRecord onlyRecords the fan speed the trial would set. Fan control is unchanged.
alternateAlternateAnticipation only. Ramps for every other expected load, so the loads it skips show the difference.
onEnabledApplies the trial
  • A trial that isn’t disabled records a Trial target series. It holds the fan speed with every running trial applied. Chart it beside Policy target to compare.
  • The hard limits apply to every speed a trial sets. An override still wins.

Anticipation

Anticipation learns when load recurs at the same time each day, such as a scheduled job. It ramps the fans up shortly before that load starts. The heatsinks start cooler, and the CPUs peak lower.

API fieldFlagDefaultDescription
anticipation.trial--anticipationoffoff, record, alternate, or on. See Trials.
anticipation.ramp--anticipation-ramp4Points of fan speed added for each 10 W of load expected. Up to 10.
anticipation.lead--anticipation-lead1mHow long before the load starts the ramp begins. Up to 30m.
  • gpsu looks for load in the last 7 days of power readings. It looks again every hour, and soon after a server is added or changed.
  • Load counts when power rises at least 20 W for at least 2 minutes. It must start within a few minutes of the same time on at least 3 days, and on at least half the days with readings.
  • A ramp lasts until the load usually ends. It adds at most 20 points.
  • gpsu checks once that the load came, 90 seconds after its usual start. Power over the 30 seconds before must average at least half the expected rise above the power before the load. Otherwise the ramp stops until the next load.
  • After that check, the ramp lasts until the load usually ends. A brief dip in power doesn’t stop it.
  • An Anticipation series records the points added at each reading.
  • An Expected ramp series records the points anticipation would add, whether or not it added them.
  • Charts shade each anticipated load and show whether the fans were ramped for it. See Anticipated load.

Note

A new server needs about 3 days of readings before anticipation finds any load.

Inlet hold

The inlet hold makes a new inlet reading last a while before the template’s inlet offsets use it. An inlet that flickers by a degree then no longer moves the fans. It only affects templates with inlet offsets, such as r730xd-legacy.

API fieldFlagDefaultDescription
inletHold.trial--inlet-holdoffoff, record, or on. It can’t alternate. See Trials.
inletHold.hold--inlet-hold-time30mHow long a new inlet reading must last. Up to 24h.
  • The temperature limits always use the inlet reading itself.
  • While the inlet rises, the fans can run slower than without the hold, for up to the hold time.