Skip to content

Commit

Permalink
Merge pull request #87 from tigerblue77/86-idrac6-missing-product-inf…
Browse files Browse the repository at this point in the history
…o-causing-exit

Fixed server manufacturer detection on Gen 11 (R410, R610, etc...)
  • Loading branch information
tigerblue77 authored Feb 10, 2024
2 parents 2c7c23e + b7c3703 commit a1d1a3d
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 a1d1a3d

Please sign in to comment.