diff --git a/Dell_iDRAC_fan_controller.sh b/Dell_iDRAC_fan_controller.sh index bdad2a4..ee82949 100644 --- a/Dell_iDRAC_fan_controller.sh +++ b/Dell_iDRAC_fan_controller.sh @@ -46,6 +46,14 @@ then exit 1 fi +# If server model is Gen 14 (*40) or newer +if [[ $SERVER_MODEL =~ .*[RT][[:space:]]?[0-9][4-9]0.* ]] +then + DELL_POWEREDGE_GEN_14_OR_NEWER=true +else + DELL_POWEREDGE_GEN_14_OR_NEWER=false +fi + # Log main informations echo "Server model: $SERVER_MANUFACTURER $SERVER_MODEL" echo "iDRAC/IPMI host: $IDRAC_HOST" diff --git a/Dockerfile b/Dockerfile index 97d53c4..a5a1572 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,6 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "/a ENV IDRAC_HOST local # ENV IDRAC_USERNAME root # ENV IDRAC_PASSWORD calvin -ENV DELL_POWEREDGE_GEN_14_OR_NEWER false ENV FAN_SPEED 5 ENV CPU_TEMPERATURE_THRESHOLD 50 ENV CHECK_INTERVAL 60 diff --git a/README.md b/README.md index 6b7f871..e4f00d0 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,6 @@ All parameters are optional as they have default values (including default iDRAC - `CHECK_INTERVAL` parameter is the time (in seconds) between each temperature check and potential profile change. **Default** value is 60(s). - `DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE` parameter is a boolean that allows to disable third-party PCIe card Dell default cooling response. **Default** value is false. - `KEEP_THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE_STATE_ON_EXIT` parameter is a boolean that allows to keep the third-party PCIe card Dell default cooling response state upon exit. **Default** value is false, so that it resets the third-party PCIe card Dell default cooling response to Dell default. -- `DELL_POWEREDGE_GEN_14_OR_NEWER` parameter that disabled 3rd party PCI calls and outputs CPU temperatures correctly for 14th Gen Dell servers, ex Dell r640, 740 series. Must have idrac 3.30.30.30 or older. **Default** value is false.

(back to top)