FRU发生器
frug的Python项目详细描述
frugy-FRU生成器YAML
这是一个根据IPMIFRU标准从YAML配置文件生成EEPROM图像的工具。它还可以解析FRU EEPROM映像并将其内容写入YAML文件,或将其转储到stdout。在
安装
从PyPI:
pip3 install frugy
从GitHub:
^{pr2}$使用
$ frugy --help
usage: frugy [-h] [--version] [-o OUTPUT] [-w] [-r] [-d]
[-e EEPROM_SIZE] [-s SET] [-t] [-b] [-c] [-l [LIST]]
[-v VERBOSITY]
[srcfile]
FRU Generator YAML
positional arguments:
srcfile Source file for reading
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-o OUTPUT, --output OUTPUT
output file (derived from input file if not set)
-w, --write FRU write mode (convert YAML to FRU image), default
-r, --read FRU read mode (convert FRU image to YAML)
-d, --dump dump FRU information to stdout (same as -r -o -)
-e EEPROM_SIZE, --eeprom-size EEPROM_SIZE
pad FRU image to match EEPROM size in bytes (only
valid in write mode)
-s SET, --set SET set FRU record field to a value (only valid in write
mode)
-t, --timestamp set BoardInfo.mfg_date_time timestamp to current UTC
time (only valid in write mode)
-b, --broken enable workaround to parse Opal Kelly EEPROMs
-c, --ignore-checksum-errors
ignore checksum errors when parsing a FRU image
-l [LIST], --list [LIST]
list supported FRU records or schema of specified
record
-v VERBOSITY, --verbosity VERBOSITY
set verbosity (0=quiet, 1=info, 2=debug)
示例
frugy damc-fmc2zup.yml
读取damc-fmc2zup.yml
配置,生成FRU映像damc-fmc2zup.bin
。在
frugy damc-fmc2zup.yml -o fmc2zup_fru_eeprom.bin -e 2048
读取damc-fmc2zup.yml
配置,生成fmc2zup_fru_eeprom.bin
,使其为2048字节(pad with 0xff)。在
frugy damc-fmc2zup.bin -r
读取并解析FRU映像damc-fmc2zup.bin
,生成YAML文件damc-fmc2zup.yml
。在
frugy dmmc-stamp.yml -s BoardInfo.board_serial_number=Rev.A -s ProductInfo.product_version=0.01-alpha -t
读取dmmc-stamp.yml
,生成FRU,其中board_serial_number
设置为REV_A,product_version
到{em1}$0.01-alpha,并将mfg_date_time
设置为当前UTC时间。在
frugy -l
显示所有支持的FRU记录的列表。在
frugy -l PointToPointConnectivity
显示名为“PointToPointConnectivity”的FRU记录的布局。在
支持的FRU记录
支持的FRU记录的YAML关键字
- Detailed list of supported IPMI records
- Detailed list of supported PICMG records
- Detailed list of supported FMC records
配置文件示例
BoardInfo:manufacturer:DESYproduct_name:DMMC-STAMP Rev.Aserial_number:'0000'part_number:'0000'fru_file_id:noneProductInfo:manufacturer:DESYproduct_name:DMMC-STAMP Rev.Apart_number:'0000'version:'0000'serial_number:'0000'asset_tag:nonefru_file_id:noneMultirecordArea:-type:ModuleCurrentRequirementscurrent_draw:6.5
更多配置示例存储在^{
- 项目
标签: