A file processing method, device, system, equipment and storage medium

By downloading and decompressing the compressed BIOS configuration file in the BMC during the server startup process, and uploading the updated file after parameter configuration, the problem of long file transfer time and large storage space between the BMC and the server BIOS is solved, which improves the server startup speed and saves storage space.

CN114201234BActive Publication Date: 2025-04-01SUGON INFORMATION IND
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111514471.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2025-04-01
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

The file transfer time between the BMC and the BIOS of the server is long, which slows down the server startup speed and the BIOS configuration file occupies a large amount of BMC storage space.

Method used

During the current startup process of the server, the modified compressed BIOS configuration file is downloaded and decompressed through the file download interface provided by BMC, and configured according to its parameters; then the current compressed BIOS configuration file is uploaded through the file upload interface provided by BMC to update the files in BMC.

Benefits of technology

It reduces file transfer time between the server's BIOS and BMC, improves server boot speed, and saves BMC's storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114201234B_ABST
    Figure CN114201234B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a file processing method, device, system, equipment and storage medium, wherein the method comprises: sending a file status query request to a baseboard management controller BMC; the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file is modified, downloading the modified compressed BIOS configuration file corresponding to the server from the file storage module of the BMC through the file download interface provided by the BMC; performing parameter configuration according to the modified compressed BIOS configuration file; generating a current compressed BIOS configuration file, and sending the current compressed BIOS configuration file to the BMC through the file upload interface provided by the BMC. The embodiment of the present invention can reduce the file transmission time between the BMC and the BIOS of the server, improve the server startup speed, and save BMC storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a file processing method, apparatus, system, device and storage medium. Background Art

[0002] The Baseboard Management Controller (BMC) is a unique management controller for servers. BMC can monitor the health status of each server it manages and obtain various related information of each server, so that operation and maintenance personnel can understand the operating status of each server in a timely manner and ensure the normal operation of each server.

[0003] The Base Input Output System (BIOS) of each server managed by the BMC sends the attribute file and the configuration file to the BMC. The operation and maintenance personnel can understand the current configuration of the BIOS of each server based on the attribute file and configuration file stored in the BMC, and can also modify the configuration of the BIOS of each server based on real-time business needs and generate a modified configuration file so that the BIOS of each server can obtain the modified configuration file from the BMC when the server is started next time, and complete the configuration modification based on the modified configuration file.

[0004] In the related art, the BMC and the BIOS of each server perform file transfers via the server management standard Redfish. Since the capacity of the BIOS attribute files and configuration files is large, the file transfer time is long, which slows down the server startup speed. In addition, the BIOS attribute files and configuration files are stored in the BMC, which will occupy a large storage space in the BMC. Summary of the invention

[0005] The embodiments of the present invention provide a file processing method, apparatus, system, device and storage medium, which can reduce the file transmission time between the BMC and the BIOS of the server, improve the server startup speed and save the BMC storage space.

[0006] In a first aspect, an embodiment of the present invention provides a file processing method, which is applied to a basic input and output system BIOS, comprising:

[0007] During the current startup process of the server, a file status query request is sent to a baseboard management controller BMC; wherein the file status query request is used to request the BMC to feedback a modification status of a BIOS configuration file corresponding to the server;

[0008] When it is detected that the modification status of the BIOS configuration file fed back by the BMC is modified, downloading the modified compressed BIOS configuration file corresponding to the server from the file storage module of the BMC using the hypertext transfer protocol through the file download interface provided by the BMC;

[0009] Perform parameter configuration according to the modified compressed BIOS configuration file;

[0010] According to the parameter values ​​after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through a file upload interface provided by the BMC using a hypertext transfer protocol.

[0011] Optionally, also include:

[0012] After the first startup process of the server is completed, generating a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server according to the BIOS attribute information and BIOS configuration information corresponding to the server;

[0013] The compressed BIOS attribute file and the compressed BIOS configuration file are sent to the baseboard management controller BMC by using a file upload interface provided by the BMC using a hypertext transfer protocol.

[0014] Optionally, performing parameter configuration according to the modified compressed BIOS configuration file includes:

[0015] Decompressing the modified compressed BIOS configuration file using a decompression algorithm corresponding to the compression format of the modified compressed BIOS configuration file to obtain a modified BIOS configuration file corresponding to the server;

[0016] According to the modified BIOS configuration file, the parameters to be configured in the basic input and output system BIOS are configured.

[0017] In a second aspect, an embodiment of the present invention further provides a file processing method, which is applied to a baseboard management controller BMC, comprising:

[0018] When a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and a modification status of the BIOS configuration file corresponding to the server is updated to modified;

[0019] When a file status query request sent by the basic input and output system BIOS of the server is detected, a modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module through the file download interface provided by the BMC using the hypertext transfer protocol, and performs parameter configuration according to the modified compressed BIOS configuration file;

[0020] After the BIOS is configured, a current compressed BIOS configuration file corresponding to the server is received through a file upload interface using a hypertext transfer protocol, and the compressed BIOS configuration file corresponding to the server stored in the file storage module is replaced with the current compressed BIOS configuration file.

[0021] In a third aspect, an embodiment of the present invention further provides a file processing device, which is configured in a basic input / output system BIOS, and includes:

[0022] A status query module, used for sending a file status query request to a baseboard management controller BMC during the current startup process of the server; wherein the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server;

[0023] A file download module, configured to download a modified compressed BIOS configuration file corresponding to the server from a file storage module of the BMC using a hypertext transfer protocol through a file download interface provided by the BMC when detecting that the modification status of the BIOS configuration file fed back by the BMC is modified;

[0024] A parameter configuration module, used for performing parameter configuration according to the modified compressed BIOS configuration file;

[0025] The configuration file sending module is used to generate a current compressed BIOS configuration file corresponding to the server according to the parameter values ​​after configuration, and send the current compressed BIOS configuration file to the BMC through the file upload interface provided by the BMC using the hypertext transfer protocol.

[0026] In a fourth aspect, an embodiment of the present invention further provides a file processing device, which is configured in a baseboard management controller BMC, and includes:

[0027] A status update module, configured to store the modified compressed BIOS configuration file in a file storage module when detecting a modified compressed BIOS configuration file corresponding to a server uploaded by a user, and update a modification status of the BIOS configuration file corresponding to the server to modified;

