1# set_func_on_present
2
3## Description
4
5Immediately set the fan FRU's contained rotors to functional when the fan's
6presence has been detected and **only** allow the fan FRU to be set to
7functional when presence is detected. Using this configuration option
8essentially latches a nonfunctional fan FRU to nonfunctional until it has been
9replaced (i.e. removed and replugged). It does still allow the functional state
10of the rotors to continue to be updated to reflect their current functional
11state(s). After a fan's presence has been detected, any faults will be
12re-detected for that fan FRU and its contained rotors.
13
14This attribute is optional and defaults to false, meaning a newly inserted fan
15will need to spin up before being set back to functional, and if it never spins
16up, there won't be additional errors.
17
18## Attribute Value(s)
19
20bool (default = false)
21
22## Example
23
24```json
25{
26  "fans": [
27    {
28      "inventory": "/system/chassis/motherboard/fan0",
29      "allowed_out_of_range_time": 30,
30      "functional_delay": 5,
31      "deviation": 15,
32      "num_sensors_nonfunc_for_fan_nonfunc": 1,
33      "monitor_start_delay": 30,
34      "fan_missing_error_delay": 20,
35      "nonfunc_rotor_error_delay": 0,
36      "set_func_on_present": true,
37      "sensors": [
38        {
39          "name": "fan0_0",
40          "has_target": true
41        },
42        {
43          "name": "fan0_1",
44          "has_target": false,
45          "factor": 1.45,
46          "offset": -909
47        }
48      ]
49    }
50  ]
51}
52```
53