CN116149709A - Firmware upgrading method, device, equipment and medium - Google Patents

Firmware upgrading method, device, equipment and medium Download PDF

Info

Publication number
CN116149709A
CN116149709A CN202310188925.2A CN202310188925A CN116149709A CN 116149709 A CN116149709 A CN 116149709A CN 202310188925 A CN202310188925 A CN 202310188925A CN 116149709 A CN116149709 A CN 116149709A
Authority
CN
China
Prior art keywords
firmware
file
upgrading
upgrade
tested
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310188925.2A
Other languages
Chinese (zh)
Inventor
靳云杰
秦晓宁
许飞
陈颖
颜顺鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing Co Ltd
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 Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202310188925.2A priority Critical patent/CN116149709A/en
Publication of CN116149709A publication Critical patent/CN116149709A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a firmware upgrading method, a device, equipment and a medium. The method comprises the following steps: firmware upgrading information corresponding to a plurality of tested servers is obtained from the configuration file; the firmware upgrade information includes: firmware upgrade type, expected firmware version, file identification information and BMC login information of each tested server; detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information; if yes, carrying out firmware upgrading on each tested server through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file. According to the embodiment of the invention, unified firmware upgrading operation of a plurality of servers can be automatically finished through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file corresponding to the plurality of servers.

Description

