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:
commit
a1d1a3d1c7
1 changed files with 10 additions and 0 deletions
10
functions.sh
10
functions.sh
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue