Added automatic Gen 14 + check

This commit is contained in:
Tigerblue77 2024-11-10 20:28:44 +01:00
parent 86155f19cf
commit a8c12a62c9
3 changed files with 8 additions and 2 deletions

View file

@ -46,6 +46,14 @@ then
exit 1
fi
# If server model is Gen 14 (*40) or newer
if [[ $SERVER_MODEL =~ .*[RT][[:space:]]?[0-9][4-9]0.* ]]
then
DELL_POWEREDGE_GEN_14_OR_NEWER=true
else
DELL_POWEREDGE_GEN_14_OR_NEWER=false
fi
# Log main informations
echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL"
echo "iDRAC/IPMI host: $IDRAC_HOST"