CN110147297B - Method and device for mutually backing up and updating mainboard information - Google Patents

Method and device for mutually backing up and updating mainboard information Download PDF

Info

Publication number
CN110147297B
CN110147297B CN201910295254.3A CN201910295254A CN110147297B CN 110147297 B CN110147297 B CN 110147297B CN 201910295254 A CN201910295254 A CN 201910295254A CN 110147297 B CN110147297 B CN 110147297B
Authority
CN
China
Prior art keywords
information
mainboard information
mainboard
fru
data structure
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910295254.3A
Other languages
Chinese (zh)
Other versions
CN110147297A (en
Inventor
马井彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tongtaiyi Information Technology Co ltd
Original Assignee
Shenzhen Tongtaiyi Information Technology Co ltd
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 Shenzhen Tongtaiyi Information Technology Co ltd filed Critical Shenzhen Tongtaiyi Information Technology Co ltd
Priority to CN201910295254.3A priority Critical patent/CN110147297B/en
Publication of CN110147297A publication Critical patent/CN110147297A/en
Application granted granted Critical
Publication of CN110147297B publication Critical patent/CN110147297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for mutually backing up and updating mainboard information, which are used for updating the mainboard information of an SMBIOS data structure table and the mainboard information of an FRU (firmware recovery Unit), and comprise initializing the mainboard information of the SMBIOS data structure table and updating the mainboard information of the SMBIOS data structure table; respectively carrying out validity judgment on the SMBIOS data structure table and the mainboard information of the FRU, and judging whether the mainboard information is valid mainboard information or not; according to the effectiveness judgment result, the effective mainboard information is transmitted between the SMBIOS data structure table and the FRU; and updating mainboard information, and updating the effective mainboard information into an SMBIOS data structure table or an FRU. Through checking the validity of SMBIOS data structure table and FRU's mainboard information respectively, the automatic backup and the effective mainboard information of renewal greatly reduced user participates in the probability of revising mainboard information, avoids makeing mistakes.

Description

Method and device for mutually backing up and updating mainboard information
Technical Field
The invention belongs to the technical field of data backup, and particularly relates to a method and a device for mutually backing up and updating mainboard information.
Background
In the process of starting a server mainboard, a BIOS (Basic Input Output System, which is used for initializing and detecting various hardware devices in the process of starting a computer) program can perform chip self-checking, mainboard hardware initialization, resource allocation and other work, the BIOS can also collect mainboard information, construct an SMBIOS (System Management BIOS, which is a unified specification that a mainboard or a System manufacturer needs to follow to display product Management information in a standard format), store structure table data in a BIOS nonvolatile data storage area, and after entering the System, display the SMBIOS data structure table according to the format specified by the SMBIOS specification for a user to look up Basic information of the mainboard. A BMC (Baseboard Management Controller), which is generally built in a motherboard and supports the IPMI specification of an industry standard, includes functions provided by the BMC, including local and remote diagnosis, console support, configuration Management, hardware Management, and troubleshooting, that a memory chip is mounted on the chip and used for storing Field Replaceable Unit (FRU) data, where the FRU data information includes motherboard information, and the motherboard information of the FRU can be displayed on a BMC interface for a user to look up.
However, the current methods for modifying the data structure table of the SMBIOS mainly include:
firstly, the method comprises the following steps: the modification is performed by redeveloping and compiling the BIOS file. The method increases the development difficulty and maintenance cost for various small customization requirements.
Secondly, the method comprises the following steps: information modification is manually entered by the tool. The method is easy to make mistakes and inconvenient for batch setting.
At present, the method for modifying FRU mainboard information mainly comprises:
firstly, the method comprises the following steps: and burning the memory chip through the burner. The method requires hardware welding operation, is not suitable for batch operation and has higher difficulty.
Secondly, the method comprises the following steps: information modification is manually entered by the tool. The method is easy to make mistakes and inconvenient for batch setting.
In addition, after the BIOS chip is replaced or the BIOS is upgraded, the SMBIOS data structure table data needs to be updated, such as a serial number and an asset number, and after the FRU memory chip is replaced or the FRU data is flushed, the FRU mainboard information also needs to be updated. When general mainboard information is modified, the SMBIOS data structure table and the FRU data are required to be modified simultaneously, and the mainboard information is consistent, so that the consistency of the mainboard information searched by a user in the SMBIOS data structure table and the FRU mainboard information is ensured. The SMBIOS data structure table and the FRU data need to be updated and modified under various conditions of customizing the main board, maintaining the main board and the like, so that the error probability and the maintenance cost are increased.
Disclosure of Invention
The invention provides a method and a device for mutually backing up and updating mainboard information.
The technical scheme provided by the invention is as follows:
a method for mutually backing up and updating mainboard information is used for updating the mainboard information of an SMBIOS data structure table and the mainboard information of an FRU, and the method comprises the following steps:
initializing the mainboard information of the SMBIOS data structure table, and updating the mainboard information of the SMBIOS data structure table;
respectively carrying out validity judgment on the SMBIOS data structure table and the mainboard information of the FRU, and judging whether the mainboard information is valid mainboard information or not;
according to the effectiveness judgment result, the effective mainboard information is transmitted between the SMBIOS data structure table and the FRU;
updating mainboard information, and updating the effective mainboard information into an SMBIOS data structure table or an FRU;
and automatically backing up and updating the effective mainboard information by respectively checking the effectiveness of the SMBIOS data structure table and the mainboard information of the FRU.
Preferably, the validity of the SMBIOS data structure table and the mainboard information of the FRU is judged through the cooperation of the BIOS and the BMC.
Preferably, the method for updating the motherboard information includes:
s100, the SMBIOS data structure table and the mainboard information of the FRU are invalid mainboard information, and synchronous updating of the mainboard information is not carried out;
s200, one of the mainboard information in the SMBIOS data structure table and the mainboard information of the FRU is invalid mainboard information, the other mainboard information is valid mainboard information, and the invalid mainboard information is synchronously updated by the valid mainboard information;
s300, the SMBIOS data structure table and the mainboard information of the FRU are effective mainboard information, the two mainboard information are consistent, and synchronous updating of the mainboard information is not carried out; and the two mainboard information are inconsistent, and the SMBIOS data structure table or the mainboard information of the FRU is synchronously updated according to whether the synchronous mark is set.
Preferably, S100 is specifically:
s110, reading mainboard information of the SMBIOS data structure table, and judging the mainboard information to be invalid mainboard information;
s120, acquiring mainboard information of the FRU, and judging the mainboard information to be invalid mainboard information;
s130, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s140, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
Preferably, the S200 is specifically:
s211, reading the mainboard information of the SMBIOS data structure table, and judging the mainboard information to be invalid mainboard information;
s221, acquiring mainboard information of the FRU, and judging the mainboard information to be effective mainboard information;
s231, transmitting the effective mainboard information of the FRU to an SMBIOS data structure table, and updating the invalid mainboard information of the SMBIOS data structure table to the effective mainboard information;
s241, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s251, setting the synchronous mark and finishing program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
Preferably, the S200 is specifically:
s212, reading the mainboard information of the SMBIOS data structure table, and judging that the mainboard information is effective mainboard information;
s222, acquiring mainboard information of the FRU, and judging the mainboard information to be invalid mainboard information;
s232, transmitting the effective mainboard information of the SMBIOS data structure table to the FRU, and updating the invalid mainboard information of the FRU into the effective mainboard information;
s242, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s252, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
Preferably, the S300 is specifically:
s311, reading the mainboard information of the SMBIOS data structure table, and judging that the mainboard information is effective mainboard information;
s321, acquiring mainboard information of the FRU, and judging the mainboard information to be effective mainboard information;
s331, comparing the SMBIOS data structure table with the mainboard information of the FRU, wherein the mainboard information of the SMBIOS data structure table is consistent with the mainboard information of the FRU;
s341, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s351, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
Preferably, the S300 is specifically:
s312, reading the mainboard information of the SMBIOS data structure table, and judging that the mainboard information is effective mainboard information;
s322, acquiring mainboard information of the FRU, and judging the mainboard information to be effective mainboard information;
s332, comparing the SMBIOS data structure table with the mainboard information of the FRU, wherein the mainboard information of the SMBIOS data structure table is inconsistent with the mainboard information of the FRU;
and S342, acquiring FRU synchronization mark data and judging whether a synchronization mark is set.
S352, the synchronization mark is set, the mainboard information of the SMBIOS data structure table is transmitted to the FRU, and the mainboard information of the FRU is updated to the mainboard information of the SMBIOS data structure table; the synchronous mark is not set, the mainboard information of the FRU is transmitted to the SMBIOS data structure table, and the mainboard information of the SMBIOS data structure table is updated to the mainboard information of the FRU;
s362, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s372, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
Preferably, the synchronization flag is not set, the mainboard information data of the FRU is modified, the mainboard information of the FRU is the latest data, and the mainboard information of the FRU is synchronized to SMBIOS;
the synchronization mark is set, the main board information data of the SMBIOS data structure table is modified, the main board information of the SMBIOS data structure table is the latest data, and the main board information of the SMBIOS data structure table is synchronized to the FRU.
A device based on the method for mutually backing up and updating the mainboard information comprises the following steps:
the initialization module is used for initializing the mainboard information and updating the mainboard information;
the validity judgment module is used for judging the validity of the mainboard information;
the data transmission module is used for transmitting the mainboard information between the SMBIOS data structure table and the FRU;
and the information updating module is used for updating the SMBIOS data structure table or the mainboard information of the FRU.
The method and the device for mutually backing up and updating the mainboard information synchronize the SMBIOS structure table data and the FRU data information to the latest updated data based on automatic judgment, thereby greatly reducing the probability of the user participating in the modification of the mainboard information and avoiding errors.
Drawings
The present invention will be further described in the following detailed description of preferred embodiments, which is to be read in connection with the accompanying drawings.
FIG. 1 is a schematic flow chart of a method provided by an embodiment of the present invention;
fig. 2 is a schematic diagram of a device architecture according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
The method for mutually backing up and updating the mainboard information, which is provided by the embodiment of the invention, is used for mutually updating and backing up the mainboard information between an SMBIOS data structure table and an FRU, and specifically comprises the following steps:
and updating the mainboard information of the SMBIOS by initializing the mainboard information of the SMBIOS data structure table.
And respectively carrying out validity judgment on the mainboard information of the SMBIOS data structure table and the mainboard information of the FRU information data, and judging whether the mainboard information is valid mainboard information.
According to the validity judgment result, effective mainboard information is transmitted between the SMBIOS data structure table and the FRU storage area, the effective mainboard information can be transmitted to the FRU storage area from the SMBIOS data structure table, and the effective mainboard information can also be transmitted to the SMBIOS data structure table from the FRU storage area.
And updating the mainboard information of the SMBIOS data structure table or the FRU, and updating the effective mainboard information into the SMBIOS data structure table or the FRU storage area.
By checking the effectiveness of the SMBIOS data structure table and the mainboard information data of the FRU, the method can automatically backup and update the mainboard information.
Specifically, the method for mutually backing up and updating motherboard information of this embodiment may be implemented in the flow shown in fig. 1, and includes:
initializing the mainboard information in the SMBIOS data structure table, specifically comprising: after the mainboard is powered on, the BIOS system starts to operate, and then works such as hardware self-check, hardware initialization, resource allocation and the like are carried out. After the basic configuration is completed, the BIOS system starts initialization of the SMBIOS data structure table, and forms the SMBIOS data structure table by constructing various types of data structures, so that mainboard information predefined by the system or modified by a user through a tool and information collected by the BIOS are set in the data structure table.
The principle of judging whether the mainboard information in the SMBIOS data structure table is valid mainboard information or invalid information is that the mainboard information can be analyzed into visible characters for users to look up under the system. If the invisible character code exists in the mainboard information, the mainboard information is invalid information. In addition, the serial number and the asset number information must be updated when the product leaves the factory, the serial number and the asset number information corresponding to each product are unique and cannot be equal to data predefined by the BIOS or the BMC, and if the data is equal to character data predefined by the BIOS or the BMC, the motherboard information is also invalid information.
After the initialization of the motherboard information in the SMBIOS data structure table is completed, based on the judgment principle of the validity of the motherboard information, the validity judgment and the backup and update of the motherboard information of this embodiment include the following several situations:
and when the mainboard information in the first SMBIOS data structure table and the FRU is judged to be invalid information, the data synchronization updating of the mainboard information is not carried out.
And secondly, one of the mainboard information of the SMBIOS data structure table and the mainboard information of the FRU is judged to be invalid mainboard information, and the other is judged to be valid mainboard information, so that valid mainboard information data in the SMBIOS data structure table and the FRU is synchronized to the invalid mainboard information in the SMBIOS data structure table and the FRU.
And thirdly, when the mainboard information in the SMBIOS data structure table and the FRU is judged to be effective mainboard information, the two effective mainboard information are consistent, and synchronous updating is not needed. If the two effective mainboard information are inconsistent, the mainboard information of the SMBIOS or the FRU is synchronously updated according to whether the FUR synchronous mark is set, so that the two effective mainboard information are consistent.
Specifically, for the first case, the mutual backup and update of the motherboard information includes the following steps:
and S110, reading the mainboard information in the SMBIOS data structure table, and judging that the mainboard information in the SMBIOS data structure table is invalid mainboard information according to an effectiveness judgment principle.
S120, acquiring mainboard information in the FRU information data, and judging that the mainboard information in the FRU information data is invalid information according to an effectiveness judgment principle.
S130, acquiring FRU synchronization mark data, and judging whether the FRU synchronization mark is set.
S140, according to the judgment result, if the FRU synchronous mark is set, the operation of the whole program is ended; and if the FRU synchronous mark is not set, finishing the operation of the whole program after the FRU synchronous mark is set.
According to the steps, the main board information of the SMBIOS data structure table and the FRU is judged to be invalid main board information through effectiveness, so that the mutual synchronization and updating of the effective main board information between the SMBIOS data structure table and the FRU cannot be carried out in the process of the method.
Specifically, for the second case, the mutual backup and update of the motherboard information includes the following steps:
and S211, reading the mainboard information in the SMBIOS data structure table, and judging that the mainboard information in the SMBIOS data structure table is invalid mainboard information according to an effectiveness judgment principle.
S221, obtaining mainboard information in the FRU information data, and judging that the mainboard information in the FRU information data is effective mainboard information according to an effectiveness judgment principle.
S231, analyzing mainboard information data of the FRU, transmitting the mainboard information of the FRU to the SMBIOS data structure table, and updating invalid mainboard information in the SMBIOS data structure table into valid mainboard information.
And the analyzed FRU mainboard information data is distributed in the SMBIOS data structure table according to various data formats of the SMBIOS data structure table, so that the SMBIOS data structure table is updated.
And S241, acquiring FRU synchronization mark data and judging whether a synchronization mark is set.
S251, according to the judgment result, if the synchronous mark is set, the operation of the whole program is ended; if the synchronous mark is not set, the operation of the whole program is finished after the synchronous mark is set.
According to the steps, the mainboard information of the SMBIOS data structure table is judged to be invalid mainboard information through effectiveness, and the mainboard information of the FRU is valid mainboard information, so that the valid mainboard information is synchronized to the SMBIOS data structure table from the FRU, and mutual synchronization and updating of the valid mainboard information between the SMBIOS data structure table and the FRU are completed.
Specifically, for the second case, the mutual backup and update of the motherboard information further includes the following steps:
s212, reading the mainboard information in the SMBIOS data structure table, and judging that the mainboard information in the SMBIOS data structure table is effective mainboard information according to an effectiveness judgment principle.
S222, obtaining mainboard information in the FRU information data, and judging that the mainboard information in the FRU information data is invalid mainboard information according to an effectiveness judgment principle.
S232, processing mainboard information data in the SMBIOS data structure table, transmitting the mainboard information in the SMBIOS data structure table to the FRU, and updating invalid mainboard information of the FRU into valid mainboard information.
When the mainboard information data in the SMBIOS data structure table is processed, the command program is sent by calling the BMC according to the predefined format configuration, and the mainboard information data is sent to the BMC, so that the mainboard information data in the FRU is updated.
And S242, acquiring FRU synchronization mark data and judging whether a synchronization mark is set.
S252, according to the judgment result, if the synchronous mark is set, the operation of the whole program is ended; if the synchronous mark is not set, the operation of the whole program is finished after the synchronous mark is set.
According to the steps, the effective mainboard information of the SMBIOS data structure table is judged to be effective mainboard information through effectiveness, and the mainboard information in the FRU is invalid information, so that the effective mainboard information is synchronized to the FRU from the SMBIOS data structure table, and mutual synchronization and updating of the effective mainboard information between the SMBIOS data structure table and the FRU are completed.
Specifically, for the third case, the mutual backup and update of the motherboard information includes the following steps:
and S311, reading the mainboard information in the SMBIOS data structure table, and judging that the mainboard information in the SMBIOS data structure table is effective mainboard information according to an effectiveness judgment principle.
S321, obtaining the mainboard information in the FRU information data, and judging that the mainboard information in the FRU information data is effective mainboard information according to an effectiveness judgment principle.
And S331, comparing the mainboard information in the SMBIOS data structure table with the mainboard information in the FRU, and judging that the mainboard information in the SMBIOS data structure table is consistent with the mainboard information in the FRU.
S341, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set.
S351, according to the judgment result, if the synchronous mark is set, the operation of the whole program is ended; if the synchronous mark is not set, the operation of the whole program is finished after the synchronous mark is set.
According to the steps, the main board information in the SMBIOS data structure table and the main board information in the FRU are both effective main board information through effectiveness judgment, and the main board information of the SMBIOS data structure table is consistent with the main board information of the FRU, so mutual synchronization and updating of the effective main board information between the SMBIOS data structure table and the FRU are not needed.
Specifically, for the third case, the mutual backup and update of the motherboard information further includes the following steps:
and S312, reading the mainboard information in the SMBIOS data structure table, and judging that the mainboard information in the SMBIOS data structure table is effective mainboard information according to an effectiveness judgment principle.
S322, acquiring the mainboard information in the FRU information data, and judging that the mainboard information in the FRU information data is effective mainboard information according to an effectiveness judgment principle.
S332, comparing the mainboard information in the SMBIOS with the mainboard information in the FRU, and judging that the mainboard information in the SMBIOS is inconsistent with the mainboard information in the FRU.
And S342, acquiring FRU synchronization mark data and judging whether a synchronization mark is set.
S352, if the synchronization mark is set, transmitting the mainboard information of the SMBIOS to the FRU, synchronizing the mainboard information data in the SMBIOS data structure table to the FRU, and updating the mainboard information of the FRU into the mainboard information of the SMBIOS; if the synchronous mark is not set, transmitting the mainboard information of the FRU to the SMBIOS, synchronizing the mainboard information data of the FRU to the SMBIOS data structure table, and updating the mainboard information of the SMBIOS into the mainboard information of the FRU.
S362, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set.
S372, according to the judgment result, if the synchronous mark is set, ending the operation of the whole program; if the synchronous mark is not set, the operation of the whole program is finished after the synchronous mark is set.
According to the above steps, the main board information in the SMBIOS data structure table and the main board information in the FRU are effective main board information through effectiveness judgment, and because the main board information in the SMBIOS data structure table and the main board information in the FRU are inconsistent, the effective main board information is transmitted between the SMBIOS data structure table and the FRU and the main board information data are updated according to whether a synchronization mark is set, so that mutual synchronization and updating of the effective main board information between the SMBIOS data structure table and the FRU are completed.
Further, for the third case, on the premise that both the motherboard information of the SMBIOS data structure table and the motherboard information in the FRU are valid motherboard information, for the synchronization flag of the FRU, the BIOS checks and sets the FRU flag information data each time the computer is turned on, and if the synchronization flag is cleared, that is, the synchronization flag is not set, it indicates that the motherboard information data of the FRU has been modified, and therefore the motherboard information of the FRU is the latest user update data, and the motherboard information of the FRU needs to be synchronized to the SMBIOS; if the synchronization mark is not cleared, namely the synchronization mark is set, the inconsistency of the main board information data in the SMBIOS data structure table and the FRU is caused by the fact that the SMBIOS data is modified, therefore, the main board information of the SMBIOS data structure table is the latest user update data, and the main board information of the SMBIOS needs to be synchronized to the FRU.
Further, the specific method for judging whether the motherboard information in the FRU is valid motherboard information is to configure read FRU information command data, call and send a BMC command function, send a command to the BMC, obtain FRU motherboard information, analyze FRU motherboard information, and judge whether the motherboard information in the FRU is valid motherboard information according to the analysis result.
Further, the specific method for acquiring FRU synchronization flag data is to configure FRU flag information command data, call and send a BMC command function, and send a command to the BMC, thereby acquiring FRU synchronization flag data.
Further, the specific method for setting the FRU synchronization flag is to configure FRU synchronization flag information command data, call and send a BMC command function, and send a command to the BMC, thereby setting the synchronization flag.
The method flow in this embodiment may be specifically implemented on a device as shown in fig. 2, and specifically, the device includes:
the mainboard information initialization module is responsible for initializing mainboard information, receiving user configuration information and updating the mainboard information by predefining mainboard manufacturer and model information.
Mainboard information validity judgment module is responsible for carrying out validity judgment to mainboard information, judges whether mainboard information is valid mainboard information, and specific judgement can include whether configuration mainboard information and whether the user has the mistake to mainboard information configuration etc..
And the information data transmission module is responsible for transmitting the mainboard information between the SMBIOS data structure table and the FRU storage area and transmitting the effective mainboard information from the party with the effective mainboard information to the party with the invalid information.
And the information updating module is responsible for updating the mainboard information and updating the effective mainboard information into the SMBIOS structure table or the FRU storage area.
The method for mutually backing up and updating the mainboard information between the SMBIOS data structure table and the FRU checks the validity of the mainboard information data of the SMBIOS and the FRU through the cooperation of the BIOS and the BMC, realizes the mutual backup between the SMBIOS and the FRU, and automatically updates the backup data to the storage area of invalid mainboard information data. Meanwhile, the main board information in the SMBIOS data structure table and the FRU is synchronously updated to be the latest data according to the automatic judgment, so that the probability of the user participating in the modification of the main board information is greatly reduced, and errors are avoided.
It should be noted that the above embodiments can be freely combined as necessary. The above description is only a preferred embodiment of the present invention, but the present invention is not limited to the details of the above embodiment, and it should be noted that, for those skilled in the art, it is possible to make various modifications and alterations without departing from the principle of the present invention, and it should be understood that these modifications, alterations and equivalents should be regarded as the protection scope of the present invention.

Claims (9)

1. A method for mutually backing up and updating mainboard information is used for updating the mainboard information of an SMBIOS data structure table and the mainboard information of an FRU, and is characterized in that the method comprises the following steps:
initializing the mainboard information of the SMBIOS data structure table, and updating the mainboard information of the SMBIOS data structure table; respectively carrying out validity judgment on the SMBIOS data structure table and the mainboard information of the FRU, and judging whether the mainboard information is valid mainboard information or not;
according to the effectiveness judgment result, the effective mainboard information is transmitted between the SMBIOS data structure table and the FRU;
updating mainboard information, and updating the effective mainboard information into an SMBIOS data structure table or an FRU; wherein, the effective mainboard information is automatically backed up and updated by respectively checking the effectiveness of the SMBIOS data structure table and the mainboard information of the FRU,
the principle of judging whether the mainboard information in the SMBIOS data structure table is valid mainboard information or invalid mainboard information is that the mainboard information can be analyzed into visible characters for the user to look up under the system,
if the invisible character codes exist in the mainboard information, the mainboard information is invalid information;
in addition, the serial number and the asset number information must be updated when the product leaves the factory, the serial number and the asset number information corresponding to each product are unique and cannot be equal to the data predefined by the BIOS or the BMC, and if the data is equal to the character data predefined by the BIOS or the BMC, the mainboard information is also invalid information;
the method for updating the mainboard information comprises the following steps:
s100, the SMBIOS data structure table and the mainboard information of the FRU are invalid mainboard information, and synchronous updating of the mainboard information is not carried out;
s200, one of the mainboard information in the SMBIOS data structure table and the mainboard information of the FRU is invalid mainboard information, the other mainboard information is valid mainboard information, and the invalid mainboard information is synchronously updated by the valid mainboard information;
s300, the SMBIOS data structure table and the mainboard information of the FRU are effective mainboard information, the two mainboard information are consistent, and synchronous updating of the mainboard information is not carried out; and the two mainboard information are inconsistent, and the SMBIOS data structure table or the mainboard information of the FRU is synchronously updated according to whether the synchronous mark is set.
2. The method of claim 1, wherein the validity of the SMBIOS data structure table and the motherboard information of the FRU is determined by the cooperation of the BIOS and the BMC.
3. The method for mutually backing up and updating motherboard information according to claim 2, wherein the S100 specifically is:
s110, reading mainboard information of the SMBIOS data structure table, and judging the mainboard information to be invalid mainboard information;
s120, acquiring mainboard information of the FRU, and judging the mainboard information to be invalid mainboard information;
s130, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s140, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
4. The method for mutually backing up and updating motherboard information according to claim 3, wherein said S200 specifically is:
s211, reading the mainboard information of the SMBIOS data structure table, and judging the mainboard information to be invalid mainboard information;
s221, acquiring mainboard information of the FRU, and judging the mainboard information to be effective mainboard information;
s231, transmitting the effective mainboard information of the FRU to an SMBIOS data structure table, and updating the invalid mainboard information of the SMBIOS data structure table to the effective mainboard information; s241, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set; s251, setting the synchronous mark and finishing program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
5. The method for mutually backing up and updating motherboard information according to claim 3, wherein said S200 specifically is:
s212, reading the mainboard information of the SMBIOS data structure table, and judging that the mainboard information is effective mainboard information;
s222, acquiring mainboard information of the FRU, and judging the mainboard information to be invalid mainboard information;
s232, transmitting the effective mainboard information of the SMBIOS data structure table to the FRU, and updating the invalid mainboard information of the FRU into the effective mainboard information;
s242, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s252, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
6. The method for mutually backing up updated motherboard information as claimed in claim 3, wherein said S300 specifically is:
s311, reading the mainboard information of the SMBIOS data structure table, and judging that the mainboard information is effective mainboard information;
s321, acquiring mainboard information of the FRU, and judging the mainboard information to be effective mainboard information;
s331, comparing the SMBIOS data structure table with the mainboard information of the FRU, wherein the mainboard information of the SMBIOS data structure table is consistent with the mainboard information of the FRU;
s341, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s351, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
7. The method for mutually backing up updated motherboard information as claimed in claim 3, wherein said S300 specifically is:
s312, reading the mainboard information of the SMBIOS data structure table, and judging that the mainboard information is effective mainboard information;
s322, acquiring mainboard information of the FRU, and judging the mainboard information to be effective mainboard information;
s332, comparing the SMBIOS data structure table with the mainboard information of the FRU, wherein the mainboard information of the SMBIOS data structure table is inconsistent with the mainboard information of the FRU;
s342, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s352, the synchronization mark is set, the mainboard information of the SMBIOS data structure table is transmitted to the FRU, and the mainboard information of the FRU is updated to the mainboard information of the SMBIOS data structure table; the synchronous mark is not set, the mainboard information of the FRU is transmitted to the SMBIOS data structure table, and the mainboard information of the SMBIOS data structure table is updated to the mainboard information of the FRU;
s362, acquiring FRU synchronization mark data, and judging whether a synchronization mark is set;
s372, setting the synchronous mark and ending program operation; and if the synchronous mark is not set, ending the program operation after the synchronous mark is set.
8. The method of claim 7, wherein the synchronization flag is not set, the motherboard information data of the FRU is modified, the motherboard information of the FRU is the latest data, and the motherboard information of the FRU is synchronized to the SMBIOS data structure table; the synchronization mark is set, the main board information data of the SMBIOS data structure table is modified, the main board information of the SMBIOS data structure table is the latest data, and the main board information of the SMBIOS data structure table is synchronized to the FRU.
9. An apparatus for backing up and updating motherboard information with each other according to any one of claims 1 to 8, wherein the apparatus comprises:
the initialization module is used for initializing the mainboard information of the SMBIOS data structure table and updating the mainboard information of the SMBIOS data structure table;
the validity judgment module is used for respectively judging the validity of the SMBIOS data structure table and the mainboard information of the FRU and judging whether the mainboard information is valid mainboard information or not;
wherein, the principle of judging whether the mainboard information in the SMBIOS data structure table is valid mainboard information or invalid mainboard information is that the mainboard information can be analyzed into visible characters for the user to look up under the system,
if the invisible character codes exist in the mainboard information, the mainboard information is invalid information;
in addition, the serial number and the asset number information must be updated when the product leaves the factory, the serial number and the asset number information corresponding to each product are unique and cannot be equal to the data predefined by the BIOS or the BMC, and if the data is equal to the character data predefined by the BIOS or the BMC, the mainboard information is also invalid information;
the data transmission module is used for transmitting the mainboard information between the SMBIOS data structure table and the FRU;
the information updating module is used for updating the effective mainboard information into an SMBIOS data structure table or an FRU;
the method for updating the mainboard information comprises the following steps:
s100, the SMBIOS data structure table and the mainboard information of the FRU are invalid mainboard information, and synchronous updating of the mainboard information is not carried out;
s200, one of the mainboard information in the SMBIOS data structure table and the mainboard information of the FRU is invalid mainboard information, the other mainboard information is valid mainboard information, and the invalid mainboard information is synchronously updated by the valid mainboard information;
s300, the SMBIOS data structure table and the mainboard information of the FRU are effective mainboard information, the two mainboard information are consistent, and synchronous updating of the mainboard information is not carried out; and the two mainboard information are inconsistent, and the SMBIOS data structure table or the mainboard information of the FRU is synchronously updated according to whether the synchronous mark is set.
CN201910295254.3A 2019-04-12 2019-04-12 Method and device for mutually backing up and updating mainboard information Active CN110147297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910295254.3A CN110147297B (en) 2019-04-12 2019-04-12 Method and device for mutually backing up and updating mainboard information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910295254.3A CN110147297B (en) 2019-04-12 2019-04-12 Method and device for mutually backing up and updating mainboard information

Publications (2)

Publication Number Publication Date
CN110147297A CN110147297A (en) 2019-08-20
CN110147297B true CN110147297B (en) 2021-07-06

Family

ID=67588854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910295254.3A Active CN110147297B (en) 2019-04-12 2019-04-12 Method and device for mutually backing up and updating mainboard information

Country Status (1)

Country Link
CN (1) CN110147297B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192164A (en) * 2006-11-28 2008-06-04 英业达股份有限公司 Computer platform built-in products data unification updating process method and system
CN103186404A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 System firmware update method and server system applying same
CN104317667A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)
CN106301967A (en) * 2016-10-25 2017-01-04 杭州华为数字技术有限公司 A kind of method of data synchronization and outband management equipment
CN107491293A (en) * 2017-04-14 2017-12-19 广东浪潮大数据研究有限公司 A kind of BIOS foundation code design methods based on Board ID
CN109240725A (en) * 2018-09-14 2019-01-18 郑州云海信息技术有限公司 A kind of method and system for not being updated of DMI synchronizing information after updating BIOS

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578008B2 (en) * 2015-05-11 2017-02-21 Intel Corporation Technologies for secure bootstrapping of virtual network functions

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192164A (en) * 2006-11-28 2008-06-04 英业达股份有限公司 Computer platform built-in products data unification updating process method and system
CN103186404A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 System firmware update method and server system applying same
CN104317667A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)
CN106301967A (en) * 2016-10-25 2017-01-04 杭州华为数字技术有限公司 A kind of method of data synchronization and outband management equipment
CN107491293A (en) * 2017-04-14 2017-12-19 广东浪潮大数据研究有限公司 A kind of BIOS foundation code design methods based on Board ID
CN109240725A (en) * 2018-09-14 2019-01-18 郑州云海信息技术有限公司 A kind of method and system for not being updated of DMI synchronizing information after updating BIOS

