Configuration information determination method and device, computer equipment and storage medium

By obtaining the configuration identification set of the BMC to be updated and the configuration identification set in the update file, determining the target configuration information of the updated BMC, the problem of low configuration efficiency in the prior art is solved, and efficient and accurate configuration of the updated BMC is achieved.

CN120123007APending Publication Date: 2025-06-10SUGON INFORMATION IND +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311683897.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

The configuration of the updated substrate management controller (BMC) in the prior art is less efficient, which may cause the BMC to not work properly.

Method used

By acquiring the first configuration identification set of the first configuration information of the BMC to be updated and the second configuration identification set of the second configuration information in the update file, the target configuration information of the updated BMC is determined. The specific method includes determining the compatibility information of the first configuration identification set and the second configuration identification set, and determining the target configuration information from the first configuration information and the second configuration information based on the compatibility information.

Benefits of technology

Improve the accuracy and efficiency of configuring the updated BMC, ensuring that the BMC can work normally after the update.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120123007A_ABST
    Figure CN120123007A_ABST
Patent Text Reader

Abstract

The invention relates to a configuration information determination method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a first configuration identifier set of first configuration information of a to-be-updated baseboard management controller BMC; acquiring a second configuration identifier set of second configuration information of the to-be-updated BMC from an update file under the condition that the update file of the to-be-updated BMC is received; and determining updated target configuration information of the BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set. By adopting the method, the efficiency of configuring the updated BMC can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technologies, and particularly to a method, apparatus, computer device, and storage medium for determining configuration information. Background Art

[0002] A Baseboard Management Controller (BMC) is a management controller specific to a server. To implement new functions of the BMC or repair faults of the BMC, the BMC is updated. To ensure that the user's configuration is not lost, the current configuration file of the BMC is usually saved. However, since the configuration structures of the BMC to be updated and the updated BMC may be different, configuring the updated BMC using the current configuration file may cause the BMC to malfunction.

[0003] In the traditional technology, the current configuration file of the BMC can be exported first. After the BMC is updated, the updated BMC is configured using the current configuration file; or, the current configuration file may not be saved when the BMC is updated, and after the BMC is updated, the BMC file is reconfigured.

[0004] However, there is a problem of low configuration efficiency for the updated BMC in the prior art. Summary of the Invention

[0005] Based on this, in view of the above technical problems, it is necessary to provide a method, apparatus, computer device, and storage medium for determining configuration information that can improve the configuration efficiency of the updated BMC.

[0006] In a first aspect, the present application provides a method for determining configuration information, including:

[0007] Obtaining a first configuration identifier set of first configuration information of a Baseboard Management Controller (BMC) to be updated;

[0008] When receiving an update file of the BMC to be updated, obtaining a second configuration identifier set of second configuration information of the BMC to be updated from the update file;

[0009] Determining target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set.

[0010] In one embodiment, the determining, according to the first configuration identifier set and the second configuration identifier set, target configuration information of the updated BMC from the first configuration information and the second configuration information includes:

[0011] Determine the compatibility information between the first configuration identification set and the second configuration identification set;

[0012] According to the compatibility information, determine the target configuration information of the updated BMC from the first configuration information and the second configuration information.

[0013] In one embodiment, the determining the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information includes:

[0014] If the compatibility information indicates that the first configuration identification set and the second configuration identification set are incompatible, determine the second configuration information as the target configuration information;

[0015] If the compatibility information indicates that the first configuration identification set and the second configuration identification set are compatible, determine the first configuration information as the target configuration information.

[0016] In one embodiment, the determining the compatibility information between the first configuration identification set and the second configuration identification set includes:

[0017] If each first configuration identification in the first configuration identification set is the same as each second configuration identification in the second configuration identification set, determine that the compatibility information is that the first configuration identification set and the second configuration identification set are compatible;

[0018] If there is a second configuration identification in the second configuration identification set that is different from each first configuration identification in the first configuration identification set, determine that the compatibility information is that the first configuration identification set and the second configuration identification set are incompatible.

[0019] In one embodiment, the method further includes:

[0020] If there is a newly added second configuration identification in the second configuration identification set, or the second configuration identification set lacks a first configuration identification in the first configuration identification set, determine that there is a second configuration identification in the second configuration identification set that is different from each first configuration identification in the first configuration identification set.

[0021] In one embodiment, the method further includes:

[0022] Display the compatibility information through a user interaction interface;

[0023] Receive an operation instruction triggered by the user based on the compatibility information;

[0024] In the case that the operation instruction indicates to update the BMC to be updated, update the BMC to be updated by using the BMC update file.

[0025] In a second aspect, the present application further provides a determining device for configuration information, including:

[0026] A first obtaining module, configured to obtain a first set of configuration identifiers of first configuration information of a to-be-updated baseboard management controller (BMC);

[0027] A second obtaining module, configured to obtain a second set of configuration identifiers of second configuration information of the to-be-updated BMC from the update file when receiving the update file of the to-be-updated BMC;

[0028] A determining module, configured to determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first set of configuration identifiers and the second set of configuration identifiers.

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] Obtain a first set of configuration identifiers of first configuration information of a to-be-updated baseboard management controller (BMC);

[0031] When receiving the update file of the to-be-updated BMC, obtain a second set of configuration identifiers of second configuration information of the to-be-updated BMC from the update file;

[0032] Determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first set of configuration identifiers and the second set of configuration identifiers.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0034] Obtain a first set of configuration identifiers of first configuration information of a to-be-updated baseboard management controller (BMC);

[0035] When receiving the update file of the to-be-updated BMC, obtain a second set of configuration identifiers of second configuration information of the to-be-updated BMC from the update file;

[0036] Determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first set of configuration identifiers and the second set of configuration identifiers.

[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0038] Obtain a first set of configuration identifiers for the first configuration information of the baseboard management controller (BMC) to be updated.

[0039] When receiving an update file for the BMC to be updated, obtain a second set of configuration identifiers for the second configuration information of the BMC to be updated from the update file.

[0040] According to the first set of configuration identifiers and the second set of configuration identifiers, determine the target configuration information of the updated BMC from the first configuration information and the second configuration information.

[0041] The above method, device, computer device, and storage medium for determining configuration information can obtain a first set of configuration identifiers for the first configuration information corresponding to the BMC to be updated from the baseboard management controller to be updated. When receiving an update file for the BMC to be updated, it can obtain a set of configuration identifiers for the second configuration information that matches the update file from the update file of the BMC to be updated. Thus, it can determine whether the configuration structure of the updated BMC is the same as that of the BMC to be updated according to the first set of configuration identifiers and the second set of configuration identifiers. In this way, based on the determination information of whether the configuration structure of the updated BMC is the same as that of the BMC to be updated, the target configuration information of the updated BMC can be determined from the first configuration information and the second configuration information, avoiding the problem that when the configuration structure of the updated BMC is different from that of the BMC to be updated, the first configuration information is still used as the target configuration information to configure the updated BMC, resulting in the BMC being unable to work properly. It can accurately determine the target configuration information of the updated BMC from the first configuration information and the second configuration information of the BMC to be updated. In this way, the determined target configuration information is used when configuring the updated BMC, ensuring the accuracy of configuring the updated BMC, and further improving the efficiency of configuring the updated BMC. Brief Description of the Drawings

[0042] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0043] Figure 1 It is an application environment diagram of the method for determining configuration information in an embodiment;

[0044] Figure 2 It is a flowchart of the method for determining configuration information in an embodiment;

[0045] Figure 3 Schematic flowchart of a method for determining configuration information in another embodiment;

[0046] Figure 4 Schematic flowchart of a method for determining configuration information in another embodiment;

[0047] Figure 5 Schematic flowchart of a method for determining configuration information in another embodiment;

[0048] Figure 6 Schematic flowchart of a method for determining configuration information in another embodiment;

[0049] Figure 7 Block diagram of a device for determining configuration information in one embodiment;

[0050] Figure 8 Block diagram of a device for determining configuration information in another embodiment;

[0051] Figure 9 Block diagram of a device for determining configuration information in another embodiment. Detailed implementation manners

[0052] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The method for determining configuration information provided by the embodiments of the present application can be applied to an application environment as Figure 1 shown. Among them, the computer device may be a server, and its internal structure diagram may be as Figure 1 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the data for determining configuration information. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a method for determining configuration information.

[0054] Those skilled in the art can understand that Figure 1 The structure shown in Figure 1 is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0055] In one embodiment, as Figure 2 shown, a method for determining configuration information is provided. Taking the server in Figure 2 as an example for illustration, the above method includes: Figure 1 In Figure 1 , the above method includes:

[0056] S201, obtain the first configuration identifier set of the first configuration information of the baseboard management controller (BMC) to be updated.

[0057] Among them, the baseboard management controller (BMC) is a dedicated service processor. The BMC can use sensors to monitor the status of a computer, a network server, or other hardware drive devices. The first configuration information is the current configuration information of each sub-module of the BMC to be updated. Exemplarily, the first configuration information may include the current user configuration information, network configuration information, alarm configuration information, time configuration information, log configuration information, etc. of the BMC. The first configuration identifier set includes the configuration identifiers corresponding to the current configuration information of each sub-module of the BMC.

[0058] In this embodiment, the user can modify the first configuration information of the BMC to be updated, but the user cannot modify the first configuration identifier set of the first configuration information. The server may pre-store the update files during the historical updates of the BMC to be updated, and can parse the update files during the historical updates to obtain the first configuration identifier set of the first configuration information of the BMC to be updated; or, the server may pre-store the installation files during the installation of the BMC to be updated, and can parse the installation files to obtain the first configuration identifier set of the first configuration information of the BMC to be updated.

[0059] S202, in the case of receiving the update file of the BMC to be updated, obtain the second configuration identifier set of the second configuration information of the BMC to be updated from the update file.

[0060] Among them, the update file of the BMC to be updated may include an image file, second configuration information corresponding to the image file, and other information. The image file is used to update the BMC to be updated. The second configuration information is the configuration information corresponding to each sub-module of the BMC in the update file. The other information may include the manufacturer information of the BMC, the update purpose information of the BMC, etc. Exemplarily, the second configuration information may include default user configuration information, network configuration information, alarm configuration information, time configuration information, log configuration information, Basic Input Output System (BIOS) configuration information, etc.

[0061] In this embodiment, after the server receives the update file of the BMC to be updated, it can decompress the update file and read the second configuration identifier set of the second configuration information of the BMC to be updated from the decompressed update file.

[0062] S203. Determine the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set.

[0063] Optionally, in this embodiment, it is possible to determine whether the configuration structure of the BMC in the update file is the same as the configuration structure of the BMC to be updated through the first configuration identifier set and the second configuration identifier set. Further, according to the determination information on whether the configuration structure of the BMC in the update file is the same as the configuration structure of the BMC to be updated, the target configuration information is determined from the first configuration information and the second configuration information. Optionally, when the configuration structure of the BMC in the update file is the same as the configuration structure of the BMC to be updated, the first configuration information or the second configuration information may be determined as the target configuration information of the updated BMC; or, when the configuration structure of the BMC in the update file is different from the configuration structure of the BMC to be updated, the first configuration information may be updated using the second configuration information, and the updated first configuration information may be determined as the target configuration information, or the second configuration information may be directly determined as the target configuration information.

[0064] Optionally, in this embodiment, a consistency comparison may be performed on the first configuration identifier set and the second configuration identifier set to obtain the similarity between the first configuration identifier set and the second configuration identifier set. If the similarity is greater than or equal to a preset similarity threshold, it may be determined that the configuration structure of the BMC in the update file is the same as the configuration structure of the BMC to be updated. If the similarity is less than the preset similarity threshold, it may be determined that the configuration structure of the BMC in the update file is different from the configuration structure of the BMC to be updated.

[0065] In the method for determining the above configuration information, a first configuration identifier set corresponding to the BMC to be updated can be obtained from the BMC to be updated, and in the case of receiving an update file of the BMC to be updated, a configuration identifier set of the second configuration information matching the update file can be obtained from the update file of the BMC to be updated, so that it is possible to determine whether the configuration structure of the updated BMC is the same as the configuration structure of the BMC to be updated according to the first configuration identifier set and the second configuration identifier set. In this way, based on the determination information of whether the configuration structure of the updated BMC is the same as the configuration structure of the BMC to be updated, the target configuration information of the updated BMC can be determined from the first configuration information and the second configuration information, avoiding the problem that the first configuration information is still used as the target configuration information to configure the updated BMC when the configuration structure of the updated BMC is different from the configuration structure of the BMC to be updated, resulting in the BMC not working properly. The target configuration information of the updated BMC can be accurately determined from the first configuration information and the second configuration information of the BMC to be updated. In this way, the determined target configuration information is used when configuring the updated BMC, ensuring the accuracy of configuring the updated BMC, and further improving the efficiency of configuring the updated BMC.

[0066] In the above scenario of determining the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set, the compatibility information of the first configuration identifier set and the second configuration identifier set can be determined first, and then the target configuration information of the updated BMC can be determined from the first configuration information and the second configuration information according to the compatibility information. In one embodiment, as Figure 3 shown, the above S203 includes:

[0067] S301, determine the compatibility information of the first configuration identifier set and the second configuration identifier set.

[0068] In this embodiment, the first configuration identifier set includes multiple first configuration identifiers, and the second configuration identifier set includes multiple second configuration identifiers. The compatibility of the first configuration identifier set and the second configuration identifier set can be judged according to the multiple first configuration identifiers and the multiple second configuration identifiers to obtain the compatibility information of the first configuration identifier set and the second configuration identifier set.

