1# openbmc-utils
2
3* `upload_and_update.py`
4A tool to upload a tarball to TFTP server and update BMC with it.
5**Note**: It uses legacy methods to update BMC so it may break in future when the code update is refactored.
6
7* `sensor_yaml_config.py`
8A tool to help write IPMI sensor yaml config.
9**Note**: This script requires python3.6 or above.
10
11   * To sort the yaml config:
12   ```
13   sensor_yaml_config.py -i <input.yaml> -o <output.yaml>
14   ```
15   * To add the missing enityID, entityInstance, and sensorNamePattern:
16   ```
17   sensor_yaml_config.py -i <input.yaml> -o <output.yaml> -f
18   ```
19   * To add missing core/dimm temperature sensors based on RPT (generated by OpenPOWER op-build):
20   ```
21   sensor_yaml_config.py -i <input.yaml> -o <output.yaml> -f -r <machine.rpt>
22   ```
23   * To generate a sensor map from example yaml config, which could be used for future:
24   ```
25   sensor_yaml_config.py -i <sample.yaml> -o <sensor_map.yaml> -g
26   ```
27   * To generate a DCMI sensor json config, which is used by phosphor-ipmi-config:
28   ```
29   sensor_yaml_config.py -i <input.yaml> -o <output.json> -d
30   ```
31