Merge pull request #87 from tigerblue77/86-idrac6-missing-product-info-causing-exit

Fixed server manufacturer detection on Gen 11 (R410, R610, etc...)
This commit is contained in:
Tigerblue77 2024-02-10 22:31:27 +01:00 committed by GitHub
commit a1d1a3d1c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,4 +90,14 @@ function get_Dell_server_model () {
SERVER_MANUFACTURER=$(echo "$IPMI_FRU_content" | grep "Product Manufacturer" | awk -F ': ' '{print $2}')
SERVER_MODEL=$(echo "$IPMI_FRU_content" | grep "Product Name" | awk -F ': ' '{print $2}')
# Check if SERVER_MANUFACTURER is empty, if yes, assign value based on "Board Mfg"
if [ -z "$SERVER_MANUFACTURER" ]; then
SERVER_MANUFACTURER=$(echo "$IPMI_FRU_content" | tr -s ' ' | grep "Board Mfg :" | awk -F ': ' '{print $2}')
fi
# Check if SERVER_MODEL is empty, if yes, assign value based on "Board Product"
if [ -z "$SERVER_MODEL" ]; then
SERVER_MODEL=$(echo "$IPMI_FRU_content" | tr -s ' ' | grep "Board Product :" | awk -F ': ' '{print $2}')
fi
}