CN114116031A - Method and device for synchronizing option parameters, computer equipment and storage medium - Google Patents

Method and device for synchronizing option parameters, computer equipment and storage medium Download PDF

Info

Publication number
CN114116031A
CN114116031A CN202111386251.4A CN202111386251A CN114116031A CN 114116031 A CN114116031 A CN 114116031A CN 202111386251 A CN202111386251 A CN 202111386251A CN 114116031 A CN114116031 A CN 114116031A
Authority
CN
China
Prior art keywords
file
bios
option
data
option parameter
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.)
Pending
Application number
CN202111386251.4A
Other languages
Chinese (zh)
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.)
Zhongke Sugon Information Industry Chengdu Co ltd
Original Assignee
Zhongke Sugon Information Industry Chengdu Co ltd
Dawning Information Industry 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 Zhongke Sugon Information Industry Chengdu Co ltd, Dawning Information Industry Co Ltd filed Critical Zhongke Sugon Information Industry Chengdu Co ltd
Priority to CN202111386251.4A priority Critical patent/CN114116031A/en
Publication of CN114116031A publication Critical patent/CN114116031A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The application relates to an option parameter synchronization method, an option parameter synchronization device, a computer device, a storage medium and a computer program product. The method comprises the following steps: detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list; if the attribute file and the configuration file are updated, determining target option parameters of the attribute file and the configuration file which are updated; acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data; and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the original attribute file and the original configuration file of the locally stored BIOS. By adopting the method, the restarting speed of the server can be improved.

Description

Method and device for synchronizing option parameters, computer equipment and storage medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a method and an apparatus for synchronizing option parameters, a computer device, a storage medium, and a computer program product.
Background
The Basic Input Output System (BIOS) is used as a manager of the bottom layer and the most direct hardware setting and control of a server motherboard, different states or different functions of the server can be realized by different BIOS option parameters, meanwhile, a Baseboard Management Controller (BMC) is a Management Controller specific to the server, and one of the main functions of the BMC is to automatically monitor the operation state of the server and to perform regulation and control according to the current operation state. Therefore, the transmission of the BIOS option parameters between the BMC and the BIOS is required.
In the conventional method for transmitting option parameters between the BIOS and the BMC, a monitoring process monitors option parameter values of the BIOS or attribute information in an attribute file, when the monitoring process monitors that the option parameter values or the attribute information of the BIOS are updated, the BIOS sends all updated option parameters to the BMC in a configuration file form, and simultaneously sends an attribute file for verifying the configuration file to the BMC, so that the BMC checks all configuration parameter option values contained in the configuration file through the attribute file to complete monitoring of the running state of the BIOS.
However, since the BIOS has more option parameters, and the configuration file including the option parameters and the corresponding attribute file are larger, the synchronous transmission time is longer, and the boot speed of the BMC during the boot self-test of the BIOS is reduced when the server is restarted.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an option parameter synchronization method, apparatus, computer device, computer readable storage medium and computer program product for solving the above technical problems.
In a first aspect, the present application provides an option parameter synchronization method. The method comprises the following steps:
detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
if the attribute file and the configuration file are updated, determining updated target option parameters in the attribute file and the configuration file;
acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data;
and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
By adopting the method, the updating of the BIOS option parameters is identified based on the preset data structure list, and only the updated target option parameters are packaged and transmitted in the form of the preset data structure, so as to indicate that the BMC can update the local option parameters according to the data structure containing the updating information, thereby reducing the transmission bandwidth and transmission time of the option parameters and improving the restarting speed of the server.
In one embodiment, before detecting whether the option parameters in the property file and the configuration file of the BIOS are updated based on the data structure list, the method further includes:
sending a file query request to the BMC; the file query request is used for indicating whether a configuration file and an attribute file of the BIOS exist in query or not;
receiving a file query result fed back by the BMC, and compressing and packaging the attribute file and the configuration file in the BIOS to obtain full compressed data if the file query result indicates that the configuration file and the attribute file of the BIOS do not exist;
and generating a creation instruction containing the full-amount compressed data, sending the creation instruction to the BMC, and indicating the BMC to store the full-amount compressed data.
In this embodiment, the BIOS checks whether the attribute file and the configuration file exist in the memory of the BMC through the file query request to determine whether to perform a synchronization scheme of the target option parameter when the BIOS is updated, and meanwhile, if the original configuration file and the attribute file do not exist in the memory of the BMC, a request is created to transmit the compressed configuration file and the full number of option parameters included in the attribute file in advance based on the POST, and meanwhile, the compressed data transmitted in the transmission process reduces the transmission bandwidth in the transmission process, and improves the transmission efficiency.
In one embodiment, the detecting whether the attribute file and the configuration file of the BIOS are updated based on the data structure list includes:
acquiring current option parameters of a BIOS in a current running state;
comparing the data consistency of each current option parameter and the option parameters in the data structure list based on the initial metadata and the corresponding initial data values of the option parameters contained in each data structure in the data structure list;
and if the data of the current option parameter is inconsistent with the data of the option parameter, determining that the attribute file and the configuration file of the BIOS are updated.
In the embodiment, the consistency between the currently acquired BIOS option parameter and the last acquired option parameter is compared through the pre-established data structure list, so that the updating condition of the BIOS option parameter is obtained, the monitoring of the BIOS option parameter can be realized without creating an independent monitoring process, and the occupation of flow resources in the server is reduced.
In one embodiment, the obtaining of the update information of the target option parameter and the encapsulating of the update information in a preset data structure form to obtain encapsulated data includes:
determining an update type of a target option parameter corresponding to the update information, and generating the update information corresponding to the update type based on the update type of the target option parameter;
and adding the updating information corresponding to the updating type into a preset data structure corresponding to the target option parameter, and encapsulating to obtain encapsulated data of the target option parameter.
In this embodiment, based on the determined update type, update information corresponding to the target option parameter is generated, and the update information of the target option parameter is encapsulated in a preset data structure, so as to obtain encapsulated data for the target option parameter, and further, the BMC updates the parameters only for the target option parameter in the local attribute file and the configuration file based on the encapsulated data for the target option parameter, so as to implement option parameter synchronization with the BIOS, and transmit the encapsulated data only including the target option parameter between the BIOS and the BMC, thereby improving option parameter synchronization efficiency and server restart speed.
In one embodiment, the adding the update information corresponding to the update type to the preset data structure corresponding to the target option parameter includes:
if the update type is a deletion type, updating update information containing null value data into a data structure corresponding to the target option parameter;
if the update type is a modification option value type, updating update information containing a target option value into a data structure corresponding to the target option parameter;
and if the updating type is the supplement type, adding the newly added option parameter and the corresponding newly added option parameter value into a preset data structure.
In this embodiment, for update information of different update types, a data structure including the update information is constructed, so that option parameter synchronization with the BMC is completed according to the data structure including the update information, transmission time is reduced, and data synchronization efficiency is improved.
In a second aspect, the present application provides an option parameter synchronization method. The method comprises the following steps:
receiving a configuration change message sent by a BIOS, wherein the configuration change message carries encapsulated data containing update information, and the encapsulated data is obtained by encapsulating update information of target option parameters which are updated in the BIOS in a form of a preset data structure;
and updating the target option parameters in the original attribute file and the original configuration file of the BIOS which are locally stored according to the updating strategy corresponding to the updating information in the packaging data to obtain the updated attribute file and configuration file.
In this embodiment, the BMC responds to the patch configuration change message pushed by the BIOS, analyzes the package data of the patch body portion of the BMC to obtain the update information of the target option parameter, and executes a corresponding update policy based on the update information, so as to update the option parameters in the original configuration file and the original attribute file stored in the BMC, improve the data synchronization efficiency, and accelerate the server startup time.
In one embodiment, the updating the locally stored target option parameters in the original attribute file and the original configuration file of the BIOS according to the update policy corresponding to the update information in the encapsulated data to obtain an updated attribute file and an updated configuration file includes:
identifying an updating strategy corresponding to each updating information in the packaging data;
if the data value corresponding to the target option parameter contained in the update information is a null value, deleting the target option parameter at the target field in the original attribute file and the original configuration file of the BIOS;
if the data value corresponding to the target option parameter contained in the update information is the target option value, updating the option values at the target field in the original attribute file and the original configuration file of the BIOS;
and if the target option parameter contained in the updating information is a newly added option parameter, adding the newly added option parameter and the corresponding newly added option parameter value in the updating information at a target field in the original attribute file and the original configuration file of the BIOS.
In this embodiment, according to the update information of the corresponding update type analyzed in the patch configuration change message, different update policies are executed, the target option parameters in the local configuration file and the attribute file are modified correspondingly, the full number of option parameters does not need to be updated and replaced, the option parameter synchronization between the BIOS and the BMC is realized, and the data synchronization efficiency is improved.
In a third aspect, the present application further provides an option parameter synchronization apparatus. The device comprises:
the detection module is used for detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
the determining module is used for determining updated target option parameters in the attribute file and the configuration file if the attribute file and the configuration file are updated;
the acquisition module is used for acquiring the update information of the target option parameter and packaging the update information in a preset data structure form to obtain packaged data;
and the update transmission module is used for generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
By adopting the device, the updating of the BIOS option parameters is identified based on the preset data structure list, and the updated target option parameters are transmitted in the form of the preset data structure so as to indicate that the BMC can update the local option parameters according to the data structure containing the updating information, thereby reducing the transmission bandwidth and transmission time of the option parameters and improving the restarting speed of the server.
In a fourth aspect, the present application further provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
if the attribute file and the configuration file are updated, determining updated target option parameters in the attribute file and the configuration file;
acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data;
and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
if the attribute file and the configuration file are updated, determining updated target option parameters in the attribute file and the configuration file;
acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data;
and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
In a sixth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
if the attribute file and the configuration file are updated, determining updated target option parameters in the attribute file and the configuration file;
acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data;
and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
The option parameter synchronization method, the option parameter synchronization device, the computer equipment, the storage medium and the computer program product detect whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list; if the attribute file and the configuration file are updated, determining updated target option parameters in the attribute file and the configuration file; acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data; and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS. By adopting the method, the updating of the BIOS option parameters is identified based on the preset data structure list, and then only the updated target option parameters are transmitted in the form of the preset data structure to indicate that the BMC can update the local option parameters according to the data structure containing the updating information, so that the transmission bandwidth and the transmission time of the option parameters are reduced, and the restarting speed of the server is improved.
Drawings
FIG. 1 is a flow diagram illustrating the transmission of message messages between a BIOS and a BMC, according to an embodiment;
FIG. 2 is a flowchart illustrating an option parameter synchronization method according to an embodiment;
FIG. 3 is a flowchart illustrating the BIOS configuration version information query step in one embodiment;
FIG. 4 is a flowchart illustrating the step of detecting an update to a BIOS option parameter in one embodiment;
FIG. 5 is a flowchart of the step of encapsulating update information for target option parameters in one embodiment;
FIG. 6 is a flow diagram of update information encapsulation steps for different update types in one embodiment;
FIG. 7 is a flowchart illustrating a method for synchronizing BMC side option parameters in an embodiment;
FIG. 8 is a flow diagram that illustrates the steps for performing a corresponding update policy based on update information, in one embodiment;
FIG. 9 is an exemplary flow diagram of a method for option parameter synchronization in one embodiment;
FIG. 10 is a block diagram showing the structure of an option parameter synchronization apparatus according to an embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, an option parameter synchronization method is provided, where a BIOS is used as a bottom-most manager of a server motherboard for most direct hardware setting and control, and different BIOS option parameters (also referred to as BIOS Setup option parameters) of the BIOS are different and may represent different operating states or different functions of a server, a BMC is a management controller specific to the server, and its main function is to automatically monitor the operating state of the server, so that the option parameters need to be synchronized with the BIOS during a server reboot process to ensure control and management of the BIOS by the BMC, the BIOS sends a query request for a configuration file and an attribute file to the BMC, the BMC feeds back a file query result in response to the query request, the BIOS determines whether to send update information of a target option parameter based on the file query result, and if it needs to send update information of the target option parameter, and the BMC encapsulates the update information in a preset data structure form to obtain encapsulated data, generates a configuration change message containing the encapsulated data, sends the configuration change message to the BMC, and instructs the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS. First, the embodiment specifically exemplifies an option parameter synchronization process initiated by a BIOS side, as shown in fig. 2, the method includes the following steps:
step 202, detecting whether the attribute file and the configuration file of the BIOS are updated based on the data structure list.
In implementation, the server stores an attribute file and a configuration file of the BIOS option parameters, where the attribute file includes configuration rule information corresponding to the BIOS option parameters in the current version of the BIOS. The configuration file includes parameter values of BIOS option parameters that satisfy the configuration rules in the property file, for example, the configuration rule information of the first option parameter in the property file is: the first option parameter assignment range is [0, 100], and the parameter value of the first option parameter satisfying the condition in the corresponding configuration file should be in the range.
In addition, a data structure list is pre-constructed in the BIOS, and the corresponding attribute file and configuration file information (i.e., a file containing BIOS option parameters) are stored in the data structure list. Optionally, the data structure list is displayed on the BIOS Setup option display interface in a display mode of the BIOS option parameter list.
Specifically, the data structure list adopts key: each option parameter in the BIOS is recorded in the form of value, where "key" represents an option parameter (metadata) and "value" is an option parameter value corresponding to the option parameter. When the server is restarted, the BIOS acquires the option parameters and the corresponding option parameter values in the current running state, and detects whether the attribute file and the configuration file of the BIOS are updated or not according to the comparison between the acquired option parameter values and the option parameter values recorded in the data structure list.
Optionally, the BIOS detects whether the attribute information and the configuration information of the BIOS are updated based on an option parameter recorded in a data structure list (BIOS option parameter interface), and may also initiate an information query request of the option parameter to the BMC to query whether the configuration file of the BIOS is updated, specifically, the user implements in-band control management through the BMC terminal and uploads the updated configuration file of the BIOS to the BMC terminal, when the BIOS queries the BMC for the updating condition of the option parameter by sending an information query request of the option parameter, the BIOS determines that the option parameters in the BIOS configuration file are updated based on the update information of the option parameters in the configuration file stored by the current BMC and fed back by the BMC, and then, determining the target option parameter which is updated, and updating the update information of the target option parameter to a target storage space of the BMC in a form of a preset data structure so as to instruct the BMC and the BIOS to synchronize the option parameter.
And detecting whether the option parameters of the current BIOS are updated or not based on the inquired information of the attribute file and the configuration file of the BIOS which is recorded in the BMC and is synchronized last time.
And step 204, if the attribute file and the configuration file are updated, determining the updated target option parameters in the attribute file and the configuration file.
In implementation, if it is detected that the content in at least one of the property file and the configuration file is updated, the target option parameter for which the update occurs is determined in the BIOS property file and the configuration file. The updating of the attribute file and the configuration file can be performed respectively to ensure that the data transmission amount is reduced, and meanwhile, the independent transmission of the attribute file and the configuration file also ensures the independence between data.
Generally, the configuration rule information corresponding to a certain option parameter in the attribute file is updated, the option parameter value in the corresponding configuration file is also updated, and if the option parameter value in the configuration file is updated, the updated option parameter value still meets the configuration rule of the option parameter corresponding to the attribute file, it can be determined that only the option parameter in the configuration file is updated, and the attribute file is not updated.
And step 206, acquiring the update information of the target option parameter, and packaging the update information in a preset data structure form to obtain packaged data.
In implementation, the BIOS obtains update information of the updated target option parameter, wherein the update information is determined by an update type of the target option parameter, and the update type includes: three types of parameters, namely deletion, addition and update, are provided, and for each update type, there is corresponding update information, for example, the update information of the deletion type is "target option parameter: null ", the update information indicating that the corresponding target option parameter needs to be deleted. Then, the BIOS packages the update information in the form of a preset data structure (i.e., json data structure) to obtain packaged data containing deletion information (update information).
And 208, generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and instructing the BMC to modify and update the original attribute file and the original configuration file of the locally stored BIOS.
In implementation, the BIOS generates a configuration change message (i.e., Http patch message) containing the encapsulated data, and sends the configuration change message to the BMC, instructing the BMC to modify and update the original property file and the original configuration file of the locally stored BIOS.
In the option parameter synchronization method, the BIOS detects whether the attribute file and the configuration file of the BIOS are updated based on the data structure list, and determines the updated target option parameters in the attribute file and the configuration file if the attribute file and the configuration file are updated. Then, the BIOS acquires the update information of the target option parameter, and encapsulates the update information in a preset data structure mode to obtain encapsulated data. And finally, generating a configuration change message containing the encapsulated data by the BIOS, sending the configuration change message to the BMC, and instructing the BMC to modify and update the original attribute file and the original configuration file of the locally stored BIOS. By adopting the method, the updating of the BIOS option parameters is identified based on the preset data structure list, and only the updated target option parameters are transmitted in the form of the preset data structure to indicate that the BMC can update the local option parameters according to the data structure containing the updating information, so that the transmission bandwidth and the transmission time of the option parameters are reduced, and the restarting speed of the server is improved.
In one embodiment, as shown in fig. 3, the synchronization between the BIOS and the BMC, which can transmit only partial option parameters to achieve the option parameters, is based on the option parameter attribute file and the configuration file that have been previously synchronized by the BIOS and the BMC in the original full version, so that before step 202, the method further includes the following steps:
step 302, sending a file query request to BMC.
The file query request is used for indicating whether the configuration file and the attribute file of the BIOS exist in the query.
In implementation, the BIOS sends a file query request to the BMC by an Http (Hypertext transfer protocol) get request method, and queries whether a configuration file and an attribute file of a current version of the BIOS exist in the BMC based on the file query request.
And 304, receiving a file query result fed back by the BMC, and compressing and packaging the attribute file and the configuration file in the BIOS to obtain full compressed data if the file query result indicates that the configuration file and the attribute file of the BIOS do not exist.
In implementation, the BMC feeds back a corresponding file query result (i.e., a response message) according to a file query request sent by the BIOS, and further, after receiving the file query result fed back by the BMC, the BIOS performs subsequent service operations based on the file query result, specifically, if the file query result indicates that the configuration file and the attribute file of the BIOS do not exist in the BMC memory, the BIOS compresses and encapsulates the locally stored attribute file and the configuration file to obtain full-scale compressed data of the option parameter.
And step 306, generating a creation instruction containing the full-amount compressed data, and sending the creation instruction to the BMC to instruct the BMC to store the full-amount compressed data.
In implementation, based on the obtained full-amount compressed data, the BIOS generates a create instruction containing the full-amount compressed data, i.e., an Http post create instruction, and then sends the create instruction to the BMC to instruct the BMC to store the full-amount compressed data.
Optionally, after receiving the file query result fed back by the BMC, if the configuration file and the attribute file of the BIOS do not exist in the BMC local storage space, the BIOS directly encapsulates the locally stored attribute file and the configuration file to obtain the full data of the option parameter. And storing the full data to the BMC, and compressing and storing the full data by the BMC. The embodiment of the application does not limit whether the data transmitted between the BIOS and the BMC is in a compressed format or a non-compressed format, and can be set based on actual transmission requirements.
In this embodiment, the BIOS checks whether an attribute file and a configuration file exist in the memory of the BMC through a file query request to determine whether to perform a synchronization scheme of the target option parameter when the BIOS is updated, and meanwhile, if an original configuration file and an original attribute file do not exist in the memory of the BMC, a request is created to transmit a compressed configuration file and a full number of option parameters included in the attribute file based on a post in advance, and meanwhile, compressed data transmitted in the transmission process reduces transmission bandwidth in the transmission process and improves transmission efficiency.
In one embodiment, as shown in fig. 4, the specific processing procedure of step 202 includes:
step 402, obtaining the current option parameters of the BIOS in the current operating state.
In implementation, during the server restart, the BIOS obtains BIOS option parameters in the current operating state. Specifically, the option parameters of the BIOS include static option parameters and dynamic option parameters, where the static option parameters generally do not change frequently, and the static option parameters change only when the BIOS updates a version, and the dynamic option parameters change continuously with different running states in the server restart process, for example, cpu, memory, hard disk drive (hard disk drive), personal computer (personal component interconnect (high speed serial computer extended bus standard), network card, raid (redundant array of independent disks), boot items, BMC ip (internet protocol), serial ports, and other information. Therefore, the BIOS acquires the current option parameter and the corresponding parameter value to detect the current server operating state.
Step 404, comparing data consistency between each current option parameter and the option parameter in the data structure list based on the initial metadata and the corresponding initial data value of the option parameter included in each data structure in the data structure list.
In implementation, the BIOS compares the data consistency of each current option parameter with the option parameters in the data structure list based on the initial metadata (key) and the corresponding initial data value (value) of the option parameter contained in each json data structure in the data structure list. Specifically, for example, 10 option parameters (option parameter key and corresponding option parameter value) are acquired in the current server operation state. And the data structure list contains a plurality of option parameters recorded in a json data structure form, wherein the plurality of option parameters are the option parameter key and the option parameter value acquired in the last restarting process.
In step 406, if the data of the current option parameter is inconsistent with the data of the option parameter, it is determined that the attribute file and the configuration file of the BIOS are updated.
In implementation, if there is data inconsistency between the current option parameter and the option parameter, for example, 11 option parameters are included in the data structure list, and only 10 option parameters are acquired in the current operating state, which indicates that the previous and subsequent (last acquisition and this acquisition) option parameters are inconsistent, the BIOS determines that the option parameters included in the property file and the configuration file are updated.
In the embodiment, the consistency between the currently acquired BIOS option parameter and the last acquired option parameter is compared through the pre-established data structure list, so that the updating condition of the BIOS option parameter is obtained, the monitoring of the BIOS option parameter can be realized without creating an independent monitoring process, and the occupation of flow resources in the server is reduced.
In an embodiment, as shown in fig. 5, for the determined target option parameter, the BIOS transmits the target option parameter to the BMC, so that the BMC may synchronize the option parameter based on the transmitted update information, and the specific processing procedure of step 506 includes:
step 502, determining an update type of the target option parameter corresponding to the update information, and generating the update information corresponding to the update type based on the update type of the target option parameter.
In an implementation, the BIOS detects that there is an update of a target option parameter in a Setup option parameter, and further, during an update detection process based on the data structure list, the BIOS may determine an update type of the target option parameter, for example, when the number of option parameters in the data structure list is less than the number of acquired option parameters, it indicates that a new option parameter is added, and therefore, the corresponding update type is a supplemental type, or, when an option parameter value of a target option parameter 1 included in the data structure list is 50, and a parameter value of the target option parameter 1 in the acquired option parameters is 65, it indicates that the update type is an option value change type. And then the BIOS generates corresponding updating information according to the determined updating type of the option parameter.
Step 504, adding the update information corresponding to the update type to a preset data structure corresponding to the target option parameter, and encapsulating to obtain encapsulated data of the target option parameter.
In implementation, the BIOS adds the update information corresponding to the update type to the preset data structure corresponding to the target option parameter, and encapsulates the update information to obtain encapsulated data of the target option parameter. For example, based on the detection and identification of the BIOS, if it is determined that the option parameter of the supplemental type is updated, it is distinguished from that the option parameter recorded in the data structure list is the target option parameter X, and then the BIOS uses the information of the target option parameter X as update information, and according to the supplemental type and a preset json data structure (key: value), adds the information (update information) of the target option parameter to the json data structure, and encapsulates the data record of the json data structure type, so as to obtain a target option parameter X containing (key) corresponding to the option parameter: 50 (value).
In this embodiment, based on the determined update type, update information corresponding to the target option parameter is generated, and the update information of the target option parameter is encapsulated in a preset data structure, so as to obtain encapsulated data for the target option parameter, and further, the BMC updates the parameters only for the target option parameter in the local attribute file and the configuration file based on the encapsulated data for the target option parameter, so as to implement option parameter synchronization with the BIOS, and transmit the encapsulated data only including the target option parameter between the BIOS and the BMC, thereby improving option parameter synchronization efficiency and server restart speed.
In an embodiment, as shown in fig. 6, the update types of the BIOS option parameters may include a delete type, an option parameter value modification type, and a supplement type, and based on the three different update types, the correspondingly generated update information is different, so as to obtain three different types of encapsulated data that may correspond to the target option parameter, where the specific processing procedure of step 504 includes:
step 602, if the update type is the delete type, update information including null data is updated to the data structure corresponding to the target option parameter.
In implementation, if the detected update type of the target option parameter is a deletion type, the update information including null data is added to the data structure of the preset target option parameter to obtain the target data. Specifically, if it is determined in the process of detecting the option parameters that the target option parameter a recorded in the data structure list does not exist in the option parameters acquired in the current operating state, it is determined that the target option parameter a in the data structure list is in a deleted state with respect to the option parameters in the current operating state, and therefore, the target option parameter a: null data 'null' is used as updating information and is stored in a preset json data structure, and target data containing null data (namely representing deletion information) is obtained.
Step 604, if the update type is the modification option value type, update information including the target option value is updated to the data structure corresponding to the target option parameter.
In implementation, if the detected update type of the target option parameter is a modification option parameter value type, adding update information including the modified target option parameter value to a preset data structure to obtain target data. Specifically, if it is determined that the parameter value of the target option parameter B recorded in the data structure list is different from the currently acquired option parameter value of the target option parameter B in the process of detecting the option parameter, it is determined that the target option parameter B in the data structure list is in the option parameter value modification state with respect to the option parameter in the current operation state, and therefore, the target option parameter B: "XXX (a value obtained in a specific current operating state)" is used as update information, and is stored in a preset json data structure, so as to obtain target data including a data update value (i.e., representing option parameter value update information).
Step 606, if the update type is the supplement type, adding the newly added option parameter and the corresponding newly added option parameter value into the preset data structure.
In implementation, if the detected update type of the target option parameter is a supplement type, update information including the newly added data is added to the data structure corresponding to the target option parameter to obtain the target data. Specifically, if it is determined in the process of detecting the option parameter that the target option parameter C acquired in the current operating state does not exist in the pre-recorded data structure list, it is determined that the target option parameter C needs to be supplemented in the data structure list with respect to the option parameter in the current operating state, and therefore, the target option parameter C also needs to be supplemented in the attribute file and the configuration file stored in the corresponding BMC, so that the target option parameter C: and the option parameter value YY is used as updating information and is stored in a preset json data structure to obtain target data containing newly-added data (namely representation supplementary information).
In this embodiment, for update information of different update types, a data structure including the update information is constructed, so that option parameter synchronization with the BMC is completed according to the data structure including the update information, transmission time is reduced, and data synchronization efficiency is improved.
In an embodiment, as shown in fig. 7, a method for synchronizing option parameters is provided, where the method is applied to a BMC side, and the method specifically includes the following steps:
step 702, receiving a configuration change message sent by the BIOS.
Wherein, the configuration change message carries the package data. The packaging data is obtained by packaging the updating information of the updated target option parameter in the BIOS in the form of a preset data structure
In implementation, the BMC receives a configuration change message (patch message) sent by the BIOS, where the patch message is a specific message instruction that is not modified in full, and updates an attribute file and an option parameter of a configuration file locally stored by the BMC in response to encapsulated data carried in the message instruction.
Step 704, updating the target option parameters in the original attribute file and the original configuration file of the locally stored BIOS according to the update policy corresponding to the update information in the encapsulated data, to obtain an updated attribute file and an updated configuration file.
In implementation, the BMC pre-stores an update policy corresponding to different update information, and further reads the received encapsulated data, determines a corresponding target update mode according to the update information in the encapsulated data, and updates corresponding target option parameters in the locally stored original attribute file and the original configuration file based on the target update mode to obtain an updated attribute file and an updated configuration file.
The method comprises the steps that an original configuration file and an original attribute file stored at a BMC side are stored in a local storage space of the BMC in a compressed mode, and when the BMC needs to update the local original attribute file and the original configuration file, the original configuration file and the original attribute file need to be decompressed in advance to obtain the decompressed original configuration file and the decompressed original attribute file. Then, updating and modifying the decompressed original configuration file and original attribute file.
Specifically, the local storage space of the BMC stores the attribute file and the configuration file obtained after the last option parameter synchronization with the BIOS, if the configuration change message sent by the BIOS is received again, the information in the attribute file and configuration file indicating the BIOS is updated again and, in turn, decompressing the original configuration file and the original attribute file to obtain the decompressed original configuration file and original attribute file, and further, the BMC reads the encapsulation data carried in the patch Body based on the received patch configuration change message, updating the target option parameters in the original configuration file and the original attribute file after decompression so as to obtain an updated attribute file and a configuration file, then, the BMC compresses the updated attribute file and the updated configuration file again, and stores the compressed updated attribute file and the compressed updated configuration file into a local storage space of the BMC.
In this embodiment, the BMC reads the package data of the patch body portion in response to the patch configuration change message pushed by the BIOS to obtain the update information of the target option parameter, and executes a corresponding update policy based on the update information, so as to update the option parameters in the original configuration file and the original attribute file stored in the BMC, improve data synchronization efficiency, and accelerate the server startup time.
In one embodiment, as shown in fig. 8, the specific processing procedure of step 704 includes:
step 802, identifying an update policy corresponding to each update message in the encapsulated data.
In implementation, the package data includes update information of at least one target option parameter, so that the BMC reads the package data filled in the part of the patch Body of the patch configuration change message, identifies the update information of each target option parameter in the package data, and determines an update policy corresponding to the update information in different update types.
Step 804, if the data value corresponding to the target option parameter contained in the update information is null, deleting the target option parameter at the target field in the original attribute file and the original configuration file of the BIOS.
In implementation, if the data value of the target option parameter included in the update information is null, it indicates that the current option parameter is in a to-be-deleted state, and therefore, the BMC deletes the target option parameter at the target field in the original attribute file and the original configuration file of the BIOS (deletion policy in the update policy).
For example, the update information transmitted in the form of a json data structure includes a target option parameter a: null, the BMC deletes the record of the target option parameter a at the target field in the original attribute file and the original configuration file of the BIOS.
In step 806, if the data value corresponding to the target option parameter included in the update information is the target option value, the option values at the target field in the original attribute file and the original configuration file of the BIOS are updated.
In implementation, if the data value corresponding to the target option parameter included in the update information is "target option value YY", it indicates that the current option parameter is in a state to be modified, and therefore, the BMC modifies the option value at the target field in the original attribute file and the original configuration file of the BIOS (the modified option parameter value policy in the update policy).
For example, the update information transmitted in the form of a json data structure includes a target option parameter B: YY, then the BMC adjusts the option parameter value of the target option parameter B at the target field in the original attribute file and the original configuration file of the BIOS from XX to YY.
Step 808, if the target option parameter included in the update information is the newly added option parameter, adding the newly added option parameter and the corresponding newly added option parameter value in the update information at the target field in the original attribute file and the original configuration file of the BIOS.
In implementation, if the target option parameter included in the update information is a newly added option parameter, that is, the information of the target option parameter does not exist in the original configuration file and the attribute file, it indicates that the current option parameter is in a state to be supplemented,
the BMC adds the newly added option parameter and the corresponding newly added option parameter value in the update information at the target field in the original attribute file and the original configuration file of the BIOS.
For example, the update information transmitted in the form of a json data structure includes a target option parameter C: HH, BMC supplements target option parameter C and corresponding option parameter value to the target field in the original attribute file and original configuration file of BIOS.
In this embodiment, according to the update information of the corresponding update type analyzed in the patch configuration change message, different update policies are executed, the target option parameters in the local configuration file and the attribute file are modified correspondingly, the full number of option parameters does not need to be updated and replaced, the option parameter synchronization between the BIOS and the BMC is realized, and the data synchronization efficiency is improved.
In an embodiment, as shown in fig. 9, an example of an option parameter synchronization method is provided, which specifically includes the following steps:
in step 901, the BIOS queries the version information of the BIOS, which includes the current version configuration file and the attribute file, from the BMC by an http get (send acquire request) method.
Step 902, the BIOS receives a version information query result fed back by the BMC, and if the version information query result indicates that the configuration file and the attribute file of the current version do not exist, performs step 903; if the version information query result indicates that the configuration file and the attribute file of the current version exist, step 905 is performed.
Step 903, pushing the compressed data of the configuration file and the attribute file containing the full amount option parameters to the BMC by an http post (sending a creation request) method.
Step 904, the BMC saves the received compressed data of the configuration file and the attribute file of the current version of the BIOS in the local file system.
Step 905, the BIOS detects update states of the BIOS attribute file and a Setup option parameter in the configuration file according to a preset data structure list, acquires update information of the target option parameter in the configuration file when the target option parameter in the configuration file is updated, acquires update information of the target option parameter in the attribute file when the target option parameter in the attribute file is updated, and encapsulates the update information in a preset json data structure to obtain encapsulated data including the update information of the target option parameter.
Step 906, writing the encapsulated data containing the update information into a Body (Body) part of the configuration change message by the http patch configuration change message method, and pushing the configuration change message to the BMC.
And step 907, the BMC reads the encapsulated data of the patch Body part of the http patch configuration change message based on the received http patch configuration change message to obtain the update information of the option parameters in the configuration file and/or the attribute file, decompresses the compressed original configuration file and/or the original attribute file, and updates the target option parameters according to the update information and the corresponding update policy.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an option parameter synchronization apparatus for implementing the above-mentioned option parameter synchronization method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the option parameter synchronization device provided below can refer to the limitations of the option parameter synchronization method in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 10, there is provided an option parameter synchronization apparatus 1000, including: a detection module 1001, a determination module 1002, an acquisition module 1003 and an update transmission module 1004, wherein:
a detection module 1001, configured to detect whether an attribute file and a configuration file of the BIOS are updated based on the data structure list;
a determining module 1002, configured to determine, if the attribute file and the configuration file are updated, an updated target option parameter in the attribute file and the configuration file;
an obtaining module 1003, configured to obtain update information of the target option parameter, and package the update information in a preset data structure to obtain package data;
the update transmission module 1004 is configured to generate a configuration change message including the encapsulated data, and send the configuration change message to the BMC, so as to instruct the BMC to modify and update the locally stored original attribute file and the locally stored original configuration file of the BIOS.
By adopting the device, the updating of the BIOS option parameters is identified based on the preset data structure list, and the updated target option parameters are transmitted in the form of the preset data structure so as to indicate that the BMC can update the local option parameters according to the data structure containing the updating information, thereby reducing the transmission bandwidth and transmission time of the option parameters and improving the restarting speed of the server.
In one embodiment, the apparatus 1000 further comprises:
the sending module is used for sending a file query request to the BMC; the file query request is used for indicating whether a configuration file and an attribute file of the BIOS exist in query;
the packaging module is used for receiving the file query result fed back by the BMC, and compressing and packaging the attribute file and the configuration file in the BIOS to obtain full compressed data if the file query result indicates that the configuration file and the attribute file of the BIOS do not exist;
and the creation transmission module is used for generating a creation instruction containing the full-amount compressed data, sending the creation instruction to the BMC and indicating the BMC to store the full-amount compressed data.
In one embodiment, the detection module 1001 is specifically configured to obtain a current option parameter of the BIOS in a current operating state;
comparing the data consistency of each current option parameter and the option parameters in the data structure list based on the initial metadata and the corresponding initial data value of the option parameter contained in each data structure in the data structure list;
and if the data of the current option parameters are inconsistent with the data of the option parameters, determining that the attribute file and the configuration file of the BIOS are updated.
In an embodiment, the obtaining module 1003 is specifically configured to determine an update type of a target option parameter corresponding to the update information, and generate the update information corresponding to the update type based on the update type of the target option parameter;
and adding the updating information corresponding to the updating type into a preset data structure corresponding to the target option parameter, and encapsulating to obtain encapsulated data of the target option parameter.
In an embodiment, the obtaining module 1003 is further configured to update the update information including the null data to the data structure corresponding to the target option parameter if the update type is the delete type;
if the update type is a modification option value type, updating the update information containing the target option value into a data structure corresponding to the target option parameter;
and if the updating type is the supplement type, adding the newly added option parameter and the corresponding newly added option parameter value into the preset data structure.
The various modules in the above-described option parameter synchronization apparatus 1000 may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing option parameter data contained in the BIOS configuration file and the attribute file. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an option parameter synchronization method.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
if the attribute file and the configuration file are updated, determining target option parameters of the attribute file and the configuration file which are updated;
acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data;
and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the original attribute file and the original configuration file of the locally stored BIOS.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
sending a file query request to the BMC; the file query request is used for indicating whether a configuration file and an attribute file of the BIOS exist in query;
receiving a file query result fed back by the BMC, and compressing and packaging the attribute file and the configuration file in the BIOS to obtain full compressed data if the file query result indicates that the configuration file and the attribute file of the BIOS do not exist;
and generating a creation instruction containing the full-amount compressed data, sending the creation instruction to the BMC, and indicating the BMC to store the full-amount compressed data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring current option parameters of a BIOS in a current running state;
comparing the data consistency of each current option parameter and the option parameters in the data structure list based on the initial metadata and the corresponding initial data value of the option parameter contained in each data structure in the data structure list;
and if the data of the current option parameters are inconsistent with the data of the option parameters, determining that the attribute file and the configuration file of the BIOS are updated.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining the update type of the target option parameter corresponding to the update information, and generating the update information corresponding to the update type based on the update type of the target option parameter;
and adding the updating information corresponding to the updating type into a preset data structure corresponding to the target option parameter, and encapsulating to obtain encapsulated data of the target option parameter.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the update type is a deletion type, updating the update information containing null value data into a data structure corresponding to the target option parameter;
if the update type is a modification option value type, updating the update information containing the target option value into a data structure corresponding to the target option parameter;
and if the updating type is the supplement type, adding the newly added option parameter and the corresponding newly added option parameter value into the preset data structure.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. An option parameter synchronization method, the method comprising:
detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
if the attribute file and the configuration file are updated, determining updated target option parameters in the attribute file and the configuration file;
acquiring update information of the target option parameters, and packaging the update information in a preset data structure form to obtain packaged data;
and generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC, and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
2. The method of claim 1, wherein before detecting whether the option parameters in the profile and the configuration file of the BIOS are updated based on the data structure list, the method further comprises:
sending a file query request to the BMC; the file query request is used for indicating whether a configuration file and an attribute file of the BIOS exist in query or not;
receiving a file query result fed back by the BMC, and compressing and packaging the attribute file and the configuration file in the BIOS to obtain full compressed data if the file query result indicates that the configuration file and the attribute file of the BIOS do not exist;
and generating a creation instruction containing the full-amount compressed data, sending the creation instruction to the BMC, and indicating the BMC to store the full-amount compressed data.
3. The method of claim 1, wherein detecting whether the profile and the configuration file of the BIOS are updated based on the data structure list comprises:
acquiring current option parameters of a BIOS in a current running state;
comparing the data consistency of each current option parameter and the option parameters in the data structure list based on the initial metadata and the corresponding initial data values of the option parameters contained in each data structure in the data structure list;
and if the data of the current option parameter is inconsistent with the data of the option parameter, determining that the attribute file and the configuration file of the BIOS are updated.
4. The method according to claim 1, wherein the obtaining update information of the target option parameter, and encapsulating the update information in a preset data structure to obtain encapsulated data comprises:
determining an update type of a target option parameter corresponding to the update information, and generating the update information corresponding to the update type based on the update type of the target option parameter;
and adding the updating information corresponding to the updating type into a preset data structure corresponding to the target option parameter, and performing data encapsulation to obtain encapsulation data of the target option parameter.
5. The method according to claim 4, wherein the adding the update information corresponding to the update type to the preset data structure corresponding to the target option parameter comprises:
if the update type is a deletion type, updating update information containing null value data into a data structure corresponding to the target option parameter;
if the update type is a modification option value type, updating update information containing a target option value into a data structure corresponding to the target option parameter;
and if the updating type is the supplement type, adding the newly added option parameter and the corresponding newly added option parameter value into a preset data structure.
6. An option parameter synchronization method, the method comprising:
receiving a configuration change message sent by a BIOS, wherein the configuration change message carries encapsulated data containing update information, and the encapsulated data is obtained by encapsulating update information of target option parameters which are updated in the BIOS in a form of a preset data structure;
and updating the target option parameters in the original attribute file and the original configuration file of the BIOS which are locally stored according to the updating strategy corresponding to the updating information in the packaging data to obtain the updated attribute file and configuration file.
7. The method of claim 6, wherein the updating the locally stored target option parameters in the original property file and the original configuration file of the BIOS according to the update policy corresponding to the update information in the encapsulated data to obtain the updated property file and configuration file comprises:
identifying an updating strategy corresponding to each updating information in the packaging data;
if the data value corresponding to the target option parameter contained in the update information is a null value, deleting the target option parameter at the target field in the original attribute file and the original configuration file of the BIOS;
if the data value corresponding to the target option parameter contained in the update information is the target option value, updating the option values at the target field in the original attribute file and the original configuration file of the BIOS;
and if the target option parameter contained in the updating information is a newly added option parameter, adding the newly added option parameter and the corresponding newly added option parameter value in the updating information at a target field in the original attribute file and the original configuration file of the BIOS.
8. An option parameter synchronization apparatus, the apparatus comprising:
the detection module is used for detecting whether the attribute file and the configuration file of the BIOS are updated or not based on the data structure list;
the determining module is used for determining updated target option parameters in the attribute file and the configuration file if the attribute file and the configuration file are updated;
the acquisition module is used for acquiring the update information of the target option parameter and packaging the update information in a preset data structure form to obtain packaged data;
and the update transmission module is used for generating a configuration change message containing the encapsulated data, sending the configuration change message to the BMC and indicating the BMC to modify and update the locally stored original attribute file and original configuration file of the BIOS.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111386251.4A 2021-11-22 2021-11-22 Method and device for synchronizing option parameters, computer equipment and storage medium Pending CN114116031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111386251.4A CN114116031A (en) 2021-11-22 2021-11-22 Method and device for synchronizing option parameters, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111386251.4A CN114116031A (en) 2021-11-22 2021-11-22 Method and device for synchronizing option parameters, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114116031A true CN114116031A (en) 2022-03-01

Family

ID=80439468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111386251.4A Pending CN114116031A (en) 2021-11-22 2021-11-22 Method and device for synchronizing option parameters, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114116031A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915643A (en) * 2022-05-09 2022-08-16 北京交大微联科技有限公司 Configuration method, device, equipment and medium of railway signal centralized monitoring system
CN115037610A (en) * 2022-04-24 2022-09-09 浙江清捷智能科技有限公司 Automatic configuration system and automatic configuration method
CN115080132A (en) * 2022-06-28 2022-09-20 西安易朴通讯技术有限公司 Information processing method, information processing apparatus, server, and storage medium
CN116069676A (en) * 2023-04-07 2023-05-05 中国空气动力研究与发展中心计算空气动力研究所 Version comparison method, device, terminal equipment and storage medium
CN116580748A (en) * 2023-04-21 2023-08-11 深圳市晶存科技有限公司 Configuration method, device, equipment and storage medium of memory chip test fixture
WO2024093971A1 (en) * 2022-11-04 2024-05-10 中车长春轨道客车股份有限公司 Method and system for determining vehicle-mounted superconducting magnet monitoring system, and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944212A (en) * 2010-09-29 2011-01-12 用友软件股份有限公司 Method and device for generating changed receipt
US20170123927A1 (en) * 2015-10-30 2017-05-04 Quanta Computer Inc. System and method for selective bios restoration
CN108170454A (en) * 2018-01-22 2018-06-15 郑州云海信息技术有限公司 A kind of data interactive method for being applied to BIOS and baseboard management controller
CN109240739A (en) * 2018-09-27 2019-01-18 郑州云海信息技术有限公司 A kind of method, apparatus and controlled terminal of rapid configuration BIOS option
CN110232091A (en) * 2017-09-19 2019-09-13 北京京东尚科信息技术有限公司 Mthods, systems and devices for synchrodata
TWI685791B (en) * 2019-01-17 2020-02-21 神雲科技股份有限公司 Method of generating bios-change record
CN111198706A (en) * 2020-01-08 2020-05-26 北京小米移动软件有限公司 Method for updating system function, apparatus for updating system function and storage medium
CN111831466A (en) * 2020-07-17 2020-10-27 深圳市同泰怡信息技术有限公司 System equipment error reporting method, device, storage medium and computer equipment
CN112463239A (en) * 2020-12-07 2021-03-09 苏州浪潮智能科技有限公司 BIOS and BMC interaction option default value modification method, system, terminal and storage medium
WO2021114025A1 (en) * 2019-12-09 2021-06-17 深圳市欢太科技有限公司 Incremental data determination method, incremental data determination apparatus, server and terminal device
CN113010217A (en) * 2021-03-18 2021-06-22 山东英信计算机技术有限公司 BIOS parameter setting method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944212A (en) * 2010-09-29 2011-01-12 用友软件股份有限公司 Method and device for generating changed receipt
US20170123927A1 (en) * 2015-10-30 2017-05-04 Quanta Computer Inc. System and method for selective bios restoration
CN110232091A (en) * 2017-09-19 2019-09-13 北京京东尚科信息技术有限公司 Mthods, systems and devices for synchrodata
CN108170454A (en) * 2018-01-22 2018-06-15 郑州云海信息技术有限公司 A kind of data interactive method for being applied to BIOS and baseboard management controller
CN109240739A (en) * 2018-09-27 2019-01-18 郑州云海信息技术有限公司 A kind of method, apparatus and controlled terminal of rapid configuration BIOS option
TWI685791B (en) * 2019-01-17 2020-02-21 神雲科技股份有限公司 Method of generating bios-change record
WO2021114025A1 (en) * 2019-12-09 2021-06-17 深圳市欢太科技有限公司 Incremental data determination method, incremental data determination apparatus, server and terminal device
CN111198706A (en) * 2020-01-08 2020-05-26 北京小米移动软件有限公司 Method for updating system function, apparatus for updating system function and storage medium
CN111831466A (en) * 2020-07-17 2020-10-27 深圳市同泰怡信息技术有限公司 System equipment error reporting method, device, storage medium and computer equipment
CN112463239A (en) * 2020-12-07 2021-03-09 苏州浪潮智能科技有限公司 BIOS and BMC interaction option default value modification method, system, terminal and storage medium
CN113010217A (en) * 2021-03-18 2021-06-22 山东英信计算机技术有限公司 BIOS parameter setting method and device, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037610A (en) * 2022-04-24 2022-09-09 浙江清捷智能科技有限公司 Automatic configuration system and automatic configuration method
CN115037610B (en) * 2022-04-24 2023-09-22 浙江清捷智能科技有限公司 Automatic configuration system and automatic configuration method
CN114915643A (en) * 2022-05-09 2022-08-16 北京交大微联科技有限公司 Configuration method, device, equipment and medium of railway signal centralized monitoring system
CN114915643B (en) * 2022-05-09 2024-01-26 北京交大微联科技有限公司 Configuration method, device, equipment and medium of railway signal centralized monitoring system
CN115080132A (en) * 2022-06-28 2022-09-20 西安易朴通讯技术有限公司 Information processing method, information processing apparatus, server, and storage medium
WO2024093971A1 (en) * 2022-11-04 2024-05-10 中车长春轨道客车股份有限公司 Method and system for determining vehicle-mounted superconducting magnet monitoring system, and storage medium
CN116069676A (en) * 2023-04-07 2023-05-05 中国空气动力研究与发展中心计算空气动力研究所 Version comparison method, device, terminal equipment and storage medium
CN116580748A (en) * 2023-04-21 2023-08-11 深圳市晶存科技有限公司 Configuration method, device, equipment and storage medium of memory chip test fixture
CN116580748B (en) * 2023-04-21 2024-02-23 深圳市晶存科技有限公司 Configuration method, device, equipment and storage medium of memory chip test fixture

Similar Documents

Publication Publication Date Title
CN114116031A (en) Method and device for synchronizing option parameters, computer equipment and storage medium
US10599533B2 (en) Cloud storage using merkle trees
US11221995B2 (en) Data replication from a cloud-based storage resource
US10740300B1 (en) Synchronization of metadata in a distributed storage system
WO2017054454A1 (en) Method, device, terminal, server, and system for accessing usb device
WO2016180055A1 (en) Method, device and system for storing and reading data
US20210064413A1 (en) Deploying a cloud instance of a user virtual machine
CN110489421B (en) Data storage method, apparatus, computer readable storage medium and computer device
US20210160319A1 (en) Data Sending Method and Apparatus, and Data Receiving Method and Apparatus
CN105208135B (en) A kind of document transmission method and equipment
US11728976B1 (en) Systems and methods for efficiently serving blockchain requests using an optimized cache
US20200042313A1 (en) Methods and systems for remote software update
CN114531477A (en) Method and device for configuring functional components, computer equipment and storage medium
CN112148350A (en) Remote version management method for works, electronic device and computer storage medium
US8938522B2 (en) Tiered XML services in a content management system
US20120158673A1 (en) Storing and publishing contents of a content store
CN114416689A (en) Data migration method and device, computer equipment and storage medium
CN111382379B (en) Method and terminal for importing configuration data with pictures
CN113157306A (en) Resource packaging management method, device, equipment and storage medium
AU2015292266B2 (en) System and method for simultaneous forensic acquisition, examination and analysis of a computer readable medium at wire speed
CN106407320B (en) File processing method, device and system
WO2024066904A1 (en) Container creation method, system, and node
US11971857B2 (en) Adaptively providing uncompressed and compressed data chunks
CN115292051B (en) Hot migration method, device and application of GPU (graphics processing Unit) resource POD (POD)
CN117171419B (en) Content processing method, device, electronic apparatus, storage medium, and program product

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
TA01 Transfer of patent application right

Effective date of registration: 20230317

Address after: No. 846, South Section of Tianfu Avenue, Huayang Street, Tianfu New District, Shuangliu County, Chengdu, Sichuan 610200

Applicant after: ZHONGKE SUGON INFORMATION INDUSTRY CHENGDU Co.,Ltd.

Address before: 1-3 / F, No.15 Haitai Huake street, Huayuan Industrial Zone, Xiqing District, Tianjin

Applicant before: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Applicant before: ZHONGKE SUGON INFORMATION INDUSTRY CHENGDU Co.,Ltd.

TA01 Transfer of patent application right