[0028] a status feedback module, configured to feed back a modification status of a BIOS configuration file corresponding to the server to the BIOS upon detecting a file status query request sent by a basic input / output system BIOS of the server, so that the BIOS downloads a modified compressed BIOS configuration file corresponding to the server from the file storage module through a file download interface provided by the BMC using a hypertext transfer protocol, and performs parameter configuration according to the modified compressed BIOS configuration file;

[0029] The configuration file replacement module is used to receive, through the file upload interface, the current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed, and replace the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0030] In a fifth aspect, an embodiment of the present invention further provides a file processing system, including:

[0031] A baseboard management controller BMC, and a basic input and output system BIOS in at least one server corresponding to the baseboard management controller BMC;

[0032] Wherein, each of the BIOS is used to send a file status query request to the baseboard management controller BMC during the current startup process of the server; wherein, the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedback by the BMC is modified, the modified compressed BIOS configuration file corresponding to the server is downloaded from the file storage module of the BMC through the file download interface provided by the BMC using the hypertext transfer protocol; parameter configuration is performed according to the modified compressed BIOS configuration file; according to the parameter value after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through the file upload interface provided by the BMC using the hypertext transfer protocol;

[0033] The BMC is used to store the modified compressed BIOS configuration file corresponding to the server in a file storage module when detecting a modified compressed BIOS configuration file uploaded by a user, and update the modification status of the BIOS configuration file corresponding to the server to modified; when detecting a file status query request sent by the basic input and output system BIOS of the server, feed back the modification status of the BIOS configuration file corresponding to the server to the BIOS; receive, through a file upload interface, a current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed, and replace the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0034] In a sixth aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:

[0035] one or more processors;

[0036] A storage device for storing one or more programs;

[0037] When the one or more programs are executed by the one or more processors, the one or more processors implement the file processing method described in any embodiment of the present invention.

[0038] In a seventh aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, implement the file processing method described in any embodiment of the present invention.

[0039] The technical solution provided by the embodiment of the present invention sends a file status query request to the baseboard management controller BMC during the current startup process of the server, requesting the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedback by the BMC is modified, the modified compressed BIOS configuration file corresponding to the server is downloaded from the file storage module of the BMC through the file download interface provided by the BMC using the hypertext transfer protocol, and finally, according to the modified compressed BIOS configuration file, parameter configuration is performed, and according to the parameter values ​​after the configuration is completed, the current compressed BIOS configuration file corresponding to the server is generated, and through the file upload interface provided by the BMC, the modified compressed BIOS configuration file is downloaded from the file storage module of the BMC. The current compressed BIOS configuration file is sent to the BMC using the hypertext transfer protocol. During the current startup process of the server, when it is determined that the user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC, the compressed BIOS configuration file can be downloaded through the file download interface provided by the BMC using the hypertext transfer protocol, thereby reducing the file transmission time between the server's BIOS and the BMC and improving the server startup speed. The BMC can store the compressed BIOS configuration file to avoid the BIOS configuration file occupying a large storage space in the BMC and save BMC storage space. This can be done after the first startup process of the server is completed. Finally, the BIOS attribute file and the BIOS configuration file are compressed before file transfer and file storage, which reduces the file transfer time between the server's BIOS and BMC, improves the server startup speed, avoids the BIOS attribute file and the BIOS configuration file from occupying a large storage space in the BMC, and saves BMC storage space; the server's basic input and output system BIOS can automatically complete the BIOS parameter configuration process during the server startup process according to the modified compressed BIOS configuration file, thereby improving the server startup efficiency; the compressed BIOS configuration file can be stored and transferred, which reduces the file transfer time between the server's BIOS and BMC. , improve the server startup speed, avoid the BIOS configuration file in the BMC occupying a large storage space, save BMC storage space; the compressed BIOS attribute file and BIOS configuration file can be transferred and stored, reducing the file transfer time between the server BIOS and BMC, improving the server startup speed, avoiding the BIOS attribute file and BIOS configuration file in the BMC occupying a large storage space, saving BMC storage space; the baseboard management controller BMC can automatically provide the compressed BIOS attribute file and the compressed BIOS configuration file to the user, so that the user can modify the BIOS configuration information in time according to real-time business needs, and improve the server startup efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The present invention provides a flowchart of a method for processing a file.

[0041] Figure 2 The present invention provides a flowchart of a method for processing a file.

[0042] Figure 3 This is a flowchart of a file processing method provided in Embodiment 3 of the present invention.

[0043] Figure 4 A schematic diagram of the structure of a file processing device provided in Embodiment 4 of the present invention.

[0044] Figure 5 A structural schematic diagram of a file processing device provided in Embodiment 5 of the present invention.

[0045] Figure 6 A structural diagram of a file processing system provided in Example 6 of the present invention.

[0046] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 7 of the present invention. DETAILED DESCRIPTION

[0047] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0048] Embodiment 1

[0049] Figure 1 This is a flowchart of a file processing method provided in the first embodiment of the present invention. The embodiment of the present invention is applicable to the case where files are transferred between a baseboard management controller BMC and a basic input / output system BIOS of each managed server. The method can be executed by a file processing device provided in the embodiment of the present invention, which can be implemented in software and / or hardware, and can generally be integrated in the basic input / output system BIOS in the server.

[0050] like Figure 1 As shown, the method of the embodiment of the present invention specifically includes:

[0051] Step 101 : During the current startup process of the server, a file status query request is sent to a baseboard management controller BMC.

[0052] The file status query request is used to request the BMC to feedback a modification status of a BIOS configuration file corresponding to the server.

[0053] Optionally, the basic input and output system BIOS in the server is a set of programs fixed on a read-only memory chip on the motherboard of the server, which stores the most important basic input and output programs of the server, power-on self-test programs and system self-starting programs, etc. The main function of the basic input and output system BIOS in the server is to provide the lowest-level and most direct hardware settings and controls for the server.

[0054] Optionally, the basic input / output system BIOS includes one or more parameters to be configured. The parameters to be configured are parameters in the basic input / output system BIOS that need to be configured, for example, parameters related to setting the driver startup sequence in the server, parameters for setting the external cache memory in the server, etc.

[0055] Optionally, it also includes: after the first startup process of the server is completed, generating a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server according to the BIOS attribute information and BIOS configuration information corresponding to the server; and sending the compressed BIOS attribute file and the compressed BIOS configuration file to the baseboard management controller BMC using the hypertext transfer protocol through the file upload interface provided by the BMC.

