Echo ipmi temp to /tmp for use in home assistant

This commit is contained in:
Marko Korhonen 2020-02-17 13:22:21 +02:00
parent 4014bd7671
commit 2da55dc5bd
3 changed files with 13 additions and 14 deletions

9
home/Scripts/ipmi-auto.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
IPMIHOST=10.0.0.82
IPMIUSER=ReekyMarko
IPMIPW={{@@ env['PASS_IPMI'] @@}}
IPMIEK=0000000000000000000000000000000000000000
printf "Activating dynamic fan control."
ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW -y $IPMIEK raw 0x30 0x30 0x01 0x01