Hi Community,
I use IPMITOOL to lower fan noise in TrueNas host (Dell R320). The script dynamically adjust fan speed depending on current temperature and runs every 15 minutes. I've added it to Cron Jobs in TrueNas and it works. However, for some reason, when I move host address, user and password to variables it doesn't work. Any idea why?
Works:
ipmitool -I lanplus -H 192.168.1.10 -U root -P 1A!bcd357 raw 0x30 0x30 0x02 0xff 0x1e
Doesn't work:
IPMIHOST=192.168.1.10
IPMIUSER=root
IPMIPW=1A!bcd357
ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW raw 0x30 0x30 0x02 0xff 0x1e
Regards,
Przemek
I use IPMITOOL to lower fan noise in TrueNas host (Dell R320). The script dynamically adjust fan speed depending on current temperature and runs every 15 minutes. I've added it to Cron Jobs in TrueNas and it works. However, for some reason, when I move host address, user and password to variables it doesn't work. Any idea why?
Works:
ipmitool -I lanplus -H 192.168.1.10 -U root -P 1A!bcd357 raw 0x30 0x30 0x02 0xff 0x1e
Doesn't work:
IPMIHOST=192.168.1.10
IPMIUSER=root
IPMIPW=1A!bcd357
ipmitool -I lanplus -H $IPMIHOST -U $IPMIUSER -P $IPMIPW raw 0x30 0x30 0x02 0xff 0x1e
Regards,
Przemek