[0056] Optionally, the BIOS attribute information corresponding to the server is the attribute information of each parameter to be configured contained in the basic input and output system BIOS in the server. The attribute information of the parameter to be configured may include the name of the parameter to be configured, functional description information and parameter value range. Each parameter to be configured corresponds to a name. Different parameters to be configured can be distinguished according to the name of the parameter to be configured. The functional description information of the parameter to be configured is used to describe the function of the parameter to be configured. The numerical range of the parameter to be configured includes all optional parameter values ​​corresponding to the parameter to be configured.

[0057] Optionally, the BIOS configuration information corresponding to the server is configuration information of each parameter to be configured contained in the basic input / output system BIOS pre-stored in the server. The configuration information of the parameter to be configured includes the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured.

[0058] Optionally, generating a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server according to the BIOS attribute information and BIOS configuration information corresponding to the server includes: obtaining the BIOS attribute information and BIOS configuration information corresponding to the server; generating a BIOS attribute file corresponding to the server according to the BIOS attribute information corresponding to the server; generating a BIOS configuration file corresponding to the server according to the BIOS configuration information corresponding to the server; and using a preset compression algorithm to compress the BIOS attribute file and the BIOS configuration file, respectively, to obtain a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server.

[0059] Optionally, obtaining BIOS attribute information and BIOS configuration information corresponding to the server includes: reading BIOS attribute information and BIOS configuration information corresponding to the server from a storage device in the server. The storage device in the server may be software and / or hardware in the server for storing various types of information related to the server. The BIOS attribute information and BIOS configuration information corresponding to the server are stored in a storage device in the server. The storage device includes but is not limited to a non-volatile memory.

[0060] Optionally, generating a BIOS attribute file corresponding to the server according to the BIOS attribute information corresponding to the server includes: establishing a file for storing the BIOS attribute information corresponding to the server; wherein the file format includes but is not limited to a data exchange format (JavaScript Object Notation, JSON); filling the BIOS attribute information corresponding to the server into the file to obtain a BIOS attribute file corresponding to the server. The BIOS attribute file corresponding to the server is a file that stores the BIOS attribute information corresponding to the server.

[0061] Optionally, generating a BIOS configuration file corresponding to the server according to the BIOS configuration information corresponding to the server includes: establishing a file for storing the BIOS configuration information corresponding to the server; wherein the file format includes but is not limited to a data exchange format (JavaScript Object Notation, JSON); filling the BIOS configuration information corresponding to the server into the file to obtain a BIOS configuration file corresponding to the server. The BIOS configuration file corresponding to the server is a file that stores the BIOS configuration information corresponding to the server.

[0062] Optionally, the preset compression algorithm includes but is not limited to the file compression algorithm GZip and the compression method Lempel-Ziv. The compressed BIOS attribute file corresponding to the server is the BIOS attribute file corresponding to the server after compression. The compressed BIOS configuration file corresponding to the server is the BIOS configuration file corresponding to the server after compression.

[0063] Therefore, in an embodiment of the present invention, the basic input and output system BIOS of the server can automatically generate a BIOS attribute file and a BIOS configuration file corresponding to the server after the first startup process of the server is completed, and compress the BIOS attribute file and the BIOS configuration file corresponding to the server to reduce the capacity of the BIOS attribute file and the BIOS configuration file, thereby improving the transmission efficiency of subsequent file transmission processes.

[0064] Optionally, the baseboard management controller BMC is used to manage the server. A communication connection between the baseboard management controller BMC and the basic input and output system BIOS of the server is established in advance.

[0065] Optionally, the file upload interface is an interface based on HyperText Transfer Protocol (HTTP) provided by the baseboard management controller BMC, and is used to receive files or other data sent by the basic input and output system BIOS through the HyperText Transfer Protocol.

[0066] Optionally, the basic input / output system BIOS sends the compressed BIOS attribute file and the compressed BIOS configuration file to the baseboard management controller BMC through a file upload interface provided by the BMC using a hypertext transfer protocol. The BMC receives the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server sent by the basic input / output system BIOS of the server using a hypertext transfer protocol through the file upload interface. Then the BMC stores the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server in a file storage module.

[0067] Therefore, the embodiment of the present invention can compress the BIOS attribute file and the BIOS configuration file before transferring and storing the file after the first startup process of the server is completed, thereby reducing the file transmission time between the BIOS and the BMC of the server, improving the server startup speed, avoiding the BIOS attribute file and the BIOS configuration file from occupying a large storage space in the BMC, and saving BMC storage space.

[0068] Optionally, the file storage module is software and / or hardware in the BMC for storing compressed BIOS attribute files and compressed BIOS configuration files corresponding to each server managed by the BMC.

[0069] Optionally, the user obtains a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server from the file storage module of the BMC through a terminal device, and decompresses the compressed BIOS attribute file and the compressed BIOS configuration file using a decompression algorithm corresponding to the compression format of the compressed BIOS attribute file and the compressed BIOS configuration file to obtain a BIOS attribute file and a BIOS configuration file corresponding to the server, thereby determining the name, function description information, parameter value range of each parameter to be configured contained in the basic input and output system BIOS in the server, and the parameter value of the parameter to be configured in the pre-stored BIOS configuration file.

[0070] Optionally, if the parameter value of the parameter to be configured in the pre-stored configuration information cannot meet the business requirements, the user can modify the parameter value of the parameter to be configured in the BIOS configuration file according to the business requirements to obtain a modified BIOS configuration file, and use a preset compression algorithm to compress the modified BIOS configuration file to obtain a modified compressed BIOS configuration file corresponding to the server. Then, the modified compressed BIOS configuration file corresponding to the server is uploaded to the BMC through the terminal device.

[0071] Optionally, the modification status of the BIOS configuration file corresponding to the server is set in the BMC, and is used to indicate whether the user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC. The BIOS configuration file modification status includes unmodified and modified. In the initial state, the modification status of the BIOS configuration file corresponding to the server is unmodified. When the BMC detects the modified compressed BIOS configuration file corresponding to the server uploaded by the user, it stores the modified compressed BIOS configuration file to the file storage module, and updates the modification status of the BIOS configuration file corresponding to the server to modified.

[0072] Optionally, during the current startup process of the server, the BIOS sends a file status query request to the baseboard management controller BMC, requesting the BMC to feedback the modification status of the BIOS configuration file corresponding to the server. When the BMC detects the file status query request sent by the basic input and output system BIOS of the server, it feeds back the modification status of the BIOS configuration file corresponding to the server to the BIOS.

[0073] Optionally, if the modification status of the BIOS configuration file corresponding to the server is not modified, indicating that the user has not uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC, the BIOS directly sets the parameter value corresponding to each parameter to be configured contained in the BIOS and stored in the server to the parameter value corresponding to the parameter to be configured in the BIOS, thereby completing the BIOS parameter configuration process during this server startup process.

[0074] Optionally, if the modification status of the BIOS configuration file corresponding to the server is modified, it indicates that the user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC. The BIOS needs to download the modified compressed BIOS configuration file corresponding to the server from the BMC, and perform parameter configuration according to the modified compressed BIOS configuration file corresponding to the server, thereby completing the BIOS parameter configuration process during the server startup process.

[0075] Step 102: When it is detected that the modification status of the BIOS configuration file fed back by the BMC is modified, a modified compressed BIOS configuration file corresponding to the server is downloaded from a file storage module of the BMC using a hypertext transfer protocol through a file download interface provided by the BMC.

[0076] Optionally, the file download interface is an interface based on the Hypertext Transfer Protocol provided by the baseboard management controller BMC, and is used to download files or other data from a file storage module of the baseboard management controller BMC.

[0077] Optionally, when the basic input / output system BIOS detects that the modification status of the BIOS configuration file fed back by the BMC is modified, the basic input / output system BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module through the file download interface provided by the BMC using the hypertext transfer protocol.

[0078] Step 103: Perform parameter configuration according to the modified compressed BIOS configuration file.

[0079] Optionally, the parameter configuration according to the modified compressed BIOS configuration file includes: using a decompression algorithm corresponding to the compression format of the modified compressed BIOS configuration file to decompress the modified compressed BIOS configuration file to obtain a modified BIOS configuration file corresponding to the server; and configuring the parameters to be configured in the basic input and output system BIOS according to the modified BIOS configuration file.

[0080] Optionally, configuring the parameters to be configured in the basic input / output system BIOS according to the modified BIOS configuration file includes: the BIOS sets the parameter values ​​corresponding to the parameters to be configured in the modified BIOS configuration file to the parameter values ​​corresponding to the parameters to be configured in the BIOS, thereby completing the BIOS parameter configuration process during the current server startup process. The modified BIOS configuration file is a modified compressed BIOS configuration file after decompression processing.

[0081] Therefore, in the embodiment of the present invention, the basic input and output system BIOS of the server can automatically complete the BIOS parameter configuration process during the current server startup process according to the modified compressed BIOS configuration file, thereby improving the server startup efficiency.

[0082] Step 104: Generate a current compressed BIOS configuration file corresponding to the server according to the parameter values ​​after configuration, and send the current compressed BIOS configuration file to the BMC through a file upload interface provided by the BMC using the Hypertext Transfer Protocol.

[0083] Optionally, after the parameter configuration is completed, the BIOS creates a file for storing BIOS attribute information corresponding to the server. The file format includes but is not limited to JSON. The BIOS fills the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured at the current moment into the file to obtain a current compressed BIOS configuration file corresponding to the server.

[0084] Optionally, the BIOS sends the current compressed BIOS configuration file to the BMC using the hypertext transfer protocol through a file upload interface provided by the BMC. The BMC receives the current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed through the file upload interface, and replaces the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0085] Thus, after the BIOS parameter configuration process is completed, the compressed BIOS configuration file corresponding to the server stored in the file storage module is also updated accordingly. The user can understand the current configuration of the server's BIOS based on the compressed BIOS configuration file corresponding to the server stored in the file storage module.

[0086] The technical solution of the embodiment of the present invention provides a file processing method, which sends a file status query request to a baseboard management controller BMC during the current startup process of the server, requesting the BMC to feedback the modification status of a BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedbacked by the BMC is modified, a modified compressed BIOS configuration file corresponding to the server is downloaded from a file storage module of the BMC through a file download interface provided by the BMC using a hypertext transfer protocol, and finally, according to the modified compressed BIOS configuration file, parameter configuration is performed, and according to the parameter value after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through a file upload interface provided by the BMC using a hypertext transfer protocol. During the current startup process of the server, when it is determined that a user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC, the BIOS configuration file after compression processing is downloaded through the file download interface provided by the BMC using the hypertext transfer protocol, thereby reducing the file transmission time between the BIOS of the server and the BMC, and improving the server startup speed. The BMC can store the BIOS configuration file after compression processing, thereby avoiding the BIOS configuration file occupying a large storage space in the BMC, and saving the BMC storage space.

[0087] Embodiment 2

[0088] Figure 2 This is a flowchart of a file processing method provided in the second embodiment of the present invention. The embodiment of the present invention is applicable to the case where files are transferred between a baseboard management controller BMC and a basic input / output system BIOS of each managed server. The method can be executed by a file processing device provided in the embodiment of the present invention, which can be implemented in software and / or hardware and can generally be integrated in the baseboard management controller BMC. Figure 2 As shown, the method of the embodiment of the present invention specifically includes:

[0089] Step 201: When a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and a modification status of the BIOS configuration file corresponding to the server is updated to modified.

[0090] Optionally, the baseboard management controller BMC is used to manage the server. A communication connection between the baseboard management controller BMC and the basic input and output system BIOS of the server is established in advance.

[0091] Optionally, it also includes: receiving, through a file upload interface, a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server, which are sent using a hypertext transfer protocol after the first startup process of the server is completed by the basic input and output system BIOS of the server; storing the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server in a file storage module; and providing the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server to a user.

[0092] Optionally, the file upload interface is an interface based on the Hypertext Transfer Protocol provided by the baseboard management controller BMC, and is used to receive files or other data sent by the basic input and output system BIOS through the Hypertext Transfer Protocol.

[0093] Optionally, the basic input / output system BIOS sends the compressed BIOS attribute file and the compressed BIOS configuration file to the baseboard management controller BMC through a file upload interface provided by the BMC using the hypertext transfer protocol. The BMC receives the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server, which are sent by the basic input / output system BIOS of the server using the hypertext transfer protocol through the file upload interface.

[0094] Optionally, the file storage module is software and / or hardware in the BMC for storing compressed BIOS attribute files and compressed BIOS configuration files corresponding to each server managed by the BMC.

[0095] Optionally, providing the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server to the user, including: sending the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server to the user's terminal device, so that the user processes the compressed BIOS attribute file and the compressed BIOS configuration file through the terminal device, and feeds back the modified compressed BIOS configuration file.

[0096] Therefore, the embodiment of the present invention can perform file transmission and file storage on the BIOS attribute file and BIOS configuration file after compression processing, reduce the file transmission time between the BIOS and the BMC of the server, improve the server startup speed, avoid the BIOS attribute file and the BIOS configuration file from occupying a large storage space in the BMC, and save the BMC storage space. In the embodiment of the present invention, the baseboard management controller BMC can automatically provide the compressed BIOS attribute file and the compressed BIOS configuration file to the user, so that the user can modify the BIOS configuration information in time according to the real-time business needs, and improve the server startup efficiency.

[0097] Optionally, the user obtains a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server from the file storage module of the BMC through a terminal device, and decompresses the compressed BIOS attribute file and the compressed BIOS configuration file using a decompression algorithm corresponding to the compression format of the compressed BIOS attribute file and the compressed BIOS configuration file to obtain a BIOS attribute file and a BIOS configuration file corresponding to the server, thereby determining the name, function description information, parameter value range of each parameter to be configured contained in the basic input and output system BIOS in the server, and the parameter value of the parameter to be configured in the pre-stored BIOS configuration file.

[0098] Optionally, if the parameter value of the parameter to be configured in the pre-stored configuration information cannot meet the business requirements, the user can modify the parameter value of the parameter to be configured in the BIOS configuration file according to the business requirements to obtain a modified BIOS configuration file, and use a preset compression algorithm to compress the modified BIOS configuration file to obtain a modified compressed BIOS configuration file corresponding to the server. Then, the modified compressed BIOS configuration file corresponding to the server is uploaded to the BMC through the terminal device.

[0099] Optionally, when the BMC detects a modified compressed BIOS configuration file corresponding to the server uploaded by the user, the BMC stores the modified compressed BIOS configuration file in a file storage module, and updates the modification status of the BIOS configuration file corresponding to the server to modified.

[0100] Optionally, the modification status of the BIOS configuration file corresponding to the server is set in the BMC, and is used to indicate whether the user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC. The BIOS configuration file modification status includes unmodified and modified. In the initial state, the modification status of the BIOS configuration file corresponding to the server is unmodified. When the BMC detects the modified compressed BIOS configuration file corresponding to the server uploaded by the user, it stores the modified compressed BIOS configuration file to the file storage module, and updates the modification status of the BIOS configuration file corresponding to the server to modified.

[0101] Step 202: When a file status query request sent by the basic input / output system BIOS of the server is detected, the modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module through the file download interface provided by the BMC using the hypertext transfer protocol, and performs parameter configuration according to the modified compressed BIOS configuration file.

[0102] Optionally, during the current startup process of the server, the BIOS sends a file status query request to the baseboard management controller BMC, requesting the BMC to feedback the modification status of the BIOS configuration file corresponding to the server. When the BMC detects the file status query request sent by the basic input and output system BIOS of the server, it feeds back the modification status of the BIOS configuration file corresponding to the server to the BIOS.

[0103] Optionally, if the modification status of the BIOS configuration file corresponding to the server is modified, it indicates that the user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC. The BIOS needs to download the modified compressed BIOS configuration file corresponding to the server from the BMC, and perform parameter configuration according to the modified compressed BIOS configuration file corresponding to the server, thereby completing the BIOS parameter configuration process during the server startup process.

[0104] Optionally, if the modification status of the BIOS configuration file corresponding to the server is not modified, indicating that the user has not uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC, the BIOS directly sets the parameter value corresponding to each parameter to be configured contained in the BIOS and stored in the server to the parameter value corresponding to the parameter to be configured in the BIOS, thereby completing the BIOS parameter configuration process during this server startup process.

[0105] Step 203: receiving, through the file upload interface, a current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed, and replacing the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0106] Optionally, after the parameter configuration is completed, the BIOS creates a file for storing BIOS attribute information corresponding to the server. The file format includes but is not limited to JSON. The BIOS fills the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured at the current moment into the file to obtain a current compressed BIOS configuration file corresponding to the server.

[0107] Optionally, the BIOS sends the current compressed BIOS configuration file to the BMC using the hypertext transfer protocol through a file upload interface provided by the BMC. The BMC receives the current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed through the file upload interface, and replaces the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0108] Thus, after the BIOS parameter configuration process is completed, the compressed BIOS configuration file corresponding to the server stored in the file storage module is also updated accordingly. The user can understand the current configuration of the server's BIOS based on the compressed BIOS configuration file corresponding to the server stored in the file storage module.

[0109] The technical solution of the embodiment of the present invention provides a file processing method. When a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and the modification status of the BIOS configuration file corresponding to the server is updated to modified; when a file status query request sent by a basic input and output system BIOS of the server is detected, the modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module using a hypertext transfer protocol through a file download interface provided by the BMC, performs parameter configuration according to the modified compressed BIOS configuration file, receives the current compressed BIOS configuration file corresponding to the server sent by the BIOS using a hypertext transfer protocol after the configuration is completed through the file upload interface, replaces the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file, and can perform file storage and file transmission on the BIOS configuration file after compression processing, thereby reducing the file transmission time between the BIOS of the server and the BMC, improving the server startup speed, avoiding the BIOS configuration file from occupying a large storage space in the BMC, and saving the BMC storage space.

[0110] Embodiment 3

[0111] Figure 3 A flowchart of a file processing method provided in Embodiment 3 of the present invention includes the following steps:

[0112] Step 301: When the baseboard management controller BMC detects a modified compressed BIOS configuration file corresponding to a server uploaded by a user, it stores the modified compressed BIOS configuration file in a file storage module and updates the modification status of the BIOS configuration file corresponding to the server to modified.

[0113] Step 302: The basic input / output system BIOS of the server sends a file status query request to a baseboard management controller BMC during the current startup process of the server.

[0114] The file status query request is used to request the BMC to feedback a modification status of a BIOS configuration file corresponding to the server.

[0115] Step 303: When the BMC detects the file status query request sent by the BIOS, it feeds back the modification status of the BIOS configuration file corresponding to the server to the BIOS.

[0116] Step 304: When the BIOS detects that the modification status of the BIOS configuration file fed back by the BMC is modified, the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module of the BMC using the hypertext transfer protocol through the file download interface provided by the BMC.

[0117] Step 305: The BIOS performs parameter configuration according to the modified compressed BIOS configuration file.

[0118] Step 306: The BIOS generates a current compressed BIOS configuration file corresponding to the server according to the parameter values ​​after configuration, and sends the current compressed BIOS configuration file to the BMC using the hypertext transfer protocol through a file upload interface provided by the BMC.

