Initial commit

Added readme files and my R710 IPMI temperature monitor script.
This commit is contained in:
NoLooseEnds 2017-10-19 10:10:10 +02:00
commit 5a828b496f
4 changed files with 75 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.DS_Store

24
R710-IPMI-TEMP/R710-IPMITemp.sh Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Requires ipmitool  apt-get install ipmitool
# Tested on ubuntu
# IPMI
IPMIHOST=192.168.0.120
IPMIUSER=root
IPMIPW=calvin
# TEMPERATURE
MAXTEMP=27
TEMP=$(ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW sdr type temperature |grep Ambient |grep -Po '\d{2}')
if [[ $TEMP > $MAXTEMP ]];
then
printf "Temperature is too high! ($TEMP C) Activating dynamic fan control!" | systemd-cat -t R710-IPMI-TEMP
echo "Temperature is too high! ($TEMP C) Activating dynamic fan control!"
ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW raw 0x30 0x30 0x01 0x01
else
printf "Temperature is OK ($TEMP C)" | systemd-cat -t R710-IPMI-TEMP
echo "Temperature is OK ($TEMP C)"
fi

45
R710-IPMI-TEMP/readme.md Normal file
View file

@ -0,0 +1,45 @@
# Howto: Setting the fan speed of the Dell R610/R710
Inspired by [this Reddit post](https://www.reddit.com/r/homelab/comments/72qust/r510_noise/dnkofsv/) by /u/whitekidney
1. Enable IPMI in iDrac
2. Install ipmitool on linux, win or mac os
3. Run the following command to issue IPMI commands `ipmitool -I lanplus -H <iDracip> -U root -P <rootpw> <command>`
**Enable manual/static fan speed:**
`raw 0x30 0x30 0x01 0x00`
**Set fan speed:**
(Use i.e http://www.hexadecimaldictionary.com/hexadecimal/0x14/ to calculate speed)
*3000 RPM*: `raw 0x30 0x30 0x02 0xff 0x10`
*2160 RPM*: `raw 0x30 0x30 0x02 0xff 0x0a`
**Disable / Return to automatic fan control:**
`raw 0x30 0x30 0x01 0x01`
**Other: List all output from IPMI**
`sdr elist all`
**Example of a command:**
`ipmitool -I lanplus -H 192.168.0.120 -U root -P calvin raw 0x30 0x30 0x02 0xff 0x10`
# Safety BASH script
I made a BASH script to check the temperature, and if it's higher than XX (27 degrees C in my case) it sends a raw command to restore automatic fan control.
Script [Reddit thread](https://www.reddit.com/r/homelab/comments/779cha/manual_fan_control_on_r610r710_including_script/)
*****
**Disclaimer:**
I'm by no means good at bash scripting or regex, etc. but it seems to work fine for me.
TLDR; I take _NO_ responsibility if you mess up anything.

5
readme.md Normal file
View file

@ -0,0 +1,5 @@
# INFO
This is my personal scripts. Feel free to modify and improve.
They are provided "as is", and I take no responsibility if they break something on your end.