[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114138587A - Reliability verification method, device and equipment for upgrading server power firmware - Google Patents

Reliability verification method, device and equipment for upgrading server power firmware Download PDF

Info

Publication number
CN114138587A
CN114138587A CN202111242085.0A CN202111242085A CN114138587A CN 114138587 A CN114138587 A CN 114138587A CN 202111242085 A CN202111242085 A CN 202111242085A CN 114138587 A CN114138587 A CN 114138587A
Authority
CN
China
Prior art keywords
power supply
server
upgrading
power
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.)
Granted
Application number
CN202111242085.0A
Other languages
Chinese (zh)
Other versions
CN114138587B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111242085.0A priority Critical patent/CN114138587B/en
Publication of CN114138587A publication Critical patent/CN114138587A/en
Application granted granted Critical
Publication of CN114138587B publication Critical patent/CN114138587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)
  • Power Sources (AREA)

Abstract

The method comprises the steps of sending a preset fault register value to a power supply to be tested in a server power supply, reading a power failure signal sent by the power supply to be tested due to writing of the fault register value, and sending a power firmware upgrading instruction to the server power supply, so that the server power supply can upgrade the power firmware according to the upgrading instruction, and verifying the reliability of the upgrading of the power firmware of the server according to a power firmware upgrading result returned by the server power supply. By the technical scheme, the reliability verification of the power supply firmware upgrading of the server can be automatically carried out, the method is safe and reliable, and the reliability verification efficiency of the power supply firmware upgrading is improved.

Description

Reliability verification method, device and equipment for upgrading server power firmware
Technical Field
The present application relates to the field of network device technologies, and in particular, to a method, an apparatus, and a device for verifying reliability of a server power firmware upgrade, and a computer-readable storage medium.
Background
A Power Supply Unit (PSU) is generally used to Supply Power to a server because it has the advantages of stable and reliable Power Supply. The power supply is an important component of the server, and any power failure can affect the performance of components such as a CPU (central processing unit), a memory and the like. If the PSU in the server fails, the server cannot normally operate, and the operating data in the server is greatly influenced, so that economic loss is brought to users. When the power supply fails, the power supply firmware needs to be upgraded to restore the normal use of the power supply, so the reliability of the power supply firmware upgrade is very important.
In the related art, the power reliability upgrade test mainly triggers a power failure by using a special fixture to pin a power fan, and then upgrades the power firmware to verify the reliability of the power firmware upgrade. The method can cause certain damage to the power supply and affect the service life of the power supply, and the method needs to artificially fix the jig on the power supply fan, so that certain potential safety hazards exist for testing personnel. In addition, after the jig needs to be manually removed by using the method, the power firmware is refreshed, so that automation cannot be realized, and the testing efficiency is influenced.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for verifying the reliability of a server power firmware upgrade, which can improve the verification efficiency and ensure the safety.
In a first aspect, the present application provides a method for verifying reliability of firmware upgrade of a server power supply, where the server power supply includes a plurality of power supplies, the method including:
acquiring a fault simulation instruction, and sending a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction;
reading a power failure signal sent by a power supply to be tested due to the writing of a failure register value, and sending a power firmware upgrading instruction to a server power supply according to the power failure signal so that the server power supply can upgrade the power firmware according to the upgrading instruction;
and receiving a power supply firmware upgrading result returned by the server power supply, and verifying the reliability of the server power supply firmware upgrading according to the upgrading result.
In one implementation, the step of sending a preset fault register value to a power supply to be tested in the server power supply according to the fault simulation instruction includes:
determining a simulated power failure to be tested according to the failure simulation instruction;
and sending a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply, so that the power supply to be tested modifies a register state bit in the power supply to be tested according to the fault register value to simulate the corresponding power failure.
In one implementation, the step of verifying the reliability of the upgrade of the power firmware of the server according to the upgrade result includes:
determining the upgrading sequence and upgrading state of each power supply in the server power supply according to the upgrading result;
and obtaining the verification result of the upgrading reliability of the server power supply according to the upgrading sequence and the upgrading state.
In one implementation manner, the step of obtaining the verification result of the upgrade reliability of the server power supply according to the upgrade sequence and the upgrade status includes:
judging whether a power supply which is preferentially upgraded in each power supply in the server power supply is a power supply to be tested or not according to the upgrading sequence;
judging whether each power supply in the server power supply is successfully upgraded or not according to the upgrading state;
if the power supply to be upgraded preferentially is the power supply to be tested and each power supply in the server power supply is upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure passes;
and if the power supply to be preferentially upgraded is not the power supply to be tested and/or the power supply existing in the server power supply is not upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure does not pass.
In one implementation mode, the reliability of power firmware upgrading is verified for a plurality of power supplies to be tested;
the step of sending a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply comprises:
sending a fault register value corresponding to a simulated power failure to a first power supply to be tested in a server power supply;
and after the power firmware upgrading corresponding to the first power supply to be tested is determined to be completed, sending a fault register value to a second power supply to be tested in the server power supply, and repeating the steps until the fault register value is sent to each power supply to be tested in the server power supply, so as to verify the reliability of the power firmware upgrading of each power supply to be tested under the condition of simulating power supply faults.
In one implementation manner, after the step of obtaining the verification result of the upgrade reliability of the server power supply according to the upgrade order and the upgrade status, the method further includes:
and displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
In one implementation manner, before the step of sending a preset fault register value to a power supply to be tested in a server power supply according to a fault simulation instruction, the method further includes:
presetting a plurality of different fault register values; wherein, every fault register value corresponds unique simulation power failure, and simulation power failure includes: the power supply voltage is higher than one or more of the first preset value, the power supply voltage is lower than the second preset value, the power supply current is higher than the third preset value, the power supply current is lower than the fourth preset value, the power supply temperature is higher than the fifth preset value and the power supply temperature is lower than the sixth preset value.
In a second aspect, the present application further provides an apparatus for verifying reliability of firmware upgrade of a server power supply, where the apparatus includes:
the register value sending module is used for acquiring a preset fault simulation instruction and sending a preset fault register value to a power supply to be tested in the server power supply according to the fault simulation instruction;
the upgrading instruction sending module is used for reading a power failure signal sent by the power supply to be tested due to the fact that the power failure register value is written in, and sending a power firmware upgrading instruction to the server power supply according to the power failure signal, so that the server power supply can upgrade the power firmware according to the upgrading instruction;
and the reliability verification module is used for receiving a power supply firmware upgrading result returned by the server power supply and verifying the reliability of the server power supply firmware upgrading according to the upgrading result.
In a third aspect, the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method for verifying the reliability of the upgrade of the server power firmware mentioned in the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the reliability verification method for server power firmware upgrade as mentioned in the first aspect.
According to the reliability verification method, device, computer equipment and storage medium for updating the server power firmware, the preset fault register value is sent to the power supply to be tested in the server power supply, the power failure signal sent by the power supply to be tested due to the fact that the fault register value is written in is read, the power firmware updating instruction is sent to the server power supply according to the power failure signal, so that the server power supply can perform updating operation according to the updating instruction, and the reliability of updating the server power firmware is verified according to the power firmware updating result returned by the server power supply. According to the technical scheme, the preset fault register value is utilized, the internal register value of the power supply to be tested in the server power supply is modified by the fault register value to simulate the power supply fault, the jig does not need to be clamped and loosened manually to trigger the power supply fault, and the method is safe and reliable. In addition, the BMC sends a power firmware upgrading instruction to the server power supply according to the simulated power failure corresponding to the failure register value written by the power supply to be tested, so that each power supply can upgrade the power firmware under various simulated power failures, and the reliability of the power firmware upgrading is verified according to the upgrading result, so that the reliability verification of the server power firmware upgrading is simply and quickly realized, manual operation is not needed, safety and reliability are realized, automatic testing is realized, and the manual verification cost is saved.
Drawings
FIG. 1 is a schematic diagram illustrating an application scenario of a reliability verification method for firmware upgrade of a server power supply in an embodiment;
FIG. 2 is a flow diagram of a method for reliability verification of a server power firmware upgrade, under an embodiment;
FIG. 3 is another flow diagram of a method for verifying the authenticity of a firmware upgrade for a server power supply according to an embodiment;
FIG. 4 is a schematic diagram illustrating an apparatus for verifying reliability of firmware upgrade of a server power supply according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to facilitate understanding of the application scheme, an application environment to which the embodiments of the present application are applicable is first described.
Fig. 1 is a schematic view of an application scenario of a reliability verification method for upgrading a server Power firmware in an embodiment, as shown in fig. 1, the application environment includes a Baseboard Management Controller (BMC) and a server Power source, which are communicatively connected, the server Power source includes a plurality of Power Supply Units (PSUs) for supplying Power to a server, the BMC may be connected to the server Power source through an I2C (Inter-Integrated Circuit) bus to implement communication between the BMC and the server Power source, for example, the BMC obtains fault information of the server Power source through an I2C bus, and the BMC sends a Power firmware upgrade instruction to the server Power source through an I2C bus. Of course, the BMC may also be coupled to the server power line via other communication means, such as a PECI bus. The BMC may also be connected to other devices through another communication method such as an IPMI (Intelligent Platform Management Interface) bus, a PCI (Peripheral Component Interconnect) bus, and the like to monitor the state of each device in the system.
The BMC is a specialized service processor, a baseboard management system on a server, which monitors the state of a computer, web server, or other hardware driven device using sensors, interfaces with the main processor and the components on the board, monitors and manages the state of the physical components to some extent. In this embodiment, the BMC reads the values of the sensors inside the power supply through the I2C bus to obtain information such as the voltage, current, and temperature of the server power supply. The BMC is also responsible for important functions of asset information display, hardware monitoring, heat dissipation regulation and control, system configuration, remote monitoring, log collection, fault diagnosis, system maintenance and the like of the server. In addition, the BMC may also communicate with a system administrator through a separate connection to receive control and management instructions triggered by the system administrator.
When a server power supply fails to supply power to the server, power firmware upgrading needs to be immediately carried out to recover normal use of the power supply, so that the reliability of the power firmware upgrading needs to be verified to ensure that the power firmware upgrading can recover the normal use of the power supply. For power firmware upgrade, the output voltage of the PSU to be upgraded is cut off, and the new power firmware version is burned online by the BMC. If the power supply state of the PSU subjected to the burning is qualified, the PSU subjected to the burning and qualified is used for supplying power to the server, and then the PSU to be upgraded next in the power supply of the server is upgraded until all the PSUs are upgraded.
In the related art, the power reliability upgrade test mainly uses a special fixture to pin a power fan, so that the power of the power fan is increased to trigger a power failure, such as an excessive power output voltage, and then the power firmware is upgraded to verify the reliability of the power firmware upgrade.
However, the power supply is damaged to some extent by using a special jig to clamp the power supply fan to trigger the power supply failure, which affects the service life of the power supply. In addition, the power firmware can be refreshed only by manually removing the jig by using the method, so that automation cannot be realized, and the testing efficiency is influenced. Moreover, the type of the trigger power failure is too single, and it is difficult to verify the reliability of the power firmware upgrade of each power supply in the server power supply under various power failures, which affects the accuracy of the verification reliability result.
The reliability verification method and device for the server power firmware upgrading, the computer equipment and the storage medium can automatically and quickly verify the reliability of the server power firmware upgrading, improve the accuracy of verification results and solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a reliability verification method for a server power firmware upgrade in an embodiment, where the reliability verification method for a server power firmware upgrade may be executed by a reliability verification device for a server power firmware upgrade, and optionally, in this embodiment, may be executed by a BMC. In this embodiment, the server power supply includes a plurality of power supply PSUs.
Specifically, as shown in fig. 2, the method for verifying the reliability of the upgrade of the server power firmware may include the following steps:
s210, a fault simulation instruction is obtained, and a preset fault register value is sent to a power supply to be tested in the server power supply according to the fault simulation instruction.
In this embodiment, a plurality of different fault register values may be preset to respectively correspond to different analog fault types, and each fault register value corresponds to a unique analog power failure. When a power failure is simulated, the value of the failure register corresponding to the simulated power failure is sent to the power supply, and the power supply modifies the value of the internal register of the power supply according to the value of the failure register, so that the power supply simulates the corresponding power failure.
Optionally, the fault register value may be preset in the BMC system, the BMC system sends a preset fault register value to a power supply to be tested in the server power supply, or different fault register values may be preset by the upper computer, and the BMC system sends corresponding control information to the upper computer according to the fault simulation instruction to control the upper computer to send the preset fault register value to the power supply to be tested in the server power supply.
It should be noted that the value of the fault register may be set according to the value of the register in the power supply in the actual power supply fault, that is, when a power supply has a certain type of power supply fault, the value of the register in the power supply under the power supply fault is X, and when the power supply fault of the type is simulated, the value of the fault register corresponding to the simulated power supply fault is set according to the value X of the register in the power supply.
The user triggers the fault simulation instruction at the BMC system. Optionally, the user may trigger the corresponding fault simulation instruction according to the simulated power failure type by selecting the corresponding simulated power failure type. For example, analog power failure types include: the power supply system comprises a power supply, a power supply control unit and a control unit, wherein the power supply comprises a plurality of types, such as overhigh power supply voltage (namely the power supply voltage is higher than a first preset value), overlow power supply voltage (namely the power supply voltage is lower than a second preset value), overhigh power supply current (namely the power supply current is higher than a third preset value), overlow power supply current (namely the power supply current is lower than a fourth preset value), overhigh power supply temperature (namely the power supply temperature is higher than a fifth preset value), overlow power supply temperature (namely the power supply temperature is lower than a sixth preset value), and the like. The first preset value, the second preset value, the third preset value, the fourth preset value, the fifth preset value and the sixth preset value can be set according to actual conditions.
The BMC system obtains the fault simulation instruction, analyzes the fault simulation instruction to determine a simulation fault type corresponding to the fault simulation instruction, and calls a preset fault register value corresponding to the simulation fault type.
S220, reading a power failure signal sent by the power supply to be tested due to the fact that the power supply is written into the failure register value, and sending a power firmware upgrading instruction to the server power supply according to the power failure signal, so that the server power supply can upgrade the power firmware according to the upgrading instruction.
When the power supply to be tested receives a fault register value sent by the BMC system, the fault register value is written into an internal corresponding register, an original value in the register is modified into the fault register value, the power supply to be tested reads the modified value of the internal register, the power supply to be tested mistakenly judges that a power failure corresponding to the modified value of the internal register occurs, and a power failure signal is sent to the BMC, so that the purpose that the power supply simulates the power failure is achieved.
The BMC system receives a power failure signal sent by a power supply to be tested, and sends a power firmware upgrading instruction to the server power supply in response to the power failure signal, so that each power supply in the server power supply carries out power firmware upgrading operation. Generally, when a power supply fails and a power firmware upgrade operation is performed, the power supply is recovered to normal.
And S230, receiving a power supply firmware upgrading result returned by the server power supply, and verifying the reliability of the server power supply firmware upgrading according to the upgrading result.
For the power firmware upgrading, the power firmware is subjected to online burning again to update the power firmware information.
The server power supply carries out power firmware upgrading to each power supply ware, records information such as upgrading order and upgrading state of each power supply ware of power firmware upgrading and obtains power firmware upgrading result, and the upgrading state includes: successful upgrade, failed upgrade, etc. Optionally, the power firmware upgrade result may further include information such as an upgrade start time or an upgrade end time of each power supply, a power supply identifier, and a server power source to which the power supply belongs.
The BMC system receives a power supply firmware upgrading result returned by the server power supply, and compares the upgrading result with an ideal upgrading result to verify the reliability of the upgrading of the server power supply firmware. And if the target information in the received upgrading result is compared with the corresponding information in the ideal upgrading result, if the target information and the ideal upgrading result are in accordance, determining that the upgrading reliability of the server power supply firmware is passed, and otherwise, determining that the upgrading reliability of the server power supply firmware is not passed.
In order to improve the stability of the verification result of the upgrading reliability of the server power supply firmware, the server power supply firmware can be repeatedly tested for multiple times based on the upgrading of the server power supply firmware under the same simulated power supply fault, and the upgrading reliability of the server power supply firmware can be comprehensively evaluated according to the repeated testing results of the multiple times.
The reliability verification method for updating the server power firmware provided by this embodiment may be executed by a BMC system, where the server power includes a plurality of power supplies, and sends a preset fault register value to a power supply to be tested in the server power; receiving a power failure signal sent by a power supply to be tested due to the fact that a failure register value is written in, and sending a power firmware upgrading instruction to a server power supply in response to the power failure signal so that the server power supply can upgrade power firmware according to the upgrading instruction; the method and the device receive the power supply firmware upgrading result returned by the server power supply, verify the reliability of the server power supply firmware upgrading according to the upgrading result, thereby simply and quickly realizing the reliability verification of the server power supply firmware upgrading without manual operation, are safe and reliable, realize automatic testing and save the manual verification cost.
Compared with the reliability verification method for power firmware upgrading in the related art, the technical scheme utilizes the preset fault register value, and utilizes the fault register value to modify the internal register value of the power supply to be tested in the server power supply so as to simulate the power failure, so that the power failure is triggered without manually pinning or loosening a jig, and the method is safe and reliable. The BMC sends a power firmware upgrading instruction to the server power supply according to the simulated power failure corresponding to the failure register value written by the power supply to be tested, so that each power supply can upgrade the power firmware under various simulated power failures, the reliability of the power firmware upgrading is verified according to the upgrading result, the verification automation is realized, and the verification efficiency and the accuracy of the verification result are improved.
In order to more clearly illustrate the technical solution of the present application, the following further describes an implementation manner of a plurality of steps of the reliability verification method for the server power firmware upgrade.
In an embodiment, the step S210 of sending the preset fault register value to the power supply to be tested in the server power supply according to the fault simulation instruction may include the following steps:
s2101, determining the simulated power supply fault to be tested according to the fault simulation instruction.
Optionally, a mapping relationship between different fault simulation instructions and corresponding simulated power supply faults is established in advance. When a certain simulated power failure is determined, the corresponding failure register value of the simulated power failure can be obtained through query according to the mapping relation.
In this embodiment, the fault simulation instruction includes information of the simulated power failure selected by the user to be tested. The BMC obtains the fault simulation instruction, analyzes the fault simulation instruction and determines the to-be-tested simulated power supply fault corresponding to the fault simulation instruction.
S2102, sending a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply, so that the power supply to be tested modifies a register state bit in the power supply to be tested according to the fault register value to simulate the corresponding power failure.
The server power supply includes a plurality of power supplies, such as PSU0, PSU1, PUS2, PSU3, and the like. Initially, one of the plurality of power supplies is arbitrarily selected as the power supply to be tested, such as the PSU0 as the power supply to be tested. Then, when the next reliability test is performed, one of the other untested power supplies is arbitrarily selected as the power supply to be tested, for example, PSU1 is used as the power supply to be tested. And in this way, each power supply is used as a power supply to be tested to verify the reliability of the upgrade of the power firmware of the server.
And the BMC system sends a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply. And the power supply to be tested receives the fault register value, writes the fault register value into an internal register, and replaces the original register value with the fault register value. The fault register value represents the value of the internal register when the power supply fails, but the power supply to be tested reads the fault register value in the internal register after writing the fault register value into the internal register, and the fault register value is mistaken for the power failure of the power supply to simulate the power failure corresponding to the fault register value.
In an embodiment, verifying the reliability of the upgrade of the server power firmware according to the upgrade result in step S230 may include the following steps:
s2301, determining the upgrading sequence and upgrading state of each power supply in the server power supply according to the upgrading result.
The upgrade result includes various information related to the server power supply in the upgrade process, including information such as the upgrade sequence, upgrade status (i.e., whether the upgrade is successful), upgrade time, and register value after upgrade of the power firmware of each power supply.
And obtaining the upgrading time of each power supply from various information of the upgrading result, and determining the upgrading sequence of each power supply according to the upgrading time. And acquiring register values of each power supply from various information of the upgrading result, and determining the upgrading state of each power supply according to the register values or determining the upgrading state of each power supply according to the power state of the upgraded power supply. Of course, in other embodiments, the upgrade order and the upgrade status of each power supply may also be determined according to other parameters in the upgrade result.
And S2302, obtaining an upgrade reliability verification result of the server power supply according to the upgrade sequence and the upgrade state.
By upgrade reliability, is meant the ability or likelihood that the power supply firmware will perform an upgrade operation without failure.
In the embodiment, the reliability of the power firmware upgrade of the server power supply is evaluated according to the power firmware upgrade sequence and upgrade state of each power supply.
In an embodiment, the obtaining of the verification result of the upgrade reliability of the server power according to the upgrade order and the upgrade status in step S2302 may include the following steps:
s301, judging whether the power supply which is preferentially upgraded in each power supply in the server power supply is the power supply to be tested according to the upgrading sequence.
Optionally, the upgrading of each power supply is performed one by one, and when one power supply is upgraded, the next power supply is upgraded.
And determining the upgrading sequence of each power supply in the server power supply according to the upgrading time of each power supply, wherein the upgrading time can be upgrading starting time and upgrading ending time. By comparing the upgrade time of each power supply, it is determined whether the power supply which is upgraded preferentially (upgraded first) is the power supply to be tested.
S302, judging whether each power supply in the server power supply is upgraded successfully according to the upgrading state.
Optionally, the upgrade state of each power supply in the server power supply may be determined by the value of the register before and after the upgrade of each power supply, the upgrade state of each power supply may be determined according to whether each power supply sends a power failure signal, and further, whether each power supply is upgraded successfully is determined according to the upgrade state.
And S303, if the power supply to be preferentially upgraded is the power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrade reliability test of the server power supply under the simulated power failure passes.
The upgrading state of the power supply after the power firmware is upgraded is judged, and only when the upgrading state of the PSU after the power firmware is upgraded is qualified/passed, the PSU can be used as a new redundant standby PSU to supply power to the server, so that the stability of the power supply of the server is improved. When the power supply to be tested is the first PSU for power firmware upgrade, the PSUs supplying power to the server are all normal PSUs.
If the first power supply for upgrading the power firmware is the power supply to be tested in the power firmware upgrading of each power supply of the server power supply, and each power supply is successfully upgraded, determining that the upgrading reliability test of the server power supply under the simulated power failure corresponding to the fault register value passes.
S304, if the power supply which is preferentially upgraded is not the power supply to be tested and/or the power supply existing in the server power supply is not upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure does not pass.
If the first power supply for upgrading the power firmware is not the power supply to be tested in the power firmware upgrading of each power supply of the server power supply, it indicates that a situation exists in the power firmware upgrading process of the server power supply that the power supply to be tested with the power failure supplies power to the server, and the power supply to be tested with the power failure actually cannot supply power to the server, so that the server cannot work and the stability of the server is affected.
In this embodiment, if, in the power firmware upgrade of each power supply of the server power supply, the first power supply performing the power firmware upgrade is not the power supply to be tested, or there is no successful upgrade of the power supply, or the first power supply performing the power firmware upgrade is not the power supply to be tested and there is no successful upgrade of the power supply, in such a case, there is a case that the server is powered by the power supply to be tested having the power failure in the power firmware upgrade process of the server power supply, it is determined that the upgrade reliability test of the server power supply under the simulated power failure corresponding to the failure register value fails.
In one embodiment, reliability verification of power firmware upgrade is performed on a plurality of power supplies to be tested to verify reliability of power firmware upgrade performed when each PSU in a server power supply has a power failure.
In an embodiment, the step S2102 of sending the fault register value corresponding to the simulated power failure to the power supply to be tested in the server power supply may include the following steps:
s401, sending a fault register value corresponding to the simulated power failure to a first power supply to be tested in the server power supply.
There are multiple power supplies in the server power, such as PSU0, PSU1, PSU2, and PSU3, respectively. The BMC system sends the fault register value corresponding to the simulated power failure to the first power supply to be tested PSU0 in the server power supply.
Optionally, the BMC system executes the following instructions: i2c-test-b 11-s 0x 58-m 1-w-d 0x 400 x 000 x18, simulating a power failure with too high power supply output voltage for PSU 0. Wherein, 0x58 is used to indicate the power supply to be tested is PSU0, and 0x 400 x 000 x18 is used to indicate the power failure that the output voltage of the analog power supply is too high.
S402, after the power firmware upgrading corresponding to the first power supply to be tested is determined to be completed, sending a fault register value to a second power supply to be tested in the server power supply, and so on until the fault register value is sent to each power supply to be tested in the server power supply, so as to verify the reliability of the power firmware upgrading of each power supply to be tested under the condition of simulating power supply faults.
And the BMC system receives a power failure signal sent by the first power supply to be tested, and upgrades the power firmware of each PSU in the server power supply. For example, the BMC system receives a power failure signal with an excessively high power output voltage sent by the first power supply to be tested PSU0, and upgrades the power firmware of each PSU in the server power supply. And according to the upgrading sequence and the upgrading state of the power firmware upgrading, determining the reliability of the power firmware upgrading of the server power supply under the condition that the PSU0 has power supply fault with overhigh power supply output voltage.
After the reliability of the power firmware upgrade is verified for the first power supply under test PSU0, the same fault register value is sent to the second power supply under test PSU1, such as a BMC system execution instruction: i2c-test-b 11-s 0x 59-m 1-w-d 0x 400 x 000 x18, simulating a power failure with an excessive power output voltage to the PSU1, wherein 0x59 is used for indicating that the power supply to be tested is the PSU10, and 0x 400 x 000 x18 is used for indicating that the power failure with the excessive power output voltage is simulated.
The BMC system receives a power failure signal that the power output voltage is too high and sent by the second power supply to be tested PSU1, and upgrades the power firmware of each PSU in the server power supply. And according to the upgrading sequence and the upgrading state of the power firmware upgrading, determining the reliability of the power firmware upgrading of the server power supply under the condition that the PSU1 has power supply fault with overhigh power supply output voltage.
And repeating the steps until the fault register value is sent to each power supply to be tested in the server power supply so as to verify the reliability of the power firmware upgrade of each power supply to be tested under the condition of simulating power supply faults.
In this embodiment, different fault register values may also be sent to each power supply to be tested, so as to verify the reliability of power firmware upgrade of each power supply to be tested under different analog power failures. For example, in addition to verifying the reliability of power firmware upgrade of each power supply to be tested in the case of a power failure with too high power output voltage, the reliability of power firmware upgrade of each power supply to be tested in the case of a power failure with too low power output voltage, too high power output current, too low power output current, too high power temperature, too low power temperature, and the like can also be verified.
In an embodiment, after obtaining the verification result of the upgrade reliability of the server power supply according to the upgrade order and the upgrade status in step S2302, the method further includes the following steps:
s2303, displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
Presenting the upgrading sequence and the corresponding upgrading state of each power supply in the server power supply in a list form, and determining whether the verification result is verified to be passed or not by combining the upgrading sequence and the upgrading state of each power supply.
Optionally, the BMC system includes a display screen, and displays the upgrading sequence of each power supply of the server power supply, the upgrading state corresponding thereto, and the verification result in a form of a list through a visual interface of the display screen. Optionally, a display device may be connected to the BMC system, and the BMC system generates a corresponding update information list according to the update sequence of each power supply of the server power supply, the corresponding update state, and the verification result, sends the update information list to the display device, and displays the update information list through a visual interface of the display device.
In order to more clearly illustrate the technical solution of the present application, the following examples are taken for a detailed description. This example is illustrated with two power supplies in the server power supply having PSU0 and PSU 1.
As shown in fig. 3, fig. 3 is another flowchart of a reliability verification method for a server power firmware upgrade according to an embodiment, where the reliability verification method for a server power firmware upgrade includes the following steps:
s501, the BMC system receives a login instruction of a user.
A user may remotely log into the BMC system using SSH (Secure Shell) via SSH BMC OS commands.
S502, the BMC system receives a power failure simulation instruction to the PSU0 triggered by a user, so that the PSU0 simulates a power failure.
The user triggers and executes the fault simulation instruction with the overhigh power output voltage by triggering the fault simulation instruction at the BMC system, for example, the user selects a 'overhigh power output voltage' simulation fault button on the BMC system: i2c-test-b 11-s 0x 58-m 1-w-d 0x 400 x 000 x18, simulating a power supply output voltage over-fault to PSU 0.
The BMC system obtains the fault simulation instruction, analyzes the fault simulation instruction to determine a simulation fault type corresponding to the fault simulation instruction, sends a preset fault register value corresponding to the simulation fault type to the current power supply to be tested PSU 0.
The PSU0 receives a fault register value sent by the BMC system, writes the fault register value into an internal corresponding register, modifies an original value in the register into a fault register value, reads the modified value of the internal register by the power supply to be tested, mistakenly regards a power failure corresponding to the modified value of the internal register, and sends a power failure signal to the BMC, so that the purpose that the PSU0 simulates the power failure with overhigh power voltage is achieved.
S503, the server power supply upgrades the power firmware of each PSU against the simulated power failure of the PSU 0.
The BMC system determines a power failure signal sent by the PSU0 and sends a power firmware upgrade instruction to the server power supply, so that each power supply in the server power supply performs a power firmware upgrade operation.
S504, judging whether the PSU0 is preferentially upgraded in the server power supply or not and all the PSUs are successfully upgraded; if so, go to step S505, otherwise go to step S509.
If the power supply unit which is preferentially upgraded in the server power supply is the PSU0 and all PSUs are successfully upgraded, determining that the power firmware upgrade reliability of the PSU0 under the power failure with the overhigh power output voltage passes, and performing power firmware upgrade reliability verification on the next power supply unit, otherwise, determining that the power firmware upgrade reliability of the PSU0 under the power failure with the overhigh power output voltage does not pass, and ending the reliability verification.
S505, the BMC system receives a power failure simulation instruction to the PSU1 triggered by a user, so that the PSU1 simulates a power failure.
Similarly, the BMC system executes a power output voltage over-high fault simulation instruction: i2c-test-b 11-s 0x 59-m 1-w-d 0x 400 x 000 x18, simulating a power failure with too high power supply output voltage for PSU 1.
The BMC system obtains the fault simulation instruction, analyzes the fault simulation instruction to determine a simulation fault type corresponding to the fault simulation instruction, sends a preset fault register value corresponding to the simulation fault type to the current power supply to be tested PSU 1.
The PSU1 receives the fault register value, writes the fault register value into the corresponding internal register, modifies the original value in the register into the fault register value, and the power supply to be tested reads the modified value of the internal register, mistakenly determines that the power fault corresponding to the modified value of the internal register occurs, and sends a power fault signal to the BMC, so that the purpose that the PSU1 simulates the power fault with the over-high power voltage is achieved.
S506, the server power supply upgrades the power firmware of each PSU for the simulated power failure of the PSU 1.
The BMC system sends a power firmware upgrading instruction to the server power supply, so that each power supply in the server power supply carries out power firmware upgrading operation.
S507, judging whether the PSU1 is preferentially upgraded in the server power supply or not and all the PSUs are successfully upgraded; if so, go to step S508, otherwise go to step S509.
If the power supply unit which is preferentially upgraded in the server power supply is the PSU1 and all PSUs are successfully upgraded, determining that the power firmware upgrade reliability of the PSU1 under the power failure with the overhigh power output voltage passes, and performing power firmware upgrade reliability verification on the next power supply unit, otherwise, determining that the power firmware upgrade reliability of the PSU1 under the power failure with the overhigh power output voltage does not pass, and ending the reliability verification.
And S508, determining that the reliability of the server power firmware upgrade is verified.
And S509, determining that the reliability verification of the upgrade of the server power supply firmware is not passed.
By analogy, the reliability verification of the power firmware can be performed on other PSUs in the server power supply by simulating the power supply fault with the overhigh power supply output voltage, and the reliability verification of the power firmware upgrade can be performed on the power supply supplier of the server power supply by simulating other power supply faults, such as the condition that the power supply output voltage is too low, the power supply output current is too high, the power supply output current is too low, the power supply temperature is too high, the power supply temperature is too low, and the like.
The above examples are merely used to assist in explaining the technical solutions of the present disclosure, and the drawings and specific flows related thereto do not constitute a limitation on the usage scenarios of the technical solutions of the present disclosure.
The following describes in detail a related embodiment of the reliability verification apparatus for server power firmware upgrade.
Fig. 4 is a schematic structural diagram of an apparatus for verifying reliability of a server power firmware upgrade according to an embodiment, where the apparatus for verifying reliability of a server power firmware upgrade may be implemented in a server.
As shown in fig. 4, the reliability verification apparatus 200 for server power firmware upgrade may include: a register value transmitting module 210, an upgrade instruction transmitting module 220, and a reliability verifying module 230.
The register value sending module 210 is configured to obtain a preset fault simulation instruction, and send a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction;
an upgrade instruction sending module 220, configured to read a power failure signal sent by the power supply to be tested due to the writing of the failure register value, and send a power firmware upgrade instruction to the server power supply according to the power failure signal, so that the server power supply performs power firmware upgrade according to the upgrade instruction;
and the reliability verification module 230 is configured to receive a power firmware upgrade result returned by the server power supply, and verify the reliability of the server power firmware upgrade according to the upgrade result.
The reliability verification device for the upgrading of the server power firmware is characterized in that a preset fault register value is sent to a power supply to be tested in a server power supply through a register value sending module 210, an upgrading instruction sending module 220 reads a power failure signal sent by the power supply to be tested due to the fact that the fault register value is written in, and sends a power supply firmware upgrading instruction to the server power supply, so that the server power supply carries out power supply firmware upgrading according to the upgrading instruction, the reliability verification module 230 verifies the reliability of the upgrading of the server power supply firmware according to a power supply firmware upgrading result returned by the server power supply, a user does not need to use a jig to hold a power supply fan for reliability verification of the upgrading of the power supply firmware, the reliability verification device is safe and reliable, automatic testing can be achieved, and testing efficiency is improved.
In one embodiment, the register value sending module 210 includes: the device comprises an analog power failure determining unit and a failure register value sending unit; the device comprises a simulation power supply fault determining unit, a fault simulation unit and a fault simulation unit, wherein the simulation power supply fault determining unit is used for determining a simulation power supply fault to be tested according to a fault simulation instruction; and the fault register value sending unit is used for sending a fault register value corresponding to the simulated power supply fault to a power supply to be tested in the server power supply, so that the power supply to be tested modifies a register state bit in the power supply to be tested according to the fault register value to simulate the corresponding power supply fault.
In one embodiment, the reliability verification module 230 includes: an upgrade information determination unit and a verification result obtaining unit; the system comprises an upgrading information determining unit, a judging unit and a judging unit, wherein the upgrading information determining unit is used for determining the upgrading sequence and the upgrading state of each power supply in the server power supply according to the upgrading result; and the verification result obtaining unit is used for obtaining the verification result of the upgrading reliability of the server power supply according to the upgrading sequence and the upgrading state.
In one embodiment, the verification result obtaining unit includes: the upgrading sequence judging subunit, the upgrading state judging subunit, the test passing confirming subunit and the test not passing confirming subunit; the upgrading sequence judging subunit is used for judging whether a power supply which is preferentially upgraded in each power supply in the server power supply is a power supply to be tested according to the upgrading sequence; the upgrading state judging subunit is used for judging whether each power supply in the server power supply is upgraded successfully or not according to the upgrading state; the test passing determination subunit is used for determining that the upgrade reliability test of the server power supply under the simulated power failure passes if the power supply to be upgraded preferentially is the power supply to be tested and each power supply in the server power supply is upgraded successfully; and the test non-passing determining subunit is used for determining that the upgrade reliability test of the server power supply under the simulated power failure does not pass if the power supply which is preferentially upgraded is not the power supply to be tested and/or the upgrade of the power supply existing in the server power supply is unsuccessful.
In one embodiment, the reliability of power firmware upgrade is verified for a plurality of power supplies to be tested; the fault register value sending unit is specifically used for sending a fault register value corresponding to a simulated power supply fault to a first power supply to be tested in the server power supply; and after the power firmware upgrading corresponding to the first power supply to be tested is determined to be completed, sending a fault register value to a second power supply to be tested in the server power supply, and repeating the steps until the fault register value is sent to each power supply to be tested in the server power supply, so as to verify the reliability of the power firmware upgrading of each power supply to be tested under the condition of simulating power supply faults.
In one embodiment, after the step of obtaining the verification result of the upgrade reliability of the server power supply according to the upgrade order and the upgrade status, the method further includes:
and displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
In one embodiment, the reliability verification apparatus 200 further includes: the register value setting module is used for presetting a plurality of different fault register values; wherein, every fault register value corresponds unique simulation power failure, and simulation power failure includes: the power supply voltage is higher than one or more of the first preset value, the power supply voltage is lower than the second preset value, the power supply current is higher than the third preset value, the power supply current is lower than the fourth preset value, the power supply temperature is higher than the fifth preset value and the power supply temperature is lower than the sixth preset value.
The reliability verification apparatus for upgrading a server power firmware of this embodiment may execute the reliability verification method for upgrading a server power firmware shown in the foregoing embodiments of this application, and the implementation principles thereof are similar and will not be described herein again.
The modules in the reliability verification device for the server power firmware upgrade can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of reliability verification of a server power firmware upgrade.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a fault simulation instruction, and sending a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction;
reading a power failure signal sent by a power supply to be tested due to the writing of a failure register value, and sending a power firmware upgrading instruction to a server power supply according to the power failure signal so that the server power supply can upgrade the power firmware according to the upgrading instruction;
and receiving a power supply firmware upgrading result returned by the server power supply, and verifying the reliability of the server power supply firmware upgrading according to the upgrading result.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a simulated power failure to be tested according to the failure simulation instruction; and sending a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply, so that the power supply to be tested modifies a register state bit in the power supply to be tested according to the fault register value to simulate the corresponding power failure.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining the upgrading sequence and upgrading state of each power supply in the server power supply according to the upgrading result; and obtaining the verification result of the upgrading reliability of the server power supply according to the upgrading sequence and the upgrading state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether a power supply which is preferentially upgraded in each power supply in the server power supply is a power supply to be tested or not according to the upgrading sequence; judging whether each power supply in the server power supply is successfully upgraded or not according to the upgrading state; if the power supply to be upgraded preferentially is the power supply to be tested and each power supply in the server power supply is upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure passes; and if the power supply to be preferentially upgraded is not the power supply to be tested and/or the power supply existing in the server power supply is not upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure does not pass.
In one embodiment, the reliability of power firmware upgrade is verified for a plurality of power supplies to be tested; the processor, when executing the computer program, further performs the steps of:
sending a fault register value corresponding to a simulated power failure to a first power supply to be tested in a server power supply; and after the power firmware upgrading corresponding to the first power supply to be tested is determined to be completed, sending a fault register value to a second power supply to be tested in the server power supply, and repeating the steps until the fault register value is sent to each power supply to be tested in the server power supply, so as to verify the reliability of the power firmware upgrading of each power supply to be tested under the condition of simulating power supply faults.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
presetting a plurality of different fault register values; wherein, every fault register value corresponds unique simulation power failure, and simulation power failure includes: the power supply voltage is higher than one or more of the first preset value, the power supply voltage is lower than the second preset value, the power supply current is higher than the third preset value, the power supply current is lower than the fourth preset value, the power supply temperature is higher than the fifth preset value and the power supply temperature is lower than the sixth preset value.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a fault simulation instruction, and sending a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction;
reading a power failure signal sent by a power supply to be tested due to the writing of a failure register value, and sending a power firmware upgrading instruction to a server power supply according to the power failure signal so that the server power supply can upgrade the power firmware according to the upgrading instruction;
and receiving a power supply firmware upgrading result returned by the server power supply, and verifying the reliability of the server power supply firmware upgrading according to the upgrading result. In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a simulated power failure to be tested according to the failure simulation instruction; and sending a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply, so that the power supply to be tested modifies a register state bit in the power supply to be tested according to the fault register value to simulate the corresponding power failure.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the upgrading sequence and upgrading state of each power supply in the server power supply according to the upgrading result; and obtaining the verification result of the upgrading reliability of the server power supply according to the upgrading sequence and the upgrading state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether a power supply which is preferentially upgraded in each power supply in the server power supply is a power supply to be tested or not according to the upgrading sequence; judging whether each power supply in the server power supply is successfully upgraded or not according to the upgrading state; if the power supply to be upgraded preferentially is the power supply to be tested and each power supply in the server power supply is upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure passes; and if the power supply to be preferentially upgraded is not the power supply to be tested and/or the power supply existing in the server power supply is not upgraded successfully, determining that the upgrade reliability test of the server power supply under the simulated power failure does not pass.
In one embodiment, the reliability of power firmware upgrade is verified for a plurality of power supplies to be tested; the computer program when executed by the processor further realizes the steps of:
sending a fault register value corresponding to a simulated power failure to a first power supply to be tested in a server power supply; and after the power firmware upgrading corresponding to the first power supply to be tested is determined to be completed, sending a fault register value to a second power supply to be tested in the server power supply, and repeating the steps until the fault register value is sent to each power supply to be tested in the server power supply, so as to verify the reliability of the power firmware upgrading of each power supply to be tested under the condition of simulating power supply faults.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
In one embodiment, the computer program when executed by the processor further performs the steps of:
presetting a plurality of different fault register values; wherein, every fault register value corresponds unique simulation power failure, and simulation power failure includes: the power supply voltage is higher than one or more of the first preset value, the power supply voltage is lower than the second preset value, the power supply current is higher than the third preset value, the power supply current is lower than the fourth preset value, the power supply temperature is higher than the fifth preset value and the power supply temperature is lower than the sixth preset value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the above figures may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for verifying the authenticity of a firmware upgrade for a server power supply, wherein the server power supply comprises a plurality of power supplies, the method comprising:
acquiring a fault simulation instruction, and sending a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction;
reading a power failure signal sent by the power supply to be tested due to the writing of the failure register value, and sending a power firmware upgrading instruction to a server power supply according to the power failure signal so that the server power supply can upgrade power firmware according to the upgrading instruction;
and receiving a power supply firmware upgrading result returned by the server power supply, and verifying the reliability of the server power supply firmware upgrading according to the upgrading result.
2. The method of claim 1, wherein the step of sending a preset fault register value to a power supply under test in a server power supply according to the fault simulation instruction comprises:
determining a simulated power failure to be tested according to the failure simulation instruction;
and sending a fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply, so that the power supply to be tested modifies a register state bit in the power supply to be tested according to the fault register value to simulate the corresponding power failure.
3. The method of claim 1, wherein verifying the authenticity of the server power firmware upgrade based on the upgrade result comprises:
determining the upgrading sequence and upgrading state of each power supply in the server power supply according to the upgrading result;
and obtaining the verification result of the upgrading reliability of the server power supply according to the upgrading sequence and the upgrading state.
4. The method of claim 3, wherein the step of obtaining the verification result of the upgrade reliability of the server power supply according to the upgrade order and the upgrade status comprises:
judging whether a power supply which is preferentially upgraded in each power supply in the server power supply is a power supply to be tested or not according to the upgrading sequence;
judging whether each power supply in the server power supply is successfully upgraded according to the upgrading state;
if the power supply to be preferentially upgraded is a power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrade reliability test of the server power supply under the simulated power failure passes;
and if the power supply with the priority upgrading is not the power supply to be tested and/or the power supply existing in the server power supply is not upgraded successfully, determining that the upgrading reliability test of the server power supply under the simulated power failure does not pass.
5. The method of claim 2, wherein the power supply to be tested is subjected to reliability verification of power firmware upgrade;
the step of sending the fault register value corresponding to the simulated power failure to a power supply to be tested in the server power supply comprises:
sending a fault register value corresponding to the simulated power supply fault to a first power supply to be tested in a server power supply;
and after the power firmware upgrading corresponding to the first power supply to be tested is determined to be completed, sending the fault register value to a second power supply to be tested in the server power supply, and so on until the fault register value is sent to each power supply to be tested in the server power supply, so as to verify the reliability of power firmware upgrading of each power supply to be tested under the condition of simulating power supply faults.
6. The method of claim 3, wherein after the step of obtaining the verification result of the upgrade reliability of the server power supply according to the upgrade order and the upgrade status, the method further comprises:
and displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
7. The method according to any one of claims 1 to 6, wherein the step of sending the preset fault register value to the power supply to be tested in the server power supply according to the fault simulation instruction is preceded by the step of:
presetting a plurality of different fault register values; wherein each of the fault register values corresponds to a unique simulated power failure, the simulated power failure comprising: the power supply voltage is higher than one or more of the first preset value, the power supply voltage is lower than the second preset value, the power supply current is higher than the third preset value, the power supply current is lower than the fourth preset value, the power supply temperature is higher than the fifth preset value and the power supply temperature is lower than the sixth preset value.
8. An apparatus for verifying authenticity of a firmware upgrade of a server power supply, the apparatus comprising:
the register value sending module is used for acquiring a preset fault simulation instruction and sending a preset fault register value to a power supply to be tested in the server power supply according to the fault simulation instruction;
the upgrading instruction sending module is used for reading a power failure signal sent by the power supply to be tested due to the fact that the power supply failure register value is written in, and sending a power firmware upgrading instruction to a server power supply according to the power failure signal, so that the server power supply can upgrade power firmware according to the upgrading instruction;
and the reliability verification module is used for receiving a power supply firmware upgrading result returned by the server power supply and verifying the reliability of the server power supply firmware upgrading according to the upgrading result.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111242085.0A 2021-10-25 2021-10-25 Method, device and equipment for verifying reliability of server power firmware upgrade Active CN114138587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111242085.0A CN114138587B (en) 2021-10-25 2021-10-25 Method, device and equipment for verifying reliability of server power firmware upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111242085.0A CN114138587B (en) 2021-10-25 2021-10-25 Method, device and equipment for verifying reliability of server power firmware upgrade

Publications (2)

Publication Number Publication Date
CN114138587A true CN114138587A (en) 2022-03-04
CN114138587B CN114138587B (en) 2024-01-12

Family

ID=80395146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111242085.0A Active CN114138587B (en) 2021-10-25 2021-10-25 Method, device and equipment for verifying reliability of server power firmware upgrade

Country Status (1)

Country Link
CN (1) CN114138587B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309250A (en) * 2022-07-29 2022-11-08 苏州浪潮智能科技有限公司 Method and system for improving oring reliability of power supply
CN117331723A (en) * 2023-11-30 2024-01-02 苏州元脑智能科技有限公司 ARM safety firmware configuration method and device applied to ARM server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683696A (en) * 2018-12-25 2019-04-26 浪潮电子信息产业股份有限公司 Fault of server power supply detection system, method, apparatus, equipment and medium
CN111538624A (en) * 2020-04-23 2020-08-14 苏州浪潮智能科技有限公司 Server power supply maintenance method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683696A (en) * 2018-12-25 2019-04-26 浪潮电子信息产业股份有限公司 Fault of server power supply detection system, method, apparatus, equipment and medium
CN111538624A (en) * 2020-04-23 2020-08-14 苏州浪潮智能科技有限公司 Server power supply maintenance method, device, equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309250A (en) * 2022-07-29 2022-11-08 苏州浪潮智能科技有限公司 Method and system for improving oring reliability of power supply
CN115309250B (en) * 2022-07-29 2024-05-24 苏州浪潮智能科技有限公司 Method and system for improving reliability of power supply oring
CN117331723A (en) * 2023-11-30 2024-01-02 苏州元脑智能科技有限公司 ARM safety firmware configuration method and device applied to ARM server
CN117331723B (en) * 2023-11-30 2024-02-27 苏州元脑智能科技有限公司 ARM safety firmware configuration method and device applied to ARM server

Also Published As

Publication number Publication date
CN114138587B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN110888414B (en) Test method for upgrading vehicle controller
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN106547653B (en) Computer system fault state detection method, device and system
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
CN111949551A (en) Application program testing method, device, equipment and storage medium
CN106155885A (en) A kind of full-automatic test system and method for testing
CN111078484B (en) Power-off test method, device, equipment and storage medium for system upgrade
CN116680101A (en) Method and device for detecting downtime of operating system, and method and device for eliminating downtime of operating system
CN105183580A (en) Storage method and fault recovery method for bootstrap program, and devices
TW202018312A (en) Testing system
CN106909382B (en) Method and device for outputting different types of system starting information
CN114793196B (en) Firmware upgrading method, device, equipment and storage medium
CN116662050A (en) Error injection support function verification method, device, terminal and medium
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN115981929A (en) Fault injection method, test case issuing method and related device
JP6217086B2 (en) Information processing apparatus, error detection function diagnosis method, and computer program
CN114860494A (en) SAS expander configuration self-adaptive system
TWI675293B (en) A host boot detection method and its system
CN113778732A (en) Fault positioning method and device for service board card
CN106909489B (en) Method and device for testing EventLog state
CN118012685B (en) Automatic test method and device for server AC
TWI726434B (en) Control method for solving abnormal operation of me
CN115827359A (en) Alarm verification method and test machine
CN115454820A (en) Firmware upgrade exception test method and device, computer equipment and storage 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
GR01 Patent grant
GR01 Patent grant