fan-duty-cycle
Use this command to set the fan duty cycle equal to or greater than the user configuration (next immediate supported duty cycle by hardware). This command overrides the duty cycle chosen by the thermal policy.
Use the no form of this command to disable the user configuration and release complete control over the fan duty cycle to the thermal policy.
Supported on Edgecore AS7535-28XB (Q2A) platform.
Command Syntax
fan-duty-cycle <0–100>
no fan-duty-cycle
Parameters
<0-100>
Specifies the value of the fan speed.
Default
Default depends on the thermal policy.
Command Mode
Configure mode
Applicability
Introduced in OcNOS version 7.0.0.
Example
Default Fan Speed Behavior
Before configuring the fan duty cycle, the show system sensor command displays the default fan speed values. The VALUE column reports the fan speed in RPM. With no fan-duty-cycle configuration, the values are around 16,500–17,000 RPM.
#show system sensor
--------------------------------------- System Sensors ------------------------------------------
Codes: LNR - Lower Non-Recoverable
LCR - Lower Critical
LNC - Lower Non-Critical
UNC - Upper Non-Critical
UCR - Upper Critical
UNR - Upper Non-Recoverable
Note: For discrete sensor, thresholds and value columns are not applicable.
SENSOR | VALUE | UNITS | LNR | LCR | LNC | UNC | UCR | UNR | STATE
----------------------------------------------------------------------------------------------------
FAN1 | 16500.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN2 | 16800.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN3 | 16950.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN4 | 16800.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN5 | 16950.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN6 | 16500.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
Fan Duty Cycle Configured on Edgecore AS7535-28XB (Q2A) Platform
# configure terminal
(config)#fan-duty-cycle 90
(config)#commit
After applying the command fan-duty-cycle 90, the fan speed increases significantly. The VALUE column reflects the updated RPM (about 31,500–32,000). This confirms that the duty cycle directly impacts the fan speed.
# show system sensor
--------------------------------------- System Sensors ------------------------------------------
Codes: LNR - Lower Non-Recoverable
LCR - Lower Critical
LNC - Lower Non-Critical
UNC - Upper Non-Critical
UCR - Upper Critical
UNR - Upper Non-Recoverable
Note: For discrete sensor, thresholds and value columns are not applicable.
SENSOR | VALUE | UNITS | LNR | LCR | LNC | UNC | UCR | UNR | STATE
----------------------------------------------------------------------------------------------------
FAN1 | 31500.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN2 | 31650.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN3 | 32100.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN4 | 31800.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN5 | 31800.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN6 | 31350.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
Removing Fan Duty Cycle Configuration
# configure terminal
(config)#no fan-duty-cycle
(config)#commit
When the configuration is removed with no fan-duty-cycle, the fan speed returns to its default range. The VALUE column again shows the baseline fan RPM (around 16,500–17,000).
#show system sensor
--------------------------------------- System Sensors ------------------------------------------
Codes: LNR - Lower Non-Recoverable
LCR - Lower Critical
LNC - Lower Non-Critical
UNC - Upper Non-Critical
UCR - Upper Critical
UNR - Upper Non-Recoverable
Note: For discrete sensor, thresholds and value columns are not applicable.
SENSOR | VALUE | UNITS | LNR | LCR | LNC | UNC | UCR | UNR | STATE
----------------------------------------------------------------------------------------------------
FAN1 | 16800.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN2 | 16650.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN3 | 16950.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN4 | 16650.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN5 | 16650.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
FAN6 | 16350.000 | RPM | na | na | na | 36750.000 | 36750.000 | na | ok
Unsupported Platform
On platforms that do not support this feature, attempting to configure the fan duty cycle results in an error. In this case, the show system sensor output continues to display normal fan RPM values, without any effect from the attempted configuration.
# configure terminal
(config)#fan-duty-cycle 90
(config)#commit
Fan duty cycle is not supported on this platform - /components/fan-duty-cycle/config/fan-duty
%% cmm config validation failed
% Failed to commit .. As error(s) encountered during commit operation...
Uncommitted configurations are retained in the current transaction session, check 'show transaction current'.
Correct the reason for the failure and re-issue the commit.
Use 'abort transaction' to terminate current transaction session and discard all uncommitted changes.
#show system sensor
--------------------------------------- System Sensors ------------------------------------------
Codes: LNR - Lower Non-Recoverable
LCR - Lower Critical
LNC - Lower Non-Critical
UNC - Upper Non-Critical
UCR - Upper Critical
UNR - Upper Non-Recoverable
Note: For discrete sensor, thresholds and value columns are not applicable.
SENSOR | VALUE | UNITS | LNR | LCR | LNC | UNC | UCR | UNR | STATE
---------------------------------------------------------------------------------------------------------
FAN0_RPM | 6600.000 | RPM | 500.000 | 1500.000 | 2500.000 | na | na | na | ok
FAN1_RPM | 6600.000 | RPM | 500.000 | 1500.000 | 2500.000 | na | na | na | ok
FAN2_RPM | 6700.000 | RPM | 500.000 | 1500.000 | 2500.000 | na | na | na | ok
FAN3_RPM | 6600.000 | RPM | 500.000 | 1500.000 | 2500.000 | na | na | na | ok