Also Published As

Publication number Publication date
CN110147297A (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN105320729B (en) Data collection and cleansing at source
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN106980493B (en) Firmware management method and device
CN116107819A (en) Server start-up fault detection system, method, device and medium
CN114675987A (en) Cache data processing method and device, computer equipment and storage medium
CN114020340B (en) Server system and data processing method thereof
JP2007082078A (en) Data relay device
CN110147297B (en) Method and device for mutually backing up and updating mainboard information
CN107203471B (en) Joint debugging method, service platform and computer storage medium
CN1680920B (en) Method and apparatus of basic inputting and outputting system in far-end updating data processing system
CN113656088B (en) Self-service management method, device and storage medium for internet data center server
CN115794486A (en) Robot information acquisition method, system, device and readable medium
CN115098342A (en) System log collection method, system, terminal and storage medium
JP2007310807A (en) Plug-in version management system
CN115357355A (en) Method, device and equipment for software cross-system migration and readable storage medium
CN112765188A (en) Configuration information processing method, configuration management system, electronic device, and storage medium
CN112463887A (en) Data processing method, device, equipment and storage medium
JP6825690B1 (en) Information processing system, information processing method and information processing equipment
CN115225193B (en) BMC time synchronization method, system, device and readable storage medium
CN113869108B (en) Method and related device for identifying equipment connected with hard disk backboard
CN114785673B (en) Method and device for acquiring abnormal information during active-standby switching
CN111880825B (en) Firmware upgrading method and device, electronic equipment and storage medium
CN116303787A (en) Data processing method, storage medium and equipment for database cluster
CN113435169A (en) Electronic seal data configuration method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant