A method, device, equipment and storage medium for batch upgrading of firmware
The baseboard management controller mounts the customized memory boot system image and task image under the target operating system, realizing rapid batch upgrade of server firmware, solving the problems of high operation and maintenance complexity and high cost in the existing technology, and reducing the hardware cost. costs and avoids business network conflicts.
Patent Information
- Application Number
- CN202210469657.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-30
AI Technical Summary
Existing technologies require the operating system to be used for batch upgrades of server firmware, resulting in high operation and maintenance complexity, high costs, and potential business network conflicts, making it difficult to achieve fast, low-cost batch upgrades.
Mount the customized memory boot system image and customized task image to the server node to be upgraded through the baseboard management controller to implement firmware upgrade under the target operating system and eliminate dependence on the business operating system. Use the virtual media of the baseboard management controller to mount The download function and Samba service are used to transfer images and tasks.
It enables fast firmware batch upgrade without relying on the business operating system, reduces hardware implementation costs, simplifies the packaging operation of firmware batch upgrade tasks, and avoids business network conflicts.
Smart Images

Figure CN114816481B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of firmware upgrade, and in particular to a firmware batch upgrade method, device, equipment and storage medium. Background Art
[0002] At present, the implementation and operation and maintenance tasks for server firmware upgrades generally need to be performed under the OS (Operating System), such as RAID (Redundant Arrays of Independent Disks) firmware upgrades, network card firmware upgrades, etc. When batch automation is required to achieve the above tasks, it can be achieved through PXE (Pre-boot Execution Environment) deployment or operating system remote automation.
[0003] However, on the one hand, the following disadvantages exist when performing the operation and maintenance task of batch firmware upgrade through the PXE deployment solution: a. It is necessary to deploy the PXE service environment, which requires high professionalism of the operation and maintenance personnel; b. The use of DHCP (Dynamic Host Configuration Protocol) service has the hidden danger of conflict with the business network environment; c. For servers that are no longer configured with electrical port network cards (NIC, Network Interface Card), fiber switches are required for batch implementation, but fiber switches are expensive, which brings great cost pressure to the implementation. On the other hand, the premise of adopting the operating system remote automation solution is that the server node needs to pre-install the operating system, but before the specific implementation, the server node is generally not pre-installed with the operating system, and once the customer test installs the operating system, it will control the operating system, and when the console accesses the operating system of the server node, complex approval is required.
[0004] Therefore, how to effectively upgrade the firmware in batches is a problem that needs to be further solved. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a firmware batch upgrade method, device, equipment and storage medium, which can quickly realize the operation and maintenance function of firmware upgrade under batch operating system without relying on the business operating system, and reduce the hardware implementation cost. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses a method for batch upgrading of firmware, comprising:
[0007] When the console server obtains a batch upgrade request for the target firmware, the baseboard management controller is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded;
[0008] Loading the customized memory boot system image on each of the server nodes to be upgraded respectively, so that each of the server nodes to be upgraded enters the target operating system;
[0009] The customized task image is executed under the target operating system, so as to upgrade the target firmware in each server node to be upgraded by executing the customized task image and obtain corresponding upgrade results.
[0010] Optionally, the step of mounting the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded by using the baseboard management controller includes:
[0011] The customized memory boot system image and the customized task image corresponding to the target firmware are mounted on each server node to be upgraded by utilizing the virtual media mounting function of the baseboard management controller and through the Samba service.
[0012] Optionally, after upgrading the target firmware in each to-be-upgraded server node by executing the customized task image and obtaining a corresponding upgrade result, the method further includes:
[0013] Encoding the UID status on each of the to-be-upgraded server nodes according to the upgrade result to obtain an encoded UID status;
[0014] The encoded UID state is sent to the console server, and the encoded UID state is decoded by the console server to obtain a decoded UID state, and then the upgrade result corresponding to each server node to be upgraded is obtained according to the decoded UID state.
[0015] Optionally, the firmware batch upgrade method further includes:
[0016] The virtual media mounting function of the baseboard management controller is disabled through the console server, and the upgrade result and the disable result of the virtual media mounting function are recorded.
[0017] Optionally, loading the customized memory boot system image on each of the server nodes to be upgraded includes:
[0018] The customized memory boot system image is loaded on each server node to be upgraded by means of a CD-ROM read-only memory.
[0019] Optionally, sending the encoded UID state to the console server includes:
[0020] The encoded UID status is sent to the console server via a baseboard management controller port.
[0021] Optionally, the firmware batch upgrade method further includes:
[0022] Detecting the console server and determining whether the Samba service in the console server is running normally, whether the dynamic host configuration protocol service is closed, and whether the status of the customized memory boot system image and the customized task image are normal;
[0023] If the Samba service in the console server is running normally, the dynamic host configuration protocol service is closed, and the status of the customized memory boot system image and the customized task image are normal, then determine whether each server node to be upgraded has other virtual media images mounted, whether it is in a shutdown state, whether the corresponding UID is in a shutdown state, and whether it matches the target serial number;
[0024] If the server nodes to be upgraded have no other virtual media images mounted on them, are in a shutdown state, and the corresponding UID is in a shutdown state and matches the target serial number, then the step of using the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware on each server node to be upgraded is triggered.
[0025] In a second aspect, the present application discloses a firmware batch upgrade device, comprising:
[0026] An image mounting module is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded by using the baseboard management controller when the console server obtains a batch upgrade request for the target firmware;
[0027] An image loading module, used to load the customized memory boot system image on each of the server nodes to be upgraded, so that each of the server nodes to be upgraded can enter the target operating system;
[0028] The firmware batch upgrade module is used to execute the customized task image under the target operating system, so as to upgrade the target firmware in each server node to be upgraded by executing the customized task image and obtain corresponding upgrade results.
[0029] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the processor implements the aforementioned firmware batch upgrade method when executing a computer program stored in the memory.
[0030] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned firmware batch upgrade method is implemented.
[0031] It can be seen that when the console server obtains a batch upgrade request for the target firmware, the present application uses the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded, and then loads the customized memory boot system image on each server node to be upgraded, so that each server node to be upgraded enters the target operating system, and executes the customized task image under the target operating system, so that the target firmware in each server node to be upgraded is upgraded by executing the customized task image, and the corresponding upgrade result is obtained. The present application decouples the memory boot system image and the task image, and mounts the memory boot system image through the baseboard management controller instead of the business network card, which can quickly realize the operation and maintenance function of firmware upgrade under the batch operating system, eliminate the dependence on the business operating system, and simplify the packaging operation of the firmware batch upgrade task, reducing the hardware implementation cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0033] Figure 1 A flowchart of a firmware batch upgrade method disclosed in this application;
[0034] Figure 2 This is a schematic diagram of the structure of a firmware batch upgrade device disclosed in this application;
[0035] Figure 3 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] The present application discloses a method for batch upgrading firmware. Figure 1 As shown, the method includes:
[0038] Step S11: When the console server obtains a batch upgrade request for the target firmware, the baseboard management controller is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded.
[0039] In this embodiment, the console server (Console Server) as a management server can monitor the batch upgrade requests for the target firmware (Firmware) initiated by multiple server nodes to be upgraded in real time. When monitoring the batch upgrade requests, the baseboard management controller (BMC, Baseboard Management Controller) can be used to mount the customized memory boot system image and the customized task image corresponding to the above target firmware to each server node to be upgraded. Among them, the target firmware includes but is not limited to RAID (Redundant Arrays of Independent Disks, disk array) firmware, network card firmware, etc., the customized memory boot system image refers to the image file for starting the memory system that is pre-customized according to the actual application scenario, and the customized task image refers to the firmware upgrade package pre-created for different firmware.
[0040] Specifically, the use of the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware on each server node to be upgraded may include: using the virtual media mounting function of the baseboard management controller and mounting the customized memory boot system image and the customized task image corresponding to the target firmware on each server node to be upgraded through the Samba (Server Messages Block) service. That is, in this embodiment, the virtual media mounting function of the baseboard management controller and the customized memory boot system image and the customized task image corresponding to the above-mentioned target firmware can be mounted on each server node to be upgraded through the Samba service.
[0041] In this embodiment, the firmware batch upgrade method specifically further includes: detecting the console server, and determining whether the Samba service in the console server is running normally, whether the dynamic host configuration protocol service is closed, and whether the status of the customized memory boot system image and the customized task image is normal; if the Samba service in the console server is running normally, the dynamic host configuration protocol service is closed, and the status of the customized memory boot system image and the customized task image is normal, then determining whether the various server nodes to be upgraded have other virtual media images mounted, whether they are in a shutdown state, whether the corresponding UID (User Identification, user identity certification, is an LED light used to mark the server status) is in a shutdown state, and whether it matches the target serial number; if the various server nodes to be upgraded have no other virtual media images mounted, are in a shutdown state, and the corresponding UID is in a shutdown state and matches the target serial number, then triggering the step of using the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware on the various server nodes to be upgraded. In this embodiment, after the console server is started, the console server needs to be detected, specifically including: determining whether the Samba service in the console server is running normally, whether the dynamic host configuration protocol service is closed, and whether the status of the customized memory boot system image and the customized task image is normal; if the Samba service in the console server is running normally, the dynamic host configuration protocol service is closed, and at the same time, the status of the customized memory boot system image and the customized task image is normal, it can be further determined whether the above-mentioned server nodes to be upgraded have mounted other virtual media images (i.e., other images except the customized memory boot system image and the customized task image), whether they are in a shutdown state, whether the corresponding UID is in a shutdown state, and whether it matches the target serial number (i.e., SN); if the above-mentioned server nodes to be upgraded have not mounted other virtual media images, are in a shutdown state, and the corresponding UID is in a shutdown state and matches the target serial number, the above-mentioned step of using the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware on each server node to be upgraded can be triggered. If any of the above determination steps is not satisfied, a corresponding error prompt may be returned to the console server, and the upgrade operation for the target firmware is terminated.
[0042] Step S12: loading the customized memory boot system image on each of the server nodes to be upgraded respectively, so that each of the server nodes to be upgraded enters the target operating system.
[0043] In this embodiment, after the baseboard management controller is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded, each server node to be upgraded receives the above-mentioned customized memory boot system image and the customized task image, and then the above-mentioned customized memory boot system image can be loaded on each server node to be upgraded respectively. When the customized memory boot system image is loaded, each server node to be upgraded can enter the target operating system (i.e., OS) specified by the customized memory boot system image, and the target operating system includes but is not limited to Windows operating system, Linux operating system, etc.
[0044] In this embodiment, the loading of the customized memory boot system image on each of the server nodes to be upgraded may specifically include: loading the customized memory boot system image on each of the server nodes to be upgraded by means of a compact disc read-only memory. That is, the customized memory boot system image may be loaded on each of the server nodes to be upgraded by means of a compact disc read-only memory (CD-ROM).
[0045] Step S13: executing the customized task image under the target operating system, so as to upgrade the target firmware in each server node to be upgraded by executing the customized task image and obtain corresponding upgrade results.
[0046] In this embodiment, after each of the server nodes to be upgraded enters the target operating system, each of the server nodes to be upgraded can execute the above-mentioned customized task image under the target operating system, and the target firmware in each of the server nodes to be upgraded is upgraded by executing the above-mentioned customized task image, that is, batch firmware upgrade is realized. Furthermore, after the upgrade, the upgrade results corresponding to each of the server nodes to be upgraded can be obtained, such as upgrade success or upgrade failure.
[0047] In this embodiment, after upgrading the target firmware in each server node to be upgraded by executing the customized task image and obtaining the corresponding upgrade result, it can also include: encoding the UID status on each server node to be upgraded according to the upgrade result to obtain the encoded UID status; sending the encoded UID status to the console server, and decoding the encoded UID status through the console server to obtain the decoded UID status, and then obtaining the upgrade result corresponding to each server node to be upgraded according to the decoded UID status. In a specific implementation, after obtaining the upgrade results corresponding to the server nodes to be upgraded, in order to feed back the upgrade results to the console server, the UID status on the server nodes to be upgraded can be encoded according to the upgrade results and based on the UID status encoding rules recorded in the customized task image to obtain the corresponding encoded UID status. For example, the UID status of a successful firmware update is encoded as a cyclic display of continuous light for 10 seconds followed by continuous dark for 10 seconds, and then the encoded UID status is sent to the console server, and then the encoded UID status is decoded by the console server to obtain the decoded UID status. Finally, the upgrade results corresponding to the server nodes to be upgraded can be obtained according to the decoded UID status, that is, the execution status of the firmware upgrade task can be decoded according to the rise and fall status of the UID.
[0048] It should be pointed out that the UID status on each server node to be upgraded is encoded according to the upgrade result. Before obtaining the encoded UID status, it is necessary to check the UID starting status to ensure that the UID status is not interfered with, check the status of the baseboard management controller, and check the mounting status of the customized memory boot system image and the customized task image to ensure that the firmware upgrade task is not interfered with.
[0049] Specifically, sending the encoded UID state to the console server may include: sending the encoded UID state to the console server through a baseboard management controller port. That is, the encoded UID state may be sent to the above-mentioned console server through a baseboard management controller port. In this embodiment, in order to avoid the conflict risk of the business network, the operation and maintenance requirements under the target operating system may be realized through the baseboard management controller port.
[0050] Furthermore, after obtaining the corresponding upgrade result, it specifically includes: shutting down the virtual media mounting function of the baseboard management controller through the console server, and recording the upgrade result and the shutting down result of the virtual media mounting function. In this embodiment, after the console server obtains the upgrade result sent by each server node to be upgraded, in order not to affect the normal use of the baseboard management controller in each server node to be upgraded, the virtual media mounting function of the baseboard management controller can be shut down. Furthermore, in order to facilitate the subsequent viewing and management of the upgrade results sent by each server node to be upgraded, the above-mentioned upgrade results and the shutting down result of the virtual media mounting function of the baseboard management controller can be recorded, so that the upgrade result and the shutting down result can be retrieved at any time and displayed intuitively.
[0051] It can be seen that in the embodiment of the present application, when the console server obtains a batch upgrade request for the target firmware, the baseboard management controller is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded, and then the customized memory boot system image is loaded on each server node to be upgraded respectively, so that each server node to be upgraded enters the target operating system, and executes the customized task image under the target operating system, so that the target firmware in each server node to be upgraded is upgraded by executing the customized task image, and the corresponding upgrade result is obtained. The embodiment of the present application decouples the memory boot system image and the task image, and mounts the memory boot system image through the baseboard management controller instead of the business network card, which can quickly realize the operation and maintenance function of firmware upgrade under the batch operating system, eliminate the dependence on the business operating system, and simplify the packaging operation of the firmware batch upgrade task, reducing the hardware implementation cost.
[0052] Correspondingly, the present application also discloses a firmware batch upgrade device, see Figure 2 As shown, the device comprises:
[0053] The image mounting module 11 is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded by using the baseboard management controller when the console server obtains a batch upgrade request for the target firmware;
[0054] An image loading module 12, used to load the customized memory boot system image on each of the server nodes to be upgraded, so that each of the server nodes to be upgraded enters the target operating system;
[0055] The firmware batch upgrade module 13 is used to execute the customized task image under the target operating system, so as to upgrade the target firmware in each server node to be upgraded by executing the customized task image and obtain corresponding upgrade results.
[0056] Among them, the specific working processes of the above-mentioned modules can refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0057] It can be seen that in the embodiment of the present application, when the console server obtains a batch upgrade request for the target firmware, the baseboard management controller is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded, and then the customized memory boot system image is loaded on each server node to be upgraded respectively, so that each server node to be upgraded enters the target operating system, and executes the customized task image under the target operating system, so that the target firmware in each server node to be upgraded is upgraded by executing the customized task image, and the corresponding upgrade result is obtained. The embodiment of the present application decouples the memory boot system image and the task image, and mounts the memory boot system image through the baseboard management controller instead of the business network card, which can quickly realize the operation and maintenance function of firmware upgrade under the batch operating system, eliminate the dependence on the business operating system, and simplify the packaging operation of the firmware batch upgrade task, reducing the hardware implementation cost.
[0058] In some specific embodiments, the image mounting module 11 may specifically include:
[0059] The image mounting unit is used to utilize the virtual media mounting function of the baseboard management controller and mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded through the Samba service.
[0060] In some specific embodiments, after the firmware batch upgrade module 13, the following may also be included:
[0061] An encoding unit, used for encoding the UID status on each of the to-be-upgraded server nodes according to the upgrade result to obtain an encoded UID status;
[0062] A first data sending unit, configured to send the encoded UID state to the console server;
[0063] A decoding unit is used to decode the encoded UID state through the console server to obtain a decoded UID state, and then obtain the upgrade result corresponding to each server node to be upgraded according to the decoded UID state.
[0064] In some specific embodiments, the firmware batch upgrade device may further include:
[0065] A mounting function closing unit, used for closing the virtual media mounting function of the baseboard management controller through the console server;
[0066] The information recording unit is used to record the upgrade result and the shutdown result of the virtual media mounting function.
[0067] In some specific embodiments, the image loading module 12 may specifically include:
[0068] The image loading unit is used to load the customized memory boot system image on each server node to be upgraded by means of a CD-ROM read-only memory.
[0069] In some specific embodiments, the first data sending unit may specifically include:
[0070] The second data sending unit is used to send the encoded UID state to the console server through the baseboard management controller port.
[0071] In some specific embodiments, the firmware batch upgrade device may further include:
[0072] A server detection unit, used to detect the console server and determine whether the Samba service in the console server is running normally, whether the dynamic host configuration protocol service is closed, and whether the status of the customized memory boot system image and the customized task image are normal;
[0073] A judgment unit, configured to judge whether each server node to be upgraded has other virtual media images mounted, is in a shutdown state, and whether the corresponding UID is in a shutdown state and matches the target serial number if the Samba service in the console server is running normally, the dynamic host configuration protocol service is shut down, and the states of the customized memory boot system image and the customized task image are normal;
[0074] A trigger unit is used to trigger the step of using a baseboard management controller to mount a customized memory boot system image and a customized task image corresponding to the target firmware on each server node to be upgraded if the server nodes to be upgraded have no other virtual media images mounted on them, are in a shutdown state, and the corresponding UID is in a shutdown state and matches the target serial number.
[0075] Furthermore, the present application also discloses an electronic device. Figure 3This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0076] Figure 3 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the firmware batch upgrade method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0077] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0078] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0079] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the firmware batch upgrade method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0080] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed firmware batch upgrade method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0081] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0082] Professionals may further appreciate 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 function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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 this application.
[0083] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0084] Finally, it should 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.
[0085] The above is a detailed introduction to a firmware batch upgrade method, device, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for batch upgrading of firmware, characterized in that: include: When the console server obtains a batch upgrade request for the target firmware, the baseboard management controller is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded; Loading the customized memory boot system image on each of the server nodes to be upgraded respectively, so that each of the server nodes to be upgraded enters the target operating system; Executing the customized task image under the target operating system, so as to upgrade the target firmware in each server node to be upgraded by executing the customized task image, and obtain corresponding upgrade results; The method further includes: detecting the console server and determining whether the Samba service in the console server is running normally, whether the dynamic host configuration protocol service is closed, and whether the status of the customized memory boot system image and the customized task image are normal; If the Samba service in the console server is running normally, the dynamic host configuration protocol service is closed, and the status of the customized memory boot system image and the customized task image are normal, then determine whether each server node to be upgraded has other virtual media images mounted, whether it is in a shutdown state, whether the corresponding UID is in a shutdown state, and whether it matches the target serial number; If the server nodes to be upgraded have no other virtual media images mounted on them, are in a shutdown state, and the corresponding UID is in a shutdown state and matches the target serial number, then the step of using the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware on each server node to be upgraded is triggered.
2. The method for batch firmware upgrade according to claim 1, characterized in that: The method of using a baseboard management controller to mount a customized memory boot system image and a customized task image corresponding to the target firmware onto each server node to be upgraded includes: The customized memory boot system image and the customized task image corresponding to the target firmware are mounted on each server node to be upgraded by utilizing the virtual media mounting function of the baseboard management controller and through the Samba service.
3. The method for batch upgrading firmware according to claim 2, characterized in that: After the target firmware in each to-be-upgraded server node is upgraded by executing the customized task image and a corresponding upgrade result is obtained, the method further includes: Encoding the UID status on each of the to-be-upgraded server nodes according to the upgrade result to obtain an encoded UID status; The encoded UID state is sent to the console server, and the encoded UID state is decoded by the console server to obtain a decoded UID state, and then the upgrade result corresponding to each server node to be upgraded is obtained according to the decoded UID state.
4. The method for batch firmware upgrade according to claim 3, characterized in that: Also includes: The virtual media mounting function of the baseboard management controller is disabled through the console server, and the upgrade result and the disable result of the virtual media mounting function are recorded.
5. The method for batch firmware upgrade according to claim 1, characterized in that: The step of loading the customized memory boot system image on each of the server nodes to be upgraded includes: The customized memory boot system image is loaded on each server node to be upgraded by means of a CD-ROM read-only memory.
6. The method for batch upgrading firmware according to claim 3, characterized in that: The sending the encoded UID state to the console server comprises: The encoded UID status is sent to the console server via a baseboard management controller port.
7. A firmware batch upgrade device, characterized in that: include: An image mounting module is used to mount the customized memory boot system image and the customized task image corresponding to the target firmware to each server node to be upgraded by using the baseboard management controller when the console server obtains a batch upgrade request for the target firmware; An image loading module, used to load the customized memory boot system image on each of the server nodes to be upgraded, so that each of the server nodes to be upgraded can enter the target operating system; A firmware batch upgrade module, used to execute the customized task image under the target operating system, so as to upgrade the target firmware in each server node to be upgraded by executing the customized task image and obtain corresponding upgrade results; The device is also used to detect the console server and determine whether the Samba service in the console server is running normally, whether the dynamic host configuration protocol service is closed, and whether the status of the customized memory boot system image and the customized task image are normal; If the Samba service in the console server is running normally, the dynamic host configuration protocol service is closed, and the status of the customized memory boot system image and the customized task image are normal, then determine whether each server node to be upgraded has other virtual media images mounted, whether it is in a shutdown state, whether the corresponding UID is in a shutdown state, and whether it matches the target serial number; If the server nodes to be upgraded have no other virtual media images mounted on them, are in a shutdown state, and the corresponding UID is in a shutdown state and matches the target serial number, then the step of using the baseboard management controller to mount the customized memory boot system image and the customized task image corresponding to the target firmware on each server node to be upgraded is triggered.
8. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the firmware batch upgrade method as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the firmware batch upgrade method according to any one of claims 1 to 6 is implemented.
