WO2020224065A1 - 一种fru信息生成方法、系统及相关装置 - Google Patents

一种fru信息生成方法、系统及相关装置 Download PDF

Info

Publication number
WO2020224065A1
WO2020224065A1 PCT/CN2019/098493 CN2019098493W WO2020224065A1 WO 2020224065 A1 WO2020224065 A1 WO 2020224065A1 CN 2019098493 W CN2019098493 W CN 2019098493W WO 2020224065 A1 WO2020224065 A1 WO 2020224065A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration file
fru information
crc
crc check
value
Prior art date
Application number
PCT/CN2019/098493
Other languages
English (en)
French (fr)
Inventor
曲燕
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2020224065A1 publication Critical patent/WO2020224065A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • This application relates to the field of server monitoring and management, and in particular to a method, system, device and computer-readable storage medium for generating FRU information.
  • FRU Field Replacement Unit, field replaceable unit
  • FRU information includes product name (Product Number), machine serial number (Serial Number), etc., to facilitate maintenance of various parts of the machine.
  • Product Number Product Number
  • machine serial number Serial Number
  • the FRU information and format of different customers are not the same, which means that FRU information needs to be customized.
  • the tools in generally follow the fixed format in the IPMI specification. Since FRU information needs to be customized, corresponding FRU information generation tools need to be developed for each type of FRU information, which leads to high repetitiveness of software development, which in turn leads to increased costs.
  • the purpose of this application is to provide a method, system, device, and computer-readable storage medium for generating FRU information, which can avoid high software development duplication and thereby reduce costs.
  • this application provides a method for generating FRU information, including:
  • the preset initial configuration file is updated according to the input requirements to obtain the configuration file; wherein, the initial configuration file is constructed in the form of key-value pairs;
  • said updating the preset initial configuration file according to the input requirements to obtain the configuration file includes:
  • the update operation includes at least an add operation, a delete operation, and a modification operation.
  • the constructing a mirror file after the CRC check on the key value is passed includes:
  • the method further includes:
  • the check value is written into the preset fixed address in the EEPROM.
  • This application also provides a FRU information generation system, including:
  • the configuration file acquisition module is used to update the preset initial configuration file according to the input requirements to obtain the configuration file; wherein, the initial configuration file is constructed in the form of a key-value pair;
  • the configuration file parsing module is configured to use a parsing tool to parse the configuration file to obtain the corresponding key value, and write the key value into the EEPROM;
  • the image file construction module is used to construct the image file after the CRC check of the key value is passed;
  • the FRU information generating module is used to write the image file into the EEPROM using the ipmitool tool to generate corresponding FRU information.
  • the configuration file obtaining module includes:
  • the configuration file obtaining unit is configured to perform the update operation on the key-value pair in the initial configuration file according to the input FRU information format requirements to obtain the configuration file; wherein, the update operation includes at least an add operation , Delete operation and modify operation.
  • the image file construction module includes:
  • the CRC check standard determination unit is used to determine the CRC check standard from CRC-8, CRC-16 and CRC-32;
  • the mirror file construction unit is configured to perform a corresponding CRC check on the key value according to the CRC check standard, and construct the mirror file after the CRC check passes.
  • the FRU information generation system further includes:
  • a check value acquisition module configured to obtain a check value corresponding to the CRC check
  • the check value writing module is used to write the check value into the preset fixed address in the EEPROM after the CRC check is passed.
  • This application also provides a device, including:
  • a memory and a processor wherein the memory is used to store a computer program, and the processor is used to implement the steps of the FRU information generating method described above when the computer program is executed.
  • the present application also provides a computer-readable storage medium that stores a computer program that, when executed by a processor, realizes the steps of the FRU information generation method described above.
  • a method for generating FRU information includes: updating a preset initial configuration file according to input requirements to obtain a configuration file; wherein the initial configuration file is constructed in the form of a key-value pair Analyze the configuration file with a parsing tool to obtain the corresponding key value, and write the key value into the EEPROM; after the key value is checked through the CRC, build a mirror file; use the ipmitool tool to The image file is written into the EEPROM to generate corresponding FRU information.
  • this method When this method generates the corresponding FRU information according to the input requirements, it only needs to update the initial configuration file constructed in the form of key-value pairs to obtain the corresponding configuration file, and then process it accordingly, and finally generate The required FRU information. It can be seen that this method avoids the need for software development of a corresponding FRU information generation tool for each FRU information in the related technology, so this method can avoid high software development repetition, thereby reducing costs.
  • This application also provides an FRU information generation system, equipment, and computer-readable storage medium, all of which have the above-mentioned beneficial effects, and will not be repeated here.
  • FIG. 1 is a flowchart of a method for generating FRU information according to an embodiment of the application
  • Fig. 2 is a structural block diagram of a FRU information generating system provided by an embodiment of the application.
  • the core of this application is to provide a method for generating FRU information, which can avoid high software development repetition and thereby reduce costs.
  • Another core of the application is to provide a FRU information generation system, equipment, and computer-readable storage medium.
  • FRU Field Replacement Unit, field replaceable unit
  • FRU information includes product name (Product Number), machine serial number (Serial Number), etc., to facilitate maintenance of various parts of the machine.
  • the FRU information and format of different customers are different, which means that FRU information needs to be customized.
  • There are currently some tools for generating FRU information all of which are tools in the BMC Tool, and generally follow the fixed format in the IPMI specification. Since FRU information needs to be customized, corresponding FRU information generation tools need to be developed for each type of FRU information, which leads to high repetitiveness of software development, which in turn leads to increased costs.
  • BMC Battery controller, baseboard management controller
  • BMC Baseboard management controller
  • FIG. 1 is a flowchart of a method for generating FRU information provided by an embodiment of this application. , The FRU information generation method specifically includes:
  • the embodiment of this application first updates the preset initial configuration file according to the input requirements to obtain the configuration file.
  • the input requirements are not specifically limited here, and it depends on the actual situation.
  • the input requirements can be specifically input FRU information format requirements. Since the embodiment of this application does not specifically limit the input requirements, the embodiment of this application does not specifically limit the update operation, which needs to be determined according to the actual situation.
  • the update operation usually includes at least one of an add operation, a delete operation, and a modification operation. Item operation.
  • the input mode of the requirement is not specifically limited here, and those skilled in the art should make corresponding settings according to the actual situation.
  • the input mode can be inputting the requirement through the input device, or inputting the requirement through option checking.
  • the above-mentioned preset initial configuration file is constructed in the form of key-value pairs, and it is not specifically limited here, and should be set accordingly by those skilled in the art according to the actual situation.
  • the initial configuration file may be fru_change. conf configuration file.
  • the key-value pair in the initial configuration file is not specifically limited.
  • the key_val in the fru_change.conf configuration file has two value types: one is a normal string, and the other is a numeric value.
  • the above-mentioned update operation may specifically be to perform at least one operation of an add operation, a delete operation, and a modification operation on the key-value pair to obtain the configuration file.
  • the above-mentioned updating operation of the preset initial configuration file according to the input requirements to obtain the configuration file usually includes: updating the key-value pairs in the initial configuration file according to the input FRU information format requirements to obtain the configuration file ;
  • the update operation includes at least one of the add operation, delete operation and modification operation.
  • the requirement in this embodiment is specifically the FRU information format requirement
  • the update operation performed on the key-value pair also includes at least one of an add operation, a delete operation, and a modification operation.
  • the above-mentioned update operation of the key-value pairs in the initial configuration file can be specifically adding the key-value pairs in the fru_change.conf configuration file.
  • the added key-value pairs can be added to a group or another group. Add more key-value pairs.
  • the preset initial configuration file is updated according to the input requirements, and after the configuration file is obtained, the configuration file is parsed using a parsing tool to obtain the corresponding key value, and the key value is written into the EEPROM.
  • the analysis tool is not specifically limited here, and the analysis tool is usually a genfru tool.
  • the types and numbers of key values obtained by analysis are not specifically limited here, and those skilled in the art should make corresponding settings according to actual conditions.
  • the embodiment of this application writes the key value into EEPROM (Electrically Erasable Programmable read only memory), which is a kind of storage that does not lose data after power failure.
  • EEPROM Electrical Erasable Programmable read only memory
  • the chip, on the server, is mainly responsible for storing information that is not lost after power failure, such as FRU information.
  • the address where the key value is written into the EEPROM is not specifically limited, and those skilled in the art should make corresponding settings according to actual conditions.
  • the address is usually a preset fixed address.
  • the above-mentioned analysis tool is used to analyze the configuration file to obtain the corresponding key value, and the key value is written into the EEPROM. Specifically, it can be: Use the genfru tool to analyze the configuration file to obtain the corresponding key value, and write the key value into the EEPROM.
  • the mirror file is constructed.
  • the CRC check standard is not specifically limited here, and should be determined by this field The technicians make corresponding settings according to the actual situation.
  • the CRC check standard can be specifically CRC-8 or CRC-16 or CRC-32.
  • the image file is constructed after the CRC check is passed. There are no specific restrictions on the image file to be constructed and the corresponding construction method, and it depends on the actual situation.
  • the image file can be a file named data.dat.
  • the file name can also be specified by the fru_change.conf configuration file, and the key value is OUT_BIN_FILE.
  • the mirror file is constructed, which usually includes: determining the CRC check standard from CRC-8, CRC-16 and CRC-32; performing the key value check according to the CRC check standard Corresponding CRC check, and build a mirror file after the CRC check passes.
  • the different CRC check standards in the embodiments of this application correspond to different CRC check methods.
  • the CRC-8 check standard corresponds to the CRC-8 check method
  • the CRC-16 check standard corresponds to the CRC-16 check method.
  • CRC-32 check standard corresponds to CRC-32 check method.
  • the corresponding CRC check on the key value according to the CRC check standard may usually include: obtaining the check value corresponding to the CRC check; after the CRC check is passed, the check value is written into the EEPROM The default fixed address. It can be seen from the above that different CRC check standards correspond to different CRC check methods, and different CRC check methods correspond to different check values, and each check value corresponds to the preset fixed in EEPROM address.
  • the image file is written into the EEPROM using the ipmitool tool to generate corresponding FRU information.
  • the address for writing the mirror file into the EEPROM is not specifically limited here, and those skilled in the art should make corresponding settings according to actual conditions.
  • this application When generating the corresponding FRU information according to the input requirements, this application only needs to update the initial configuration file constructed in the form of key-value pairs to obtain the corresponding configuration file, and then perform corresponding processing on it, and finally generate The required FRU information. It can be seen that this method avoids the need for software development of a corresponding FRU information generation tool for each FRU information in the related technology, so this method can avoid high software development repetitiveness, thereby reducing costs.
  • the following describes an FRU information generation system, device, and computer-readable storage medium provided by the embodiments of the present application.
  • the FRU information generation system, device, and computer-readable storage medium described below can interact with the FRU information generation method described above. Corresponding reference.
  • FIG. 2 is a structural block diagram of an FRU information generating system provided by an embodiment of the application; the FRU information generating system includes:
  • the configuration file obtaining module 201 is used to update the preset initial configuration file according to the input requirements to obtain the configuration file; wherein the initial configuration file is constructed in the form of key-value pairs;
  • the configuration file parsing module 202 is used to parse the configuration file using a parsing tool to obtain the corresponding key value, and write the key value into the EEPROM;
  • the image file construction module 203 is used to construct an image file after the CRC check of the key value is passed;
  • the FRU information generating module 204 is used to write the image file into the EEPROM using the ipmitool tool to generate corresponding FRU information.
  • the configuration file acquisition module 201 in this embodiment generally includes:
  • the configuration file acquisition unit is used to update the key-value pairs in the initial configuration file according to the input FRU information format requirements to obtain the configuration file; wherein the update operation includes at least one of an add operation, a delete operation, and a modification operation operating.
  • the image file construction module 203 in this embodiment generally includes:
  • the CRC check standard determination unit is used to determine the CRC check standard from CRC-8, CRC-16 and CRC-32;
  • the mirror file construction unit is used to perform a corresponding CRC check on the key value according to the CRC check standard, and construct the mirror file after the CRC check passes.
  • the FRU information generation system in this embodiment may also generally include:
  • Check value obtaining module used to obtain check value corresponding to CRC check
  • the check value writing module is used to write the check value into the preset fixed address in the EEPROM after the CRC check is passed.
  • the present application also provides a device including: a memory and a processor; wherein the memory is used to store a computer program, and the processor is used to implement the steps of the FRU information generation method of any of the foregoing embodiments when the computer program is executed.
  • the present application also provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the FRU information generation method of any of the above embodiments are implemented.
  • the computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., which can store program codes Medium.
  • the steps of the method or algorithm described in the embodiments disclosed in this document can be directly implemented by hardware, a software module executed by a processor, or a combination of the two.
  • the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