[0069] Optionally, in this embodiment, it can be determined whether there are corresponding second configuration identifiers for each first configuration identifier in the second configuration identifier set, so as to obtain the sub-compatibility information between each first configuration identifier and the second configuration identifier in the second configuration identifier set, and according to a plurality of sub-compatibility information, determine the compatibility information between the first configuration identifier set and the second configuration identifier set. Exemplarily, the ratio of the number of sub-compatibility information calculated as compatible to the number of first configuration identifiers in the first configuration identifier set can be calculated. If the ratio is greater than a preset ratio threshold, it is determined that the first configuration identifier set is compatible with the second configuration identifier set. If the ratio is less than the threshold ratio threshold, it is determined that the first configuration identifier set is not compatible with the second configuration identifier set.

[0070] Optionally, in this embodiment, the data format of the compatibility information between the first configuration identifier set and the second configuration identifier set can be any data format such as the JS key-value pair data (JavaScript Object Notation, JSON) format, the byte format, etc. This embodiment does not make a limitation here.

[0071] S302. According to the compatibility information, determine the target configuration information of the updated BMC from the first configuration information and the second configuration information.

[0072] In this embodiment, the compatibility information between the first configuration identifier set and the second configuration identifier set can indicate whether the first configuration identifier set and the second configuration identifier set are compatible.

[0073] Optionally, since the first configuration information of each sub-module in the first configuration information corresponds one-to-one with each first configuration identifier, and the second configuration information corresponding to each sub-module in the second configuration information corresponds one-to-one with each second configuration identifier. If the first configuration identifier set is compatible with the second configuration identifier set, the first configuration information corresponding to the first configuration identifier can be determined as the second configuration information of the second configuration identifier that is compatible with the first configuration identifier. If the first configuration identifier set is not compatible with the second configuration identifier set, the above second configuration information can be determined as the target configuration information.

[0074] In this embodiment, according to the compatibility information between the first configuration identifier set and the second configuration identifier set, the target configuration information of the updated BMC in different situations can be determined, so that the determined target configuration information can match the configuration structure of the updated BMC, thereby improving the efficiency of configuring the updated BMC.

[0075] In the above scenario of determining the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information, when the compatibility information is compatible, the first configuration information can be directly determined as the target configuration information. When the compatibility information is not compatible, the second configuration information can be determined as the target configuration information. In one embodiment, such as Figure 4As shown above, S302 includes:

[0076] S401, if the compatibility information indicates that the first configuration identification set and the second configuration identification set are incompatible, then determine the second configuration information as the target configuration information.

[0077] In this embodiment, when the compatibility information indicates that the first configuration identification set and the second configuration identification set are incompatible, that is, when the configuration structure of the updated BMC is different from the configuration structure of the BMC to be updated, determine the second configuration information in the update file as the target configuration information, and use the second configuration information to configure the updated BMC, which can avoid configuration failure and cause the BMC to fail to work properly.

[0078] S402, if the compatibility information indicates that the first configuration identification set and the second configuration identification set are compatible, then determine the first configuration information as the target configuration information.

[0079] In this embodiment, when the compatibility information indicates that the first configuration identification set and the second configuration identification set are compatible, that is, when the configuration structure of the updated BMC is the same as the configuration structure of the BMC to be updated, the existing first configuration information in the server can be determined as the target configuration information. In this case, using the first configuration information to configure the updated BMC can not only make the target configuration information more match the actual usage requirements of the BMC, but also avoid configuration failure due to the different configuration structures of the updated BMC and the BMC to be updated.

[0080] In this embodiment, when the first configuration identification set and the second configuration identification set are compatible, the first configuration information is determined as the target configuration information; when the first configuration identification set and the second configuration identification set are incompatible, the second configuration information is determined as the target configuration information. When the configuration structure of the updated BMC is different from the configuration structure of the BMC to be updated, it is ensured that the BMC can work properly after being configured. At the same time, when the configuration structure of the updated BMC is the same as the configuration structure of the BMC to be updated, the first configuration information of the BMC to be updated can continue to be used as the target configuration information.

[0081] In the above scenario of determining the compatibility information between the first configuration identification set and the second configuration identification set, it can be determined whether the first configuration identification set and the second configuration identification set are compatible according to whether each first configuration identification in the first configuration identification set is the same as each second configuration identification in the second configuration identification set. In one embodiment, as Figure 5 As shown above, S301 includes:

[0082] S501, if each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set, determine that the compatibility information is that the first configuration identifier set is compatible with the second configuration identifier set.

[0083] Optionally, it can be determined whether the number of first configuration identifiers in the first configuration identifier set is the same as the number of second configuration identifiers in the second configuration identifier set. If the number of first configuration identifiers is the same as the number of second configuration identifiers, it is determined that each first configuration identifier has a corresponding second configuration identifier. Further, it can be determined that the first configuration identifier set is compatible with the second configuration identifier set.

[0084] In this embodiment, when each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set, it means that the configuration structures of each sub-module of the BMC updated according to the update file are the same as the configuration structures of each sub-module of the BMC to be updated. Then, the first configuration identifier set is compatible with the second configuration identifier set.

[0085] Exemplarily, if the first configuration identifier set includes first configuration identifier 1, first configuration identifier 2, and first configuration identifier 3, and the second configuration identifier set includes second configuration identifier 1, second configuration identifier 2, and second configuration identifier 3, and first configuration identifier 1 corresponds to and is the same as second configuration identifier 1, first configuration identifier 2 corresponds to and is the same as second configuration identifier 2, and first configuration identifier 3 corresponds to and is the same as second configuration identifier 3, determine that the compatibility information is that the first configuration identifier set is compatible with the second configuration identifier set.

[0086] S502, if there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set, determine that the compatibility information is that the first configuration identifier set is not compatible with the second configuration identifier set.

[0087] In this embodiment, when there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set, it means that there is a sub-module in the BMC updated according to the update file whose configuration structure is different from that of the sub-module of the BMC to be updated. Then, the first configuration identifier set is not compatible with the second configuration identifier set.

[0088] Exemplarily, if the first configuration identifier set includes first configuration identifier 1, first configuration identifier 2, and first configuration identifier 3, and the second configuration identifier set includes second configuration identifier 1, second configuration identifier 2, and second configuration identifier 3, and first configuration identifier 1 corresponds to but is not the same as second configuration identifier 1, first configuration identifier 2 corresponds to and is the same as second configuration identifier 2, and first configuration identifier 3 corresponds to and is the same as second configuration identifier 3, determine that the compatibility information is that the first configuration identifier set is not compatible with the second configuration identifier set.

[0089] Optionally, if there is a newly added second configuration identifier in the second configuration identifier set, or if the first configuration identifier set is missing a first configuration identifier in the second configuration identifier set, it is determined that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set. Exemplarily, if there are a first configuration identifier 1 and a first configuration identifier 2 in the first configuration identifier, there are a second configuration identifier 1, a second configuration identifier 2, and a second configuration identifier 3 in the second configuration identifier set, the first configuration identifier 1 corresponds to the second configuration identifier 1, the first configuration identifier 2 corresponds to the second configuration identifier 2, and the second configuration identifier 3 is the newly added second configuration identifier, then it is determined that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set; or, if there are a first configuration identifier 1, a first configuration identifier 2, and a first configuration identifier 4 in the first configuration identifier, there are a second configuration identifier 1, a second configuration identifier 2, and a second configuration identifier 3 in the second configuration identifier set, the first configuration identifier 1 corresponds to the second configuration identifier 1, the first configuration identifier 2 corresponds to the second configuration identifier 2, the second configuration identifier 3 is the newly added second configuration identifier, and the first configuration identifier 4 is the first configuration identifier in the first configuration identifier set that is missing in the second configuration identifier set, then it is determined that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set.

[0090] In this embodiment, by determining whether the first configuration identifiers in the first configuration identifier set are the same as the second configuration identifiers in the second configuration identifier set, the compatibility information between the first configuration identifier set and the second configuration identifier set is determined, and the accuracy of the compatibility information is relatively high, thereby improving the accuracy of the determined target configuration information.

[0091] After determining the compatibility information between the first configuration identifier set and the second configuration identifier set, the compatibility information can be displayed to the user through the user interaction interface, and the BMC to be updated can be operated according to the operation instruction triggered by the user. In one embodiment, as Figure 6 shown, the above method further includes:

[0092] S601, display the compatibility information through the user interaction interface.

[0093] In this embodiment, the user interaction interface can be the user interaction interface of the server itself, or the server can send the compatibility information to the client, and the client displays the compatibility information to the user through the user interaction interface.

[0094] Optionally, in this embodiment, the compatibility information between the first configuration identifier set and the second configuration identifier set can be displayed through the user interaction interface, or the compatibility information between each first configuration identifier and the corresponding second configuration identifier can be displayed through the user interaction interface based on the compatibility information between the first configuration identifier set and the second configuration identifier set.

[0095] S602. Receive an operation instruction triggered by the user based on the compatibility information.

[0096] Among them, the operation instruction includes an operation instruction to update the BMC to be updated and an operation instruction not to update the BMC to be updated.

