How to use IPMITOOL to modify BMC FRU file

How to use IPMITOOL to modify BMC FRU file

How to use IPMITOOL to modify BMC FRU

Ipmitool: v1.8.18
Command:
ipmotool [-H hotst_IP –U username –P password] fru edit <fru id> field <section> <index> <string>

Sample:
ipmotool [-H hotst_IP –U username –P password] fru edit 0 field p 0 MiTAC

<fru id>: fru id is the digit ID of the FRU (see the output of “fru print”); default is 0.
<section> :     section is a string which refers to FRU Inventory Information Storage Areas and may be refer to:
c: FRU Inventory Chassis Info Area
b: FRU Inventory Board Info Area
p: FRU Inventory Product Info Area 

<index> :        specifies the field number. Field numbering starts on the first 'english text' field type.
For instance in the <board> info area field '0' is <Board Manufacturer> and field '2' is <Board Serial Number>;
see IPMI Platform Management FRU Information Storage Definition v1.0 R1.1 for field locations.
<string> :        must be the same length as the string being replaced and must be 8-bit ASCII (0xCx).

 Command table

FRU Device Description

IPMI command for FRU edit

Chassis Part Number

ipmitool fru edit 0 field c 0 CPN000001

Chassis Serial

ipmitool fru edit 0 field c 1 CSN000001

Board Mfg

ipmitool fru edit 0 field b 0 TYAN

Board Product

ipmitool fru edit 0 field b 1 S7106GM2NR

Board Serial

ipmitool fru edit 0 field b 2 CXBE3AJ27008

Board Part Number

ipmitool fru edit 0 field b 3 5411T6210002

Product Manufacturer

ipmitool fru edit 0 field p 0 TYAN

Product Name

ipmitool fru edit 0 field p 1 B7106G93V12HR

Product Part Number

ipmitool fru edit 0 field p 2 5412T6210001

Product Version

ipmitool fru edit 0 field p 3 TFJWZ29E0003

Product Serial

ipmitool fru edit 0 field p 4 PSN000001

Product Asset Tag

ipmitool fru edit 0 field p 5 Tyan Asset