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_Aproduct_version到{em1}$0.01-alpha,并将mfg_date_time设置为当前UTC时间。在

frugy -l

显示所有支持的FRU记录的列表。在

frugy -l PointToPointConnectivity

显示名为“PointToPointConnectivity”的FRU记录的布局。在

支持的FRU记录

支持的FRU记录的YAML关键字

配置文件示例

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

更多配置示例存储在^{} 文件夹。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
来自偏移量的java JavaPairInputStream流   gzip Java TarInputStream读取tar的文件名。包含另一个tar的gz文件。gz文件   如何在Linux shell脚本中确定和使用实际的java路径   java请求太多FirebaseError   java错误json解析   java在localserver上发送安卓应用程序的输出   JavaSpring:启动和停止webapplication时更新DBtable条目   java如何使用JavaFX在矩形处设置文本?   java SQL查询在Hibernate中出现异常   java我无法使用javamail代码通过outlook(hotmail帐户)配置发送邮件,但在gmail中工作正常   java是不同的持久性。测试运行/JPA装置的xml属性   无头Eclipse的java导出战   使用ContentVersionStrategy的java Spring引导缓存禁止使用gzip进行资源压缩   java如何获取计算机的设备令牌?   图像文件的java ImageInfo不包含有效值   继承强制在Java中使用基类方法