Local iDRAC management

This commit is contained in:
tigerblue77 2022-04-11 19:01:44 +02:00
parent 885e899222
commit 82d94b6733
3 changed files with 25 additions and 10 deletions

View file

@ -1,9 +1,14 @@
#!/bin/bash
echo $IDRAC_HOST >> /host.txt
echo $IDRAC_USER >> /user.txt
echo $IDRAC_PW >> /pw.txt
echo $FANSPEED >> /fanspeed.txt
echo "Host: `cat /host.txt`"
echo "User: `cat /user.txt`"
echo "PW: `cat /pw.txt`"
if [[ $IDRAC_HOST != "local" ]]
then
echo "User: `cat /user.txt`"
echo "PW: `cat /pw.txt`"
fi
echo "Fan speed `cat /fanspeed.txt`"