Skip to content

Instantly share code, notes, and snippets.

@kriipke
Last active October 26, 2022 19:16
Show Gist options
  • Select an option

  • Save kriipke/5e52c38e163a54970c9efaa67272d1b1 to your computer and use it in GitHub Desktop.

Select an option

Save kriipke/5e52c38e163a54970c9efaa67272d1b1 to your computer and use it in GitHub Desktop.
sets fan speed on local R410 using ipmitool, includes shell script & functionally identical systemd unit file (which runs the command @ boot)
# /etc/systemd/system/ipmifans.service
[Unit]
Description=This unit change the fan speed speed to decrease noise
After=basic.target
Wants=default.target
[Service]
Type=oneshot
ExecStart=/usr/bin/ipmitool -U root raw 0x30 0x30 0x02 0xff 0x1e
ExecStartPre=/usr/bin/ipmitool -U root raw 0x30 0x30 0x01 0x00
[Install]
WantedBy=multi-user.target
#!/bin/sh
ipmitool -U root raw 0x30 0x30 0x01 0x00
ipmitool -U root raw 0x30 0x30 0x02 0xff 0x1e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment