1*49d45bcdSMatthew Barth# rpolicy 2*49d45bcdSMatthew Barth 3*49d45bcdSMatthew Barth## Description 4*49d45bcdSMatthew BarthThe type of redundancy policy to use against the methods of presence detection. 5*49d45bcdSMatthew BarthWhen there are more than one method of detecting a fan, the policy in which to 6*49d45bcdSMatthew Barthuse those methods can be configured based on system expectations. 7*49d45bcdSMatthew Barth 8*49d45bcdSMatthew Barth## Attribute Value(s) 9*49d45bcdSMatthew BarthPolicy `type`: 10*49d45bcdSMatthew Barth* ["anyof"](#anyof) 11*49d45bcdSMatthew Barth* ["fallback"](#fallback) 12*49d45bcdSMatthew Barth 13*49d45bcdSMatthew Barth### "anyof" 14*49d45bcdSMatthew BarthA policy where if any method of fan presence detection denotes the fan is 15*49d45bcdSMatthew Barthpresent, results in the fan being marked present. All methods of detection must 16*49d45bcdSMatthew Barthdenote the fan as missing to have a fan be not present. 17*49d45bcdSMatthew Barth 18*49d45bcdSMatthew Barth``` 19*49d45bcdSMatthew Barth"type": "anyof" 20*49d45bcdSMatthew Barth``` 21*49d45bcdSMatthew Barth 22*49d45bcdSMatthew Barth### "fallback" 23*49d45bcdSMatthew BarthA policy to use the first method of fan presence detection and then use the 24*49d45bcdSMatthew Barthnext method only when the first method denotes the fan is missing. 25*49d45bcdSMatthew Barth 26*49d45bcdSMatthew Barth``` 27*49d45bcdSMatthew Barth"type": "fallback" 28*49d45bcdSMatthew Barth``` 29*49d45bcdSMatthew Barth 30*49d45bcdSMatthew Barth## Example 31*49d45bcdSMatthew Barth<pre><code> 32*49d45bcdSMatthew Barth[ 33*49d45bcdSMatthew Barth { 34*49d45bcdSMatthew Barth "name": "fan0", 35*49d45bcdSMatthew Barth "path": "/system/chassis/motherboard/fan0", 36*49d45bcdSMatthew Barth "methods": [ 37*49d45bcdSMatthew Barth { 38*49d45bcdSMatthew Barth "type": "tach", 39*49d45bcdSMatthew Barth "sensors": [ 40*49d45bcdSMatthew Barth "fan0_0" 41*49d45bcdSMatthew Barth ] 42*49d45bcdSMatthew Barth } 43*49d45bcdSMatthew Barth ], 44*49d45bcdSMatthew Barth <b><i>"rpolicy": { 45*49d45bcdSMatthew Barth "type": "anyof" 46*49d45bcdSMatthew Barth }"</i></b> 47*49d45bcdSMatthew Barth } 48*49d45bcdSMatthew Barth] 49*49d45bcdSMatthew Barth</code></pre> 50