Name Date Size #Lines LOC

..26-Jul-2024-

LICENSEH A D07-Mar-2021551 1510

README.mdH A D08-Dec-20221.1 KiB4229

sensor_map.yamlH A D08-Dec-202237.3 KiB970969

sensor_yaml_config.pyH A D05-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
10  - To sort the yaml config:
11
12  ```sh
13  sensor_yaml_config.py -i <input.yaml> -o <output.yaml>
14  ```
15
16  - To add the missing enityID, entityInstance, and sensorNamePattern:
17
18  ```sh
19  sensor_yaml_config.py -i <input.yaml> -o <output.yaml> -f
20  ```
21
22  - To add missing core/dimm temperature sensors based on RPT (generated by
23    OpenPOWER op-build):
24
25  ```sh
26  sensor_yaml_config.py -i <input.yaml> -o <output.yaml> -f -r <machine.rpt>
27  ```
28
29  - To generate a sensor map from example yaml config, which could be used for
30    future:
31
32  ```sh
33  sensor_yaml_config.py -i <sample.yaml> -o <sensor_map.yaml> -g
34  ```
35
36  - To generate a DCMI sensor json config, which is used by
37    phosphor-ipmi-config:
38
39  ```sh
40  sensor_yaml_config.py -i <input.yaml> -o <output.json> -d
41  ```
42