[0119] Step 307: The BMC receives, through the file upload interface, a current compressed BIOS configuration file corresponding to the server, which is sent by the BIOS using the hypertext transfer protocol after the configuration is completed, and replaces the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0120] The technical solution of the embodiment of the present invention provides a file processing method, which can perform file transmission and file storage after compressing the BIOS configuration file, thereby reducing the file transmission time between the BIOS and the BMC of the server, improving the server startup speed, avoiding the BIOS configuration file from occupying a large storage space in the BMC, and saving BMC storage space.

[0121] Embodiment 4

[0122] Figure 4 The structure diagram of a file processing device provided by the fourth embodiment of the present invention is shown in FIG. The device can be configured in the basic input and output system BIOS, such as Figure 4 As shown, the device includes: a status query module 401, a file download module 402, a parameter configuration module 403 and a configuration file sending module 404.

[0123] Among them, the status query module 401 is used to send a file status query request to the baseboard management controller BMC during the current startup process of the server; wherein the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; the file download module 402 is used to download the modified compressed BIOS configuration file corresponding to the server from the file storage module of the BMC through the file download interface provided by the BMC using the hypertext transfer protocol when it is detected that the modification status of the BIOS configuration file feedback by the BMC is modified; the parameter configuration module 403 is used to perform parameter configuration according to the modified compressed BIOS configuration file; the configuration file sending module 404 is used to generate a current compressed BIOS configuration file corresponding to the server according to the parameter value after the configuration is completed, and send the current compressed BIOS configuration file to the BMC through the file upload interface provided by the BMC using the hypertext transfer protocol.

[0124] The technical solution of the embodiment of the present invention provides a file processing device, which sends a file status query request to a baseboard management controller BMC during the current startup process of the server, requesting the BMC to feedback the modification status of a BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedbacked by the BMC is modified, the modified compressed BIOS configuration file corresponding to the server is downloaded from a file storage module of the BMC through a file download interface provided by the BMC using a hypertext transfer protocol, and finally, according to the modified compressed BIOS configuration file, parameter configuration is performed, and according to the parameter value after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through a file upload interface provided by the BMC using a hypertext transfer protocol. During the current startup process of the server, when it is determined that a user has uploaded the modified compressed BIOS configuration file corresponding to the server to the BMC, the BIOS configuration file after compression processing is downloaded through the file download interface provided by the BMC using the hypertext transfer protocol, thereby reducing the file transmission time between the BIOS of the server and the BMC, and improving the server startup speed. The BMC can store the BIOS configuration file after compression processing, thereby avoiding the BIOS configuration file occupying a large storage space in the BMC, and saving the BMC storage space.

[0125] In an optional implementation of an embodiment of the present invention, optionally, the file processing device also includes: a file generation module, which is used to generate a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server according to the BIOS attribute information and BIOS configuration information corresponding to the server after the first startup process of the server is completed; a file sending module, which is used to send the compressed BIOS attribute file and the compressed BIOS configuration file to the baseboard management controller BMC through a file upload interface provided by the BMC using the hypertext transfer protocol.

[0126] In an optional implementation of an embodiment of the present invention, optionally, the parameter configuration module 403 is specifically used to: use a decompression algorithm corresponding to the compression format of the modified compressed BIOS configuration file to decompress the modified compressed BIOS configuration file to obtain a modified BIOS configuration file corresponding to the server; and configure the parameters to be configured in the basic input and output system BIOS according to the modified BIOS configuration file.

[0127] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0128] Embodiment 5

[0129] Figure 5 The structure diagram of a file processing device provided in the fifth embodiment of the present invention is shown in FIG. The device can be configured in a baseboard management controller BMC, such as Figure 5 As shown, the device includes: a state updating module 501, a state feedback module 502 and a configuration file replacing module 503.

[0130] Among them, the status update module 501 is used to store the modified compressed BIOS configuration file corresponding to the server in the file storage module when detecting the modified compressed BIOS configuration file uploaded by the user, and update the modification status of the BIOS configuration file corresponding to the server to modified; the status feedback module 502 is used to feedback the modification status of the BIOS configuration file corresponding to the server to the BIOS when detecting a file status query request sent by the basic input and output system BIOS of the server, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module using the hypertext transfer protocol through the file download interface provided by the BMC, and performs parameter configuration according to the modified compressed BIOS configuration file; the configuration file replacement module 503 is used to receive the current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed through the file upload interface, and replace the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file.

[0131] The technical solution of the embodiment of the present invention provides a file processing device. When a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and the modification status of the BIOS configuration file corresponding to the server is updated to modified; when a file status query request sent by a basic input and output system BIOS of the server is detected, the modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module using a hypertext transfer protocol through a file download interface provided by the BMC, performs parameter configuration according to the modified compressed BIOS configuration file, receives the current compressed BIOS configuration file corresponding to the server sent by the BIOS using a hypertext transfer protocol after the configuration is completed through the file upload interface, replaces the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file, and can perform file storage and file transmission on the BIOS configuration file after compression processing, thereby reducing the file transmission time between the BIOS of the server and the BMC, improving the server startup speed, avoiding the BIOS configuration file from occupying a large storage space in the BMC, and saving the BMC storage space.

[0132] In an optional implementation of an embodiment of the present invention, optionally, the file processing device also includes: a file receiving module, which is used to receive, through a file upload interface, a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server, which are sent by the basic input and output system BIOS of the server using the hypertext transfer protocol after the first startup process of the server is completed; a file storage module, which is used to store the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server in the file storage module; and a file providing module, which is used to provide the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server to a user.

[0133] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0134] Embodiment 6

[0135] Figure 6 This is a schematic diagram of the structure of a file processing system provided by Embodiment 6 of the present invention. Figure 6 As shown, the system includes: a baseboard management controller BMC 601 , and a basic input / output system BIOS 602 in at least one server corresponding to the baseboard management controller BMC 601 .

