Firmware updating method, system and equipment of baseboard management controller and storage medium

Through a proxy server based on the MQTT protocol, the publish/subscribe mode is used to implement batch firmware updates of BMC, which solves the problems of low BMC firmware update efficiency and inability to update in batches in the existing technology, and realizes an efficient and automated firmware update process.

CN118733087APending Publication Date: 2024-10-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410865835.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology is inefficient when updating Baseboard Management Controller (BMC) firmware, requires a lot of manpower and time, and cannot implement batch updates. It is easy for other BMCs to be unable to be upgraded due to a single BMC update failure.

Method used

Using a proxy server based on the Message Queuing Telemetry Transport Protocol (MQTT), through the publish/subscribe mode, batch BMC firmware updates are implemented. Each BMC subscribes to topic messages to download and update the firmware. The update results and progress are fed back in real time, and BMCs that fail to update are automatically processed. .

Benefits of technology

It achieves efficient batch BMC firmware updates, reduces labor and time costs, avoids upgrade problems affecting other BMCs due to a single BMC update failure, and improves update efficiency and automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733087A_ABST
    Figure CN118733087A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware updating method, system and device of a baseboard management controller and a storage medium, and is applied to the technical field of servers, and the method comprises the steps that a proxy server receives a first theme message published by a target publisher client based on a message queue telemetry transmission protocol, and the theme of the first theme message is updated in batches; sending the first theme message to a subscriber client of each baseboard management controller subscribing the first theme message, so that each baseboard management controller downloads firmware based on the subscribed first theme message, and performs own firmware updating by using the downloaded firmware; wherein each baseboard management controller is in communication connection with the proxy server based on a message queue telemetry transmission protocol, and a subscriber client is arranged in each baseboard management controller. By applying the scheme provided by the invention, the firmware updating of a large number of BMCs can be efficiently realized, and the required manpower and time cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a firmware updating method, system, device and storage medium of a baseboard management controller. Background Art

[0002] Currently, when updating the firmware of a BMC (Board Management Controller), it can be updated manually through a web or by running a script, which are both commonly used solutions.

[0003] However, when there are a large number of BMCs that need to be updated with firmware, if the BMC firmware is updated manually through the web, it is necessary to upload the BMC firmware in the web management interface of each BMC and click to start the refresh to complete the refresh and upgrade of the BMC, which requires a lot of manpower and time costs and is inefficient. If the BMC firmware is updated by running a script, it is necessary to run the specified BMC upgrade script, configure the script data, and when running the script, each BMC can only be processed in turn, and it is impossible to achieve firmware updates for all BMCs at the same time, and the efficiency cannot be guaranteed. In addition, during this process, if there is a failure in the BMC firmware update, it may also cause the BMC upgrade script to interrupt operation, making it impossible for other BMCs to perform firmware upgrades. It can be seen that the current common methods take a lot of time and are inefficient when updating the BMC firmware.

[0004] In summary, how to efficiently implement firmware updates for batch BMCs is a technical problem that those skilled in the art need to solve urgently. Summary of the invention

[0005] The object of the present invention is to provide a baseboard management controller firmware update method, system, device and storage medium, so as to efficiently implement batch BMC firmware update.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a firmware update method for a baseboard management controller, which is applied to a proxy server based on a message queue telemetry transmission protocol, comprising:

[0008] Based on the message queue telemetry transmission protocol, receiving a first topic message with a batch update topic published by a target publisher client;

[0009] Sending the first topic message to a subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update;

[0010] Each of the baseboard management controllers is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and each of the baseboard management controllers is provided with the subscriber client.

[0011] On the other hand, it also includes:

[0012] Receive a second topic message with the topic of update result published by each publisher client of the baseboard management controller;

[0013] Sending each received second topic message to a target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller;

[0014] The target publisher client and the target subscriber client are provided in the firmware update control device, and the firmware update control device is connected to the proxy server in communication based on the message queue telemetry transmission protocol.

[0015] On the other hand, it also includes:

[0016] After the firmware update control device determines the firmware update result of each baseboard management controller, when there is at least one baseboard management controller whose firmware update result is firmware update failure, receiving one or more third topic messages with the topic of separate update published by the target publisher client;

[0017] The subject of each of the third subject messages also carries the serial number information of a baseboard management controller, to indicate that the firmware update result of the baseboard management controller is a firmware update failure;

[0018] For different third topic messages, the baseboard management controller number information in the topic is different from each other;

[0019] Sending each of the third topic messages to the subscriber client of the corresponding baseboard management controller that has subscribed to the third topic message, so that each of the baseboard management controllers that has subscribed to the third topic message downloads firmware based on the subscribed third topic message, and uses the downloaded firmware to perform its own firmware update;

[0020] Receive a second topic message with the topic of update result published by each publisher client of the baseboard management controller that subscribes to the third topic message;

[0021] Each received second topic message is sent to the target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller subscribed to the third topic message.

[0022] On the other hand, sending the first topic message to a subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update, including:

[0023] The first topic message is sent to the subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller determines the firmware name based on the load in the subscribed first topic message, and downloads the firmware from the designated file server according to the firmware name, and uses the downloaded firmware to update its own firmware.

[0024] On the other hand, it also includes:

[0025] When receiving a fourth topic message with the topic of update progress published by any publisher client of the baseboard management controller, sending the received fourth topic message to the target subscriber client, so that the firmware update control device determines the firmware update progress of the baseboard management controller that publishes the fourth topic message;

[0026] The target publisher client and the target subscriber client are provided in the firmware update control device, and the firmware update control device is connected to the proxy server in communication based on the message queue telemetry transmission protocol.

[0027] On the other hand, it also includes:

[0028] Receive N fifth topic messages published by the target publisher client, the topics of which are different version updates;

[0029] The subject of each of the fifth subject messages also carries the serial number information of a baseboard management controller, and for different fifth subject messages, the serial number information of the baseboard management controller in the subject is different; N is a positive integer not less than 2;

[0030] Each of the fifth topic messages is sent to the subscriber client of the corresponding baseboard management controller that has subscribed to the fifth topic message, so that the N baseboard management controllers each download a different version of firmware based on the subscribed fifth topic message and use the downloaded firmware to update their own firmware.

[0031] In a second aspect, the present invention provides a method for updating firmware of a baseboard management controller, which is applied to each baseboard management controller, and comprises:

[0032] After the proxy server receives a first topic message with a topic of batch update published by a target publisher client based on a message queue telemetry transmission protocol, the proxy server receives the first topic message through its own subscriber client;

[0033] Downloading firmware based on the subscribed first topic message, and using the downloaded firmware to perform its own firmware update;

[0034] Wherein, the baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and the subscriber client is arranged in the baseboard management controller.

[0035] In a third aspect, the present invention provides a firmware update system for a baseboard management controller, which is applied to a proxy server based on a message queue telemetry transmission protocol, comprising:

[0036] A first topic message receiving module, configured to receive a first topic message with a topic of batch update published by a target publisher client based on the message queue telemetry transmission protocol;

[0037] A first topic message publishing module, used for sending the first topic message to a subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update;

[0038] Among them, each of the baseboard management controllers is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and each of the baseboard management controllers is provided with the subscriber client, and the target publisher client is a target publisher client based on the message queue telemetry transmission protocol.

[0039] In a fourth aspect, the present invention provides a firmware update system for a baseboard management controller, which is applied to each baseboard management controller, and includes:

[0040] A first topic message subscription module is used to receive the first topic message with the topic of batch update published by the target publisher client through its own subscriber client after the proxy server receives the first topic message based on the message queue telemetry transmission protocol;

[0041] A firmware update execution module, used to download firmware based on the subscribed first topic message, and use the downloaded firmware to perform its own firmware update;

[0042] Wherein, the baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and the subscriber client is arranged in the baseboard management controller.

[0043] In a fifth aspect, the present invention provides a firmware update device for a baseboard management controller, comprising:

[0044] Memory for storing computer programs;

[0045] The processor is used to execute the computer program to implement the steps of the firmware update method of the baseboard management controller as described above.

[0046] In a sixth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the firmware update method of the baseboard management controller as described above are implemented.

[0047] By applying the technical solution provided by the embodiment of the present invention, the firmware update of batch BMC is realized based on the message queue telemetry transmission protocol, and the execution efficiency is guaranteed. Specifically, the target publisher client can publish the first topic message with the theme of batch update to the proxy server based on the message queue telemetry transmission protocol, and each BMC can subscribe to this topic, so that the proxy server can send the first topic message to the subscriber client of each baseboard management controller that subscribes to the first topic message, and it can be understood that each baseboard management controller is connected to the proxy server based on the message queue telemetry transmission protocol, and each baseboard management controller is provided with a subscriber client. For any one BMC, the BMC can download the firmware based on the subscribed first topic message, and use the downloaded firmware to update its own firmware, and because the subscriber clients of each BMC subscribe to the first topic message respectively, and then realize their own firmware update accordingly, the present application solution can conveniently realize the automatic firmware update of a large number of BMCs, and reduce the manpower and time cost required for BMC firmware update.

[0048] In summary, the present application solution can efficiently implement firmware updates for a large number of BMCs, reducing the required manpower and time costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A flowchart of a firmware update method for a baseboard management controller provided in a specific embodiment of the present invention;

[0051] Figure 2 It is a schematic diagram of the principle of the firmware update method of the baseboard management controller of the present invention;

[0052] Figure 3 A flowchart of a firmware update method for a baseboard management controller provided in a specific embodiment of the present invention;

[0053] Figure 4 A schematic diagram of the structure of a firmware update system for a baseboard management controller provided by a specific embodiment of the present invention;

[0054] Figure 5 A schematic diagram of the structure of a firmware update system for a baseboard management controller provided by a specific embodiment of the present invention;

[0055] Figure 6 A schematic diagram of the structure of a firmware update device for a baseboard management controller provided in a specific embodiment of the present invention;

[0056] Figure 7 The present invention is a schematic diagram of the structure of a computer-readable storage medium. DETAILED DESCRIPTION

[0057] The core of the present invention is to provide a baseboard management controller firmware update method, system, device and storage medium, which can efficiently realize the firmware update of a large number of BMCs and reduce the required manpower and time costs.

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] Please refer to Figure 1 , Figure 1The present invention is a flowchart of a firmware update method for a baseboard management controller. The firmware update method for the baseboard management controller may include the following steps:

[0060] Step S101: Based on the message queue telemetry transmission protocol, a first topic message with the topic of batch update published by a target publisher client is received.

[0061] Specifically, Figure 1 The firmware update method of the baseboard management controller shown can be applied to a proxy server based on a message queue telemetry transmission protocol.

[0062] Message Queuing Telemetry Transport (MQTT) is a lightweight communication protocol based on the publish / subscribe model. It is built on the TCP (Transmission Control Protocol) / IP (Internet Protocol) protocol and has the characteristics of high reliability and low overhead.

[0063] There are three identities in the MQTT protocol: publisher, broker, and subscriber. The transmitted topic message is specifically divided into two parts: topic and payload. In this regard, in the solution of this application, it is necessary to build a MQTT-based proxy server as the message transmission hub between publishers and subscribers. For easier understanding, please refer to Figure 2 , is a schematic diagram of the principle of the firmware update method of the baseboard management controller of the present application, Figure 2 The implementation scheme of FIG. 1 shows a proxy server that serves as a messaging hub.

[0064] For the sake of distinction, the publisher that publishes the first topic message is called the target publisher client, such as Figure 2 As shown, the target publisher client can be arranged in a preset firmware update control device, which can be a preset server, for example. The user can send an instruction to the target publisher client, so that the target publisher client publishes a first topic message with a subject of batch update, and the proxy server can receive the first topic message with a subject of batch update published by the target publisher client.

[0065] Step S102: sending the first topic message to each baseboard management controller subscriber client that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update.

[0066] Each baseboard management controller is connected to the proxy server in communication based on a message queue telemetry transmission protocol, and a subscriber client is provided in each baseboard management controller.

[0067] Specifically, after receiving the first topic message with the topic of batch update published by the target publisher client, the proxy server will send the first topic message to each subscriber client of the baseboard management controller that has subscribed to the first topic message. And it can be understood that in actual applications, each subscriber client of the baseboard management controller will usually subscribe to the first topic message in advance, so that when necessary, the firmware of all baseboard management controllers can be updated.

[0068] Taking any baseboard management controller as an example, the subscriber client of the baseboard management controller will parse the subscribed first topic message, and then obtain the load in the first topic message. For example, if the load in the first topic message is specifically a firmware name, the baseboard management controller can download the firmware with the firmware name from the specified location, and then use the downloaded firmware to update its own firmware. It can be understood that for different baseboard management controllers, each will parse the subscribed first topic message, and then based on the load in the obtained first topic message, each will implement its own firmware update, and in this process, different baseboard management controllers do not affect each other.

[0069] In a specific implementation of the present invention, step S102 may specifically include:

[0070] The first topic message is sent to the subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller determines the firmware name based on the load in the subscribed first topic message, and downloads the firmware from the designated file server according to the firmware name, and uses the downloaded firmware to update its own firmware.

[0071] In this implementation, a file server for storing firmware is specially set up to facilitate the management of firmware. Specifically, after the proxy server sends the first topic message to the subscriber client of each baseboard management controller that has subscribed to the first topic message, for any baseboard management controller, the baseboard management controller can parse the subscribed first topic message to obtain the load in the first topic message, and in this implementation, the load in the first topic message is specifically the firmware name. In addition, it can be understood that since the firmware update of batch baseboard management controllers is carried out, the firmware name obtained after parsing the first topic message is the same for different baseboard management controllers.

[0072] For any baseboard management controller, after obtaining the payload in the first topic message, the baseboard management controller obtains the firmware name, and then can download the firmware from the designated file server according to the firmware name, thereby using the downloaded firmware to update its own firmware.

[0073] In a specific embodiment of the present invention, it may also include:

[0074] Receive a second topic message with the topic of update result published by each publisher client of each baseboard management controller;

[0075] Sending each received second topic message to a target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller;

[0076] The firmware update control device is provided with a target publisher client and a target subscriber client, and the firmware update control device is connected to the proxy server in communication based on a message queue telemetry transmission protocol.

[0077] This implementation further takes into account that, based on the solution of the present application, batch firmware updates of baseboard management controllers can be implemented, and different baseboard management controllers each perform their own firmware updates without affecting each other, and in actual applications, the firmware update of one or more baseboard management controllers may fail.

[0078] For such a situation, one approach is to manually check whether the firmware update of each BMC is successful, and then update the BMCs that failed to be updated separately. However, in situations where there are a large number of BMCs, this approach still requires a lot of labor costs.

[0079] In this regard, in this implementation, the firmware update result of each baseboard management controller can be automatically fed back, so that the staff can easily determine whether the firmware update of each baseboard management controller is successful without having to manually check each baseboard management controller one by one.

[0080] Specifically, in this implementation, each baseboard management controller is required to have a publisher client. For any baseboard management controller, the baseboard management controller will detect whether the firmware update is successful, and then publish a second topic message with the topic of the update result to the proxy server. The proxy server will send the second topic message to the target subscriber client. The target subscriber client can obtain the firmware update result of the baseboard management controller by parsing the second topic message. Figure 2 In the example of FIG. 1 , a publisher client is provided in each baseboard management controller.

[0081] For example, after the target subscriber client receives a second topic message, the specific content of the payload obtained is "Baseboard management controller 1 firmware update successful", which means that baseboard management controller 1 has successfully completed the firmware update. After parsing another second topic message, the specific content of the payload obtained is "Baseboard management controller 3 firmware update failed", which means that baseboard management controller 3 has not successfully completed the firmware update.

[0082] In this implementation, a target publisher client and a target subscriber client are provided in the firmware update control device. As described above, the firmware update control device can be, for example, a preset server. It should also be noted that, in some specific implementations, the firmware update control device and the proxy server of the present application can be implemented using the same server, that is, the same server can be used to perform the function of the firmware update control device of the present application and also to realize the communication connection with each BMC as the proxy server required by the present application.

[0083] In a specific embodiment of the present invention, it also includes:

[0084] After the firmware update control device determines the firmware update result of each baseboard management controller, when there is at least one baseboard management controller whose firmware update result is firmware update failure, receiving one or more third topic messages with the topic of separate update published by the target publisher client;

[0085] The subject of each third subject message also carries the serial number information of a baseboard management controller, to indicate that the firmware update result of the baseboard management controller is a firmware update failure;

[0086] For different third topic messages, the baseboard management controller number information in the topic is different from each other;

[0087] Send each third topic message to a subscriber client of a corresponding baseboard management controller that has subscribed to the third topic message, so that each baseboard management controller that has subscribed to the third topic message downloads firmware based on the subscribed third topic message and uses the downloaded firmware to perform its own firmware update;

[0088] Receive a second topic message with the topic of update result published by each publisher client of each baseboard management controller subscribed to the third topic message;

[0089] Each received second topic message is sent to a target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller that has subscribed to the third topic message.

[0090] In the above implementation, when performing batch firmware update of baseboard management controllers, the firmware update result of each baseboard management controller can be automatically fed back, so that the staff can easily determine whether the firmware update of each baseboard management controller is successful without having to manually check each baseboard management controller one by one.

[0091] This implementation further takes into account that if the firmware update of one or more baseboard management controllers fails, the firmware update can be re-performed for these baseboard management controllers whose firmware update failed, without the need for staff to manually check and individually update these baseboard management controllers whose batch update failed, which helps to further reduce the workload.

[0092] In addition, it can be understood that this implementation method performs firmware updates for baseboard management controllers that fail during batch updates. Therefore, only after the firmware update control device determines the firmware update results of each baseboard management controller, and there is at least one baseboard management controller whose firmware update result is a firmware update failure, will one or more third topic messages with the topic of separate update be published through the target publisher client.

[0093] For example, in a specific scenario, during batch update, only the firmware update of baseboard management controller 1 and baseboard management controller 2 fails, then the target publisher client will publish two third topic messages with the subject of separate updates, for example, the subject of one third topic message is specifically "Separate Update - ID1", and the subject of the other third topic message is specifically "Separate Update - ID2", where ID1 and ID2 respectively represent the numbering information of baseboard management controller 1 and the numbering information of baseboard management controller 2, to indicate that the firmware update results of the two baseboard management controllers are firmware update failures.

[0094] The proxy server will send each third topic message to the subscriber client of the corresponding baseboard management controller that has subscribed to the third topic message. For example, in the above example, for the third topic message with the specific subject "Separate Update—ID1", it is subscribed by baseboard management controller 1, and the proxy server will send the third topic message to baseboard management controller 1. Correspondingly, for the third topic message with the specific subject "Separate Update—ID2", it is subscribed by baseboard management controller 2, and the proxy server will send the third topic message to baseboard management controller 2.

[0095] After baseboard management controller 1 and baseboard management controller 2 each receive the corresponding third topic message, they can download the firmware based on the subscribed third topic message and use the downloaded firmware to update their own firmware. In addition, baseboard management controller 1 will publish the firmware update result of this time through its own publisher client, specifically publishing the second topic message with the theme of update result, and then send it to the target subscriber client through the proxy server, so that the target subscriber client can determine the firmware update result of baseboard management controller 1 based on the second topic message. Based on the same principle, the target subscriber client can determine the firmware update result of baseboard management controller 2 based on the second topic message published by baseboard management controller 2.

[0096] It can be seen that in this implementation, when performing a firmware update of batch baseboard management controllers, if the firmware update of one or more baseboard management controllers is unsuccessful, the second round of firmware update of these baseboard management controllers can be automatically performed and the firmware update results of these baseboard management controllers in the second round of firmware update can be fed back, and no staff operation is required throughout the process. Further, in one implementation, after the second round of firmware update, there may still be one or more baseboard management controllers whose firmware updates are still unsuccessful. In this case, according to the same principle, the third round of firmware update can be started and the firmware update results of the baseboard management controllers participating in the third round of firmware update can be fed back in the third round of firmware update. And in actual applications, a round threshold can be set. When the round of repeated updates reaches the set round threshold, the next round of firmware update can be stopped, and the staff can be adjusted to handle it.

[0097] In a specific embodiment of the present invention, it may also include:

[0098] When receiving a fourth topic message with the topic of update progress published by any baseboard management controller publisher client, sending the received fourth topic message to the target subscriber client, so that the firmware update control device determines the firmware update progress of the baseboard management controller that publishes the fourth topic message;

[0099] The firmware update control device is provided with a target publisher client and a target subscriber client, and the firmware update control device is connected to the proxy server in communication based on a message queue telemetry transmission protocol.

[0100] In the above implementation, when batch updating of baseboard management controller firmware is performed, the firmware update result of each baseboard management controller can be automatically fed back, so that the staff can conveniently determine whether the firmware update of each baseboard management controller is successful.

[0101] This implementation takes into account that during the batch update of the baseboard management controller firmware, each baseboard management controller can provide feedback on the update progress. Of course, the specific update progress that triggers the feedback can be set and adjusted as needed. For example, feedback can be provided every time the progress increases by 25%, or it can be set to provide feedback every x seconds during the update process.

[0102] When the proxy server receives the fourth topic message with the theme of update progress published by any publisher client of the baseboard management controller, it will send the fourth topic message to the target subscriber client. Of course, it is understandable that the target subscriber client needs to pre-subscribe to the fourth topic message with the theme of update progress. For example, after the target subscriber client parses a fourth topic message, the load obtained is specifically "75%-ID6", and the firmware update control device can determine that the baseboard management controller 6 has completed 75% of the update progress.

[0103] This implementation method provides feedback on the update progress, which is helpful in meeting the needs in some occasions. For example, based on the progress feedback, the staff can determine the baseboard management controllers where the update fails, most of which fail at a certain progress level, and thus analyze whether the firmware writing of the corresponding part needs to be improved to reduce the probability of firmware update failure.

[0104] In a specific embodiment of the present invention, it may also include:

[0105] Receive N fifth topic messages published by the target publisher client, the topics of which are different version updates;

[0106] The subject of each fifth subject message also carries the serial number information of a baseboard management controller, and for different fifth subject messages, the serial number information of the baseboard management controller in the subject is different; N is a positive integer not less than 2;

[0107] Each fifth topic message is sent to the subscriber client of the corresponding baseboard management controller that has subscribed to the fifth topic message, so that each of the N baseboard management controllers downloads a different version of firmware based on the subscribed fifth topic message and uses the downloaded firmware to update its own firmware.

[0108] In the above implementation, the firmware of some baseboard management controllers is updated to address the situation where the update fails during the batch update process. This implementation takes into account that the present application scheme can also support separate firmware updates for some of the N baseboard management controllers as needed, and supports updating different firmware versions for these N baseboard management controllers.

[0109] Specifically, in this implementation, the proxy server can receive N fifth topic messages with the subject of different version updates published by the target publisher client. For example, in one scenario, a total of 3 fifth topic messages are received, i.e., N=3. For example, the subject of one fifth topic message is specifically "Different version update—ID1", the subject of the second fifth topic message is specifically "Different version update—ID3", and the subject of the third fifth topic message is specifically "Different version update—ID4".

[0110] The proxy server will send the first fifth topic message in this example to the subscriber client of the baseboard management controller 1 that has subscribed to the fifth topic message. Correspondingly, the second fifth topic message in this example will be sent to the subscriber client of the baseboard management controller 3 that has subscribed to the fifth topic message, and the third fifth topic message in this example will be sent to the subscriber client of the baseboard management controller 4 that has subscribed to the fifth topic message.

[0111] And in this implementation, the loads of the N fifth topic messages are different, so that the N baseboard management controllers each download the firmware version required by the baseboard management controller based on the subscribed fifth topic message. It can be seen that this implementation supports firmware updates of different firmware versions for N baseboard management controllers.

[0112] By applying the technical solution provided by the embodiment of the present invention, the firmware update of batch BMC is realized based on the message queue telemetry transmission protocol, and the execution efficiency is guaranteed. Specifically, the target publisher client can publish the first topic message with the theme of batch update to the proxy server based on the message queue telemetry transmission protocol, and each BMC can subscribe to this topic, so that the proxy server can send the first topic message to the subscriber client of each baseboard management controller that subscribes to the first topic message, and it can be understood that each baseboard management controller is connected to the proxy server based on the message queue telemetry transmission protocol, and each baseboard management controller is provided with a subscriber client. For any one BMC, the BMC can download the firmware based on the subscribed first topic message, and use the downloaded firmware to update its own firmware, and because the subscriber clients of each BMC subscribe to the first topic message respectively, and then realize their own firmware update accordingly, the present application solution can conveniently realize the automatic firmware update of a large number of BMCs, and reduce the manpower and time cost required for BMC firmware update.

[0113] In summary, the present application solution can efficiently implement firmware updates for a large number of BMCs, reducing the required manpower and time costs.

[0114] Corresponding to the above embodiment, an embodiment of the present invention further provides a firmware update method for a baseboard management controller, which can be referred to in correspondence with the above.

[0115] The firmware update method of the baseboard management controller can be applied to various baseboard management controllers. Figure 3 , including the following steps:

[0116] Step S301: after the proxy server receives the first topic message of batch update published by the target publisher client based on the message queue telemetry transmission protocol, the proxy server receives the first topic message through its own subscriber client;

[0117] Step S302: Downloading firmware based on the subscribed first topic message, and using the downloaded firmware to perform its own firmware update;

[0118] The baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and a subscriber client is provided in the baseboard management controller.

[0119] In a specific embodiment of the present invention, it also includes:

[0120] Publishing a second topic message with the topic of update result to the proxy server through the publisher client, so that the proxy server sends each received second topic message to the target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller;

[0121] The firmware update control device is provided with a target publisher client and a target subscriber client, and the firmware update control device is connected to the proxy server in communication based on a message queue telemetry transmission protocol.

[0122] In a specific embodiment of the present invention, it also includes:

[0123] After the firmware update control device determines the firmware update result of each baseboard management controller, when there is at least one baseboard management controller whose firmware update result is firmware update failure, the proxy server receives one or more third topic messages with the topic of separate update published by the target publisher client;

[0124] The subject of each third subject message also carries a baseboard management controller number information to indicate that the firmware update result of the baseboard management controller is a firmware update failure; for different third subject messages, the baseboard management controller number information in the subject is different;

[0125] After receiving the subscribed third topic message through the subscriber client, the baseboard management controller downloads the firmware based on the subscribed third topic message, and uses the downloaded firmware to perform its own firmware update;

[0126] The publisher client of the baseboard management controller publishes a second topic message with the theme of update result, so that the proxy server sends each received second topic message to the target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller that has subscribed to the third topic message.

[0127] In a specific implementation of the present invention, downloading firmware based on the subscribed first topic message and using the downloaded firmware to perform firmware update on the device itself includes:

[0128] The firmware name is determined based on the payload in the subscribed first topic message, and the firmware is downloaded from the designated file server according to the firmware name, and the downloaded firmware is used to perform its own firmware update.

[0129] In a specific embodiment of the present invention, it also includes:

[0130] The publisher client of the baseboard management controller publishes a fourth topic message with the topic of update progress, so that the proxy server sends the received fourth topic message to the target subscriber client, so that the firmware update control device determines the firmware update progress of the baseboard management controller that publishes the fourth topic message;

[0131] The firmware update control device is provided with a target publisher client and a target subscriber client, and the firmware update control device is connected to the proxy server in communication based on a message queue telemetry transmission protocol.

[0132] In a specific embodiment of the present invention, it also includes:

[0133] After the proxy server receives N fifth topic messages with different version updates published by the target publisher client, the subscriber client of the corresponding baseboard management controller that has subscribed to the fifth topic messages subscribes to the corresponding fifth topic messages, and the N baseboard management controllers each download different versions of firmware based on the subscribed fifth topic messages, and use the downloaded firmware to update their own firmware.

[0134] The subject of each fifth subject message also carries the serial number information of a baseboard management controller, and for different fifth subject messages, the serial number information of the baseboard management controller in the subject is different; N is a positive integer not less than 2;

[0135] Corresponding to the above method embodiment, an embodiment of the present invention further provides a firmware update system for a baseboard management controller, which can be referred to in correspondence with the above.

[0136] The firmware update system of the baseboard management controller can be applied to a proxy server based on a message queue telemetry transmission protocol, which can be found in Figure 4 ,include:

[0137] The first topic message receiving module 401 is used to receive the first topic message with the topic of batch update published by the target publisher client based on the message queue telemetry transmission protocol;

[0138] The first topic message publishing module 402 is used to send the first topic message to the subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads the firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update;

[0139] Each baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and each baseboard management controller is provided with a subscriber client, and the target publisher client is a target publisher client based on the message queue telemetry transmission protocol.

[0140] Corresponding to the above method embodiment, an embodiment of the present invention further provides a firmware update system for a baseboard management controller, which can be referred to in correspondence with the above.

[0141] The firmware update system of the baseboard management controller can be applied to various baseboard management controllers. Figure 5 ,include:

[0142] The first topic message subscription module 501 is used for receiving the first topic message with the topic of batch update published by the target publisher client through its own subscriber client after the proxy server receives the first topic message with the topic of batch update published by the target publisher client based on the message queue telemetry transmission protocol;

[0143] The firmware update execution module 502 is used to download the firmware based on the subscribed first topic message, and use the downloaded firmware to perform its own firmware update;

[0144] The baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and a subscriber client is provided in the baseboard management controller.

[0145] Corresponding to the above method and system embodiments, embodiments of the present invention further provide a firmware update device for a baseboard management controller, a computer-readable storage medium, and a computer program product, which can be referred to in correspondence with the above.

[0146] See also Figure 6 As shown, the device may include:

[0147] Memory 601, used for storing computer programs;

[0148] The processor 602 is configured to execute a computer program to implement the steps of the baseboard management controller firmware update method in any of the above embodiments.

[0149] The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the firmware update method of the baseboard management controller in any of the above embodiments are implemented.

[0150] See also Figure 7 The computer readable storage medium 70 stores a computer program 71, and when the computer program 71 is executed by the processor, the steps of the firmware update method of the baseboard management controller in any of the above embodiments are implemented. The computer readable storage medium 70 mentioned here includes RAM (Random Access Memory), memory, ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), register, hard disk, removable disk, or any other form of storage medium known in the technical field.

[0151] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0152] Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present invention. It should be pointed out that for ordinary technicians in the technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for updating firmware of a baseboard management controller, characterized in that: Applicable to proxy servers based on message queue telemetry transport protocol, including: Based on the message queue telemetry transmission protocol, receiving a first topic message with a batch update topic published by a target publisher client; Sending the first topic message to a subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update; Each of the baseboard management controllers is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and each of the baseboard management controllers is provided with the subscriber client.

2. The firmware update method of the baseboard management controller according to claim 1, characterized in that: Also includes: Receive a second topic message with the topic of update result published by each publisher client of the baseboard management controller; Sending each received second topic message to a target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller; The target publisher client and the target subscriber client are provided in the firmware update control device, and the firmware update control device is connected to the proxy server in communication based on the message queue telemetry transmission protocol.

3. The method for updating the firmware of a baseboard management controller according to claim 2, characterized in that: Also includes: After the firmware update control device determines the firmware update result of each baseboard management controller, when there is at least one baseboard management controller whose firmware update result is firmware update failure, receiving one or more third topic messages with the topic of separate update published by the target publisher client; The subject of each of the third subject messages also carries the serial number information of a baseboard management controller, to indicate that the firmware update result of the baseboard management controller is a firmware update failure; For different third topic messages, the baseboard management controller number information in the topic is different from each other; Sending each of the third topic messages to the subscriber client of the corresponding baseboard management controller that has subscribed to the third topic message, so that each of the baseboard management controllers that has subscribed to the third topic message downloads firmware based on the subscribed third topic message, and uses the downloaded firmware to perform its own firmware update; Receive a second topic message with the topic of update result published by each publisher client of the baseboard management controller that subscribes to the third topic message; Each received second topic message is sent to the target subscriber client, so that the firmware update control device determines the firmware update result of each baseboard management controller subscribed to the third topic message.

4. The method for updating the firmware of a baseboard management controller according to claim 1, characterized in that: The first topic message is sent to a subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update, including: The first topic message is sent to the subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller determines the firmware name based on the load in the subscribed first topic message, and downloads the firmware from the designated file server according to the firmware name, and uses the downloaded firmware to update its own firmware.

5. The method for updating the firmware of a baseboard management controller according to claim 1, characterized in that: Also includes: When receiving a fourth topic message with the topic of update progress published by any publisher client of the baseboard management controller, sending the received fourth topic message to the target subscriber client, so that the firmware update control device determines the firmware update progress of the baseboard management controller that publishes the fourth topic message; The target publisher client and the target subscriber client are provided in the firmware update control device, and the firmware update control device is connected to the proxy server in communication based on the message queue telemetry transmission protocol.

6. The method for updating the firmware of a baseboard management controller according to any one of claims 1 to 5, characterized in that: Also includes: Receive N fifth topic messages published by the target publisher client, the topics of which are different version updates; The subject of each of the fifth subject messages also carries the serial number information of a baseboard management controller, and for different fifth subject messages, the serial number information of the baseboard management controller in the subject is different; N is a positive integer not less than 2; Each of the fifth topic messages is sent to the subscriber client of the corresponding baseboard management controller that has subscribed to the fifth topic message, so that the N baseboard management controllers each download a different version of firmware based on the subscribed fifth topic message and use the downloaded firmware to update their own firmware.

7. A method for updating firmware of a baseboard management controller, characterized in that: Applicable to various baseboard management controllers, including: After the proxy server receives a first topic message with a topic of batch update published by a target publisher client based on a message queue telemetry transmission protocol, the proxy server receives the first topic message through its own subscriber client; Downloading firmware based on the subscribed first topic message, and using the downloaded firmware to perform its own firmware update; Wherein, the baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and the subscriber client is arranged in the baseboard management controller.

8. A firmware update system for a baseboard management controller, characterized in that: Applicable to proxy servers based on message queue telemetry transport protocol, including: A first topic message receiving module, configured to receive a first topic message with a topic of batch update published by a target publisher client based on the message queue telemetry transmission protocol; A first topic message publishing module, used for sending the first topic message to a subscriber client of each baseboard management controller that has subscribed to the first topic message, so that each baseboard management controller downloads firmware based on the subscribed first topic message and uses the downloaded firmware to perform its own firmware update; Among them, each of the baseboard management controllers is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and each of the baseboard management controllers is provided with the subscriber client, and the target publisher client is a target publisher client based on the message queue telemetry transmission protocol.

9. A firmware update system for a baseboard management controller, characterized in that: Applicable to various baseboard management controllers, including: A first topic message subscription module is used to receive the first topic message with the topic of batch update published by the target publisher client through its own subscriber client after the proxy server receives the first topic message based on the message queue telemetry transmission protocol; A firmware update execution module, used to download firmware based on the subscribed first topic message, and use the downloaded firmware to perform its own firmware update; Wherein, the baseboard management controller is connected to the proxy server in communication based on the message queue telemetry transmission protocol, and the subscriber client is arranged in the baseboard management controller.

10. A firmware update device for a baseboard management controller, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the firmware update method of the baseboard management controller as described in any one of claims 1 to 6, or to implement the steps of the firmware update method of the baseboard management controller as described in claim 7.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the firmware update method of the baseboard management controller as described in any one of claims 1 to 6, or implements the steps of the firmware update method of the baseboard management controller as described in claim 7.