Name Date Size #Lines LOC

..--

LICENSEH A D16-Sep-2020551 1510

README.mdH A D09-Jul-20251.1 KiB4129

sensor_map.yamlH A D07-Dec-202237.3 KiB970969

sensor_yaml_config.pyH A D04-Dec-202212.5 KiB461370

README.md

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