Giter Club home page Giter Club logo

fruid-util's Introduction

fruid-util

FRU Data Parser and Modifier

Overview

This Python script, fruid-util.py, is a tool for parsing, modifying, and rebuilding Field Replaceable Unit (FRU) data. It works with FRU binary files, allowing users to read existing FRU data, modify specific fields, and create new FRU files.

Features

  • Parse existing FRU binary files
  • JSON output of parsed FRU data
  • Modify FRU fields including chassis, board, and product information
  • Rebuild FRU binary data after modifications
  • Create new FRU files

Requirements

  • Python 3.6+
  • No external dependencies required

Usage

usage: python3 fruid-util.py fru_file [-h] [-v] [-m] [field options]

FRU Data Parser and Modifier

positional arguments:
  fru_file       path to the FRU file

options:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  -m, --modify   modify fields

field options:
  --CPN CPN      modify Chassis Part Number
  --CSN CSN      modify Chassis Serial Number
  --CCD1 CCD1    modify Chassis Custom Data 1
  --CCD2 CCD2    modify Chassis Custom Data 2
  --CCD3 CCD3    modify Chassis Custom Data 3
  --BMD BMD      modify Board Mfg Date
  --BM BM        modify Board Mfg
  --BP BP        modify Board Product
  --BSN BSN      modify Board Serial
  --BPN BPN      modify Board Part Number
  --BFI BFI      modify Board FRU ID
  --BCD1 BCD1    modify Board Custom Data 1
  --BCD2 BCD2    modify Board Custom Data 2
  --BCD3 BCD3    modify Board Custom Data 3
  --BCD4 BCD4    modify Board Custom Data 4
  --BCD5 BCD5    modify Board Custom Data 5
  --BCD6 BCD6    modify Board Custom Data 6
  --PM PM        modify Product Manufacturer
  --PN PN        modify Product Name
  --PPN PPN      modify Product Part Number
  --PV PV        modify Product Version
  --PSN PSN      modify Product Serial
  --PAT PAT      modify Product Asset Tag
  --PFI PFI      modify Product FRU ID
  --PCD1 PCD1    modify Product Custom Data 1
  --PCD2 PCD2    modify Product Custom Data 2
  --PCD3 PCD3    modify Product Custom Data 3
  --PCD4 PCD4    modify Product Custom Data 4
  --PCD5 PCD5    modify Product Custom Data 5
  --PCD6 PCD6    modify Product Custom Data 6

Examples:
  Display FRU data:
    python3 fruid-util.py fru_file.bin

  Modify Chassis Serial Number:
    python3 fruid-util.py fru_file.bin -m --CSN "NEW_SERIAL_NUMBER"

  Modify multiple fields:
    python3 fruid-util.py fru_file.bin -m --CSN "NEW_SERIAL" --BPN "NEW_PART_NUMBER" --PSN "NEW_PRODUCT_SERIAL"

fruid-util's People

Contributors

cchoux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.