[0097] In this embodiment, the user can trigger an operation instruction by clicking an option on the user interface, or the user can trigger an operation instruction by voice input.

[0098] S603. When the operation instruction indicates to update the BMC to be updated, use the BMC update file to update the BMC to be updated.

[0099] In this embodiment, when the operation instruction indicates to update the BMC to be updated, use the image file in the BMC update file to update the BMC to be updated to obtain the updated BMC. Further, if the target configuration information is the first configuration information, configure the updated BMC with the first configuration information. If the target configuration information is the second configuration information, configure the updated BMC with the second configuration information.

[0100] Optionally, the client and the server can communicate through the redfish interface. After receiving the update operation instruction, the server can update the BMC to be updated according to the image file in the pre-stored update file, or obtain the image file from other servers to update the BMC to be updated. If the backup image file of the BMC to be updated is used to update the BMC to be updated, the compatibility of the first configuration identification set and the second configuration identification set is no longer considered.

[0101] In this embodiment, the compatibility information is displayed through the interaction interface, and the BMC to be updated is operated according to the operation instruction triggered by the user, so that the user can understand the whole process of updating the BMC to be updated.

[0102] Next, a specific scenario for determining configuration information is used to introduce an embodiment of the present disclosure. The method includes the following steps:

[0103] S1. Obtain the first configuration identification set of the first configuration information of the baseboard management controller (BMC) to be updated.

[0104] S2. When receiving the update file of the BMC to be updated, obtain the second configuration identification set of the second configuration information of the BMC to be updated from the update file.

[0105] S3. If each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set, determine that the compatibility information indicates that the first configuration identifier set is compatible with the second configuration identifier set; if there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set, determine that the compatibility information indicates that the first configuration identifier set is incompatible with the second configuration identifier set; if there is a newly added second configuration identifier in the second configuration identifier set, or if the second configuration identifier set is missing a first configuration identifier in the first configuration identifier set, determine that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set.

[0106] S4. If the compatibility information indicates that the first configuration identifier set is incompatible with the second configuration identifier set, determine the second configuration information as the target configuration information; if the compatibility information indicates that the first configuration identifier set is compatible with the second configuration identifier set, determine the first configuration information as the target configuration information.

[0107] S5. Display the compatibility information through the user interaction interface.

[0108] S6. Receive an operation instruction triggered by the user based on the compatibility information.

[0109] S7. When the operation instruction indicates to update the BMC to be updated, update the BMC to be updated using the BMC update file.

[0110] In the above method for determining the configuration information, the first configuration identifier set corresponding to the BMC to be updated can be obtained from the BMC to be updated. When receiving the update file of the BMC to be updated, the configuration identifier set of the second configuration information matching the update file can be obtained from the update file of the BMC to be updated. Thus, it is possible to determine whether the configuration structure of the updated BMC is the same as the configuration structure of the BMC to be updated based on the first configuration identifier set and the second configuration identifier set. In this way, based on the determination information of whether the configuration structure of the updated BMC is the same as the configuration structure of the BMC to be updated, the target configuration information of the updated BMC can be determined from the first configuration information and the second configuration information, avoiding the problem that the first configuration information is still used as the target configuration information to configure the updated BMC when the configuration structure of the updated BMC is different from the configuration structure of the BMC to be updated, resulting in the BMC not working properly. It can accurately determine the target configuration information of the updated BMC from the first configuration information and the second configuration information of the BMC to be updated. In this way, the determined target configuration information is used when configuring the updated BMC, ensuring the accuracy of configuring the updated BMC, and thus improving the efficiency of configuring the updated BMC.

[0111] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated herein, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in rotation with at least a part of other steps or steps or stages in other steps.

[0112] Based on the same inventive concept, an embodiment of the present application further provides a configuration information determination device for implementing the above-described configuration information determination method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the configuration information determination device provided below can refer to the limitations on the configuration information determination method in the above text, and will not be elaborated herein.

[0113] In one embodiment, as Figure 7 shown, a configuration information determination device is provided, including: a first acquisition module 10, a second acquisition module 11, and a determination module 12, where:

[0114] The first acquisition module 10 is configured to acquire a first configuration identifier set of first configuration information of a to-be-updated baseboard management controller (BMC).

[0115] The second acquisition module 11 is configured to, when receiving an update file of the to-be-updated BMC, acquire a second configuration identifier set of second configuration information of the to-be-updated BMC from the update file.

[0116] The determination module 12 is configured to determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set.

[0117] The configuration information determination device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be elaborated herein.

[0118] In one embodiment, as Figure 8 shown, the above determination module 12 includes: a first determination unit 121 and a second determination unit 122, where:

[0119] The first determination unit 121 is configured to determine compatibility information between the first configuration identifier set and the second configuration identifier set.

[0120] A second determination unit 122, configured to determine target configuration information of an updated BMC from the first configuration information and the second configuration information according to the compatibility information.

[0121] The configuration information determination device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0122] In one embodiment, the above second determination unit 122 is configured to determine the second configuration information as the target configuration information when the compatibility information indicates that the first configuration identifier set is not compatible with the second configuration identifier set; and determine the first configuration information as the target configuration information when the compatibility information indicates that the first configuration identifier set is compatible with the second configuration identifier set.

[0123] The configuration information determination device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0124] In one embodiment, the above first determination unit 121 is configured to determine that the compatibility information is that the first configuration identifier set is compatible with the second configuration identifier set when each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set; and determine that the compatibility information is that the first configuration identifier set is not compatible with the second configuration identifier set when there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set.

[0125] The configuration information determination device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0126] In one embodiment, the above first determination unit 121 is further configured to determine that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set when there is a newly added second configuration identifier in the second configuration identifier set, or when the second configuration identifier set lacks a first configuration identifier in the first configuration identifier set.

[0127] The configuration information determination device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0128] In one embodiment, as Figure 9 shown, the above determination module 12 further includes: a display unit 123, a receiving unit 124, and an update unit 125, where:

[0129] The display unit 123 is configured to display the compatibility information through a user interaction interface.

[0130] A receiving unit 124, configured to receive an operation instruction triggered by a user based on compatibility information.

[0131] An updating unit 125, configured to update the BMC to be updated by using a BMC update file when the operation instruction indicates updating the BMC to be updated.

[0132] The configuration information determination device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0133] Each module in the above configuration information determination device may be implemented in whole or in part by software, hardware, and their combination. The above modules may be embedded in the processor in the computer device in the form of hardware or independent of the processor, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0134] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:

[0135] Obtain a first configuration identifier set of first configuration information of a baseboard management controller (BMC) to be updated;

[0136] When receiving an update file of the BMC to be updated, obtain a second configuration identifier set of second configuration information of the BMC to be updated from the update file;

[0137] Determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set.

[0138] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0139] Determine compatibility information between the first configuration identifier set and the second configuration identifier set;

[0140] Determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information.

[0141] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0142] If the compatibility information indicates that the first configuration identifier set is not compatible with the second configuration identifier set, determine the second configuration information as the target configuration information;

[0143] If the compatibility information indicates that the first configuration identifier set is compatible with the second configuration identifier set, determine the first configuration information as the target configuration information.

[0144] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0145] If each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set, determine that the compatibility information is that the first configuration identifier set is compatible with the second configuration identifier set;

[0146] If there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set, determine that the compatibility information is that the first configuration identifier set is not compatible with the second configuration identifier set.

[0147] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0148] If there is a newly added second configuration identifier in the second configuration identifier set, or if the second configuration identifier set lacks a first configuration identifier in the first configuration identifier set, determine that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set.

[0149] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0150] Display the compatibility information through the user interaction interface;

[0151] Receive an operation instruction triggered by the user based on the compatibility information;

[0152] When the operation instruction represents an update to the BMC to be updated, update the BMC to be updated using the BMC update file.

[0153] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0154] Obtain a first configuration identifier set of first configuration information of the baseboard management controller (BMC) to be updated;

[0155] When an update file of the BMC to be updated is received, obtain a second configuration identifier set of second configuration information of the BMC to be updated from the update file;

[0156] According to the first configuration identifier set and the second configuration identifier set, determine the target configuration information of the updated BMC from the first configuration information and the second configuration information.

[0157] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0158] Determine the compatibility information between the first configuration identifier set and the second configuration identifier set;

[0159] Determine the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information.

[0160] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0161] If the compatibility information indicates that the first configuration identifier set and the second configuration identifier set are incompatible, determine the second configuration information as the target configuration information;

[0162] If the compatibility information indicates that the first configuration identifier set and the second configuration identifier set are compatible, determine the first configuration information as the target configuration information.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0164] If each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set, determine that the compatibility information is that the first configuration identifier set and the second configuration identifier set are compatible;

[0165] If there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set, determine that the compatibility information is that the first configuration identifier set and the second configuration identifier set are incompatible.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0167] If there is a newly added second configuration identifier in the second configuration identifier set, or the second configuration identifier set lacks a first configuration identifier in the first configuration identifier set, determine that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set.

[0168] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0169] Display the compatibility information through a user interface;

[0170] Receive an operation instruction triggered by the user based on the compatibility information;

[0171] In the case where the operation instruction indicates to update the BMC to be updated, update the BMC to be updated using the BMC update file.

[0172] In one embodiment, a computer program product is provided, including a computer program, which when executed by a processor, implements the following steps:

[0173] Obtain the first configuration identifier set of the first configuration information of the baseboard management controller BMC to be updated;

[0174] When receiving an update file for the BMC to be updated, obtain a second set of configuration identifiers of the second configuration information of the BMC to be updated from the update file;

[0175] Determine the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first set of configuration identifiers and the second set of configuration identifiers.

[0176] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0177] Determine the compatibility information between the first set of configuration identifiers and the second set of configuration identifiers;

[0178] Determine the target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information.

[0179] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0180] If the compatibility information indicates that the first set of configuration identifiers and the second set of configuration identifiers are incompatible, determine the second configuration information as the target configuration information;

[0181] If the compatibility information indicates that the first set of configuration identifiers and the second set of configuration identifiers are compatible, determine the first configuration information as the target configuration information.

[0182] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0183] If each first configuration identifier in the first set of configuration identifiers is the same as each second configuration identifier in the second set of configuration identifiers, determine that the compatibility information is that the first set of configuration identifiers and the second set of configuration identifiers are compatible;

[0184] If there is a second configuration identifier in the second set of configuration identifiers that is different from each first configuration identifier in the first set of configuration identifiers, determine that the compatibility information is that the first set of configuration identifiers and the second set of configuration identifiers are incompatible.

[0185] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0186] If there is a newly added second configuration identifier in the second set of configuration identifiers, or if the second set of configuration identifiers lacks a first configuration identifier in the first set of configuration identifiers, determine that there is a second configuration identifier in the second set of configuration identifiers that is different from each first configuration identifier in the first set of configuration identifiers.

[0187] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0188] Display the compatibility information through a user interface;

[0189] Receive an operation instruction triggered by a user based on compatibility information;

[0190] When the operation instruction indicates to update the BMC to be updated, use the BMC update file to update the BMC to be updated.

[0191] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., and are not limited thereto. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., and are not limited thereto.

[0192] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.

[0193] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A method for determining configuration information, characterized in that, the method includes: Obtaining a first configuration identifier set of first configuration information of a Baseboard Management Controller (BMC) to be updated; When receiving an update file of the BMC to be updated, obtaining a second configuration identifier set of second configuration information of the BMC to be updated from the update file; Determining target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set.

2. The method according to claim 1, characterized in that, the determining target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set includes: Determining compatibility information between the first configuration identifier set and the second configuration identifier set; Determining target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information.

3. The method according to claim 2, characterized in that, the determining target configuration information of the updated BMC from the first configuration information and the second configuration information according to the compatibility information includes: If the compatibility information indicates that the first configuration identifier set and the second configuration identifier set are incompatible, determining the second configuration information as the target configuration information; If the compatibility information indicates that the first configuration identifier set and the second configuration identifier set are compatible, determining the first configuration information as the target configuration information.

4. The method according to claim 2 or 3, characterized in that, the determining compatibility information between the first configuration identifier set and the second configuration identifier set includes: If each first configuration identifier in the first configuration identifier set is the same as each second configuration identifier in the second configuration identifier set, determining the compatibility information as the first configuration identifier set and the second configuration identifier set being compatible; If there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set, determining the compatibility information as the first configuration identifier set and the second configuration identifier set being incompatible.

5. The method according to claim 4, characterized in that, the method further includes: If there is a newly added second configuration identifier in the second configuration identifier set, or if the second configuration identifier set lacks a first configuration identifier in the first configuration identifier set, determining that there is a second configuration identifier in the second configuration identifier set that is different from each first configuration identifier in the first configuration identifier set.

6. The method according to claim 2 or 3, characterized in that, the method further includes: Displaying the compatibility information through a user interface; Receiving an operation instruction triggered by the user based on the compatibility information; When the operation instruction indicates updating the BMC to be updated, updating the BMC to be updated using the BMC update file.

7. A device for determining configuration information, characterized in that, the device includes: A first acquisition module, configured to acquire a first configuration identifier set of first configuration information of a baseboard management controller (BMC) to be updated; A second acquisition module, configured to, when receiving an update file of the BMC to be updated, acquire a second configuration identifier set of second configuration information of the BMC to be updated from the update file; A determination module, configured to determine target configuration information of the updated BMC from the first configuration information and the second configuration information according to the first configuration identifier set and the second configuration identifier set.

8. A computer device, comprising a memory and a processor, where the memory stores a computer program, characterized in that when the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.