CN110147297A - A kind of method and device of mutual backup updating mainboard information - Google Patents

A kind of method and device of mutual backup updating mainboard information Download PDF

Info

Publication number
CN110147297A
CN110147297A CN201910295254.3A CN201910295254A CN110147297A CN 110147297 A CN110147297 A CN 110147297A CN 201910295254 A CN201910295254 A CN 201910295254A CN 110147297 A CN110147297 A CN 110147297A
Authority
CN
China
Prior art keywords
mainboard information
mainboard
information
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.)
Granted
Application number
CN201910295254.3A
Other languages
Chinese (zh)
Other versions
CN110147297B (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 Tong Yi Yi Information Technology Co Ltd
Original Assignee
Shenzhen Tong Yi Yi 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 Tong Yi Yi Information Technology Co Ltd filed Critical Shenzhen Tong Yi Yi 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

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 present invention proposes a kind of method and device of mutual backup updating mainboard information, for updating the mainboard information of SMBIOS data structure table and the mainboard information of FRU, mainboard information including initializing SMBIOS data structure table, updates the mainboard information of SMBIOS data structure table;Effective judgement is carried out to the mainboard information of SMBIOS data structure table and FRU respectively, judges whether the mainboard information is effective mainboard information;According to Effective judgement as a result, transmitting effective mainboard information between SMBIOS data structure table and FRU;Mainboard information is updated, by effective mainboard information update into SMBIOS data structure table or FRU.By checking respectively for the validity of the mainboard information of SMBIOS data structure table and FRU, automated back-up simultaneously updates effective mainboard information, substantially reduces the probability that user participates in modification mainboard information, avoids malfunctioning.

Description

A kind of method and device of mutual backup updating mainboard information
Technical field
The invention belongs to the technical fields of data backup, and in particular to a kind of method of mutual backup updating mainboard information and Device.
Background technique
In server master board start process, BIOS (Basic Input Output System, basic input and output system System, initialization and detection for hardware devices various during computer booting) program will do it chip self-test, motherboard hardware The work such as initialization, resource allocation, BIOS can also collect mainboard information, building SMBIOS (System Management BIOS, Mainboard or system manufacturer show the unified standard followed needed for management of product information in a standard format) data structure table, it will tie Structure table data are stored in BIOS non-volatile data storage area, and into after system, standardizing defined format according to SMBIOS can To show SMBIOS data structure table, the essential information of mainboard is consulted for user.BMC(Baseboard Management Controller, baseboard management controller are generally built on mainboard, and the IPMI of professional standard is supported to standardize, The function that BMC is provided includes: local and remote diagnosis, console support, configuration management, hardware management and troubleshooting) chip Meeting carry storage chip, for storing FRU (Field Replaceable Unit, Field Replaceable Unit data), FRU data Include mainboard information in information, the mainboard information of FRU can be shown at the interface BMC and be consulted for user.
However, the method for modification SMBIOS data structure table mainly has at present:
First: being modified by developing compiling BIOS file again.This method increases a variety of a small amount of customized demand Development difficulty and maintenance cost.
Second: information modification is manually entered by tool.This method is easy error, is not easy to batch setting.
The amending method of FRU mainboard information mainly has at present:
First: passing through cd-rom recorder burning storage chip.This method needs hardware welding operation, is not suitable for batch jobs, and And difficulty is larger.
Second: information modification is manually entered by tool.This method is easy error, is not easy to batch setting.
In addition, SMBIOS data structure table data need to update, such as sequence after for the replacement of BIOS chip or upgrading BIOS Row number, asset number etc., after the replacement of FRU storage chip or after FRU data are brushed off, FRU mainboard information is also required to update.One As the modification of mainboard information when, it is desirable that SMBIOS data structure table and FRU data will be modified simultaneously, and mainboard information is consistent, it is ensured that User is consistent with mainboard information is consulted in FRU mainboard information in SMBIOS data structure table.For customization mainboard, maintenance mainboard etc. It requires to update modification to SMBIOS data structure table and FRU data in a variety of situations, increases probability and the maintenance of error Cost.
Summary of the invention
The present invention provides a kind of method and device of mutual backup updating mainboard information, passes through the cooperation of BIOS and BMC, inspection The validity for looking into SMBIOS structure table data and FRU information data, is mutually backups, and software automatically updates Backup Data to invalid Data storage area.
Technical solution provided by the invention is as follows:
A kind of method of mutual backup updating mainboard information, for update SMBIOS data structure table mainboard information and The mainboard information of FRU, this method comprises:
The mainboard information of SMBIOS data structure table is initialized, the mainboard information of SMBIOS data structure table is updated;
Effective judgement is carried out to the mainboard information of SMBIOS data structure table and FRU respectively, judges that the mainboard information is No is effective mainboard information;
According to Effective judgement as a result, transmitting effective mainboard information between SMBIOS data structure table and FRU;
Mainboard information is updated, by effective mainboard information update into SMBIOS data structure table or FRU;
Wherein, by checking respectively for the validity of the mainboard information of SMBIOS data structure table and FRU, automated back-up and more New effectively mainboard information.
Preferably, by the cooperation of BIOS and BMC, judge the effective of SMBIOS data structure table and the mainboard information of FRU Property.
Preferably, the method for update mainboard information includes:
The mainboard information of S100, SMBIOS data structure table and FRU are invalid mainboard information, without mainboard information Synchronized update;
A mainboard information in the mainboard information of S200, SMBIOS data structure table and FRU is invalid mainboard information, separately One mainboard information is effective mainboard information, updates invalid mainboard information with effective mainboard synchronizing information;
The mainboard information of S300, SMBIOS data structure table and FRU are effective mainboard information, two mainboard information one It causes, the synchronized update without mainboard information;Two mainboard information are inconsistent, according to whether being provided with synchronous mark, synchronize more The mainboard information of new SMBIOS data structure table or FRU.
Preferably, S100 is stated specifically:
S110, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for invalid mainboard information;
S120, the mainboard information for obtaining FRU, judge the mainboard information for invalid mainboard information;
S130, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S140, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronization After mark, terminate program operation.
Preferably, the S200 specifically:
S211, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for invalid mainboard information;
S221, the mainboard information for obtaining FRU, judge the mainboard information for effective mainboard information;
S231, effective mainboard information of FRU is transmitted to SMBIOS data structure table, and by SMBIOS data structure The invalid mainboard information update of table is effective mainboard information;
S241, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S251, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronization After mark, terminate program operation.
Preferably, the S200 specifically:
S212, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for effective mainboard information;
S222, the mainboard information for obtaining FRU, judge the mainboard information for invalid mainboard information;
S232, effective mainboard information of SMBIOS data structure table is transmitted to FRU, and by the described invalid of FRU Mainboard information update is effective mainboard information;
S242, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S252, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronization After mark, terminate program operation.
Preferably, the S300 specifically:
S311, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for effective mainboard information;
S321, the mainboard information for obtaining FRU, judge the mainboard information for effective mainboard information;
S331, compare SMBIOS data structure table and the mainboard information of FRU, the mainboard information of SMBIOS data structure table with The mainboard information of FRU is consistent;
S341, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S351, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronization After mark, terminate program operation.
Preferably, the S300 specifically:
S312, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for effective mainboard information;
S322, the mainboard information for obtaining FRU, judge the mainboard information for effective mainboard information;
S332, compare SMBIOS data structure table and the mainboard information of FRU, the mainboard information of SMBIOS data structure table with The mainboard information of FRU is inconsistent;
S342, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged.
S352, the synchronous mark has been set, the mainboard information of transmitting SMBIOS data structure table is transferred to FRU, and will The mainboard information update of FRU is the mainboard information of SMBIOS data structure table;The not set synchronous mark, transmits the master of FRU Plate information is to SMBIOS data structure table, and the mainboard information for being FRU by the mainboard information update of SMBIOS data structure table;
S362, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S372, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronization After mark, terminate program operation.
Preferably, the mainboard information data of the not set synchronous mark, FRU is modified, and the mainboard information of FRU is newest Data, by the mainboard synchronizing information of FRU to SMBIOS;
The synchronous mark has been set, and the mainboard information data of SMBIOS data structure table is modified, SMBIOS data knot The mainboard information of structure table is latest data, by the mainboard synchronizing information of SMBIOSU data structure table to FRU.
A kind of device of the method based on above-mentioned mutual backup updating mainboard information, comprising:
Initialization module, for initializing mainboard information, by mainboard information update;
Effective judgement module, for carrying out Effective judgement to mainboard information;
Data transfer module, for transmitting mainboard information between SMBIOS data structure table and FRU;
Information updating module, for updating the mainboard information of SMBIOS data structure table or FRU.
The method and device of mutual backup updating mainboard information of the invention is tied SMBIOS with judging automatically as foundation Structure table data and FRU data information are synchronized to latest update data, substantially reduce the probability that user participates in modification mainboard information, keep away Exempt to malfunction.
Detailed description of the invention
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, the present invention is given furtherly It is bright.
Fig. 1 show method flow schematic diagram provided in an embodiment of the present invention;
Fig. 2 show device architecture schematic diagram provided in an embodiment of the present invention.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, there is identical structure or function in some figures so that simplified form is easy to understand Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated " only this ", can also indicate the situation of " more than one ".
The method of the mutual backup updating mainboard information of the embodiment of the present invention, for SMBIOS data structure table and FRU it Between mainboard information it is mutual update and backup, specifically include:
By initializing the mainboard information of SMBIOS data structure table, the mainboard information of SMBIOS is updated.
Validity is carried out to the mainboard information of the mainboard information of SMBIOS data structure table and FRU information data respectively to sentence It is disconnected, judge whether above-mentioned mainboard information is effective mainboard information.
According to Effective judgement as a result, transmitting effective mainboard letter between SMBIOS data structure table and the memory block FRU Breath, can be transmitted to the memory block FRU from SMBIOS data structure table for effective mainboard information, effective mainboard can also be believed Breath is transmitted to SMBIOS data structure table from the memory block FRU.
SMBIOS data structure table or the mainboard information of FRU are updated, by effective mainboard information update to SMBIOS data In structure table or the memory block FRU.
Wherein, by checking that the validity of the mainboard information data of SMBIOS data structure table and FRU, this method can be certainly It is dynamic to back up and update mainboard information.
Specifically, the method for the mutual backup updating mainboard information of the present embodiment, can be real in process as shown in Figure 1 It is existing, comprising:
Mainboard information in SMBIOS data structure table is initialized, is specifically included: after mainboard completion powers on, BIOS system brings into operation, and carries out the work such as hardware check, hardware initialization, resource allocation immediately.Match completing above-mentioned basis It postponing, BIOS system starts to carry out the initial work of SMBIOS data structure table, by constructing various types of data structures, SMBIOS data structure table is formed, thus by system is predetermined or user is modified by tool mainboard information and BIOS The information of collection is arranged into data structure table.
Wherein, judge that the mainboard information in SMBIOS data structure table is the principle of effective mainboard information or invalid information It is that mainboard information wants that character visible can be parsed into, is consulted under system for user.If there are invisible characters in mainboard information Code, then the mainboard information is invalid information.In addition, sequence number, asset number information must be updated in product export, Sequence number corresponding to each product and asset number information are uniquely, cannot to be equal to BIOS or BMC number predetermined According to if the data are equal to BIOS or BMC character data predetermined, which is also invalid information.
After completing the mainboard information initializing in SMBIOS data structure table, the judgement based on the mainboard effectiveness of information is former Then, the Effective judgement of the present embodiment and mainboard information backup and update, including following several situations:
The first, when the mainboard information in SMBIOS data structure table and FRU is judged as invalid information, then without master The data synchronization updating of plate information.
The second, one in the mainboard information of SMBIOS data structure table and the mainboard information of FRU is judged as invalid Mainboard information, another is judged as effective mainboard information, then believes effective mainboard in SMBIOS data structure table and FRU Breath data are synchronized to the invalid mainboard information in SMBIOS data structure table and FRU.
When mainboard information in third, SMBIOS data structure table and FRU is judged as effective mainboard information, and two Effective mainboard information is consistent, then is not necessarily to synchronized update.If two effective mainboard information are inconsistent, according to whether being provided with FUR Synchronous mark, the mainboard information of synchronized update SMBIOS or FRU keep two effective mainboard information consistent.
Specifically, for the first case, the mutual backup for carrying out mainboard information includes the following steps: with update
S110, the mainboard information read in SMBIOS data structure table judge the SMBIOS according to Effective judgement principle Mainboard information in data structure table is invalid mainboard information.
S120, the mainboard information obtained in FRU information data judge the FRU information data according to Effective judgement principle In mainboard information be invalid information.
S130, FRU synchronous mark data are obtained, judges whether FRU synchronous mark is set.
S140, according to judging result, if FRU synchronous mark has been set, terminate the operation of entire program;If FRU Synchronous mark is not set, then after FRU synchronous mark is arranged, terminates the operation of entire program.
According to above step, the mainboard information that SMBIOS data structure table and FRU are obtained by Effective judgement is nothing Mainboard information is imitated, therefore the process of this method can not carry out effective mainboard information between SMBIOS data structure table and FRU It is mutually in step and updates.
Specifically, for second situation, the mutual backup for carrying out mainboard information includes the following steps: with update
S211, the mainboard information read in SMBIOS data structure table judge SMBIOS number according to Effective judgement principle It is invalid mainboard information according to the mainboard information in structure table.
S221, the mainboard information obtained in FRU information data judge in FRU information data according to Effective judgement principle Mainboard information be effective mainboard information.
The mainboard information of FRU is transmitted to SMBIOS data structure table by S231, the mainboard information data for parsing FRU, and will Invalid mainboard information update in SMBIOS data structure table is effective mainboard information.
Wherein, the FRU mainboard information data after parsing, in SMBIOS data structure table, according to SMBIOS data structure The various types data format of table is allocated, and arrives SMBIOS data structure table to update.
S241, FRU synchronous mark data are obtained, judges whether to be provided with synchronous mark.
S251, according to judging result, synchronous mark has been set, then has terminated the operation of entire program;Not set synchronous mark, Then after synchronous mark is set, terminate the operation of entire program.
According to above step, the mainboard information of SMBIOS data structure table is obtained as invalid mainboard letter by Effective judgement The mainboard information of breath, FRU is effective mainboard information, therefore effective mainboard information is synchronized to SMBIOS data structure table from FRU In, complete being mutually in step and updating for effective mainboard information between SMBIOS data structure table and FRU.
Specifically, for second situation, the mutual backup and update for carrying out mainboard information further include following steps:
S212, the mainboard information read in SMBIOS data structure table judge SMBIOS number according to Effective judgement principle It is effective mainboard information according to the mainboard information in structure table.
S222, the mainboard information obtained in FRU information data judge in FRU information data according to Effective judgement principle Mainboard information be invalid mainboard information.
Mainboard information data in S232, processing SMBIOS data structure table, by the mainboard in SMBIOS data structure table Information is transmitted to FRU, and is effective mainboard information by the invalid mainboard information update of FRU.
Wherein, it when handling the mainboard information data in SMBIOS data structure table, configures, leads to according to format predetermined It crosses calling BMC and sends command program, and mainboard information data is sent to BMC, to update the mainboard information data in FRU.
S242, FRU synchronous mark data are obtained, judges whether to be provided with synchronous mark.
S252, according to judging result, synchronous mark has been set, then has terminated the operation of entire program;Not set synchronous mark, Then after synchronous mark is set, terminate the operation of entire program.
According to above step, the mainboard information of SMBIOS data structure table is obtained as effective mainboard letter by Effective judgement It ceasing, the mainboard information in FRU is invalid information, therefore effective mainboard information is synchronized in FRU from SMBIOS data structure table, To complete being mutually in step and updating for effective mainboard information between SMBIOS data structure table and FRU.
Specifically, for the third situation, the mutual backup for carrying out mainboard information includes the following steps: with update
S311, the mainboard information read in SMBIOS data structure table judge SMBIOS number according to Effective judgement principle It is effective mainboard information according to the mainboard information in structure table.
S321, the mainboard information obtained in FRU information data judge in FRU information data according to Effective judgement principle Mainboard information be effective mainboard information.
S331, compare the mainboard information in SMBIOS data structure table and the mainboard information in FRU, judge SMBIOS data Mainboard information in structure table and the mainboard information in FRU are consistent.
S341, FRU synchronous mark data are obtained, judges whether to be provided with synchronous mark.
S351, according to judging result, synchronous mark has been set, then has terminated the operation of entire program;Not set synchronous mark, Then after synchronous mark is set, terminate the operation of entire program.
According to above step, the master in the mainboard information and FRU of SMBIOS data structure table is obtained by Effective judgement Plate information is effective mainboard information, and the mainboard information of SMBIOS data structure table and the mainboard information of FRU are consistent, because This is not necessarily to carry out being mutually in step and updating for effective mainboard information between SMBIOS data structure table and FRU.
Specifically, for the third situation, the mutual backup and update for carrying out mainboard information further include following steps:
S312, the mainboard information read in SMBIOS data structure table judge SMBIOS number according to Effective judgement principle It is effective mainboard information according to the mainboard information in structure table.
S322, the mainboard information obtained in FRU information data judge in FRU information data according to Effective judgement principle Mainboard information be effective mainboard information.
S332, compare the mainboard information in SMBIOS and the mainboard information in FRU, judge mainboard information in SMBIOS and Mainboard information in FRU is inconsistent.
S342, FRU synchronous mark data are obtained, judges whether to be provided with synchronous mark.
If synchronous mark S352, has been arranged, the mainboard information for transmitting SMBIOS is transferred to FRU, by SMBIOS data knot Mainboard information data in structure table is synchronized in FRU, and the mainboard information for being SMBIOS by the mainboard information update of FRU;If not yet There is setting synchronous mark, then transmits the mainboard information of FRU to SMBIOS, the mainboard information data of FRU is synchronized to SMBIOS number According in structure table, and the mainboard information for being FRU by the mainboard information update of SMBIOS.
S362, FRU synchronous mark data are obtained, judges whether to be provided with synchronous mark.
S372, according to judging result, synchronous mark has been set, then has terminated the operation of entire program;Not set synchronous mark, Then after synchronous mark is set, terminate the operation of entire program.
According to above step, the master in the mainboard information and FRU of SMBIOS data structure table is obtained by Effective judgement Plate information is effective mainboard information, and not due to the mainboard information in the mainboard information and FRU of SMBIOS data structure table Unanimously, therefore according to whether be provided with synchronous mark, effective mainboard information is transmitted between SMBIOS data structure table and FRU And the update of mainboard information data is carried out, to complete the phase of effective mainboard information between SMBIOS data structure table and FRU Mutually synchronization and update.
Further, the mainboard information for the third situation, in the mainboard information and FRU of SMBIOS data structure table Under the premise of being effective mainboard information, for the synchronous mark of FRU, BIOS can be in FRU flag information number when booting every time It is checked and is arranged in, if synchronous mark is removed, i.e., not set synchronous mark then shows the mainboard Information Number of FRU According to being modified, therefore the mainboard information of FRU is newest user more new data, needs to arrive the mainboard synchronizing information of FRU SMBIOS;If synchronous mark is not removed, that is, synchronous mark has been set, then has been shown in SMBIOS data structure table and FRU It is the mainboard information of SMBIOS data structure table since SMBIOS data are caused by modifying that mainboard information data is inconsistent For newest user more new data, need the mainboard synchronizing information of SMBIOSU to FRU.
Further, judge whether the mainboard information in FRU is that the specific method of effective mainboard information is, configuration is read BMC command functions are called and sent to FRU message command data, sends and orders to BMC, obtains FRU mainboard information, parses FRU master Plate information judges whether the mainboard information in FRU is effective mainboard information according to parsing result.
Further, the specific method for obtaining FRU synchronous mark data is to configure FRU flag information order data, is called And BMC command functions are sent, it sends and orders to BMC, to obtain FRU synchronous mark data.
Further, the specific method that FRU synchronous mark is arranged is to configure FRU synchronous mark message command data, is called And BMC command functions are sent, it sends and orders to BMC, so that synchronous mark be arranged.
Method flow in the present embodiment can specifically be realized on a kind of device as shown in Figure 2, specifically, is somebody's turn to do Device includes:
Mainboard information initializing module is responsible for initializing mainboard information, by pre-defining mainboard manufacturer, model Information receives user configuration information, by mainboard information update.
Mainboard effectiveness of information judgment module is responsible for carrying out Effective judgement to mainboard information, whether judges mainboard information For effective mainboard information, specific judgement may include whether configuration mainboard information and user have mainboard information configuration Accidentally etc..
Information data transfer module is responsible for carrying out mainboard information between SMBIOS data structure table and the memory block FRU Effective mainboard information, is transmitted to the side with invalid information by transmitting from the side with effective mainboard information.
Information updating module is responsible for being updated mainboard information, by effective mainboard information update to SMBIOS structure table Or in the memory block FRU.
The method that mainboard information between SMBIOS data structure table and FRU provided by the invention is backed up and updated mutually, By the cooperation of BIOS and BMC, the validity of the mainboard information data of SMBIOS and FRU is checked, realize between SMBIOS and FRU Mutual backup, Backup Data is updated to the memory block of invalid mainboard information data automatically.Meanwhile with judge automatically for according to According to, the mainboard synchronizing information in SMBIOS data structure table and FRU is updated to latest data, thus substantially reduce user participation The probability for modifying mainboard information, avoids malfunctioning.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred Embodiment, but the present invention is not limited to the specific details in the above embodiment, it is noted that for the art For those of ordinary skill, within the scope of the technical concept of the present invention, without departing from the principle of the present invention, it can also do Several improvements and modifications out carry out a variety of equivalents to technical solution of the present invention, these improvement, retouching and equivalents It should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of method of mutual backup updating mainboard information, for updating the mainboard information and FRU of SMBIOS data structure table Mainboard information, which is characterized in that this method comprises:
The mainboard information of SMBIOS data structure table is initialized, the mainboard information of SMBIOS data structure table is updated;
Effective judgement is carried out to the mainboard information of SMBIOS data structure table and FRU respectively, judge the mainboard information whether be Effective mainboard information;
According to Effective judgement as a result, transmitting effective mainboard information between SMBIOS data structure table and FRU;
Mainboard information is updated, by effective mainboard information update into SMBIOS data structure table or FRU;
Wherein, by checking respectively for the validity of the mainboard information of SMBIOS data structure table and FRU, automated back-up and updating has Imitate mainboard information.
2. the method for mutual backup updating mainboard information according to claim 1, which is characterized in that pass through BIOS and BMC Cooperation, judge the validity of SMBIOS data structure table and the mainboard information of FRU.
3. the method for mutual backup updating mainboard information according to claim 2, which is characterized in that
Update mainboard information method include:
The mainboard information of S100, SMBIOS data structure table and FRU are invalid mainboard information, the synchronization without mainboard information It updates;
A mainboard information in the mainboard information of S200, SMBIOS data structure table and FRU is invalid mainboard information, another Mainboard information is effective mainboard information, updates invalid mainboard information with effective mainboard synchronizing information;
The mainboard information of S300, SMBIOS data structure table and FRU are effective mainboard information, and two mainboard information are consistent, no Carry out the synchronized update of mainboard information;Two mainboard information are inconsistent, according to whether it is provided with synchronous mark, synchronized update The mainboard information of SMBIOS data structure table or FRU.
4. the method for mutual backup updating mainboard information according to claim 3, which is characterized in that the S100 is specific Are as follows:
S110, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for invalid mainboard information;
S120, the mainboard information for obtaining FRU, judge the mainboard information for invalid mainboard information;
S130, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S140, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronous mark Afterwards, terminate program operation.
5. the method for mutual backup updating mainboard information according to claim 3, which is characterized in that the S200 is specific Are as follows:
S211, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for invalid mainboard information;
S221, the mainboard information for obtaining FRU, judge the mainboard information for effective mainboard information;
S231, effective mainboard information of FRU is transmitted to SMBIOS data structure table, and by SMBIOS data structure table The invalid mainboard information update is effective mainboard information;
S241, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S251, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronous mark Afterwards, terminate program operation.
6. the method for mutual backup updating mainboard information according to claim 3, which is characterized in that the S200 is specific Are as follows:
S212, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for effective mainboard information;
S222, the mainboard information for obtaining FRU, judge the mainboard information for invalid mainboard information;
S232, effective mainboard information of SMBIOS data structure table is transmitted to FRU, and by the invalid mainboard of FRU Information update is effective mainboard information;
S242, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S252, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronous mark Afterwards, terminate program operation.
7. the method for mutual backup updating mainboard information according to claim 3, which is characterized in that the S300 is specific Are as follows:
S311, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for effective mainboard information;
S321, the mainboard information for obtaining FRU, judge the mainboard information for effective mainboard information;
S331, compare SMBIOS data structure table and the mainboard information of FRU, the mainboard information and FRU of SMBIOS data structure table Mainboard information it is consistent;
S341, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S351, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronous mark Afterwards, terminate program operation.
8. the method for mutual backup updating mainboard information according to claim 3, which is characterized in that the S300 is specific Are as follows:
S312, the mainboard information for reading SMBIOS data structure table, judge the mainboard information for effective mainboard information;
S322, the mainboard information for obtaining FRU, judge the mainboard information for effective mainboard information;
S332, compare SMBIOS data structure table and the mainboard information of FRU, the mainboard information and FRU of SMBIOS data structure table Mainboard information it is inconsistent;
S342, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged.
S352, the synchronous mark has been set, the mainboard information of transmitting SMBIOS data structure table is transferred to FRU, and by FRU's Mainboard information update is the mainboard information of SMBIOS data structure table;The not set synchronous mark transmits the mainboard information of FRU To SMBIOS data structure table, and the mainboard information for being FRU by the mainboard information update of SMBIOS data structure table;
S362, FRU synchronous mark data are obtained, judges whether that synchronous mark is arranged;
S372, the synchronous mark has been set, has terminated program operation;The not set synchronous mark, is arranged the synchronous mark Afterwards, terminate program operation.
9. the method for mutual backup updating mainboard information according to claim 8, which is characterized in that
The mainboard information data of the not set synchronous mark, FRU is modified, and the mainboard information of FRU is latest data, by FRU Mainboard synchronizing information to SMBIOS data structure table;
The synchronous mark has been set, and the mainboard information data of SMBIOS data structure table is modified, SMBIOS data structure table Mainboard information be latest data, by the mainboard synchronizing information of SMBIOSU data structure table to FRU.
10. a kind of device of the method based on the described in any item mutual backup updating mainboard information of claim 1-9, feature It is, described device includes:
Initialization module updates the mainboard information for initializing mainboard information;
Effective judgement module, for carrying out Effective judgement to mainboard information;
Data transfer module, for transmitting mainboard information between SMBIOS data structure table and FRU;
Information updating module, for updating the mainboard information of SMBIOS data structure table or FRU.
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 true CN110147297A (en) 2019-08-20
CN110147297B 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 (7)

* 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)
US20160337329A1 (en) * 2015-05-11 2016-11-17 Kapil Sood Technologies for secure bootstrapping of virtual network functions
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

Patent Citations (7)

* 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)
US20160337329A1 (en) * 2015-05-11 2016-11-17 Kapil Sood Technologies for secure bootstrapping of virtual network functions
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
CN110147297B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
US8146060B2 (en) Data processing system and method for execution of a test routine in connection with an operating system
CN101401073B (en) Consistent updates across storage subsystems
US6304882B1 (en) Data replication system and method
US8171465B2 (en) Applicable patch selection device and applicable patch selection method
US20020007468A1 (en) Method and system for achieving high availability in a networked computer system
CN101189595B (en) Solution deployment in a server farm
US20020156664A1 (en) Method and apparatus for service request handling
CN109471770A (en) A kind of method for managing system and device
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN105183520B (en) Computer software remote automation Method of Adjustment and system
CN103530225A (en) Automatic compilation testing method and automatic compilation testing platform for realizing same
US7178056B2 (en) Rolling software upgrades for fault tolerant systems
CN108491217A (en) A kind of upgrade method and equipment of configuration file
CN107608702A (en) Bootloader program modules update method and device
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN114020340B (en) Server system and data processing method thereof
CN111884747A (en) Management method and system of network time protocol server
CN106874027A (en) A kind of transportation industry quality of data monitoring platform based on plug-in unit mode
CN107203471B (en) Joint debugging method, service platform and computer storage medium
CN110147297A (en) A kind of method and device of mutual backup updating mainboard information
CN100465911C (en) Backpu method
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium
CN111147494B (en) Multi-center access management method and device for block chain light nodes
Cisco Operational Traps
Cisco Operational Traps

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