一种FRU信息生成方法,包括:根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,初始配置文件是以键值对的形式构建而成;利用解析工具对配置文件进行解析得到对应的键值,并将键值写入EEPROM;在对键值进行CRC校验通过后,构建镜像文件;利用ipmitool工具将镜像文件写入EEPROM,生成对应的FRU信息。该方法在根据输入的需求生成对应的FRU信息时,只需对以键值对的形式构建而成的初始配置文件进行更新操作,得到对应的配置文件,再对其进行相应的处理,最后生成所需的FRU信息,能够避免较高的软件开发重复性,进而降低成本。本申请还提供一种FRU信息生成系统、设备及计算机可读存储介质,均具有上述有益效果。

Description

一种FRU信息生成方法、系统及相关装置
本申请要求于2019年5月8日提交中国专利局、申请号为201910379799.2、发明名称为“一种FRU信息生成方法、系统及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及服务器监控管理领域,特别涉及一种FRU信息生成方法、系统、设备及计算机可读存储介质。
背景技术
FRU(Field Replace Unit,现场可更换单元)多用于服务器大型设备上,FRU信息包括产品名称(Product Number)、机器的序列号(Serial Number)等,方便对机器的各个部件进行维护。而不同客户的FRU信息及格式都不相同,也就意味着FRU信息需要定制化,目前存在一些生成FRU信息的工具,都是BMC Tool
中的工具,一般都是遵循IPMI规范中的固定格式。由于FRU信息需要定制化,所以针对每种FRU信息需要软件开发对应的FRU信息生成工具,导致软件开发重复性较高,进而导致提高了成本。
因此,如何避免较高的软件开发重复性,进而降低成本是本领域技术人员亟需解决的技术问题。
发明内容
本申请的目的是提供一种FRU信息生成方法、系统、设备及计算机可读存储介质,能够避免较高的软件开发重复性,进而降低成本。
为解决上述技术问题,本申请提供一种FRU信息生成方法,包括:
根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,所述初始配置文件是以键值对的形式构建而成;
利用解析工具对所述配置文件进行解析得到对应的键值,并将所述键 值写入EEPROM;
在对所述键值进行CRC校验通过后,构建镜像文件;
利用ipmitool工具将所述镜像文件写入所述EEPROM,生成对应的FRU信息。
优选地,所述根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件,包括:
根据输入的FRU信息格式需求,对所述初始配置文件中的所述键值对进行所述更新操作,得到所述配置文件;其中,所述更新操作至少包括添加操作、删除操作及修改操作中的一项操作。
优选地,所述在对所述键值进行CRC校验通过后,构建镜像文件,包括:
从CRC-8、CRC-16及CRC-32中确定CRC校验标准;
根据所述CRC校验标准对所述键值进行对应的CRC校验,并在所述CRC校验通过后构建所述镜像文件。
优选地,所述根据所述CRC校验标准对所述键值进行对应的CRC校验之后,还包括:
获取所述CRC校验对应的校验值;
在所述CRC校验通过后,将所述校验值写入所述EEPROM中的预设固定地址。
本申请还提供一种FRU信息生成系统,包括:
配置文件获取模块,用于根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,所述初始配置文件是以键值对的形式构建而成;
配置文件解析模块,用于利用解析工具对所述配置文件进行解析得到对应的键值,并将所述键值写入EEPROM;
镜像文件构建模块,用于在对所述键值进行CRC校验通过后,构建镜像文件;
FRU信息生成模块,用于利用ipmitool工具将所述镜像文件写入所述EEPROM,生成对应的FRU信息。
优选地,所述配置文件获取模块,包括:
配置文件获取单元,用于根据输入的FRU信息格式需求,对所述初始配置文件中的所述键值对进行所述更新操作,得到所述配置文件;其中,所述更新操作至少包括添加操作、删除操作及修改操作中的一项操作。
优选地,所述镜像文件构建模块,包括:
CRC校验标准确定单元,用于从CRC-8、CRC-16及CRC-32中确定CRC校验标准;
镜像文件构建单元,用于根据所述CRC校验标准对所述键值进行对应的CRC校验,并在所述CRC校验通过后构建所述镜像文件。
优选地,该FRU信息生成系统还包括:
校验值获取模块,用于获取所述CRC校验对应的校验值;
校验值写入模块,用于在所述CRC校验通过后,将所述校验值写入所述EEPROM中的预设固定地址。
本申请还提供一种设备,包括:
存储器和处理器;其中,所述存储器用于存储计算机程序,所述处理器用于执行所述计算机程序时实现上述所述的FRU信息生成方法的步骤。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述所述的FRU信息生成方法的步骤。
本申请所提供的一种FRU信息生成方法,包括:根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,所述初始配置文件是以键值对的形式构建而成;利用解析工具对所述配置文件进行解析得到对应的键值,并将所述键值写入EEPROM;在对所述键值进行CRC校验通过后,构建镜像文件;利用ipmitool工具将所述镜像文件写入所述EEPROM,生成对应的FRU信息。
该方法在根据输入的需求生成对应的FRU信息时,只需对以键值对的形式构建而成的初始配置文件进行更新操作,得到对应的配置文件,再对其进行相应的处理,最后生成所需的FRU信息。可见,该方法避免了相关技术中针对每种FRU信息都需要软件开发对应的FRU信息生成工具,故 该方法能够避免较高的软件开发重复性,进而降低成本。本申请还提供一种FRU信息生成系统、设备及计算机可读存储介质,均具有上述有益效果,在此不再赘述。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例所提供的一种FRU信息生成方法的流程图;
图2为本申请实施例所提供的一种FRU信息生成系统的结构框图。
具体实施方式
本申请的核心是提供一种FRU信息生成方法,能够避免较高的软件开发重复性,进而降低成本。本申请的另一核心是提供一种FRU信息生成系统、设备及计算机可读存储介质。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
FRU(Field Replace Unit,现场可更换单元)多用于服务器大型设备上,FRU信息包括产品名称(Product Number)、机器的序列号(Serial Number)等,方便对机器的各个部件进行维护。而不同客户的FRU信息及格式都不相同,也就意味着FRU信息需要定制化,目前存在一些生成FRU信息的工具,都是BMC Tool中的工具,一般都是遵循IPMI规范中的固定格式。由于FRU信息需要定制化,所以针对每种FRU信息需要软件开发对应的FRU信息生成工具,导致 软件开发重复性较高,进而导致提高了成本。其中,BMC(Board manager controller,基板管理控制器)是服务器上的基板管理系统,负责服务器的资产信息显示、本地和远程诊断、控制台支持、配置管理、硬件管理和故障排除等重要功能。
本申请提供的一种FRU信息生成方法,能够避免较高的软件开发重复性,进而降低成本,具体请参考图1,图1为本申请实施例所提供的一种FRU信息生成方法的流程图,该FRU信息生成方法具体包括:
S101、根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,初始配置文件是以键值对的形式构建而成;
本申请实施例先是根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件,在此对输入的需求不作具体限定,需根据实际情况而定,该输入的需求可以具体为输入的FRU信息格式需求。由于本申请实施例对输入的需求不作具体限定,故本申请实施例对更新操作也不作具体限定,需根据实际情况而定,该更新操作通常至少包括添加操作、删除操作及修改操作中的一项操作。在此对需求的输入方式也不作具体限定,应由本领域技术人员根据实际情况作出相应的设定,输入方式可以为通过输入设备将需求输入,还可以为通过选项勾选将需求输入。上述预设的初始配置文件是以键值对的形式构建而成,在此对其也不作具体限定,应由本领域技术人员根据实际情况作出相应的设定,该初始配置文件具体可以为fru_change.conf配置文件。进一步地,对于初始配置文件中的键值对也不作具体限定,例如键值对具体可以为SN_0x50=s0782,其中SN是表示机器的序列号,0x50表示存于EEPROM中的地址s0782为机器的实体序列号,即key_val。fru_change.conf配置文件中的key_val存在两种值类型:一种为普通字符串,另一种为数值。上述更新操作具体可以为对键值对进行至少包括添加操作、删除操作及修改操作中的一项操作,得到配置文件。
进一步地,上述根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件,通常包括:根据输入的FRU信息格式需求,对初始配置文件中的键值对进行更新操作,得到配置文件;其中,更新操作至少包括添加操作、删除操作及修改操作中的一项操作。本实施例中需求具体为FRU 信息格式需求,对键值对进行的更新操作也至少包括添加操作、删除操作及修改操作中的一项操作。上述对初始配置文件中的键值对进行更新操作具体可以为对fru_change.conf配置文件中的键值对进行添加操作,添加的键值对可以添加在一个组中,也可以再添加一个组,再添加多个键值对。
S102、利用解析工具对配置文件进行解析得到对应的键值,并将键值写入EEPROM;
本申请实施例在根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件后,利用解析工具对配置文件进行解析得到对应的键值,并将键值写入EEPROM。在此对解析工具不作具体限定,该解析工具通常为genfru工具。在此对解析得到的键值的类型和数量均不做具体限定,应由本领域技术人员根据实际情况作出相应的设定。本申请实施例在解析得到对应的键值后,将键值写入EEPROM(Electrically Erasable Programmable read only memory,带电可擦可编程只读存储器),该EEPROM是一种掉电后数据不丢失的存储芯片,在服务器上主要负责存储掉电不丢失的信息,如FRU信息。在此对键值写入EEPROM中的地址不作具体限定,应由本领域技术人员根据实际情况作出相应的设定,该地址通常为预设的固定地址。上述利用解析工具对配置文件进行解析得到对应的键值,并将键值写入EEPROM,具体可以为:利用genfru工具对配置文件进行解析得到对应的键值,并将键值写入EEPROM中预设的固定地址。例如,将上述键值对SN_0x50=s0782中s0782这组值写入EEPROM中的0x50固定地址中去,这样客户可自由修改EEPROM中的布局及FRU所处段位。
S103、在对键值进行CRC校验通过后,构建镜像文件;
本申请实施例在对写入EEPROM中的键值进行CRC(Cyclic Redundancy Check,循环冗余校验)校验通过后,构建镜像文件,在此对CRC校验的标准不作具体限定,应由本领域技术人员根据实际情况作出相应的设定,CRC校验的标准可以具体为CRC-8或CRC-16或CRC-32。在CRC校验通过后构建镜像文件,在此对构建的镜像文件及对应的构建方式均不作具体限定,需根据实际情况而定,该镜像文件具体可以为名称为data.dat的文件。此外,该文件名也可以由fru_change.conf配置文件指定,键值为 OUT_BIN_FILE。由上文可知,fru_change.conf配置文件中的key_val存在两种值类型:一种为普通字符串,另一种为数值,genfru工具会进行自动识别并进行赋值写入data.dat文件。在此对于键值没有通过CRC校验这种情况的后续操作不作具体限定,应由本领域技术人员根据实际情况作出相应的设定,通常会直接结束。
进一步地,上述在对键值进行CRC校验通过后,构建镜像文件,通常包括:从CRC-8、CRC-16及CRC-32中确定CRC校验标准;根据CRC校验标准对键值进行对应的CRC校验,并在CRC校验通过后构建镜像文件。本申请实施例中不同的CRC校验标准对应于不同的CRC校验方式,例如CRC-8校验标准对应于CRC-8校验方式,CRC-16校验标准对应于CRC-16校验方式,CRC-32校验标准对应于CRC-32校验方式。这些CRC校验方式包含于上述解析工具,具体地,在genfru工具中包含了各种校验方法,也可以通过键值对的方式去配置,从而将最终校验值写入到EEPROM的固定地址中去。
进一步地,上述根据CRC校验标准对键值进行对应的CRC校验之后,通常还可以包括:获取CRC校验对应的校验值;在CRC校验通过后,将校验值写入EEPROM中的预设固定地址。由上文可知,不同的CRC校验标准对应于不同的CRC校验方式,而不同的CRC校验方式又会对应于不同的校验值,每种校验值对应于EEPROM中的预设固定地址。
S104、利用ipmitool工具将镜像文件写入EEPROM,生成对应的FRU信息。
本申请实施例在构建镜像文件后,利用ipmitool工具将镜像文件写入EEPROM,生成对应的FRU信息。在此对镜像文件写入EEPROM中的地址不作具体限定,应由本领域技术人员根据实际情况作出相应的设定。
本申请在根据输入的需求生成对应的FRU信息时,只需对以键值对的形式构建而成的初始配置文件进行更新操作,得到对应的配置文件,再对其进行相应的处理,最后生成所需的FRU信息。可见,该方法避免了相关技术中针对每种FRU信息都需要软件开发对应的FRU信息生成工具,故该方法能够避免较高的软件开发重复性,进而降低成本。
下面对本申请实施例提供的一种FRU信息生成系统、设备及计算机可读存储介质进行介绍,下文描述的FRU信息生成系统、设备及计算机可读存储介质与上文描述的FRU信息生成方法可相互对应参照。
请参考图2,图2为本申请实施例所提供的一种FRU信息生成系统的结构框图;该FRU信息生成系统包括:
配置文件获取模块201,用于根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,初始配置文件是以键值对的形式构建而成;
配置文件解析模块202,用于利用解析工具对配置文件进行解析得到对应的键值,并将键值写入EEPROM;
镜像文件构建模块203,用于在对键值进行CRC校验通过后,构建镜像文件;
FRU信息生成模块204,用于利用ipmitool工具将镜像文件写入EEPROM,生成对应的FRU信息。
基于上述实施例,本实施例中配置文件获取模块201,通常包括:
配置文件获取单元,用于根据输入的FRU信息格式需求,对初始配置文件中的键值对进行更新操作,得到配置文件;其中,更新操作至少包括添加操作、删除操作及修改操作中的一项操作。
基于上述实施例,本实施例中镜像文件构建模块203,通常包括:
CRC校验标准确定单元,用于从CRC-8、CRC-16及CRC-32中确定CRC校验标准;
镜像文件构建单元,用于根据CRC校验标准对键值进行对应的CRC校验,并在CRC校验通过后构建镜像文件。
基于上述实施例,本实施例中该FRU信息生成系统通常还可以包括:
校验值获取模块,用于获取CRC校验对应的校验值;
校验值写入模块,用于在CRC校验通过后,将校验值写入EEPROM中的预设固定地址。
本申请还提供一种设备,包括:存储器和处理器;其中,存储器用于存储计算机程序,处理器用于执行计算机程序时实现上述任意实施例的FRU信息生成方法的步骤。
本申请还提供一种计算机可读存储介质,其特征在于,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述任意实施例的FRU信息生成方法的步骤。
该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例提供的系统而言,由于其与实施例提供的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上对本申请所提供的一种FRU信息生成方法、系统、设备及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本申请的原理及 实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。

