|
46 | 46 | exit 1
|
47 | 47 | fi
|
48 | 48 |
|
| 49 | +# If server model is Gen 14 (*40) or newer |
| 50 | +if [[ $SERVER_MODEL =~ .*[RT][[:space:]]?[0-9][4-9]0.* ]] |
| 51 | +then |
| 52 | + DELL_POWEREDGE_GEN_14_OR_NEWER=true |
| 53 | + CPU1_TEMPERATURE_INDEX=2 |
| 54 | + CPU2_TEMPERATURE_INDEX=4 |
| 55 | +else |
| 56 | + DELL_POWEREDGE_GEN_14_OR_NEWER=false |
| 57 | + CPU1_TEMPERATURE_INDEX=1 |
| 58 | + CPU2_TEMPERATURE_INDEX=2 |
| 59 | +fi |
| 60 | + |
49 | 61 | # Log main informations
|
50 | 62 | echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL"
|
51 | 63 | echo "iDRAC/IPMI host: $IDRAC_HOST"
|
@@ -138,15 +150,19 @@ while true; do
|
138 | 150 | fi
|
139 | 151 | fi
|
140 | 152 |
|
141 |
| - # Enable or disable, depending on the user's choice, third-party PCIe card Dell default cooling response |
142 |
| - # No comment will be displayed on the change of this parameter since it is not related to the temperature of any device (CPU, GPU, etc...) but only to the settings made by the user when launching this Docker container |
143 |
| - if $DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE |
| 153 | + # If server model is Gen 14 (*40) or newer |
| 154 | + if ! $DELL_POWEREDGE_GEN_14_OR_NEWER |
144 | 155 | then
|
145 |
| - disable_third_party_PCIe_card_Dell_default_cooling_response |
146 |
| - THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE_STATUS="Disabled" |
147 |
| - else |
148 |
| - enable_third_party_PCIe_card_Dell_default_cooling_response |
149 |
| - THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE_STATUS="Enabled" |
| 156 | + # Enable or disable, depending on the user's choice, third-party PCIe card Dell default cooling response |
| 157 | + # No comment will be displayed on the change of this parameter since it is not related to the temperature of any device (CPU, GPU, etc...) but only to the settings made by the user when launching this Docker container |
| 158 | + if $DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE |
| 159 | + then |
| 160 | + disable_third_party_PCIe_card_Dell_default_cooling_response |
| 161 | + THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE_STATUS="Disabled" |
| 162 | + else |
| 163 | + enable_third_party_PCIe_card_Dell_default_cooling_response |
| 164 | + THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE_STATUS="Enabled" |
| 165 | + fi |
150 | 166 | fi
|
151 | 167 |
|
152 | 168 | # Print temperatures, active fan control profile and comment if any change happened during last time interval
|
|
0 commit comments