[0136] Each of the BIOS 602 is used to send a file status query request to the baseboard management controller BMC 601 during the current startup process of the server; wherein the file status query request is used to request the BMC 601 to feedback the modification status of the BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedbacked by the BMC 601 is modified, the modified compressed BIOS configuration file corresponding to the server is downloaded from the file storage module of the BMC601 through the file download interface provided by the BMC 601 using the hypertext transfer protocol; parameter configuration is performed according to the modified compressed BIOS configuration file; according to the parameter value after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC 601 through the file upload interface provided by the BMC 601 using the hypertext transfer protocol; the BMC 601 is used to store the modified compressed BIOS configuration file in the file storage module when detecting the modified compressed BIOS configuration file corresponding to the server uploaded by the user, and update the modification status of the BIOS configuration file corresponding to the server to modified; when it is detected that the basic input and output system BIOS of the server is When a file status query request is sent by 602, the modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS 602; through the file upload interface, the current compressed BIOS configuration file corresponding to the server sent by the BIOS 602 using the hypertext transfer protocol after the configuration is completed is received, and the compressed BIOS configuration file corresponding to the server stored in the file storage module is replaced with the current compressed BIOS configuration file.

[0137] The technical solution of the embodiment of the present invention provides a file processing system, in which the basic input and output system BIOS and the baseboard management controller BMC in the system can perform file transmission and file storage on the BIOS configuration file after compression processing, thereby reducing the file transmission time between the BIOS and the BMC of the server, improving the server startup speed, avoiding the BIOS configuration file from occupying a large storage space in the BMC, and saving the BMC storage space.

[0138] Embodiment 7

[0139] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 7 of the present invention. Figure 7 A block diagram of an exemplary computer device 12 suitable for implementing embodiments of the present invention is shown. Figure 7 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0140] like Figure 7 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 connecting different business system components (including the memory 28 and the processor 16).

[0141] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0142] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0143] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0144] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0145] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0146] The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, thereby realizing the file processing method provided by the embodiment of the present invention: during the current startup process of the server, a file status query request is sent to the baseboard management controller BMC; wherein the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedback by the BMC is modified, the modified compressed BIOS configuration file corresponding to the server is downloaded from the file storage module of the BMC through the file download interface provided by the BMC using the hypertext transfer protocol; according to the modified compressed BIOS configuration file, parameter configuration is performed; according to the parameter value after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through the file upload interface provided by the BMC using the hypertext transfer protocol.

[0147] Alternatively, the file processing method provided in the embodiment of the present invention is implemented: when a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and the modification status of the BIOS configuration file corresponding to the server is updated to modified; when a file status query request sent by a basic input and output system BIOS of the server is detected, the modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module using the hypertext transfer protocol through a file download interface provided by the BMC, and performs parameter configuration according to the modified compressed BIOS configuration file; through a file upload interface, a current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed is received, and the compressed BIOS configuration file corresponding to the server stored in the file storage module is replaced with the current compressed BIOS configuration file.

[0148] Embodiment 8

[0149] Embodiment 8 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the file processing method provided by the embodiment of the present invention is implemented: during the current startup process of the server, a file status query request is sent to a baseboard management controller BMC; wherein the file status query request is used to request the BMC to feedback the modification status of a BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedback by the BMC is modified, a modified compressed BIOS configuration file corresponding to the server is downloaded from a file storage module of the BMC through a file download interface provided by the BMC using a hypertext transfer protocol; parameter configuration is performed according to the modified compressed BIOS configuration file; according to the parameter values ​​after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through a file upload interface provided by the BMC using a hypertext transfer protocol.

[0150] Alternatively, the file processing method provided in the embodiment of the present invention is implemented: when a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and the modification status of the BIOS configuration file corresponding to the server is updated to modified; when a file status query request sent by a basic input and output system BIOS of the server is detected, the modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module using the hypertext transfer protocol through a file download interface provided by the BMC, and performs parameter configuration according to the modified compressed BIOS configuration file; through a file upload interface, a current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed is received, and the compressed BIOS configuration file corresponding to the server stored in the file storage module is replaced with the current compressed BIOS configuration file.

[0151] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0152] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0153] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0154] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0155] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A file processing method, characterized in that: Applied to the basic input and output system BIOS, including: During the current startup process of the server, a file status query request is sent to a baseboard management controller BMC; wherein the file status query request is used to request the BMC to feedback a modification status of a BIOS configuration file corresponding to the server; When it is detected that the modification status of the BIOS configuration file fed back by the BMC is modified, downloading the modified compressed BIOS configuration file corresponding to the server from the file storage module of the BMC using the hypertext transfer protocol through the file download interface provided by the BMC; Perform parameter configuration according to the modified compressed BIOS configuration file; Generate a current compressed BIOS configuration file corresponding to the server according to the parameter values ​​after configuration, and send the current compressed BIOS configuration file to the BMC using the hypertext transfer protocol through a file upload interface provided by the BMC; The method further comprises: After the first startup process of the server is completed, a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server are generated according to the BIOS attribute information and BIOS configuration information corresponding to the server, wherein the BIOS attribute information refers to the attribute information of each parameter to be configured contained in the BIOS in the server, including the name, function description information and parameter value range of the parameter to be configured, and the BIOS configuration information refers to the configuration information of each parameter to be configured contained in the BIOS pre-stored in the server, including the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured; The compressed BIOS attribute file and the compressed BIOS configuration file are sent to the baseboard management controller BMC by using a file upload interface provided by the BMC using a hypertext transfer protocol.

2. The method according to claim 1, characterized in that: The performing parameter configuration according to the modified compressed BIOS configuration file includes: Decompressing the modified compressed BIOS configuration file using a decompression algorithm corresponding to the compression format of the modified compressed BIOS configuration file to obtain a modified BIOS configuration file corresponding to the server; According to the modified BIOS configuration file, the parameters to be configured in the basic input and output system BIOS are configured.

3. A file processing method, characterized in that: Applied to baseboard management controller BMC, including: When a modified compressed BIOS configuration file corresponding to a server uploaded by a user is detected, the modified compressed BIOS configuration file is stored in a file storage module, and a modification status of the BIOS configuration file corresponding to the server is updated to modified; When a file status query request sent by the basic input and output system BIOS of the server is detected, a modification status of the BIOS configuration file corresponding to the server is fed back to the BIOS, so that the BIOS downloads the modified compressed BIOS configuration file corresponding to the server from the file storage module through the file download interface provided by the BMC using the hypertext transfer protocol, and performs parameter configuration according to the modified compressed BIOS configuration file; Receiving, through the file upload interface, a current compressed BIOS configuration file corresponding to the server sent by the BIOS using the hypertext transfer protocol after the configuration is completed, and replacing the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file; The method further comprises: Receiving, through a file upload interface, a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server, which are sent by a basic input and output system BIOS of the server using a hypertext transfer protocol after the first startup process of the server is completed, wherein the BIOS attribute information refers to attribute information of each parameter to be configured contained in the BIOS of the server, including the name of the parameter to be configured, function description information and parameter value range, and the BIOS configuration information refers to configuration information of each parameter to be configured contained in the BIOS pre-stored in the server, including the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured; Storing the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server in a file storage module; The compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server are provided to the user.

4. A file processing device, characterized in that: Configured in the basic input and output system BIOS, including: A status query module, used for sending a file status query request to a baseboard management controller BMC during the current startup process of the server; wherein the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; A file download module, configured to download a modified compressed BIOS configuration file corresponding to the server from a file storage module of the BMC using a hypertext transfer protocol through a file download interface provided by the BMC when detecting that the modification status of the BIOS configuration file fed back by the BMC is modified; A parameter configuration module, used for performing parameter configuration according to the modified compressed BIOS configuration file; A configuration file sending module, used to generate a current compressed BIOS configuration file corresponding to the server according to the parameter values ​​after the configuration is completed, and send the current compressed BIOS configuration file to the BMC using the hypertext transfer protocol through the file upload interface provided by the BMC; The device also includes: a file generation module, which is used to generate a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server after the first startup process of the server is completed, according to the BIOS attribute information and BIOS configuration information corresponding to the server, wherein the BIOS attribute information refers to the attribute information of each parameter to be configured contained in the BIOS in the server, including the name of the parameter to be configured, function description information and parameter value range, and the BIOS configuration information refers to the configuration information of each parameter to be configured contained in the BIOS pre-stored in the server, including the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured; a file sending module, which is used to send the compressed BIOS attribute file and the compressed BIOS configuration file to the baseboard management controller BMC through the file upload interface provided by the BMC using the hypertext transfer protocol.

5. A file processing device, characterized in that: Configured in the baseboard management controller BMC, including: A status update module, configured to store the modified compressed BIOS configuration file in a file storage module when detecting a modified compressed BIOS configuration file corresponding to a server uploaded by a user, and update a modification status of the BIOS configuration file corresponding to the server to modified; a status feedback module, configured to feed back a modification status of a BIOS configuration file corresponding to the server to the BIOS upon detecting a file status query request sent by a basic input / output system BIOS of the server, so that the BIOS downloads a modified compressed BIOS configuration file corresponding to the server from the file storage module through a file download interface provided by the BMC using a hypertext transfer protocol, and performs parameter configuration according to the modified compressed BIOS configuration file; A configuration file replacement module, configured to receive, through a file upload interface, a current compressed BIOS configuration file corresponding to the server, which is sent by the BIOS using a hypertext transfer protocol after the configuration is completed, and replace the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file; The management device also includes: a file receiving module, which is used to receive, through a file upload interface, a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server, which are sent by the basic input and output system BIOS of the server using the hypertext transfer protocol after the first startup process of the server is completed, wherein the BIOS attribute information refers to the attribute information of each parameter to be configured contained in the BIOS in the server, including the name of the parameter to be configured, function description information and parameter value range, and the BIOS configuration information refers to the configuration information of each parameter to be configured contained in the BIOS pre-stored in the server, including the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured; a file storage module, which is used to store the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server in the file storage module; and a file providing module, which is used to provide the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server to a user.

6. A file processing system, characterized in that: include: A baseboard management controller BMC, and a basic input and output system BIOS in at least one server corresponding to the baseboard management controller BMC; Wherein, each of the BIOS is used to send a file status query request to the baseboard management controller BMC during the current startup process of the server; wherein, the file status query request is used to request the BMC to feedback the modification status of the BIOS configuration file corresponding to the server; when it is detected that the modification status of the BIOS configuration file feedback by the BMC is modified, the modified compressed BIOS configuration file corresponding to the server is downloaded from the file storage module of the BMC through the file download interface provided by the BMC using the hypertext transfer protocol; parameter configuration is performed according to the modified compressed BIOS configuration file; according to the parameter value after the configuration is completed, a current compressed BIOS configuration file corresponding to the server is generated, and the current compressed BIOS configuration file is sent to the BMC through the file upload interface provided by the BMC using the hypertext transfer protocol; The BMC is used to store the modified compressed BIOS configuration file corresponding to the server in a file storage module when detecting a modified compressed BIOS configuration file uploaded by a user, and update the modification status of the BIOS configuration file corresponding to the server to modified; when detecting a file status query request sent by a basic input and output system BIOS of the server, feedback the modification status of the BIOS configuration file corresponding to the server to the BIOS; receive, through a file upload interface, a current compressed BIOS configuration file corresponding to the server sent by the BIOS using a hypertext transfer protocol after configuration is completed, and replace the compressed BIOS configuration file corresponding to the server stored in the file storage module with the current compressed BIOS configuration file; Wherein, each of the BIOS is also used to generate a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server according to the BIOS attribute information and BIOS configuration information corresponding to the server after the first startup process of the server is completed, wherein the BIOS attribute information refers to the attribute information of each parameter to be configured contained in the BIOS in the server, including the name of the parameter to be configured, function description information and parameter value range, and the BIOS configuration information refers to the configuration information of each parameter to be configured contained in the BIOS pre-stored in the server, including the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured; through the file upload interface provided by the baseboard management controller BMC, the compressed BIOS attribute file and the compressed BIOS configuration file are sent to the BMC using the hypertext transfer protocol; The BMC is further used to receive, through a file upload interface, a compressed BIOS attribute file and a compressed BIOS configuration file corresponding to the server, which are sent by the basic input and output system BIOS of the server using the hypertext transfer protocol after the first startup process of the server is completed, wherein the BIOS attribute information refers to the attribute information of each parameter to be configured contained in the BIOS of the server, including the name of the parameter to be configured, function description information and parameter value range, and the BIOS configuration information refers to the configuration information of each parameter to be configured contained in the BIOS pre-stored in the server, including the name of the parameter to be configured and the parameter value corresponding to the parameter to be configured; store the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server in a file storage module; and provide the compressed BIOS attribute file and the compressed BIOS configuration file corresponding to the server to a user.

7. A computer device, characterized in that: The computer device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the file processing method as described in any one of claims 1-2, or the file processing method as described in claim 3.

8. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the file processing method according to any one of claims 1 to 2, or the file processing method according to claim 3 when executed by a computer processor.

Citation Information

Patent Citations

  • External card parameter configuration method, equipment and system

    CN103412769A

  • Computer system configuration method and server

    CN109976816A

  • Configuration information storage method and related equipment

    CN110377343A