Claims (10)

  1. 一种FRU信息生成方法,其特征在于,包括:
    根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,所述初始配置文件是以键值对的形式构建而成;
    利用解析工具对所述配置文件进行解析得到对应的键值,并将所述键值写入EEPROM;
    在对所述键值进行CRC校验通过后,构建镜像文件;
    利用ipmitool工具将所述镜像文件写入所述EEPROM,生成对应的FRU信息。
  2. 根据权利要求1所述的FRU信息生成方法,其特征在于,所述根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件,包括:
    根据输入的FRU信息格式需求,对所述初始配置文件中的所述键值对进行所述更新操作,得到所述配置文件;其中,所述更新操作至少包括添加操作、删除操作及修改操作中的一项操作。
  3. 根据权利要求1所述的FRU信息生成方法,其特征在于,所述在对所述键值进行CRC校验通过后,构建镜像文件,包括:
    从CRC-8、CRC-16及CRC-32中确定CRC校验标准;
    根据所述CRC校验标准对所述键值进行对应的CRC校验,并在所述CRC校验通过后构建所述镜像文件。
  4. 根据权利要求3所述的FRU信息生成方法,其特征在于,所述根据所述CRC校验标准对所述键值进行对应的CRC校验之后,还包括:
    获取所述CRC校验对应的校验值;
    在所述CRC校验通过后,将所述校验值写入所述EEPROM中的预设固定地址。
  5. 一种FRU信息生成系统,其特征在于,包括:
    配置文件获取模块,用于根据输入的需求对预设的初始配置文件进行更新操作,得到配置文件;其中,所述初始配置文件是以键值对的形式构建而成;
    配置文件解析模块,用于利用解析工具对所述配置文件进行解析得到 对应的键值,并将所述键值写入EEPROM;
    镜像文件构建模块,用于在对所述键值进行CRC校验通过后,构建镜像文件;
    FRU信息生成模块,用于利用ipmitool工具将所述镜像文件写入所述EEPROM,生成对应的FRU信息。
  6. 根据权利要求5所述的FRU信息生成系统,其特征在于,所述配置文件获取模块,包括:
    配置文件获取单元,用于根据输入的FRU信息格式需求,对所述初始配置文件中的所述键值对进行所述更新操作,得到所述配置文件;其中,所述更新操作至少包括添加操作、删除操作及修改操作中的一项操作。
  7. 根据权利要求5所述的FRU信息生成系统,其特征在于,所述镜像文件构建模块,包括:
    CRC校验标准确定单元,用于从CRC-8、CRC-16及CRC-32中确定CRC校验标准;
    镜像文件构建单元,用于根据所述CRC校验标准对所述键值进行对应的CRC校验,并在所述CRC校验通过后构建所述镜像文件。
  8. 根据权利要求7所述的FRU信息生成系统,其特征在于,还包括:
    校验值获取模块,用于获取所述CRC校验对应的校验值;
    校验值写入模块,用于在所述CRC校验通过后,将所述校验值写入所述EEPROM中的预设固定地址。
  9. 一种设备,其特征在于,包括:
    存储器和处理器;其中,所述存储器用于存储计算机程序,所述处理器用于执行所述计算机程序时实现如权利要求1至4任一项所述的FRU信息生成方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述的FRU信息生成方法的步骤。
