Skip to content

Commit

Permalink
Fixed server manufacturer detection on Gen 11 (R410, R610, etc...)
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerblue77 committed Feb 10, 2024
1 parent 2c7c23e commit b7c3703
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit b7c3703

Please sign in to comment.