Servers
Servers live in gpsu’s database. Admins manage them from any of these:
| Interface | Where |
|---|---|
| Web UI | Settings › Servers |
| CLI | gpsu server |
| API | /api/v1/settings/servers |
Changes apply at once without a restart.
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 balancedPick 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-passwordTip
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 sensorlist says why fan control didn’t start. test shows the role of each sensor gpsu reads.
Change or remove a server
| Command | Effect |
|---|---|
gpsu server show r730xd | Lists every setting, its flag, and whether it’s at its default |
gpsu server edit r730xd --hysteresis 2 | Changes only the settings you name |
gpsu server edit r730xd --min-percent default | Returns a setting to its default |
gpsu server remove r730xd | Hands 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 field | Flag | Default | Description |
|---|---|---|---|
name | First argument | Lowercase letters, digits, ., -, and _. It can’t change after you add the server. | |
host | --host | The iDRAC’s address, with an optional port | |
username | --username | The iDRAC user | |
template | --template | The template the server’s curve starts from. See Templates. | |
passwordVault | --password-vault | A key in Vault that holds the password. See Passwords. | |
hysteresis | --hysteresis | From the template | How many degrees the control temperature must change before the fan speed follows |
privilege | --privilege | administrator | The IPMI privilege gpsu logs in with: user, operator, or administrator. Below administrator needs passive mode. |
passive | --passive | Disabled | Records the fan speed gpsu would set without sending it. See Passive mode. |
interval | --interval | 5s | How long gpsu waits between readings |
timeout | --timeout | 2s | How long one exchange with the iDRAC may take |
cipherSuites | --cipher-suites | 17,3 | The IPMI cipher suites gpsu offers, in order of preference |
pcieCooling | --pcie-cooling | unchanged | What the iDRAC does for unrecognized PCIe cards. See Third-party PCIe cooling. |
limits | --min-percent and others | The fan speed bounds. See Hard Limits. | |
sensors | --cpu-sensor and others | The sensors gpsu reads. See Sensors. | |
anticipation | --anticipation and others | Disabled | Ramps the fans shortly before load that recurs at the same time each day. See Anticipation. |
inletHold | --inlet-hold and --inlet-hold-time | Disabled | Makes a new inlet reading last before the inlet offsets use it. See Inlet hold. |
Templates
| Template | Control temperature | Temperature limits | Hysteresis | Best for |
|---|---|---|---|---|
quiet | Hottest CPU | CPU 85 °C, inlet 35 °C, exhaust 70 °C | 2 °C | Quiet fans and warmer CPUs |
balanced | Hottest CPU | CPU 85 °C, inlet 35 °C, exhaust 70 °C | 2 °C | A balance of noise and temperature |
performance | Hottest CPU | CPU 85 °C, inlet 35 °C, exhaust 70 °C | 2 °C | Cool CPUs and louder fans |
r730xd-legacy | Average of the CPUs, in whole degrees | Control 75 °C, inlet 26 °C, exhaust 65 °C | None | Matching the widely shared R730xd fan script exactly |
quiet,balanced, andperformancediffer 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 temperature | Added to the control temperature |
|---|---|
| Up to 20 °C | Nothing |
| Over 20 °C, up to 21 °C | 10 °C |
| Over 21 °C, up to 24 °C | 15 °C |
| Over 24 °C, up to 26 °C | 20 °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 as | Set with | Rotate with |
|---|---|---|
| Encrypted with the seal key | The prompt on gpsu server add, or Settings › Servers | gpsu server edit r730xd --password |
| A key in Vault | --password-vault gpsu/r730xd#password | A 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:
| Refusal | Wait before the next login |
|---|---|
| First | 1 minute |
| Each after that | Double 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| Item | Detail |
|---|---|
| Fields | number, name, entity, and instance, as key=value pairs joined by commas |
| Matching | Every field you set must match. |
name | Put name last. Its value may contain commas. |
--cpu-sensor | Replaces every CPU selector. Repeat the flag for more than one selector. One selector may match more than one CPU. |
none | As the value of --inlet-sensor or --exhaust-sensor, reads no sensor for it |
--default-sensors | Resets every selector |
| In the API | sensors 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:
| Value | Effect |
|---|---|
unchanged | gpsu leaves the iDRAC’s setting as it is. |
enabled | gpsu enables the response each time fan control starts. |
disabled | gpsu 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’spcieCooling. - Test in Settings › Servers and
gpsu probeboth 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 with | Applies to |
|---|---|
--passive on a server | That server |
gpsu serve --passive | Every 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.
| Value | In the web UI | What it does |
|---|---|---|
off | Disabled | Nothing |
record | Record only | Records the fan speed the trial would set. Fan control is unchanged. |
alternate | Alternate | Anticipation only. Ramps for every other expected load, so the loads it skips show the difference. |
on | Enabled | Applies 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 field | Flag | Default | Description |
|---|---|---|---|
anticipation.trial | --anticipation | off | off, record, alternate, or on. See Trials. |
anticipation.ramp | --anticipation-ramp | 4 | Points of fan speed added for each 10 W of load expected. Up to 10. |
anticipation.lead | --anticipation-lead | 1m | How 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 field | Flag | Default | Description |
|---|---|---|---|
inletHold.trial | --inlet-hold | off | off, record, or on. It can’t alternate. See Trials. |
inletHold.hold | --inlet-hold-time | 30m | How 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.