Firmware upgrading method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a firmware upgrade method, apparatus, device, and medium.
Background
In the testing process of the server, unified firmware upgrading operation is often required to be performed on a plurality of servers. Firmware on a server includes, but is not limited to: baseboard management controller (Baseboard Management Controller, BMC) firmware, basic input output system (Basic Input Output System, BIOS) firmware, and complex programmable logic device (Complex Programmable Logic Device, CPLD) firmware. And uploading a firmware upgrading file corresponding to the designated firmware to each server, and then carrying out firmware upgrading on the designated firmware on each server according to the firmware upgrading file corresponding to the designated firmware, so as to complete the firmware upgrading operation in the test process.
In the related art, a common firmware upgrade scheme is: and for each server, manually uploading a firmware upgrading file corresponding to the specified firmware to the server by a tester, and then carrying out firmware upgrading on the specified firmware on each server according to the firmware upgrading file corresponding to the specified firmware. The firmware upgrading scheme in the related art needs to be repeatedly operated by a tester, so that the firmware upgrading operation of a plurality of servers in the testing process can be completed, the firmware upgrading operation is complicated, a large amount of labor cost and time cost can be consumed, and the testing progress of the servers is influenced.
Disclosure of Invention
The invention provides a firmware upgrading method, device, equipment and medium, which are used for solving the problems that a firmware upgrading scheme in the related technology is complicated, a large amount of labor cost and time cost are consumed, and the testing progress of a server is affected.
According to an aspect of the present invention, there is provided a firmware upgrade method, including:
firmware upgrading information corresponding to a plurality of tested servers is obtained from the configuration file; wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware;
detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information;
if the fact that the current firmware upgrading files corresponding to all the tested servers exist in the preset file database is detected, firmware upgrading is conducted on all the tested servers through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading files.
According to the technical scheme, the firmware to be upgraded of the servers can be automatically upgraded to the expected firmware version according to the firmware upgrading information and the current firmware upgrading file corresponding to the servers through the firmware upgrading function interface, unified firmware upgrading operation of the servers is completed, firmware upgrading efficiency is improved, labor cost and time cost of a firmware upgrading process are reduced, and testing progress of the servers is improved.
Optionally, the detecting whether the current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information includes:
if the firmware upgrading type is to upgrade BMC firmware, inquiring a target BMC firmware upgrading file with the same identification information as the file identification information in each BMC firmware upgrading file stored in a preset file database;
if the target BMC firmware upgrade file is queried, determining that the target BMC firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database;
If the target BMC firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
According to the technical scheme of the embodiment of the invention, the BMC firmware upgrading files for upgrading the BMC firmware of the plurality of tested servers to the expected BMC firmware version can be automatically queried according to the firmware upgrading information corresponding to the plurality of tested servers, so that unified BMC firmware upgrading operation can be automatically performed on the plurality of servers based on the queried BMC firmware upgrading files and the function interfaces, and the BMC firmware of the plurality of tested servers is upgraded to the expected BMC firmware version.
Optionally, the detecting, according to the firmware upgrade type and the file identification information, whether a current firmware upgrade file corresponding to each tested server exists in a preset file database, further includes: if the firmware upgrading type is to upgrade BIOS firmware, inquiring a target BIOS firmware upgrading file with the same identification information as the file identification information in each BIOS firmware upgrading file stored in a preset file database; if the target BIOS firmware upgrading file is queried, determining that the target BIOS firmware upgrading file is a current firmware upgrading file corresponding to each tested server, and determining that the current firmware upgrading file corresponding to each tested server exists in the preset file database; if the target BIOS firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
According to the technical scheme of the embodiment of the invention, the BIOS firmware upgrading files for upgrading the BIOS firmware of the plurality of tested servers to the expected BIOS firmware version can be automatically queried according to the firmware upgrading information corresponding to the plurality of tested servers, so that unified BIOS firmware upgrading operation can be automatically performed on the plurality of servers based on the queried BIOS firmware upgrading files and function interfaces, and the BIOS firmware of the plurality of tested servers is upgraded to the expected BIOS firmware version.
Optionally, the detecting, according to the firmware upgrade type and the file identification information, whether a current firmware upgrade file corresponding to each tested server exists in a preset file database, further includes:
if the firmware upgrading type is to upgrade CPLD firmware, inquiring a target CPLD firmware upgrading file with the same identification information as the file identification information in each CPLD firmware upgrading file stored in a preset file database;
if the target CPLD firmware upgrade file is queried, determining that the target CPLD firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database;
If the target CPLD firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
According to the technical scheme of the embodiment of the invention, CPLD firmware upgrade files for upgrading CPLD firmware of a plurality of tested servers to expected CPLD firmware versions can be queried automatically according to firmware upgrade information corresponding to the plurality of tested servers, so that unified CPLD firmware upgrade operation is performed on the plurality of servers automatically based on the queried CPLD firmware upgrade files and function interfaces, and CPLD firmware of the plurality of tested servers is upgraded to the expected CPLD firmware versions.
Optionally, the firmware upgrading of each tested server through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file includes:
for each tested server, calling a firmware upgrading function interface, and executing the following operations through the firmware upgrading function interface:
logging in the BMC of the tested server according to the BMC login information of the tested server in the firmware upgrading information, and uploading the current firmware upgrading file to the BMC of the tested server; the BMC login information of the tested server comprises an IP address, a login account and a login password of the BMC of the tested server;
According to the firmware upgrading information, verifying a current firmware upgrading file uploaded to the BMC;
if the verification of the current firmware upgrade file uploaded to the BMC is confirmed to pass, upgrading the BMC firmware, the BIOS firmware or the CPLD firmware of the tested server according to the current firmware upgrade file uploaded to the BMC.
According to the technical scheme of the embodiment of the invention, the BMC firmware, the BIOS firmware or the CPLD firmware of the plurality of servers can be upgraded to the expected firmware version through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file corresponding to the plurality of servers, so that unified firmware upgrading operation of the plurality of servers is completed.
Optionally, after firmware upgrading is performed on each tested server through a firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file, the method further includes:
acquiring the current firmware version of each tested server;
comparing the expected firmware version with the current firmware version of each tested server, and determining whether each tested server is successfully upgraded according to the comparison result.
According to the technical scheme of the embodiment of the invention, the firmware upgrading result of each tested server can be verified according to the expected firmware version and the current firmware version of each tested server.
Optionally, the determining whether each tested server is successfully upgraded according to the comparison result includes:
if the expected firmware version is the same as the current firmware version of each tested server, determining that each tested server is successfully upgraded, and sending success prompt information corresponding to each tested server to terminal equipment of a target user;
if the expected firmware version is different from the current firmware version of each tested server, determining that each tested server fails to upgrade, and sending failure prompt information corresponding to each tested server to the terminal equipment of the target user.
According to the technical scheme of the embodiment of the invention, success or failure of upgrading of each tested server can be determined according to the comparison result between the expected firmware version and the current firmware version of each tested server, and corresponding prompt information is provided.
According to another aspect of the present invention, there is provided a firmware upgrade apparatus, comprising:
the information acquisition module is used for acquiring firmware upgrading information corresponding to a plurality of tested servers from the configuration file; wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware;
The file detection module is used for detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information;
and the firmware upgrading module is used for upgrading the firmware of each tested server according to the firmware upgrading information and the current firmware upgrading file through the firmware upgrading function interface if the current firmware upgrading file corresponding to each tested server exists in the preset file database.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the firmware upgrade method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a firmware upgrade method according to any one of the embodiments of the present invention.
According to the technical scheme, firmware upgrading information corresponding to a plurality of tested servers is obtained from the configuration file; the firmware upgrade information includes: the firmware upgrading type comprises upgrading BMC firmware, upgrading BIOS firmware or upgrading CPLD firmware, wherein the expected firmware version, file identification information and BMC login information of each tested server; then detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information; if the current firmware upgrading files corresponding to all the tested servers exist in the preset file database, the firmware upgrading is carried out on all the tested servers according to the firmware upgrading information and the current firmware upgrading files through the firmware upgrading function interface, the problem that a firmware upgrading scheme in the related technology is complicated and consumes a great deal of labor cost and time cost to influence the testing progress of the servers is solved, and the beneficial effects that the firmware to be upgraded of the servers is automatically upgraded to the expected firmware version according to the firmware upgrading information and the current firmware upgrading files corresponding to the servers through the firmware upgrading function interface, so that unified firmware upgrading operation on the servers is completed, the firmware upgrading efficiency is improved, the labor cost and the time cost of the firmware upgrading process are reduced, and the testing progress of the servers is improved are achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a firmware upgrade method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a firmware upgrading method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a firmware upgrading method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a firmware upgrading apparatus according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device implementing a firmware upgrade method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and the claims of the present invention and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a firmware upgrade method according to an embodiment of the present invention. The embodiment is applicable to the case of performing unified firmware upgrade operation on a plurality of servers in the test process of the servers, and the method can be performed by a firmware upgrade device, which can be implemented in the form of hardware or software and can be configured in an electronic device. As shown in fig. 1, the method includes:
Step 101, obtaining firmware upgrading information corresponding to a plurality of tested servers from the configuration file.
Wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware.
Optionally, the plurality of tested servers are at least two servers that need to be upgraded with firmware in a unified way in the testing process. The configuration file is a file for storing various kinds of information associated with a plurality of servers under test. The various types of information associated with the plurality of servers under test include firmware upgrade information corresponding to the plurality of servers under test. The firmware upgrade information corresponding to the plurality of servers under test is information related to firmware upgrade operations that need to be performed on the plurality of servers. The firmware upgrade information corresponding to the plurality of tested servers includes: firmware upgrade type, expected firmware version, file identification information and BMC login information of each tested server.
Optionally, the firmware upgrade type is a type of firmware upgrade operation that needs to be performed on a plurality of tested servers. The firmware upgrade type is to upgrade BMC firmware, upgrade BIOS firmware or upgrade CPLD firmware. The firmware upgrade type is to upgrade BMC firmware, which indicates that the firmware upgrade operation to be performed on the plurality of tested servers is to upgrade the BMC firmware of the plurality of tested servers, and the firmware to be upgraded of the plurality of tested servers is the BMC firmware; the firmware upgrade type is to upgrade BIOS firmware, which indicates that the firmware upgrade operation to be performed on the plurality of tested servers is to upgrade the BIOS firmware of the plurality of tested servers, and the firmware to be upgraded of the plurality of tested servers is the BIOS firmware; the firmware upgrade type is to upgrade CPLD firmware, which indicates that the firmware upgrade operation to be performed on the plurality of tested servers is to upgrade CPLD firmware of the plurality of tested servers, and the firmware to be upgraded of the plurality of tested servers is CPLD firmware.
Alternatively, the desired firmware version is a firmware version to which the firmware to be upgraded of the plurality of servers under test is to be upgraded. The firmware upgrade type is to upgrade BMC firmware, and the expected firmware version is the BMC firmware version to which the BMC firmware of the plurality of tested servers is to be upgraded; the firmware upgrade type is to upgrade BIOS firmware, and the expected firmware version is the BIOS firmware version to be upgraded to by the BIOS firmware of the plurality of tested servers; the firmware upgrade type is to upgrade CPLD firmware, and the expected firmware version is the CPLD firmware version to which the CPLD firmware of the plurality of tested servers is to be upgraded.
Optionally, the file identification information is identification information of a firmware upgrade file for upgrading firmware to be upgraded of the server under test to a desired firmware version. The identification information of the firmware upgrade file is information for identifying the firmware upgrade file. The identification information of different firmware upgrade files is not identical. The identification information of the firmware upgrade file includes, but is not limited to, a name of the firmware upgrade file, and a number corresponding to the firmware upgrade file. The firmware upgrade file is an upgrade file for upgrading the firmware of the server to a specified firmware version. Firmware upgrade files include, but are not limited to: BMC firmware upgrade file, BIOS firmware upgrade file, CPLD firmware upgrade file.
Optionally, the BMC firmware upgrade file is an upgrade file for upgrading the BMC firmware of the server to a specified BMC firmware version. The BMC of the server runs the BMC firmware upgrade file, and the BMC firmware of the server can be upgraded to the appointed BMC firmware version.
Optionally, the BIOS firmware upgrade file is an upgrade file for upgrading the BIOS firmware of the server to a specified BIOS firmware version. The BMC of the server runs the BIOS firmware upgrade file, and can upgrade the BIOS firmware of the server to the appointed BIOS firmware version.
Optionally, the CPLD firmware upgrade file is an upgrade file for upgrading the CPLD firmware of the server to a specified CPLD firmware version. The BMC of the server runs the CPLD firmware upgrade file, and can upgrade the CPLD firmware of the server to the appointed CPLD firmware version.
Optionally, the firmware upgrade type is to upgrade the BMC firmware, the expected firmware version is a BMC firmware version to which the BMC firmware of the plurality of tested servers is to be upgraded, and the file identification information is identification information of a BMC firmware upgrade file for upgrading the BMC firmware of the plurality of tested servers to the expected firmware version.
Optionally, the firmware upgrade type is to upgrade the BIOS firmware, the expected firmware version is a BIOS firmware version to which the BIOS firmware of the plurality of servers under test is to be upgraded, and the file identification information is identification information of a BIOS firmware upgrade file for upgrading the BIOS firmware of the plurality of servers under test to the expected firmware version.
Optionally, the firmware upgrade type is upgrade CPLD firmware, the expected firmware version is a CPLD firmware version to which the CPLD firmware of the plurality of tested servers is to be upgraded, and the file identification information is identification information of a CPLD firmware upgrade file for upgrading the CPLD firmware of the plurality of tested servers to the expected firmware version.
Optionally, the BMC login information of each tested server is information for logging in the BMC of each tested server. The BMC login information of the server comprises an IP address, a login account number and a login password of the BMC of the server.
Optionally, the target user uploads the configuration file to the electronic device through the terminal device. The target user is a tester. The target user is responsible for managing the testing process of a plurality of servers under test. The electronic equipment acquires firmware upgrading information corresponding to the plurality of tested servers, which is uploaded by a target user, and extracts the firmware upgrading information corresponding to the plurality of tested servers from the configuration file.
Step 102, detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information.
Optionally, the current firmware upgrade file corresponding to each of the tested servers is a firmware upgrade file for upgrading the firmware to be upgraded of the plurality of tested servers to a desired firmware version.
Optionally, the detecting whether the current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information includes: if the firmware upgrading type is to upgrade BMC firmware, inquiring a target BMC firmware upgrading file with the same identification information as the file identification information in each BMC firmware upgrading file stored in a preset file database; if the target BMC firmware upgrade file is queried, determining that the target BMC firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database; if the target BMC firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
Therefore, the BMC firmware upgrading files for upgrading the BMC firmware of the tested servers to the expected BMC firmware version can be automatically queried according to the firmware upgrading information corresponding to the tested servers, unified BMC firmware upgrading operation is automatically carried out on the tested servers based on the queried BMC firmware upgrading files and the functional interfaces, and the BMC firmware of the tested servers is upgraded to the expected BMC firmware version.
Optionally, the preset file database is a database for storing firmware upgrade files. And a plurality of BMC firmware upgrade files are stored in the preset file database.
Optionally, the firmware upgrade type is upgrade BMC firmware, and the file identification information is identification information of a BMC firmware upgrade file for upgrading the BMC firmware of the plurality of tested servers to a desired firmware version. Among the BMC firmware upgrade files stored in the preset file database, the target BMC firmware upgrade file with the same identification information as the file identification information is a BMC firmware upgrade file for upgrading BMC firmware of a plurality of tested servers to a desired firmware version, namely, a current firmware upgrade file corresponding to each tested server.
Optionally, the detecting, according to the firmware upgrade type and the file identification information, whether a current firmware upgrade file corresponding to each tested server exists in a preset file database, further includes: if the firmware upgrading type is to upgrade BIOS firmware, inquiring a target BIOS firmware upgrading file with the same identification information as the file identification information in each BIOS firmware upgrading file stored in a preset file database; if the target BIOS firmware upgrading file is queried, determining that the target BIOS firmware upgrading file is a current firmware upgrading file corresponding to each tested server, and determining that the current firmware upgrading file corresponding to each tested server exists in the preset file database; if the target BIOS firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
Therefore, the BIOS firmware upgrading file for upgrading the BIOS firmware of the plurality of tested servers to the expected BIOS firmware version can be automatically queried according to the firmware upgrading information corresponding to the plurality of tested servers, so that unified BIOS firmware upgrading operation can be automatically carried out on the plurality of servers based on the queried BIOS firmware upgrading file and the functional interface, and the BIOS firmware of the plurality of tested servers is upgraded to the expected BIOS firmware version.
Optionally, a plurality of BIOS firmware upgrade files are stored in the preset file database.
Optionally, the firmware upgrade type is upgrade BIOS firmware, and the file identification information is identification information of a BIOS firmware upgrade file for upgrading BIOS firmware of the plurality of tested servers to a desired firmware version. Among the BIOS firmware upgrade files stored in the preset file database, the target BIOS firmware upgrade file with the same identification information as the file identification information is a BIOS firmware upgrade file for upgrading the BIOS firmware of a plurality of tested servers to a desired firmware version, that is, a current firmware upgrade file corresponding to each tested server.
Optionally, the detecting, according to the firmware upgrade type and the file identification information, whether a current firmware upgrade file corresponding to each tested server exists in a preset file database, further includes: if the firmware upgrading type is to upgrade CPLD firmware, inquiring a target CPLD firmware upgrading file with the same identification information as the file identification information in each CPLD firmware upgrading file stored in a preset file database; if the target CPLD firmware upgrade file is queried, determining that the target CPLD firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database; if the target CPLD firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
Therefore, the CPLD firmware upgrading file for upgrading the CPLD firmware of the plurality of tested servers to the expected CPLD firmware version can be queried automatically according to the firmware upgrading information corresponding to the plurality of tested servers, so that unified CPLD firmware upgrading operation can be conducted on the plurality of servers automatically based on the queried CPLD firmware upgrading file and the functional interface, and the CPLD firmware of the plurality of tested servers is upgraded to the expected CPLD firmware version.
Optionally, a plurality of CPLD firmware upgrade files are stored in the preset file database.
Optionally, the firmware upgrade type is upgrade CPLD firmware, and the file identification information is identification information of a CPLD firmware upgrade file for upgrading the CPLD firmware of the plurality of tested servers to a desired firmware version. Among the CPLD firmware upgrade files stored in the preset file database, the target CPLD firmware upgrade file with the same identification information as the file identification information is a CPLD firmware upgrade file for upgrading the CPLD firmware of a plurality of tested servers to a desired firmware version, namely, a current firmware upgrade file corresponding to each tested server.
Optionally, if it is detected that the current firmware upgrade files corresponding to the tested servers do not exist in the preset file database, the preset file missing prompt information is sent to the terminal device of the target user. The preset file missing prompting information is used for prompting that a current firmware upgrading file corresponding to a plurality of tested servers does not exist in a preset file database, and unified firmware upgrading operation cannot be performed on the plurality of tested servers.
Step 103, if it is detected that the current firmware upgrade files corresponding to the tested servers exist in the preset file database, firmware upgrade is performed on the tested servers according to the firmware upgrade information and the current firmware upgrade files through a firmware upgrade function interface.
Optionally, the firmware upgrading function interface is a function interface written by a target user and arranged in the electronic device and used for upgrading the firmware of the server according to the BMC login information of the server and the current firmware upgrading file corresponding to the server. The electronic equipment sends the firmware upgrading information and the current firmware upgrading file corresponding to the server to the firmware upgrading function interface, so that the firmware upgrading function interface is called to upgrade the firmware of the server according to the firmware upgrading information and the current firmware upgrading file corresponding to the server. After receiving the firmware upgrading information and the current firmware upgrading file corresponding to the server, the firmware upgrading function interface logs in the BMC of the server according to the BMC login information of the server in the firmware upgrading information, uploads the current firmware upgrading file to the BMC of the server, verifies the current firmware upgrading file uploaded to the BMC according to the firmware upgrading information, and upgrades the BMC firmware, the BIOS firmware or the CPLD firmware of the server according to the current firmware upgrading file uploaded to the BMC if the verification of the current firmware upgrading file uploaded to the BMC is confirmed to be passed.
Optionally, the firmware upgrading of each tested server through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file includes: for each tested server, calling a firmware upgrading function interface, and executing the following operations through the firmware upgrading function interface: logging in the BMC of the tested server according to the BMC login information of the tested server in the firmware upgrading information, and uploading the current firmware upgrading file to the BMC of the tested server; the BMC login information of the tested server comprises an IP address, a login account and a login password of the BMC of the tested server; and upgrading the BMC firmware, the BIOS firmware or the CPLD firmware of the tested server according to the current firmware upgrading file uploaded to the BMC.
Therefore, the BMC firmware, the BIOS firmware or the CPLD firmware of the servers can be upgraded to the expected firmware version through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file corresponding to the servers, and unified firmware upgrading operation of the servers is completed.
Optionally, logging in the BMC of the tested server according to the BMC login information of the tested server in the firmware upgrade information, and uploading the current firmware upgrade file to the BMC of the tested server, including: establishing communication connection with the BMC of the tested server according to the IP address of the BMC of the tested server; logging in the BMC of the tested server according to the login account number and the login password of the BMC of the tested server; and uploading the current firmware upgrade file to the BMC of the tested server based on the established communication connection. And the electronic equipment establishes communication connection with the BMC of the tested server, and can perform information interaction with the BMC of the tested server based on the established communication connection. The electronic equipment logs in the BMC of the tested server, and the BMC of the tested server can be controlled by the control instruction to execute specified operation.
Optionally, upgrading the BMC firmware, the BIOS firmware, or the CPLD firmware of the server under test according to the current firmware upgrade file uploaded to the BMC includes: and sending a file running instruction to the BMC. The file running instruction is used for indicating the BMC running of the tested server to upload to the current firmware upgrading file of the BMC. And after receiving a file running instruction, the BMC runs a current firmware upgrading file uploaded to the BMC, so that BMC firmware to be upgraded, BIOS firmware or CPLD firmware of the tested server is upgraded to a desired firmware version.
Optionally, after firmware upgrading is performed on each tested server through a firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading file, the method further includes: acquiring the current firmware version of each tested server; comparing the expected firmware version with the current firmware version of each tested server, and determining whether each tested server is successfully upgraded according to the comparison result.
Therefore, the firmware upgrading result of each tested server can be verified according to the expected firmware version and the current firmware version of each tested server.
Optionally, obtaining the current firmware version of each tested server includes: and sending a firmware version query instruction to the BMC of each tested server. The firmware version query instruction is used for indicating the BMC of the tested server to feed back the current firmware version of the tested server. And after receiving the firmware version inquiry instruction, the BMC of each tested server sends the current firmware version of each tested server to the electronic equipment.
Optionally, the firmware upgrade type is to upgrade the BMC firmware, the current firmware version of each tested server is the BMC firmware version of the BMC firmware of each tested server at the current moment, and the expected firmware version is the BMC firmware version to which the BMC firmware of the plurality of tested servers is to be upgraded.
Optionally, the firmware upgrade type is to upgrade the BIOS firmware, the current firmware version of each tested server is the BIOS firmware version of each tested server at the current moment, and the expected firmware version is the BIOS firmware version of the plurality of tested servers to be upgraded.
Optionally, the firmware upgrade type is upgrade CPLD firmware, the current firmware version of each tested server is the CPLD firmware version of each tested server at the current moment, and the expected firmware version is the CPLD firmware version to which the CPLD firmware of a plurality of tested servers is to be upgraded.
Optionally, the firmware upgrade type is upgrade CPLD firmware, the current firmware version of each tested server is the CPLD firmware version of each tested server at the current moment, and the expected firmware version is the CPLD firmware version to which the CPLD firmware of a plurality of tested servers is to be upgraded.
Optionally, the determining whether each tested server is successfully upgraded according to the comparison result includes: if the expected firmware version is the same as the current firmware version of each tested server, determining that each tested server is successfully upgraded, and sending success prompt information corresponding to each tested server to terminal equipment of a target user; if the expected firmware version is different from the current firmware version of each tested server, determining that each tested server fails to upgrade, and sending failure prompt information corresponding to each tested server to the terminal equipment of the target user.
Therefore, success or failure of upgrading of each tested server can be determined according to the comparison result between the expected firmware version and the current firmware version of each tested server, and corresponding prompt information is provided.
Optionally, the success prompt information corresponding to each tested server is used for prompting that each tested server is successfully upgraded. The failure prompt information corresponding to each tested server is used for prompting the upgrading failure of each tested server.
According to the technical scheme, firmware upgrading information corresponding to a plurality of tested servers is obtained from the configuration file; the firmware upgrade information includes: the firmware upgrading type comprises upgrading BMC firmware, upgrading BIOS firmware or upgrading CPLD firmware, wherein the expected firmware version, file identification information and BMC login information of each tested server; then detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information; if the current firmware upgrading files corresponding to all the tested servers exist in the preset file database, the firmware upgrading is carried out on all the tested servers according to the firmware upgrading information and the current firmware upgrading files through the firmware upgrading function interface, the problem that a firmware upgrading scheme in the related technology is complicated and consumes a great deal of labor cost and time cost to influence the testing progress of the servers is solved, and the beneficial effects that the firmware to be upgraded of the servers is automatically upgraded to the expected firmware version according to the firmware upgrading information and the current firmware upgrading files corresponding to the servers through the firmware upgrading function interface, so that unified firmware upgrading operation on the servers is completed, the firmware upgrading efficiency is improved, the labor cost and the time cost of the firmware upgrading process are reduced, and the testing progress of the servers is improved are achieved.
Example two
Fig. 2 is a flowchart of a firmware upgrading method according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above. As shown in fig. 2, the method includes:
step 201, obtaining firmware upgrade information corresponding to a plurality of tested servers from the configuration file.
Wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware.
Step 202, if the firmware upgrade type is to upgrade the BMC firmware, inquiring a target BMC firmware upgrade file with the same identification information as the file identification information in each BMC firmware upgrade file stored in a preset file database.
Step 203, if the target BMC firmware upgrade file is queried, determining that the target BMC firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database.
Step 204, upgrading the BMC firmware of each tested server according to the firmware upgrading information and the current firmware upgrading file through a firmware upgrading function interface.
According to the technical scheme of the embodiment of the invention, the BMC firmware upgrading files for upgrading the BMC firmware of the plurality of tested servers to the expected BMC firmware version can be automatically queried according to the firmware upgrading information corresponding to the plurality of tested servers, unified BMC firmware upgrading operation can be automatically performed on the plurality of servers based on the queried BMC firmware upgrading files and the functional interfaces, and the BMC firmware of the plurality of tested servers is upgraded to the expected BMC firmware version.
Example III
Fig. 3 is a flowchart of a firmware upgrading method according to a third embodiment of the present invention, including the following steps:
step 301, obtaining firmware upgrade information corresponding to a plurality of tested servers from the configuration file.
Wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware.
Step 302, detecting whether a current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information.
Step 303, if it is detected that the current firmware upgrade files corresponding to the tested servers exist in the preset file database, calling a firmware upgrade function interface, logging in the BMCs of the tested servers according to the BMC login information of the tested servers in the firmware upgrade information through the firmware upgrade function interface, and uploading the current firmware upgrade files to the BMCs of the tested servers.
The BMC login information of each tested server comprises an IP address, a login account number and a login password of the BMC of each tested server.
And step 304, upgrading the BMC firmware, the BIOS firmware or the CPLD firmware of each tested server according to the current firmware upgrading file uploaded to the BMC of each tested server through the firmware upgrading function interface.
Step 305, obtaining the current firmware version of each tested server.
And 306, comparing the expected firmware version with the current firmware version of each tested server, and determining whether each tested server is successfully upgraded according to the comparison result.
According to the technical scheme, the firmware to be upgraded of the servers is automatically upgraded to the expected firmware version according to the firmware upgrading information and the current firmware upgrading file corresponding to the servers through the firmware upgrading function interface, unified firmware upgrading operation of the servers is completed, firmware upgrading efficiency is improved, labor cost and time cost of the firmware upgrading process are reduced, and testing progress of the servers is improved.
Example IV
Fig. 4 is a schematic structural diagram of a firmware upgrading apparatus according to a fourth embodiment of the present invention. The apparatus may be configured in an electronic device. As shown in fig. 4, the apparatus includes: an information acquisition module 401, a file detection module 402, and a firmware upgrade module 403.
The information obtaining module 401 is configured to obtain firmware upgrade information corresponding to a plurality of tested servers from a configuration file; wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware; the file detection module 402 is configured to detect whether a current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information; and the firmware upgrading module 403 is configured to, if it is detected that the preset file database includes a current firmware upgrading file corresponding to each tested server, perform firmware upgrading on each tested server according to the BMC login information of each tested server and the current firmware upgrading file through a firmware upgrading function interface.
According to the technical scheme, firmware upgrading information corresponding to a plurality of tested servers is obtained from the configuration file; the firmware upgrade information includes: the firmware upgrading type comprises upgrading BMC firmware, upgrading BIOS firmware or upgrading CPLD firmware, wherein the expected firmware version, file identification information and BMC login information of each tested server; then detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information; if the current firmware upgrading files corresponding to all the tested servers exist in the preset file database, the firmware upgrading is carried out on all the tested servers according to the firmware upgrading information and the current firmware upgrading files through the firmware upgrading function interface, the problem that a firmware upgrading scheme in the related technology is complicated and consumes a great deal of labor cost and time cost to influence the testing progress of the servers is solved, and the beneficial effects that the firmware to be upgraded of the servers is automatically upgraded to the expected firmware version according to the firmware upgrading information and the current firmware upgrading files corresponding to the servers through the firmware upgrading function interface, so that unified firmware upgrading operation on the servers is completed, the firmware upgrading efficiency is improved, the labor cost and the time cost of the firmware upgrading process are reduced, and the testing progress of the servers is improved are achieved.
In an optional implementation manner of the embodiment of the present invention, optionally, the file detection module 402 is specifically configured to: if the firmware upgrading type is to upgrade BMC firmware, inquiring a target BMC firmware upgrading file with the same identification information as the file identification information in each BMC firmware upgrading file stored in a preset file database; if the target BMC firmware upgrade file is queried, determining that the target BMC firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database; if the target BMC firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
In an optional implementation manner of the embodiment of the present invention, optionally, the file detection module 402 is specifically configured to: if the firmware upgrading type is to upgrade BIOS firmware, inquiring a target BIOS firmware upgrading file with the same identification information as the file identification information in each BIOS firmware upgrading file stored in a preset file database; if the target BIOS firmware upgrading file is queried, determining that the target BIOS firmware upgrading file is a current firmware upgrading file corresponding to each tested server, and determining that the current firmware upgrading file corresponding to each tested server exists in the preset file database; if the target BIOS firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
In an optional implementation manner of the embodiment of the present invention, optionally, the file detection module 402 is specifically configured to: detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information, and further comprising: if the firmware upgrading type is to upgrade CPLD firmware, inquiring a target CPLD firmware upgrading file with the same identification information as the file identification information in each CPLD firmware upgrading file stored in a preset file database; if the target CPLD firmware upgrade file is queried, determining that the target CPLD firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database; if the target CPLD firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
In an optional implementation manner of the embodiment of the present invention, optionally, the firmware upgrade module 403 is specifically configured to: for each tested server, calling a firmware upgrading function interface, and executing the following operations through the firmware upgrading function interface: logging in the BMC of the tested server according to the BMC login information of the tested server in the firmware upgrading information, and uploading the current firmware upgrading file to the BMC of the tested server; the BMC login information of the tested server comprises an IP address, a login account and a login password of the BMC of the tested server; and upgrading the BMC firmware, the BIOS firmware or the CPLD firmware of the tested server according to the current firmware upgrading file uploaded to the BMC.
In an optional implementation manner of the embodiment of the present invention, optionally, the firmware upgrade apparatus further includes: the version acquisition module is used for acquiring the current firmware version of each tested server; and the version comparison module is used for comparing the expected firmware version corresponding to each tested server with the current firmware version of each tested server, and determining whether each tested server is successfully upgraded according to the comparison result.
In an optional implementation manner of the embodiment of the present invention, an optional version comparison module is specifically used for: if the expected firmware version is the same as the current firmware version of each tested server, determining that each tested server is successfully upgraded, and sending success prompt information corresponding to each tested server to terminal equipment of a target user; if the expected firmware version is different from the current firmware version of each tested server, determining that each tested server fails to upgrade, and sending failure prompt information corresponding to each tested server to the terminal equipment of the target user.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The firmware upgrading device can execute the firmware upgrading method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the firmware upgrading method.
Example five
Fig. 5 shows a schematic diagram of the architecture of an electronic device 10 that may be used to implement the firmware upgrade method of an embodiment of the present invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program built into the Random Access Memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as firmware upgrade methods.
In some embodiments, the firmware upgrade method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When a computer program is built into RAM 13 and executed by processor 11, one or more steps of the firmware upgrade method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the firmware upgrade method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the firmware upgrade method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A firmware upgrade method, comprising:
firmware upgrading information corresponding to a plurality of tested servers is obtained from the configuration file; wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware;
Detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information;
if the fact that the current firmware upgrading files corresponding to all the tested servers exist in the preset file database is detected, firmware upgrading is conducted on all the tested servers through the firmware upgrading function interface according to the firmware upgrading information and the current firmware upgrading files.
2. The method of claim 1, wherein detecting whether a current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information comprises:
if the firmware upgrading type is to upgrade BMC firmware, inquiring a target BMC firmware upgrading file with the same identification information as the file identification information in each BMC firmware upgrading file stored in a preset file database;
if the target BMC firmware upgrade file is queried, determining that the target BMC firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database;
If the target BMC firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
3. The method of claim 2, wherein detecting whether a current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information, further comprises:
if the firmware upgrading type is to upgrade BIOS firmware, inquiring a target BIOS firmware upgrading file with the same identification information as the file identification information in each BIOS firmware upgrading file stored in a preset file database;
if the target BIOS firmware upgrading file is queried, determining that the target BIOS firmware upgrading file is a current firmware upgrading file corresponding to each tested server, and determining that the current firmware upgrading file corresponding to each tested server exists in the preset file database;
if the target BIOS firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
4. The method of claim 2, wherein detecting whether a current firmware upgrade file corresponding to each tested server exists in a preset file database according to the firmware upgrade type and the file identification information, further comprises:
if the firmware upgrading type is to upgrade CPLD firmware, inquiring a target CPLD firmware upgrading file with the same identification information as the file identification information in each CPLD firmware upgrading file stored in a preset file database;
if the target CPLD firmware upgrade file is queried, determining that the target CPLD firmware upgrade file is a current firmware upgrade file corresponding to each tested server, and determining that a current firmware upgrade file corresponding to each tested server exists in the preset file database;
if the target CPLD firmware upgrade file is not queried, determining that the current firmware upgrade file corresponding to each tested server does not exist in the preset file database.
5. The method of claim 1, wherein said performing firmware upgrade on each of said tested servers through a firmware upgrade function interface according to said firmware upgrade information and said current firmware upgrade file comprises:
For each tested server, calling a firmware upgrading function interface, and executing the following operations through the firmware upgrading function interface:
logging in the BMC of the tested server according to the BMC login information of the tested server in the firmware upgrading information, and uploading the current firmware upgrading file to the BMC of the tested server; the BMC login information of the tested server comprises an IP address, a login account and a login password of the BMC of the tested server;
and upgrading the BMC firmware, the BIOS firmware or the CPLD firmware of the tested server according to the current firmware upgrading file uploaded to the BMC.
6. The method of claim 1, further comprising, after performing firmware upgrade on each of the tested servers according to the firmware upgrade information and the current firmware upgrade file through a firmware upgrade function interface:
acquiring the current firmware version of each tested server;
comparing the expected firmware version with the current firmware version of each tested server, and determining whether each tested server is successfully upgraded according to the comparison result.
7. The method of claim 6, wherein determining whether each of the tested servers was successfully upgraded based on the comparison result comprises:
If the expected firmware version is the same as the current firmware version of each tested server, determining that each tested server is successfully upgraded, and sending success prompt information corresponding to each tested server to terminal equipment of a target user;
if the expected firmware version is different from the current firmware version of each tested server, determining that each tested server fails to upgrade, and sending failure prompt information corresponding to each tested server to the terminal equipment of the target user.
8. A firmware upgrade apparatus, comprising:
the information acquisition module is used for acquiring firmware upgrading information corresponding to a plurality of tested servers from the configuration file; wherein the firmware upgrade information includes: the method comprises the steps of updating firmware, expected firmware versions, file identification information and BMC login information of each tested server, wherein the firmware updating type is updating BMC firmware, updating BIOS firmware or updating CPLD firmware;
the file detection module is used for detecting whether a current firmware upgrading file corresponding to each tested server exists in a preset file database according to the firmware upgrading type and the file identification information;
And the firmware upgrading module is used for upgrading the firmware of each tested server according to the firmware upgrading information and the current firmware upgrading file through the firmware upgrading function interface if the current firmware upgrading file corresponding to each tested server exists in the preset file database.
9. An electronic device, the electronic device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the firmware upgrade method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the firmware upgrade method of any one of claims 1-7 when executed.
CN202310188925.2A 2023-02-22 2023-02-22 Firmware upgrading method, device, equipment and medium Pending CN116149709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310188925.2A CN116149709A (en) 2023-02-22 2023-02-22 Firmware upgrading method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310188925.2A CN116149709A (en) 2023-02-22 2023-02-22 Firmware upgrading method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116149709A true CN116149709A (en) 2023-05-23

Family

ID=86359939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310188925.2A Pending CN116149709A (en) 2023-02-22 2023-02-22 Firmware upgrading method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116149709A (en)

Similar Documents

Publication Publication Date Title
CN110691009B (en) Network equipment inspection method and device
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN116303069A (en) Test method, device, upper computer, system and medium of vehicle-mounted terminal
CN116301997A (en) Upgrading method, device, equipment and medium of controller
CN116467161A (en) Application testing method and device, electronic equipment and storage medium
CN116149709A (en) Firmware upgrading method, device, equipment and medium
CN116449810B (en) Fault detection method and device, electronic equipment and storage medium
CN116306400B (en) Integrated circuit verification method, system, device, equipment and medium
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN117520080A (en) Server testing method, device, equipment and medium
CN115543712A (en) Automatic detection method and device for equipment configuration information, electronic equipment and medium
CN117609087A (en) Code processing method, device, equipment and medium
CN116401113B (en) Environment verification method, device and medium for heterogeneous many-core architecture acceleration card
CN117539700A (en) Test management method, device, equipment and medium
CN113836016B (en) Writing interface storage quality testing method, system, electronic equipment and storage medium
CN116089307A (en) BIOS testing method, device, equipment and medium
CN116303074A (en) Server testing method, device, equipment and medium
CN117221158A (en) Micro-service application monitoring method, device, equipment and medium
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment and storage medium
CN117609801A (en) Data comparison method, device, equipment and medium
CN115599682A (en) Environment availability detection method, device, equipment and storage medium
CN117931155A (en) Code generation method, device, equipment and medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN117609150A (en) Data migration method, device, equipment and medium
CN117891673A (en) Screen configuration method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination