Fixed platform check which was not working in LAN mode
This commit is contained in:
parent
e3ee64e4ee
commit
cf69481bbd
2 changed files with 13 additions and 13 deletions
|
|
@ -23,18 +23,6 @@ else
|
|||
HEXADECIMAL_FAN_SPEED=$(printf '0x%02x' $FAN_SPEED)
|
||||
fi
|
||||
|
||||
get_Dell_server_model
|
||||
|
||||
if [[ ! $SERVER_MANUFACTURER == "DELL" ]]
|
||||
then
|
||||
echo "/!\ Your server isn't a Dell product. Exiting." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Log main informations
|
||||
echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL"
|
||||
echo "iDRAC/IPMI host: $IDRAC_HOST"
|
||||
|
||||
# Check if the iDRAC host is set to 'local' or not then set the IDRAC_LOGIN_STRING accordingly
|
||||
if [[ $IDRAC_HOST == "local" ]]
|
||||
then
|
||||
|
|
@ -50,6 +38,18 @@ else
|
|||
IDRAC_LOGIN_STRING="lanplus -H $IDRAC_HOST -U $IDRAC_USERNAME -P $IDRAC_PASSWORD"
|
||||
fi
|
||||
|
||||
get_Dell_server_model
|
||||
|
||||
if [[ ! $SERVER_MANUFACTURER == "DELL" ]]
|
||||
then
|
||||
echo "/!\ Your server isn't a Dell product. Exiting." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Log main informations
|
||||
echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL"
|
||||
echo "iDRAC/IPMI host: $IDRAC_HOST"
|
||||
|
||||
# Log the fan speed objective, CPU temperature threshold and check interval
|
||||
echo "Fan speed objective: $DECIMAL_FAN_SPEED%"
|
||||
echo "CPU temperature threshold: $CPU_TEMPERATURE_THRESHOLD°C"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue