WO2021232651A1 - Method and apparatus for upgrading multi-level management system, and device and medium - Google Patents

Method and apparatus for upgrading multi-level management system, and device and medium Download PDF

Info

Publication number
WO2021232651A1
WO2021232651A1 PCT/CN2020/117569 CN2020117569W WO2021232651A1 WO 2021232651 A1 WO2021232651 A1 WO 2021232651A1 CN 2020117569 W CN2020117569 W CN 2020117569W WO 2021232651 A1 WO2021232651 A1 WO 2021232651A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgraded
target
image
bmc
management system
Prior art date
Application number
PCT/CN2020/117569
Other languages
French (fr)
Chinese (zh)
Inventor
王兴隆
宿燕鸣
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021232651A1 publication Critical patent/WO2021232651A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Definitions

  • the present invention relates to the technical field of servers, in particular to a method, device, equipment and medium for upgrading a multi-level management system.
  • multi-level management systems In some more complex computer networks, multi-level management systems often appear. For example, in multi-node blade servers, a BMC (Basedboard Management Controller) is usually set up on each server node, and , A CMC (Chassis Management Controller, Chassis Management Controller) will be configured outside the server node as a transit component for unified management of each BMC's communication.
  • BMC Basedboard Management Controller
  • CMC Chassis Management Controller, Chassis Management Controller
  • the purpose of the present invention is to provide a method, device, equipment and medium for upgrading a multi-level management system, so as to improve the user experience of the user when upgrading the multi-level management system.
  • the specific plan is as follows:
  • a method for upgrading a multi-level management system, applied to the CMC of a multi-level management system includes:
  • the target image to be upgraded is sent to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
  • the process of obtaining the images to be upgraded stored in all BMCs in the multi-level management system includes:
  • the upgrade process of the target BMC using the target image to be upgraded includes:
  • the target BMC When the target BMC receives the target image to be upgraded, it is judged whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running by the target BMC itself and the version to be upgraded stored by the target BMC itself Mirrored version;
  • the target BMC itself is upgraded by using the target to-be-upgraded image.
  • the image to be upgraded includes an initial image of the image to be upgraded and a mirror head capable of characterizing the attributes of the image to be upgraded.
  • the upgrade process of the target BMC using the target image to be upgraded includes:
  • the target BMC When the target BMC receives the target image to be upgraded, it searches for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and uses the target image to be upgraded to Upgrade equipment to upgrade.
  • the process of searching for the device to be upgraded in the target BMC according to the mirror header in the target image to be upgraded includes:
  • the method further includes:
  • the target BMC When the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
  • the process of storing the image to be upgraded sent by the target user in the preset image storage area of the target BMC includes:
  • the image to be upgraded sent by the target user is stored in the memory of the target BMC.
  • the present invention also discloses a method for upgrading the multi-level management system, which is applied to the CMC of the multi-level management system, including:
  • the image comparison module is used to obtain the images to be upgraded stored by all the BMCs in the multi-level management system, and compare the images to be upgraded of the same type among all the images to be upgraded stored in the BMC to determine the one with the highest version information in the same type The target image to be upgraded;
  • the image upgrade module is configured to send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
  • the present invention also discloses an upgrade device of a multi-level management system, including:
  • Memory used to store computer programs
  • the processor is used to implement the steps of the method for upgrading a multi-level management system disclosed above when executing the computer program.
  • the present invention also discloses a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, a multi-level management system as disclosed above is realized The steps of the upgrade method.
  • the CMC in the multi-level management system is used to obtain the images to be upgraded stored in all BMCs in the multi-level management system, and to compare the images to be upgraded of the same type among the images to be upgraded stored in all BMCs.
  • the target image to be upgraded is sent to all BMCs under the control of the CMC, so that the target BMC can use the target image to be upgraded to upgrade.
  • the upgrade method of the multi-level management system provided by the present invention is equivalent to using any BMC under the control of the CMC to trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system.
  • the BMC in the multi-level management system can be upgraded through the CMC, which can significantly improve the user experience of the user when upgrading the multi-level management system.
  • the upgrade device, equipment and medium of a multi-level management system provided by the present invention also have the above-mentioned beneficial effects.
  • FIG. 1 is a flowchart of a method for upgrading a multi-level management system provided by an embodiment of the present invention
  • Figure 2 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention
  • Fig. 3 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for upgrading a multi-level management system according to an embodiment of the present invention.
  • the method for upgrading the multi-level management system includes:
  • Step S11 Obtain the images to be upgraded stored in all BMCs in the multi-level management system, and compare the images to be upgraded of the same type among the images to be upgraded stored in all BMCs to determine the target image to be upgraded with the highest version information in the same type;
  • Step S12 Send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade;
  • the target BMC is any BMC in the multi-level management system.
  • a method for upgrading a multi-level management system is provided.
  • any BMC can trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system.
  • the CMC in the multi-level management system is used as the execution subject for description. Specifically, the CMC in the multi-level management system first obtains the images to be upgraded stored on all the BMCs in the multi-level management system. When the CMC obtains the images to be upgraded stored on all the BMCs in the multi-level management system, it then checks all the images to be upgraded. The images to be upgraded of the same type in the images to be upgraded stored in the BMC are compared to determine the target image to be upgraded with the highest version information among the images to be upgraded of the same type in the multi-level management system.
  • the CMC determines the version in the image to be upgraded
  • the CMC will send the target image to be upgraded to all BMCs under the control of the CMC for the target BMC that needs to be upgraded to be upgraded. That is, when the target BMC in the multi-level management system receives the target image to be upgraded sent by the CMC, the target BMC will use the target image to be upgraded to perform the upgrade.
  • the CMC controls 4 BMCs, that is, the CMC controls the BMCs on node A, node B, node C, and node D.
  • the CMC will first obtain the images to be upgraded stored in all BMCs in the multi-level management system, and add the images to be upgraded stored in node A, node B, node C, and node D.
  • the images to be upgraded of the same type are compared to determine the target image to be upgraded with the highest version information among the nodes A, B, C, and D of the same type.
  • CMC finds that the version information of the target image to be upgraded in node A is higher than the version information of the image to be upgraded in node B, node C, and node D, in this case, it means that the version information of the image to be upgraded in node B, node C, and node D Upgraded images need to be upgraded. At this time, CMC will send the target image to be upgraded in node A to node B, node C, and node D. It is conceivable that when node B, node C, and node D receive the target image to be upgraded in node A, node B, node C, and node D can use the target image to be upgraded for upgrade.
  • the first step is to use the CMC in the multi-level management system to obtain the images to be upgraded stored in all BMCs in the multi-level management system, and perform the same type of images to be upgraded in the images to be upgraded stored in all BMCs. Compare to determine the target image to be upgraded with the highest version information in the same type; then, send the target image to be upgraded to all BMCs under the control of the CMC, so that the target BMC can use the target image to be upgraded to upgrade.
  • the upgrade method of the multi-level management system provided in this embodiment is equivalent to using any BMC under the control of the CMC to trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system, thus avoiding the need to upgrade in the prior art.
  • the defect that the BMC in the multi-level management system can only be upgraded through the CMC can significantly improve the user experience of the user when upgrading the multi-level management system.
  • the process of obtaining all the images to be upgraded stored by the BMC in the multi-level management system includes:
  • CMC obtains the images to be upgraded stored in all BMCs in the multi-level management system by polling, because the polling operation is relatively simple and does not require designers to spend a lot of time writing Code, therefore, through this setting method, the control complexity of CMC can be relatively reduced.
  • all BMCs in the multi-level management system can also actively report their own operating information to the CMC, so that the CMC can be informed of the operating conditions of each BMC in time, so that the CMC can obtain multiple levels.
  • the upgrade process of the target BMC using the target image to be upgraded includes:
  • the target BMC When the target BMC receives the target image to be upgraded, it determines whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running on the target BMC itself and the version of the image to be upgraded stored in the target BMC itself;
  • the target BMC itself is upgraded by using the target image to be upgraded.
  • the first step is to determine whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running on the target BMC itself and the version of the image to be upgraded stored in the target BMC itself. If the version of the target image to be upgraded is higher than that of the target BMC itself The version of the image to be upgraded and the version of the image to be upgraded stored in itself indicate that the target BMC needs to be upgraded. At this time, the target BMC can use the target image to be upgraded for upgrade.
  • the image to be upgraded includes an initial image of the image to be upgraded and a mirror head capable of characterizing the attributes of the image to be upgraded.
  • the image to be upgraded in order to enable the target BMC to accurately know which device in the target BMC is to be upgraded, the image to be upgraded is set as the initial image of the image to be upgraded + the image header that can characterize the attributes of the image to be upgraded
  • the structure of the image to be upgraded includes the image type and version of the image to be upgraded.
  • the image type of the image to be upgraded is used to automatically identify the target device in the target BMC that needs to be upgraded when the image to be upgraded is upgraded, and the image version of the image to be upgraded is used to determine that the image to be upgraded needs to be upgraded during the upgrade. Whether the current running mirror version of the target device is consistent with the mirror version provided in the mirror to be upgraded.
  • the upgrade process of the target BMC using the target image to be upgraded includes:
  • the target BMC When the target BMC receives the target image to be upgraded, it searches for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and uses the target image to be upgraded to upgrade the device to be upgraded.
  • the target BMC is using
  • the first step is to find the device to be upgraded in the target BMC based on the image header in the target image to be upgraded. Because the image header of the target image to be upgraded contains the attributes of the image to be upgraded, so, When the target BMC receives the target image to be upgraded, it can find the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and use the target image to be upgraded to upgrade the device to be upgraded.
  • the search speed of the target BMC when searching for the device to be upgraded can be relatively improved.
  • the process of searching for the device to be upgraded in the target BMC according to the mirror header in the target image to be upgraded includes:
  • the device to be upgraded in the target BMC includes the BMC to be upgraded or the BIOS (Basic Input Output System) to be upgraded or the CPLD (Complex Programmable Logic Device to be upgraded) in the target BMC.
  • Programmable Logic Device or PSU (Power Supply Unit) to be upgraded.
  • BMC or BIOS or CPLD or PSU are relatively common devices in practical applications, the technical solution provided in this embodiment can be relatively Improve the universality in the process of upgrading the equipment to be upgraded in the target BMC.
  • this embodiment further explains and optimizes the technical solution.
  • the above-mentioned steps before the process of obtaining all the images to be upgraded stored in the BMC in the multi-level management system, it also includes:
  • the target BMC When the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
  • a preset image storage area is set in the target BMC in advance to store the image to be upgraded.
  • Mirroring that is, when the target BMC receives the image to be upgraded sent by the target user, the target BMC will store the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
  • the search time of the CMC when obtaining the image to be upgraded from the target BMC can be relatively shortened, thereby improving the CMC Obtain the speed and efficiency of the image to be upgraded from the multi-level management system.
  • the preset mirror storage area in the target BMC can be flexibly set according to the actual needs of the user, which is not specifically limited here.
  • the process of storing the image to be upgraded sent by the target user in the preset image storage area of the target BMC includes:
  • the image to be upgraded sent by the target user is stored in the memory of the target BMC.
  • the memory has the advantage of faster access speed. Therefore, when the target user sends
  • the image to be upgraded is stored in the memory of the target BMC, it can not only relatively increase the storage speed of the target BMC when storing the image to be upgraded, but also improve the reading of the CMC when reading the image to be upgraded from the target BMC. speed.
  • FIG. 2 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention, and the upgrade device includes:
  • the image comparison module 21 is used to obtain the images to be upgraded stored in all BMCs in the multi-level management system, and to compare the images to be upgraded of the same type among all the images to be upgraded stored in the BMC to determine the target with the highest version information in the same type The image to be upgraded;
  • the image upgrade module 22 is used to send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
  • the mirror comparison module 21 includes:
  • the image obtaining unit is used to obtain all the images to be upgraded stored in the BMC in the multi-level management system by means of polling.
  • the image upgrade module 22 includes:
  • the image comparison unit is used for determining whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running by the target BMC itself and the version of the image to be upgraded stored in the target BMC itself when the target BMC receives the target image to be upgraded;
  • the image upgrade unit is used to upgrade the target BMC itself by using the target image to be upgraded when the judgment result of the image comparison unit is yes.
  • the image upgrade module 22 includes:
  • the device searching unit is configured to, when the target BMC receives the target image to be upgraded, search for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and use the target image to be upgraded to upgrade the device to be upgraded.
  • the device search unit includes:
  • the device search subunit is used to search for the BMC to be upgraded or the BIOS to be upgraded or the CPLD to be upgraded or the PSU to be upgraded in the target BMC according to the mirror head in the target image to be upgraded.
  • it also includes:
  • the image storage module is used to obtain the image to be upgraded stored in all BMCs in the multi-level management system.
  • the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in The preset mirror storage area of the target BMC.
  • the mirror storage module includes:
  • the image storage unit is used to store the image to be upgraded sent by the target user into the memory of the target BMC.
  • the upgrade device of the multi-level management system provided by the embodiment of the present invention has the beneficial effects of the above-disclosed upgrade method of the multi-level management system.
  • FIG. 3 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention.
  • the upgrade device includes:
  • the memory 31 is used to store computer programs
  • the processor 32 is configured to implement the steps of the method for upgrading a multi-level management system disclosed above when executing the computer program.
  • the upgrade device of the multi-level management system provided by the embodiment of the present invention has the beneficial effects of the above-disclosed upgrade method of the multi-level management system.
  • the embodiment of the present invention also discloses a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is executed by a processor, a multi-level The steps of the management system upgrade method.
  • a computer-readable storage medium provided by an embodiment of the present invention has the beneficial effects of the aforementioned method for upgrading a multi-level management system disclosed above.

Abstract

A method and apparatus for upgrading a multi-level management system, and a device and a medium. The method comprises: acquiring mirror images to be upgraded that are stored by all BMCs in a multi-level management system, and comparing mirror images to be upgraded of the same type in the mirror images to be upgraded that are stored by all the BMCs, so as to determine, from among the mirror images of the same type, target mirror images to be upgraded having the highest version information; and sending the target mirror images to be upgraded to all the BMCs, so that target BMCs perform upgrading by means of the target mirror images to be upgraded. Obviously, by means of the method, any BMC under CMC control can be used to trigger a BMC needing to be upgraded in a multi-level management system to perform upgraded, such that the user experience of a user when upgrading the multi-level management system can be significantly improved.

Description

一种多级管理系统的升级方法、装置、设备及介质Method, device, equipment and medium for upgrading multi-level management system
本申请要求于2020年05月22日提交中国专利局、申请号为202010445726.1、发明名称为“一种多级管理系统的升级方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on May 22, 2020, the application number is 202010445726.1, and the invention title is "a method, device, equipment and medium for upgrading a multi-level management system", all of which The content is incorporated in this application by reference.
技术领域Technical field
本发明涉及服务器技术领域,特别涉及一种多级管理系统的升级方法、装置、设备及介质。The present invention relates to the technical field of servers, in particular to a method, device, equipment and medium for upgrading a multi-level management system.
背景技术Background technique
在一些较为复杂的计算机网络中经常会出现多级管理系统,比如:在多节点的刀片类服务器中,通常会在每一个服务器节点上设置一个BMC(Basedboard Management Controller,基板管理控制器),并且,会在服务器节点之外配置一个CMC(Chassis Management Controller,机箱管理控制器)来作为统一管理各个BMC进行通信的中转部件。In some more complex computer networks, multi-level management systems often appear. For example, in multi-node blade servers, a BMC (Basedboard Management Controller) is usually set up on each server node, and , A CMC (Chassis Management Controller, Chassis Management Controller) will be configured outside the server node as a transit component for unified management of each BMC's communication.
目前,在对此种类型的多级管理系统进行升级时,只能是利用CMC来对多级管理系统进行升级,也即,首先是利用网络连接多级管理系统中的CMC,然后,将待升级的更新镜像上传到CMC,最后,再由CMC来对其管控的所有BMC进行升级。但是,此种升级方法,由于只能是通过CMC来对多级管理系统进行升级,这样就极大的降低了用户在对多级管理系统进行升级时的用户体验。目前,针对这一技术问题还没有较为有效的解决办法。At present, when upgrading this type of multi-level management system, you can only use CMC to upgrade the multi-level management system, that is, first use the network to connect the CMC in the multi-level management system, and then The updated update image is uploaded to the CMC, and finally, the CMC will upgrade all the BMCs it manages. However, this upgrade method can only upgrade the multi-level management system through the CMC, which greatly reduces the user experience when the user upgrades the multi-level management system. At present, there is no effective solution to this technical problem.
由此可见,如何进一步提高用户在对多级管理系统进行升级时的用户体验,是本领域技术人员亟待解决的技术问题。It can be seen that how to further improve the user experience of the user when upgrading the multi-level management system is a technical problem to be solved urgently by those skilled in the art.
发明内容Summary of the invention
有鉴于此,本发明的目的在于提供一种多级管理系统的升级方法、装置、设备及介质,以提高用户在对多级管理系统进行升级时的用户体验。其具体方案如下:In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for upgrading a multi-level management system, so as to improve the user experience of the user when upgrading the multi-level management system. The specific plan is as follows:
一种多级管理系统的升级方法,应用于多级管理系统的CMC,包括:A method for upgrading a multi-level management system, applied to the CMC of a multi-level management system, includes:
获取所述多级管理系统中所有BMC存储的待升级镜像,并对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;Obtain the images to be upgraded stored in all BMCs in the multi-level management system, and compare the images to be upgraded of the same type among the images to be upgraded stored in all BMCs to determine the target image to be upgraded with the highest version information in the same type;
将所述目标待升级镜像发送至所有BMC,以供目标BMC利用所述目标待升级镜像进行升级;其中,所述目标BMC为所述多级管理系统中任意一个BMC。The target image to be upgraded is sent to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
优选的,所述获取所述多级管理系统中所有BMC存储的待升级镜像的过程,包括:Preferably, the process of obtaining the images to be upgraded stored in all BMCs in the multi-level management system includes:
通过轮询的方式获取所述多级管理系统中所有BMC存储的待升级镜像。Obtain the to-be-upgraded images stored by all BMCs in the multi-level management system by means of polling.
优选的,所述目标BMC利用所述目标待升级镜像进行升级的过程,包括:Preferably, the upgrade process of the target BMC using the target image to be upgraded includes:
当所述目标BMC接收到所述目标待升级镜像时,则判断所述目标待升级镜像的版本是否高于所述目标BMC自身所运行待升级镜像的版本以及所述目标BMC自身所存储待升级镜像的版本;When the target BMC receives the target image to be upgraded, it is judged whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running by the target BMC itself and the version to be upgraded stored by the target BMC itself Mirrored version;
若是,则利用所述目标待升级镜像对所述目标BMC自身进行升级。If so, the target BMC itself is upgraded by using the target to-be-upgraded image.
优选的,所述待升级镜像包括所述待升级镜像的初始镜像以及能够表征所述待升级镜像属性特征的镜像头。Preferably, the image to be upgraded includes an initial image of the image to be upgraded and a mirror head capable of characterizing the attributes of the image to be upgraded.
优选的,所述目标BMC利用所述目标待升级镜像进行升级的过程,包括:Preferably, the upgrade process of the target BMC using the target image to be upgraded includes:
当所述目标BMC接收到所述目标待升级镜像时,则根据所述目标待升级镜像中的镜像头查找所述目标BMC中的待升级设备,并利用所述目标待升级镜像对所述待升级设备进行升级。When the target BMC receives the target image to be upgraded, it searches for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and uses the target image to be upgraded to Upgrade equipment to upgrade.
优选的,所述根据所述目标待升级镜像中的镜像头查找所述目标BMC中的待升级设备的过程,包括:Preferably, the process of searching for the device to be upgraded in the target BMC according to the mirror header in the target image to be upgraded includes:
根据所述目标待升级镜像中的镜像头查找所述目标BMC中的待升级BMC或待升级BIOS或待升级CPLD或待升级PSU。Search for the BMC to be upgraded or the BIOS to be upgraded or the CPLD to be upgraded or the PSU to be upgraded in the target BMC according to the mirror head in the target image to be upgraded.
优选的,所述获取所述多级管理系统中所有BMC存储的待升级镜像的过程之前,还包括:Preferably, before the process of obtaining the to-be-upgraded images stored by all BMCs in the multi-level management system, the method further includes:
当所述目标BMC接收到目标用户所发送的待升级镜像时,则将所述目标用户所发送的待升级镜像存储至所述目标BMC的预设镜像存储区。When the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
优选的,所述将所述目标用户所发送的待升级镜像存储至所述目标BMC的预设镜像存储区的过程,包括:Preferably, the process of storing the image to be upgraded sent by the target user in the preset image storage area of the target BMC includes:
将所述目标用户所发送的待升级镜像存储至所述目标BMC的内存。The image to be upgraded sent by the target user is stored in the memory of the target BMC.
相应的,本发明还公开了一种多级管理系统的升级方法,应用于多级管理系统的CMC,包括:Correspondingly, the present invention also discloses a method for upgrading the multi-level management system, which is applied to the CMC of the multi-level management system, including:
镜像比较模块,用于获取所述多级管理系统中所有BMC存储的待升级镜像,并对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;The image comparison module is used to obtain the images to be upgraded stored by all the BMCs in the multi-level management system, and compare the images to be upgraded of the same type among all the images to be upgraded stored in the BMC to determine the one with the highest version information in the same type The target image to be upgraded;
镜像升级模块,用于将所述目标待升级镜像发送至所有BMC,以供目标BMC利用所述目标待升级镜像进行升级;其中,所述目标BMC为所述多级管理系统中任意一个BMC。The image upgrade module is configured to send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
相应的,本发明还公开了一种多级管理系统的升级设备,包括:Correspondingly, the present invention also discloses an upgrade device of a multi-level management system, including:
存储器,用于存储计算机程序;Memory, used to store computer programs;
处理器,用于执行所述计算机程序时实现如前述所公开的一种多级管理系统的升级方法的步骤。The processor is used to implement the steps of the method for upgrading a multi-level management system disclosed above when executing the computer program.
相应的,本发明还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如前述所公开的一种多级管理系统的升级方法的步骤。Correspondingly, the present invention also discloses a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, a multi-level management system as disclosed above is realized The steps of the upgrade method.
可见,在本发明中,首先是利用多级管理系统中的CMC获取多级管理系统中所有BMC所存储的待升级镜像,并将所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;然后,再将目标待升级镜像发送至CMC所管控下的所有BMC,以供目标BMC利用目标待升级镜像进行升级。显然,通过本发明所提供的多级管理系统的升级方法,相当于是可以利用CMC管控下的任意一个BMC来触发多级管理系统中需要升级的BMC进行升级,这样就避免了现有技术 中只能是通过CMC才能对多级管理系统中的BMC进行升级的缺陷,由此就可以显著提高用户在对多级管理系统进行升级时的用户体验。相应的,本发明所提供的一种多级管理系统的升级装置、设备及介质,同样具有上述有益效果。It can be seen that in the present invention, firstly, the CMC in the multi-level management system is used to obtain the images to be upgraded stored in all BMCs in the multi-level management system, and to compare the images to be upgraded of the same type among the images to be upgraded stored in all BMCs. To determine the target image to be upgraded with the highest version information in the same type; then, the target image to be upgraded is sent to all BMCs under the control of the CMC, so that the target BMC can use the target image to be upgraded to upgrade. Obviously, the upgrade method of the multi-level management system provided by the present invention is equivalent to using any BMC under the control of the CMC to trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system. It can be the defect that the BMC in the multi-level management system can be upgraded through the CMC, which can significantly improve the user experience of the user when upgrading the multi-level management system. Correspondingly, the upgrade device, equipment and medium of a multi-level management system provided by the present invention also have the above-mentioned beneficial effects.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without creative work.
图1为本发明实施例所提供的一种多级管理系统的升级方法的流程图;FIG. 1 is a flowchart of a method for upgrading a multi-level management system provided by an embodiment of the present invention;
图2为本发明实施例所提供的一种多级管理系统的升级装置的结构图;Figure 2 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention;
图3为本发明实施例所提供的一种多级管理系统的升级设备的结构图。Fig. 3 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
请参见图1,图1为本发明实施例所提供的一种多级管理系统的升级方法的流程图,该多级管理系统的升级方法包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a method for upgrading a multi-level management system according to an embodiment of the present invention. The method for upgrading the multi-level management system includes:
步骤S11:获取多级管理系统中所有BMC存储的待升级镜像,并对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;Step S11: Obtain the images to be upgraded stored in all BMCs in the multi-level management system, and compare the images to be upgraded of the same type among the images to be upgraded stored in all BMCs to determine the target image to be upgraded with the highest version information in the same type;
步骤S12:将目标待升级镜像发送至所有BMC,以供目标BMC利用目标待升级镜像进行升级;Step S12: Send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade;
其中,目标BMC为多级管理系统中任意一个BMC。Among them, the target BMC is any BMC in the multi-level management system.
在本实施例中,是提供了一种多级管理系统的升级方法,利用该多级管理系统的升级方法可以实现由任意一个BMC来触发多级管理系统中需要升级的BMC进行升级。In this embodiment, a method for upgrading a multi-level management system is provided. By using the method for upgrading a multi-level management system, any BMC can trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system.
需要说明的是,在本实施例中,是以多级管理系统中的CMC为执行主体进行说明。具体的,多级管理系统中的CMC首先是获取多级管理系统中所有BMC所存储的待升级镜像,当CMC获取得到多级管理系统中所有BMC上所存储的待升级镜像时,再对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定出多级管理系统中相同类型待升级镜像中版本信息最高的目标待升级镜像,最后,当CMC确定出待升级镜像中版本信息最高的目标待升级镜像时,CMC会将目标待升级镜像发送至CMC所管控下的所有BMC中,以供需要升级的目标BMC进行升级。也即,当多级管理系统中的目标BMC接收到CMC所发送的目标待升级镜像时,目标BMC则会利用目标待升级镜像进行升级。It should be noted that, in this embodiment, the CMC in the multi-level management system is used as the execution subject for description. Specifically, the CMC in the multi-level management system first obtains the images to be upgraded stored on all the BMCs in the multi-level management system. When the CMC obtains the images to be upgraded stored on all the BMCs in the multi-level management system, it then checks all the images to be upgraded. The images to be upgraded of the same type in the images to be upgraded stored in the BMC are compared to determine the target image to be upgraded with the highest version information among the images to be upgraded of the same type in the multi-level management system. Finally, when the CMC determines the version in the image to be upgraded When the target image with the highest information is to be upgraded, the CMC will send the target image to be upgraded to all BMCs under the control of the CMC for the target BMC that needs to be upgraded to be upgraded. That is, when the target BMC in the multi-level management system receives the target image to be upgraded sent by the CMC, the target BMC will use the target image to be upgraded to perform the upgrade.
此处,通过一个具体例子进行说明,假设在一个多级管理系统当中,CMC管控着4个BMC,也即,CMC管控着节点A、节点B、节点C和节点D上的BMC。当多级管理系统需要进行升级时,CMC首先会获取多级管理系统中所有BMC中所存储的待升级镜像,并对节点A、节点B、节点C和节点D中所存储的待升级镜像中相同类型的待升级镜像进行比较,以确定出节点A、节点B、节点C和节点D里相同类型中版本信息最高的目标待升级镜像。如果CMC发现节点A中目标待升级镜像的版本信息均高于节点B、节点C和节点D中待升级镜像的版本信息,在此情况下,就说明节点B、节点C和节点D中的待升级镜像均需要升级,此时,CMC就会将节点A中的目标待升级镜像发送至节点B、节点C和节点D。能够想到的是,当节点B、节点C和节点D接收到节点A中的目标待升级镜像时,节点B、节点C和节点D就可以利用目标待升级镜像进行升级。Here, a specific example is used to illustrate. It is assumed that in a multi-level management system, the CMC controls 4 BMCs, that is, the CMC controls the BMCs on node A, node B, node C, and node D. When the multi-level management system needs to be upgraded, the CMC will first obtain the images to be upgraded stored in all BMCs in the multi-level management system, and add the images to be upgraded stored in node A, node B, node C, and node D. The images to be upgraded of the same type are compared to determine the target image to be upgraded with the highest version information among the nodes A, B, C, and D of the same type. If CMC finds that the version information of the target image to be upgraded in node A is higher than the version information of the image to be upgraded in node B, node C, and node D, in this case, it means that the version information of the image to be upgraded in node B, node C, and node D Upgraded images need to be upgraded. At this time, CMC will send the target image to be upgraded in node A to node B, node C, and node D. It is conceivable that when node B, node C, and node D receive the target image to be upgraded in node A, node B, node C, and node D can use the target image to be upgraded for upgrade.
显然,通过这样的设置方式,就相当于可以利用CMC管控下的任意一个BMC来触发多级管理系统中需要升级的BMC进行升级,这样就避免了现有技术当中只能是通过CMC才能对多级管理系统中的BMC进行升级 的缺陷,由此就可以显著提高用户在对多级管理系统进行升级时的用户体验。Obviously, through such a setting method, it is equivalent to using any BMC under the control of CMC to trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system, which avoids that the existing technology can only be upgraded through CMC. The defect of upgrading the BMC in the multi-level management system can significantly improve the user experience when upgrading the multi-level management system.
可见,在本实施例中,首先是利用多级管理系统中的CMC获取多级管理系统中所有BMC所存储的待升级镜像,并将所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,来确定相同类型中版本信息最高的目标待升级镜像;然后,再将目标待升级镜像发送至CMC所管控下的所有BMC,以供目标BMC利用目标待升级镜像进行升级。显然,通过本实施例所提供的多级管理系统的升级方法,相当于是可以利用CMC管控下的任意一个BMC来触发多级管理系统中需要升级的BMC进行升级,这样就避免了现有技术中只能是通过CMC才能对多级管理系统中的BMC进行升级的缺陷,由此就可以显著提高用户在对多级管理系统进行升级时的用户体验。It can be seen that in this embodiment, the first step is to use the CMC in the multi-level management system to obtain the images to be upgraded stored in all BMCs in the multi-level management system, and perform the same type of images to be upgraded in the images to be upgraded stored in all BMCs. Compare to determine the target image to be upgraded with the highest version information in the same type; then, send the target image to be upgraded to all BMCs under the control of the CMC, so that the target BMC can use the target image to be upgraded to upgrade. Obviously, the upgrade method of the multi-level management system provided in this embodiment is equivalent to using any BMC under the control of the CMC to trigger the upgrade of the BMC that needs to be upgraded in the multi-level management system, thus avoiding the need to upgrade in the prior art. The defect that the BMC in the multi-level management system can only be upgraded through the CMC can significantly improve the user experience of the user when upgrading the multi-level management system.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,上述步骤:获取多级管理系统中所有BMC存储的待升级镜像的过程,包括:Based on the above-mentioned embodiment, this embodiment further explains and optimizes the technical solution. As a preferred implementation, the above-mentioned steps: the process of obtaining all the images to be upgraded stored by the BMC in the multi-level management system includes:
通过轮询的方式获取多级管理系统中所有BMC存储的待升级镜像。Obtain all the images to be upgraded stored in the BMC in the multi-level management system by polling.
具体的,在本实施例中,CMC是通过轮询的方式来获取多级管理系统中所有BMC所存储的待升级镜像,因为轮询的操作方式比较简单,不需要设计人员耗费大量的时间编写代码,所以,通过这样的设置方式,就可以相对降低CMC的操控复杂度。Specifically, in this embodiment, CMC obtains the images to be upgraded stored in all BMCs in the multi-level management system by polling, because the polling operation is relatively simple and does not require designers to spend a lot of time writing Code, therefore, through this setting method, the control complexity of CMC can be relatively reduced.
另外,在实际应用中,多级管理系统中的所有BMC还可以通过主动上报自身运行信息至CMC的形式,来使得CMC及时知悉到各个BMC的运行情况,并以此达到CMC能够获取得到多级管理系统中所有BMC存储待升级镜像的目的。In addition, in practical applications, all BMCs in the multi-level management system can also actively report their own operating information to the CMC, so that the CMC can be informed of the operating conditions of each BMC in time, so that the CMC can obtain multiple levels. The purpose of storing images to be upgraded in all BMCs in the management system.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,上述步骤:目标BMC利用目标待升级镜像进行升级的过程,包括:Based on the above-mentioned embodiment, this embodiment further explains and optimizes the technical solution. As a preferred implementation manner, the above-mentioned steps: the upgrade process of the target BMC using the target image to be upgraded includes:
当目标BMC接收到目标待升级镜像时,则判断目标待升级镜像的版本是否高于目标BMC自身所运行待升级镜像的版本以及目标BMC自身所存储待升级镜像的版本;When the target BMC receives the target image to be upgraded, it determines whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running on the target BMC itself and the version of the image to be upgraded stored in the target BMC itself;
若是,则利用目标待升级镜像对目标BMC自身进行升级。If yes, the target BMC itself is upgraded by using the target image to be upgraded.
在实际操作过程中,可能会出现目标BMC中存储有待升级镜像,但是,目标BMC还未开始运行该待升级镜像的情况,所以,在本实施例中,当目标BMC接收到目标待升级镜像时,首先是会判断目标待升级镜像的版本是否高于目标BMC自身所运行待升级镜像的版本以及目标BMC自身所存储待升级镜像的版本,如果目标待升级镜像的版本高于目标BMC自身所运行待升级镜像的版本以及自身所存储待升级镜像的版本,则说明目标BMC需要进行升级,此时,目标BMC就可以利用目标待升级镜像进行升级。In actual operation, it may happen that the target BMC stores the image to be upgraded, but the target BMC has not yet started running the image to be upgraded. Therefore, in this embodiment, when the target BMC receives the target image to be upgraded , The first step is to determine whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running on the target BMC itself and the version of the image to be upgraded stored in the target BMC itself. If the version of the target image to be upgraded is higher than that of the target BMC itself The version of the image to be upgraded and the version of the image to be upgraded stored in itself indicate that the target BMC needs to be upgraded. At this time, the target BMC can use the target image to be upgraded for upgrade.
显然,通过本实施例所提供的技术方案,可以避免目标BMC所出现的误升级现象。Obviously, through the technical solution provided by this embodiment, the erroneous upgrade phenomenon of the target BMC can be avoided.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,待升级镜像包括待升级镜像的初始镜像以及能够表征待升级镜像属性特征的镜像头。Based on the foregoing embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation manner, the image to be upgraded includes an initial image of the image to be upgraded and a mirror head capable of characterizing the attributes of the image to be upgraded.
在本实施例中,为了使得目标BMC能够准确知悉到是对目标BMC中的哪一个设备进行升级,是将待升级镜像设置为待升级镜像的初始镜像+能够表征待升级镜像属性特征的镜像头的结构形式,其中,待升级镜像的属性特征包括待升级镜像的镜像类型以及镜像版本等等。显然,在实际操作过程中,待升级镜像的镜像类型用于待升级镜像进行升级时自动识别目标BMC中需要升级的目标设备,待升级镜像的镜像版本用于待升级镜像在升级时判断需要升级的目标设备的当前运行镜像版本是否与待升级镜像中所提供的镜像版本相一致。In this embodiment, in order to enable the target BMC to accurately know which device in the target BMC is to be upgraded, the image to be upgraded is set as the initial image of the image to be upgraded + the image header that can characterize the attributes of the image to be upgraded The structure of the image to be upgraded includes the image type and version of the image to be upgraded. Obviously, in the actual operation process, the image type of the image to be upgraded is used to automatically identify the target device in the target BMC that needs to be upgraded when the image to be upgraded is upgraded, and the image version of the image to be upgraded is used to determine that the image to be upgraded needs to be upgraded during the upgrade. Whether the current running mirror version of the target device is consistent with the mirror version provided in the mirror to be upgraded.
可见,通过本实施例所提供的技术方案,可以进一步保证待升级镜像在升级过程中的可靠性。It can be seen that the technical solution provided by this embodiment can further ensure the reliability of the image to be upgraded during the upgrade process.
作为一种优选的实施方式,上述步骤:目标BMC利用目标待升级镜像进行升级的过程,包括:As a preferred implementation manner, the above steps: the upgrade process of the target BMC using the target image to be upgraded includes:
当目标BMC接收到目标待升级镜像时,则根据目标待升级镜像中的镜像头查找目标BMC中的待升级设备,并利用目标待升级镜像对待升级设备进行升级。When the target BMC receives the target image to be upgraded, it searches for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and uses the target image to be upgraded to upgrade the device to be upgraded.
可以理解的是,如果目标BMC中需要升级的待升级设备位于不同的存储位置处,这样就可能会增加目标BMC在查找待升级设备时的时间,因此,在本实施例中,目标BMC在利用目标待升级镜像进行升级的过程中,首先是根据目标待升级镜像中的镜像头查找目标BMC中的待升级设备,因为目标待升级镜像的镜像头中蕴含着待升级镜像的属性特征,所以,当目标BMC接收到目标待升级镜像时,就可以根据目标待升级镜像中的镜像头查找得到目标BMC中的待升级设备,并利用目标待升级镜像对待升级设备进行升级。It is understandable that if the device to be upgraded in the target BMC is located in a different storage location, this may increase the time for the target BMC to find the device to be upgraded. Therefore, in this embodiment, the target BMC is using In the process of upgrading the target image to be upgraded, the first step is to find the device to be upgraded in the target BMC based on the image header in the target image to be upgraded. Because the image header of the target image to be upgraded contains the attributes of the image to be upgraded, so, When the target BMC receives the target image to be upgraded, it can find the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and use the target image to be upgraded to upgrade the device to be upgraded.
显然,通过本实施例所提供的技术方案,可以相对提高目标BMC在查找待升级设备时的查找速度。Obviously, through the technical solution provided in this embodiment, the search speed of the target BMC when searching for the device to be upgraded can be relatively improved.
作为一种优选的实施方式,上述步骤:根据目标待升级镜像中的镜像头查找目标BMC中的待升级设备的过程,包括:As a preferred implementation manner, the above steps: the process of searching for the device to be upgraded in the target BMC according to the mirror header in the target image to be upgraded includes:
根据目标待升级镜像中的镜像头查找目标BMC中的待升级BMC或待升级BIOS或待升级CPLD或待升级PSU。Find the BMC to be upgraded or the BIOS to be upgraded or the CPLD to be upgraded or the PSU to be upgraded in the target BMC according to the mirror head in the target image to be upgraded.
具体的,在本实施例中,目标BMC中的待升级设备包括目标BMC中的待升级BMC或待升级BIOS(Basic Input Output System,基本输入输出系统)或待升级CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)或待升级PSU(Power Supply Unit,电源),因为BMC或BIOS或CPLD或PSU均是实际应用中较为常见的设备,所以,通过本实施例所提供的技术方案,还可以相对提高在对目标BMC中待升级设备进行升级过程中的普适性。Specifically, in this embodiment, the device to be upgraded in the target BMC includes the BMC to be upgraded or the BIOS (Basic Input Output System) to be upgraded or the CPLD (Complex Programmable Logic Device to be upgraded) in the target BMC. Programmable Logic Device) or PSU (Power Supply Unit) to be upgraded. Because BMC or BIOS or CPLD or PSU are relatively common devices in practical applications, the technical solution provided in this embodiment can be relatively Improve the universality in the process of upgrading the equipment to be upgraded in the target BMC.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,上述步骤:获取多级管理系统中所有BMC存储的待升级镜像的过程之前,还包括:Based on the above-mentioned embodiment, this embodiment further explains and optimizes the technical solution. As a preferred implementation, the above-mentioned steps: before the process of obtaining all the images to be upgraded stored in the BMC in the multi-level management system, it also includes:
当目标BMC接收到目标用户所发送的待升级镜像时,则将目标用户所发送的待升级镜像存储至目标BMC的预设镜像存储区。When the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
具体的,在本实施例中,为了提高CMC在从多级管理系统中所有BMC上获取待升级镜像时的速度与效率,是预先在目标BMC中设置了一个预设镜像存储区来存储待升级镜像,也即,当目标BMC接收到目标用户所发送的待升级镜像时,目标BMC会将目标用户所发送的待升级镜像存储至目标BMC的预设镜像存储区。Specifically, in this embodiment, in order to improve the speed and efficiency of the CMC in obtaining the image to be upgraded from all BMCs in the multi-level management system, a preset image storage area is set in the target BMC in advance to store the image to be upgraded. Mirroring, that is, when the target BMC receives the image to be upgraded sent by the target user, the target BMC will store the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
能够想到的是,通过目标BMC中所设置的预设镜像存储区来存储待升级镜像时,就可以相对缩短CMC在从目标BMC中获取待升级镜像时的查找时间,由此就能够提高CMC在从多级管理系统中获取待升级镜像时的速度与效率。需要说明的是,在本实施例中,目标BMC中的预设镜像存储区可以根据用户的实际需求进行灵活设置,此处不作具体限定。It is conceivable that when the image to be upgraded is stored through the preset image storage area set in the target BMC, the search time of the CMC when obtaining the image to be upgraded from the target BMC can be relatively shortened, thereby improving the CMC Obtain the speed and efficiency of the image to be upgraded from the multi-level management system. It should be noted that, in this embodiment, the preset mirror storage area in the target BMC can be flexibly set according to the actual needs of the user, which is not specifically limited here.
作为一种优选的实施方式,将目标用户所发送的待升级镜像存储至目标BMC的预设镜像存储区的过程,包括:As a preferred implementation manner, the process of storing the image to be upgraded sent by the target user in the preset image storage area of the target BMC includes:
将目标用户所发送的待升级镜像存储至目标BMC的内存。Store the image to be upgraded sent by the target user in the memory of the target BMC.
在本实施例中,是将目标用户所发送的待升级镜像存储至目标BMC的内存,因为内存相比于其它存储介质而言,具有存取速度快的优点,所以,当将目标用户所发送的待升级镜像存储于目标BMC的内存当中时,不仅可以相对提高目标BMC在对待升级镜像进行存储时的存储速度,而且,也可以提高CMC在从目标BMC中读取待升级镜像时的读取速度。In this embodiment, the image to be upgraded sent by the target user is stored in the memory of the target BMC. Compared with other storage media, the memory has the advantage of faster access speed. Therefore, when the target user sends When the image to be upgraded is stored in the memory of the target BMC, it can not only relatively increase the storage speed of the target BMC when storing the image to be upgraded, but also improve the reading of the CMC when reading the image to be upgraded from the target BMC. speed.
可见,通过本实施例所提供的技术方案,可以进一步提高多级管理系统的整体执行效率。It can be seen that through the technical solution provided by this embodiment, the overall execution efficiency of the multi-level management system can be further improved.
请参见图2,图2为本发明实施例所提供的一种多级管理系统的升级装置的结构图,该升级装置包括:Please refer to FIG. 2. FIG. 2 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention, and the upgrade device includes:
镜像比较模块21,用于获取多级管理系统中所有BMC存储的待升级镜像,并对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;The image comparison module 21 is used to obtain the images to be upgraded stored in all BMCs in the multi-level management system, and to compare the images to be upgraded of the same type among all the images to be upgraded stored in the BMC to determine the target with the highest version information in the same type The image to be upgraded;
镜像升级模块22,用于将目标待升级镜像发送至所有BMC,以供目标BMC利用目标待升级镜像进行升级;其中,目标BMC为多级管理系统中任意一个BMC。The image upgrade module 22 is used to send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
优选的,镜像比较模块21,包括:Preferably, the mirror comparison module 21 includes:
镜像获取单元,用于通过轮询的方式获取多级管理系统中所有BMC存储的待升级镜像。The image obtaining unit is used to obtain all the images to be upgraded stored in the BMC in the multi-level management system by means of polling.
优选的,镜像升级模块22,包括:Preferably, the image upgrade module 22 includes:
镜像比较单元,用于当目标BMC接收到目标待升级镜像时,则判断目标待升级镜像的版本是否高于目标BMC自身所运行待升级镜像的版本以及目标BMC自身所存储待升级镜像的版本;The image comparison unit is used for determining whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running by the target BMC itself and the version of the image to be upgraded stored in the target BMC itself when the target BMC receives the target image to be upgraded;
镜像升级单元,用于当镜像比较单元的判定结果为是时,则利用目标待升级镜像对目标BMC自身进行升级。The image upgrade unit is used to upgrade the target BMC itself by using the target image to be upgraded when the judgment result of the image comparison unit is yes.
优选的,镜像升级模块22,包括:Preferably, the image upgrade module 22 includes:
设备查找单元,用于当目标BMC接收到目标待升级镜像时,则根据目标待升级镜像中的镜像头查找目标BMC中的待升级设备,并利用目标待升级镜像对待升级设备进行升级。The device searching unit is configured to, when the target BMC receives the target image to be upgraded, search for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and use the target image to be upgraded to upgrade the device to be upgraded.
优选的,设备查找单元,包括:Preferably, the device search unit includes:
设备查找子单元,用于根据目标待升级镜像中的镜像头查找目标BMC中的待升级BMC或待升级BIOS或待升级CPLD或待升级PSU。The device search subunit is used to search for the BMC to be upgraded or the BIOS to be upgraded or the CPLD to be upgraded or the PSU to be upgraded in the target BMC according to the mirror head in the target image to be upgraded.
优选的,还包括:Preferably, it also includes:
镜像存储模块,用于获取多级管理系统中所有BMC存储的待升级镜像的过程之前,当目标BMC接收到目标用户所发送的待升级镜像时,则将目标用户所发送的待升级镜像存储至目标BMC的预设镜像存储区。The image storage module is used to obtain the image to be upgraded stored in all BMCs in the multi-level management system. When the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in The preset mirror storage area of the target BMC.
优选的,镜像存储模块,包括:Preferably, the mirror storage module includes:
镜像存储单元,用于将目标用户所发送的待升级镜像存储至目标BMC的内存。The image storage unit is used to store the image to be upgraded sent by the target user into the memory of the target BMC.
本发明实施例所提供的一种多级管理系统的升级装置,具有前述所公开的一种多级管理系统的升级方法所具有的有益效果。The upgrade device of the multi-level management system provided by the embodiment of the present invention has the beneficial effects of the above-disclosed upgrade method of the multi-level management system.
请参见图3,图3为本发明实施例所提供的一种多级管理系统的升级设备的结构图,该升级设备包括:Please refer to FIG. 3. FIG. 3 is a structural diagram of an upgrade device of a multi-level management system provided by an embodiment of the present invention. The upgrade device includes:
存储器31,用于存储计算机程序;The memory 31 is used to store computer programs;
处理器32,用于执行所述计算机程序时实现如前述所公开的一种多级管理系统的升级方法的步骤。The processor 32 is configured to implement the steps of the method for upgrading a multi-level management system disclosed above when executing the computer program.
本发明实施例所提供的一种多级管理系统的升级设备,具有前述所公开的一种多级管理系统的升级方法所具有的有益效果。The upgrade device of the multi-level management system provided by the embodiment of the present invention has the beneficial effects of the above-disclosed upgrade method of the multi-level management system.
相应的,本发明实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如前述所公开的一种多级管理系统的升级方法的步骤。Correspondingly, the embodiment of the present invention also discloses a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, a multi-level The steps of the management system upgrade method.
本发明实施例所提供的一种计算机可读存储介质,具有前述所公开的一种多级管理系统的升级方法所具有的有益效果。A computer-readable storage medium provided by an embodiment of the present invention has the beneficial effects of the aforementioned method for upgrading a multi-level management system disclosed above.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" 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 not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上对本发明所提供的一种多级管理系统的升级方法、装置、设备及 介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method, device, equipment, and medium for upgrading a multi-level management system provided by the present invention are described in detail above. Specific examples are used in this article to illustrate the principles and implementation of the present invention. The description of the above embodiments is only It is used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and the scope of application. In summary, the present The contents of the description should not be construed as limiting the present invention.

Claims (11)

  1. 一种多级管理系统的升级方法,其特征在于,应用于多级管理系统的CMC,包括:A method for upgrading a multi-level management system is characterized in that the CMC applied to the multi-level management system includes:
    获取所述多级管理系统中所有BMC存储的待升级镜像,并对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;Obtain the images to be upgraded stored in all BMCs in the multi-level management system, and compare the images to be upgraded of the same type among the images to be upgraded stored in all BMCs to determine the target image to be upgraded with the highest version information in the same type;
    将所述目标待升级镜像发送至所有BMC,以供目标BMC利用所述目标待升级镜像进行升级;其中,所述目标BMC为所述多级管理系统中任意一个BMC。The target image to be upgraded is sent to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
  2. 根据权利要求1所述的升级方法,其特征在于,所述获取所述多级管理系统中所有BMC存储的待升级镜像的过程,包括:The upgrade method according to claim 1, wherein the process of obtaining the images to be upgraded stored in all BMCs in the multi-level management system comprises:
    通过轮询的方式获取所述多级管理系统中所有BMC存储的待升级镜像。Obtain the to-be-upgraded images stored by all BMCs in the multi-level management system by means of polling.
  3. 根据权利要求1所述的升级方法,其特征在于,所述目标BMC利用所述目标待升级镜像进行升级的过程,包括:The upgrade method according to claim 1, wherein the upgrade process of the target BMC using the target image to be upgraded comprises:
    当所述目标BMC接收到所述目标待升级镜像时,则判断所述目标待升级镜像的版本是否高于所述目标BMC自身所运行待升级镜像的版本以及所述目标BMC自身所存储待升级镜像的版本;When the target BMC receives the target image to be upgraded, it is judged whether the version of the target image to be upgraded is higher than the version of the image to be upgraded running by the target BMC itself and the version to be upgraded stored by the target BMC itself Mirrored version;
    若是,则利用所述目标待升级镜像对所述目标BMC自身进行升级。If so, the target BMC itself is upgraded by using the target to-be-upgraded image.
  4. 根据权利要求1所述的升级方法,其特征在于,所述待升级镜像包括所述待升级镜像的初始镜像以及能够表征所述待升级镜像属性特征的镜像头。The upgrade method according to claim 1, wherein the image to be upgraded comprises an initial image of the image to be upgraded and an image head capable of characterizing attributes of the image to be upgraded.
  5. 根据权利要求4所述的升级方法,其特征在于,所述目标BMC利用所述目标待升级镜像进行升级的过程,包括:The upgrade method according to claim 4, wherein the upgrade process of the target BMC using the target image to be upgraded comprises:
    当所述目标BMC接收到所述目标待升级镜像时,则根据所述目标待升级镜像中的镜像头查找所述目标BMC中的待升级设备,并利用所述目标待升级镜像对所述待升级设备进行升级。When the target BMC receives the target image to be upgraded, it searches for the device to be upgraded in the target BMC according to the image header in the target image to be upgraded, and uses the target image to be upgraded to Upgrade equipment to upgrade.
  6. 根据权利要求5所述的升级方法,其特征在于,所述根据所述目标待升级镜像中的镜像头查找所述目标BMC中的待升级设备的过程,包括:The upgrade method according to claim 5, wherein the process of searching for the device to be upgraded in the target BMC according to the mirror header in the target image to be upgraded comprises:
    根据所述目标待升级镜像中的镜像头查找所述目标BMC中的待升级BMC或待升级BIOS或待升级CPLD或待升级PSU。Search for the BMC to be upgraded or the BIOS to be upgraded or the CPLD to be upgraded or the PSU to be upgraded in the target BMC according to the mirror head in the target image to be upgraded.
  7. 根据权利要求1至6任一项所述的升级方法,其特征在于,所述获取所述多级管理系统中所有BMC存储的待升级镜像的过程之前,还包括:The upgrade method according to any one of claims 1 to 6, characterized in that, before the process of obtaining the to-be-upgraded images stored by all BMCs in the multi-level management system, the method further comprises:
    当所述目标BMC接收到目标用户所发送的待升级镜像时,则将所述目标用户所发送的待升级镜像存储至所述目标BMC的预设镜像存储区。When the target BMC receives the image to be upgraded sent by the target user, it stores the image to be upgraded sent by the target user in the preset image storage area of the target BMC.
  8. 根据权利要求7所述的升级方法,其特征在于,所述将所述目标用户所发送的待升级镜像存储至所述目标BMC的预设镜像存储区的过程,包括:The upgrade method according to claim 7, wherein the process of storing the image to be upgraded sent by the target user in a preset image storage area of the target BMC comprises:
    将所述目标用户所发送的待升级镜像存储至所述目标BMC的内存。The image to be upgraded sent by the target user is stored in the memory of the target BMC.
  9. 一种多级管理系统的升级装置,其特征在于,应用于多级管理系统的CMC,包括:A device for upgrading a multi-level management system is characterized in that the CMC applied to the multi-level management system includes:
    镜像比较模块,用于获取所述多级管理系统中所有BMC存储的待升级镜像,并对所有BMC所存储待升级镜像中相同类型的待升级镜像进行比较,以确定相同类型中版本信息最高的目标待升级镜像;The image comparison module is used to obtain the images to be upgraded stored by all the BMCs in the multi-level management system, and compare the images to be upgraded of the same type among all the images to be upgraded stored in the BMC to determine the one with the highest version information in the same type The target image to be upgraded;
    镜像升级模块,用于将所述目标待升级镜像发送至所有BMC,以供目标BMC利用所述目标待升级镜像进行升级;其中,所述目标BMC为所述多级管理系统中任意一个BMC。The image upgrade module is configured to send the target image to be upgraded to all BMCs, so that the target BMC can use the target image to be upgraded to upgrade; wherein, the target BMC is any BMC in the multi-level management system.
  10. 一种多级管理系统的升级设备,其特征在于,包括:An upgrade device of a multi-level management system, which is characterized in that it includes:
    存储器,用于存储计算机程序;Memory, used to store computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至8任一项所述的一种多级管理系统的升级方法的步骤。The processor is configured to implement the steps of the method for upgrading a multi-level management system according to any one of claims 1 to 8 when executing the computer program.
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述的一种多级管理系统的升级方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it realizes the multi-function device according to any one of claims 1 to 8. Steps of the upgrade method of the level management system.
PCT/CN2020/117569 2020-05-22 2020-09-25 Method and apparatus for upgrading multi-level management system, and device and medium WO2021232651A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010445726.1 2020-05-22
CN202010445726.1A CN111625264B (en) 2020-05-22 2020-05-22 Method, device, equipment and medium for upgrading multi-level management system

Publications (1)

Publication Number Publication Date
WO2021232651A1 true WO2021232651A1 (en) 2021-11-25

Family

ID=72271005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117569 WO2021232651A1 (en) 2020-05-22 2020-09-25 Method and apparatus for upgrading multi-level management system, and device and medium

Country Status (2)

Country Link
CN (1) CN111625264B (en)
WO (1) WO2021232651A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625264B (en) * 2020-05-22 2023-03-28 苏州浪潮智能科技有限公司 Method, device, equipment and medium for upgrading multi-level management system
CN113064603A (en) * 2021-03-12 2021-07-02 山东英信计算机技术有限公司 System and method for upgrading batch firmware of multi-node server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088783A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 Refresh progress acquisition methods, device and equipment between whole machine cabinet server multistage
CN109117155A (en) * 2018-07-11 2019-01-01 高新兴科技集团股份有限公司 A kind of method and apparatus of edition upgrading
CN110365524A (en) * 2019-06-27 2019-10-22 苏州浪潮智能科技有限公司 The image upgrade method and system of server node firmware
CN111625264A (en) * 2020-05-22 2020-09-04 苏州浪潮智能科技有限公司 Method, device, equipment and medium for upgrading multi-level management system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943505A (en) * 2017-12-14 2018-04-20 广东欧珀移动通信有限公司 Application upgrade management method, device, storage medium and electronic equipment
CN109189454A (en) * 2018-11-02 2019-01-11 郑州云海信息技术有限公司 A kind of upgrade method and device of BMC
CN109634634A (en) * 2018-12-12 2019-04-16 浪潮(北京)电子信息产业有限公司 A kind of BMC firmware upgrade method, device and terminal
CN110399148A (en) * 2019-06-18 2019-11-01 苏州浪潮智能科技有限公司 A kind of verification method, device and the computer readable storage medium of BMC upgrading
CN110389777A (en) * 2019-06-26 2019-10-29 苏州浪潮智能科技有限公司 A kind of edition upgrading verification method, system and the relevant apparatus of BIOS node

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117155A (en) * 2018-07-11 2019-01-01 高新兴科技集团股份有限公司 A kind of method and apparatus of edition upgrading
CN109088783A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 Refresh progress acquisition methods, device and equipment between whole machine cabinet server multistage
CN110365524A (en) * 2019-06-27 2019-10-22 苏州浪潮智能科技有限公司 The image upgrade method and system of server node firmware
CN111625264A (en) * 2020-05-22 2020-09-04 苏州浪潮智能科技有限公司 Method, device, equipment and medium for upgrading multi-level management system

Also Published As

Publication number Publication date
CN111625264A (en) 2020-09-04
CN111625264B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
US20170046152A1 (en) Firmware update
CN110535692B (en) Fault processing method and device, computer equipment, storage medium and storage system
CN112637346A (en) Proxy method, device, proxy server and storage medium
US11249788B2 (en) Cloud management platform, and virtual machine management method and system
WO2021232651A1 (en) Method and apparatus for upgrading multi-level management system, and device and medium
WO2018173164A1 (en) Data processing system
WO2020019724A1 (en) Method for acquiring sensor data in server, acquisition system, and related apparatus
TWI638553B (en) Method for detecting internet protocol address and media access control address
US20210089379A1 (en) Computer system
US11349721B2 (en) Discovering switch port locations and internet protocol addresses of compute nodes
US11500812B2 (en) Intermediate file processing method, client, server, and system
TWI518680B (en) Method for maintaining file system of computer system
CN109189403B (en) Operating system OS batch installation method and device and network equipment
US8819481B2 (en) Managing storage providers in a clustered appliance environment
CN111367761A (en) Information management method, system and related components of universal server
WO2023098052A1 (en) Server operation and maintenance method and apparatus, and device and storage medium
US11734133B2 (en) Cluster system and fail-over control method of cluster system
US20150142960A1 (en) Information processing apparatus, information processing method and information processing system
US20190286599A1 (en) Dual way communication method, system, and master device thereof
KR102665749B1 (en) Method and apparatus for ensuring continued device operational reliability in cloud-degraded mode
WO2024000535A1 (en) Partition table update method and apparatus, and electronic device and storage medium
CN112202854B (en) Joint debugging method, device, equipment and medium
US11385905B2 (en) Managing boot device orders for computing devices
CN113992566B (en) Message broadcasting method and device
US11853560B2 (en) Conditional role decision based on source environments

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20936510

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20936510

Country of ref document: EP

Kind code of ref document: A1