PCT/CN2019/098493 2019-05-08 2019-07-31 一种fru信息生成方法、系统及相关装置 WO2020224065A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910379799.2 2019-05-08
CN201910379799.2A CN110069296A (zh) 2019-05-08 2019-05-08 一种fru信息生成方法、系统及相关装置

Publications (1)

Publication Number Publication Date
WO2020224065A1 true WO2020224065A1 (zh) 2020-11-12

Family

ID=67370306

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098493 WO2020224065A1 (zh) 2019-05-08 2019-07-31 一种fru信息生成方法、系统及相关装置

Country Status (2)

Country Link
CN (1) CN110069296A (zh)
WO (1) WO2020224065A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069296A (zh) * 2019-05-08 2019-07-30 苏州浪潮智能科技有限公司 一种fru信息生成方法、系统及相关装置
CN115129545A (zh) * 2022-06-29 2022-09-30 苏州浪潮智能科技有限公司 一种fru信息更新方法、系统、设备及可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446699A (zh) * 2016-09-29 2017-02-22 广东欧珀移动通信有限公司 刷机方法、装置及终端
CN107809335A (zh) * 2017-11-16 2018-03-16 北京润科通用技术有限公司 一种网络系统的配置方法及装置
CN110069296A (zh) * 2019-05-08 2019-07-30 苏州浪潮智能科技有限公司 一种fru信息生成方法、系统及相关装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9641339B2 (en) * 2013-07-31 2017-05-02 Arista Networks, Inc. System and method for authentication for field replaceable units
US9722859B2 (en) * 2014-01-23 2017-08-01 International Business Machines Corporation Evaluation of field replaceable unit dependencies and connections
CN105302690A (zh) * 2015-10-14 2016-02-03 浪潮电子信息产业股份有限公司 一种整机柜服务器监控管理方法
US10191729B2 (en) * 2015-11-09 2019-01-29 Lenovo Enterprise Solutions (Singapore) Pte. Ltd System and methodology for updating individualized system data to facilitate repair and/or replacement service provision
CN105488009B (zh) * 2015-12-03 2018-07-06 英业达科技有限公司 一种fru的读取/写入方法及读/写系统
CN108829445A (zh) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 一种主板更换方法和装置
CN109408146A (zh) * 2018-10-19 2019-03-01 郑州云海信息技术有限公司 一种处理现场可更换单元fru参数的方法及装置
CN109683970A (zh) * 2018-12-21 2019-04-26 广东浪潮大数据研究有限公司 一种服务器fru信息的修改方法、修改系统及相关装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446699A (zh) * 2016-09-29 2017-02-22 广东欧珀移动通信有限公司 刷机方法、装置及终端
CN107809335A (zh) * 2017-11-16 2018-03-16 北京润科通用技术有限公司 一种网络系统的配置方法及装置
CN110069296A (zh) * 2019-05-08 2019-07-30 苏州浪潮智能科技有限公司 一种fru信息生成方法、系统及相关装置

Also Published As

Publication number Publication date
CN110069296A (zh) 2019-07-30

Similar Documents

Publication Publication Date Title
US9372769B2 (en) Server and inspecting method thereof
JP7289334B2 (ja) コードをテストするための方法及び装置、電子機器、記憶媒体並びにコンピュータプログラム
US20070073907A1 (en) Device, method and computer program product readable medium for determining the identity of a component
TW201415214A (zh) 企業裝置用強韌硬體故障管理系統、方法及架構
WO2020224065A1 (zh) 一种fru信息生成方法、系统及相关装置
WO2019104891A1 (zh) 报表导入导出的方法、装置、存储介质及终端
US20220012113A1 (en) Software code change reversal tool
CN110543301A (zh) jenkins代码文件的生成方法及装置
CN112486814A (zh) 系统迁移性测试方法、迁移性测试系统、装置及存储介质
CN111258832A (zh) 一种接口参数校验方法、装置、设备及介质
JP2008009861A (ja) システム構成管理方式
US20090063905A1 (en) System and Method for Error Checking of Failed I/O Open Calls
CN110941625B (zh) 支付一致性校验方法、系统、设备及存储介质
WO2012131868A1 (ja) 計算機システムの管理方法及び管理装置
CN113010208A (zh) 一种版本信息的生成方法、装置、设备及存储介质
CN112947964A (zh) 一种芯片的固件更新方法、装置、设备及存储介质
US11182272B2 (en) Application state monitoring
CN112286909B (zh) 执行状态确定方法、装置、服务器及存储介质
CN115185819A (zh) 系统测试方法、装置、设备及计算机可读存储介质
CN111581213B (zh) 信息记录方法、装置、以及设备
CN113190531A (zh) 一种数据库迁移方法、装置、设备和存储介质
CN111857664B (zh) 一种应用开发的方法、装置、设备及存储介质
CN116661758B (zh) 一种优化日志框架配置的方法、装置、电子设备及介质
CN113626409B (zh) 一种测试资料处理方法、装置、设备及存储介质
US11513862B2 (en) System and method for state management of devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19928009

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19928009

Country of ref document: EP

Kind code of ref document: A1