Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 1 | #Example fan monitor definitions for phosphor-fan-monitor |
| 2 | |
| 3 | #List the fans that need to be monitored, along with some |
| 4 | #properties that define how much slack is allowed in the actual |
| 5 | #tach value as compared to the target tach value. |
| 6 | |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 7 | #fans: |
| 8 | # - inventory: |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 9 | # [The system inventory location for the fan] |
Matthew Barth | 9396bcc | 2018-02-19 14:13:20 -0600 | [diff] [blame] | 10 | # functional_delay: |
| 11 | # [Delay (in secs) before a fan is marked functional after returning |
| 12 | # within the allowed deviation] |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 13 | # allowed_out_of_range_time: |
| 14 | # [Time (in secs) actual speed can be outside of deviation of |
| 15 | # target speed] |
| 16 | # deviation: |
| 17 | # [Percentage that actual speed must be within target speed] |
| 18 | # num_sensors_nonfunc_for_fan_nonfunc: |
| 19 | # [How many sensors on the fan must be faulted before fan |
| 20 | # will be considered faulted] |
| 21 | # sensors: [array of speed sensors for the fan] |
| 22 | # - name [The name of the fan sensor] |
| 23 | # has_target [true|false If this sensor has a Target property for |
| 24 | # setting a fan speed (otherwise just for reads)] |
Lei YU | 80f271b | 2018-01-31 15:24:46 +0800 | [diff] [blame] | 25 | # target_interface [The fan target interface used by the sensor. |
| 26 | # Default is "xyz.openbmc_project.Control.FanSpeed"] |
Lei YU | 8e5d197 | 2018-01-26 17:14:00 +0800 | [diff] [blame] | 27 | # factor [The factor to multiply with target to calculate the expected |
| 28 | # fan speed. Default is 1 for fan speed target; |
| 29 | # Customized value for pwm target] |
| 30 | # offset [The offset to add to calculate the expected fan speed. |
| 31 | # Default is 0 for fan speed target; |
| 32 | # Customized value for pwm target] |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 33 | # |
| 34 | #sensor_trust_groups: |
| 35 | # - class: [Group class name |
| 36 | # Available classes: |
| 37 | # * NonzeroSpeed - Only trust if at least one sensor in the group |
| 38 | # has a nonzero speed.] |
Matthew Barth | c63ef39 | 2018-02-16 13:06:36 -0600 | [diff] [blame] | 39 | # group: |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 40 | # - name [The name of the fan sensor in this group] |
Matthew Barth | c63ef39 | 2018-02-16 13:06:36 -0600 | [diff] [blame] | 41 | # in_trust: [true|false] (optional) |
| 42 | # [Include in trust determination or not. Default = true] |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 43 | |
| 44 | #The code uses these parameters as follows: |
| 45 | # After a speed reading of a sensor is outside of the allowed deviation of |
| 46 | # the target speed for the allowed out of range time, if at least |
| 47 | # num_sensors_nonfunc_for_fan_nonfunc sensors meet this condition, |
| 48 | # the fan will be set to nonfunctional in the inventory. |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 49 | # |
| 50 | # Sensor trust groups are used to specify that the speed values for the |
| 51 | # sensors in a group cannot be trusted based on some condition, where |
| 52 | # the condition is based on the class used to implement the group. All |
Matthew Barth | c63ef39 | 2018-02-16 13:06:36 -0600 | [diff] [blame] | 53 | # sensors in the group go in and out of trust based on those defined |
| 54 | # to be part of determining the trust. This section is optional. |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 55 | |
| 56 | #Example entries for 1 fan system: |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 57 | #fans: |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 58 | # - inventory: /system/chassis/motherboard/fan0 |
Matthew Barth | 9396bcc | 2018-02-19 14:13:20 -0600 | [diff] [blame] | 59 | # functional_delay: 5 |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 60 | # allowed_out_of_range_time: 15 |
| 61 | # deviation: 15 |
| 62 | # num_sensors_nonfunc_for_fan_nonfunc: 1 |
| 63 | # sensors: |
| 64 | # - name: fan0 |
| 65 | # has_target: true |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 66 | #sensor_trust_groups: |
| 67 | # - class: NonzeroSpeed |
Matthew Barth | c63ef39 | 2018-02-16 13:06:36 -0600 | [diff] [blame] | 68 | # group: |
Matt Spinler | 956a0a5 | 2017-09-28 12:44:06 -0500 | [diff] [blame] | 69 | # - name: fan0_0 |
Matthew Barth | c63ef39 | 2018-02-16 13:06:36 -0600 | [diff] [blame] | 70 | # in_trust: false |
| 71 | # - name: fan0_1 |