23 lines
No EOL
908 B
Bash
Executable file
23 lines
No EOL
908 B
Bash
Executable file
#!/usr/bin/env bash
|
||
|
||
# ----------------------------------------------------------------------------------
|
||
# Script for setting manual fan speed to 2160 RPM (on my R710)
|
||
#
|
||
# Requires:
|
||
# ipmitool – apt-get install ipmitool
|
||
# slacktee.sh – https://github.com/course-hero/slacktee
|
||
# ----------------------------------------------------------------------------------
|
||
|
||
|
||
# IPMI SETTINGS:
|
||
# Modify to suit your needs.
|
||
# DEFAULT IP: 192.168.0.120
|
||
IPMIHOST=10.0.100.20
|
||
IPMIUSER=root
|
||
IPMIPW=calvin
|
||
IPMIEK=0000000000000000000000000000000000000000
|
||
|
||
printf "Activating manual fan speeds! (2160 RPM)" | systemd-cat -t R710-IPMI-TEMP
|
||
echo "Activating manual fan speeds! (2160 RPM)" | slacktee.sh -t "R710-IPMI-TEMP [$(hostname)]"
|
||
ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW -y $IPMIEK raw 0x30 0x30 0x01 0x00
|
||
ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW -y $IPMIEK raw 0x30 0x30 0x02 0xff 0x09 |