CN114138587B - Method, device and equipment for verifying reliability of server power firmware upgrade - Google Patents

Method, device and equipment for verifying reliability of server power firmware upgrade Download PDF

Info

Publication number
CN114138587B
CN114138587B CN202111242085.0A CN202111242085A CN114138587B CN 114138587 B CN114138587 B CN 114138587B CN 202111242085 A CN202111242085 A CN 202111242085A CN 114138587 B CN114138587 B CN 114138587B
Authority
CN
China
Prior art keywords
power supply
server
power
tested
upgrading
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.)
Active
Application number
CN202111242085.0A
Other languages
Chinese (zh)
Other versions
CN114138587A (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

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 performs power firmware upgrading according to the upgrading instruction, and verifying the reliability of the power firmware upgrading of the server according to a power firmware upgrading result returned by the server power supply. The technical scheme can automatically verify the reliability of the upgrade of the power firmware of the server, is safe and reliable, and improves the reliability verification efficiency of the upgrade of the power firmware.

Description

Method, device and equipment for verifying reliability of server power firmware upgrade
Technical Field
The present invention relates to the field of network devices, and in particular, to a method, an apparatus, and a device for verifying reliability of firmware upgrade of a server power supply, and a computer readable storage medium.
Background
The power supply (Power Supply Unit, PSU) is generally used for supplying power to the server because of its advantages of stable and reliable power supply. Power is an important component of the server, and any power failure can affect the performance of the CPU, memory, etc. If PSU in the server fails, the server cannot normally operate, and operation data in the server can be greatly influenced, so that economic loss is brought to users. When the power supply fails, the power supply firmware is required to be upgraded to restore normal use of the power supply, so the reliability of the power supply firmware upgrade is of great importance.
In the related art, a power supply reliability upgrade test mainly triggers a power supply fault by using a special fixture to identify a power supply fan, and then upgrades power supply firmware to verify the reliability of the power supply firmware upgrade. The method can cause certain damage to the power supply and influence the service life of the power supply, and the method needs to manually identify the jig with the power supply fan, so that certain potential safety hazard exists for testers. In addition, after the jig is manually removed, the power firmware is refreshed, so that automation cannot be realized, and the testing efficiency is affected.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, computer device, and storage medium for verifying the reliability of a server power firmware upgrade that can improve the verification efficiency and is safe and reliable.
In a first aspect, the present application provides a method for verifying the reliability of a firmware upgrade of a server power supply, where the server power supply includes 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 a power supply to be tested due to writing of a failure register value, and sending a power firmware upgrading instruction to a server power according to the power failure signal so that the server power can upgrade the power firmware according to the upgrading instruction;
and receiving a power firmware upgrading result returned by the server power supply, and verifying the reliability of the power firmware upgrading of the server 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 supply fault to be tested according to the fault 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 server power firmware according to the upgrade result includes:
determining the upgrading sequence and the upgrading state of each power supply in the server power supply according to the upgrading result;
and obtaining an upgrade reliability verification result of the server power supply according to the upgrade sequence and the upgrade state.
In one implementation, the step of obtaining the upgrade reliability verification result of the server power supply according to the upgrade order and the upgrade status includes:
judging whether the power supply of the server, which is preferentially upgraded, is the 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 with priority upgrading is the power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrading reliability test of the server power supply under the simulated power supply fault is passed;
If the power supply of the priority upgrade is not the power supply to be tested and/or the upgrade of the existing power supply in the server power supply is unsuccessful, determining that the upgrade reliability test of the server power supply under the simulated power supply fault is not passed.
In one implementation, performing reliability verification of power firmware upgrade on 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 the following steps:
transmitting a fault register value corresponding to the simulated power supply fault to a first power supply to be tested in the server power supply;
after the power firmware upgrading execution 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 simulated power failure.
In one implementation, after the step of obtaining the upgrade reliability verification result 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 the preset fault register value to the power supply to be tested in the server power supply according to the fault simulation instruction, the method further includes:
presetting a plurality of different fault register values; wherein each fault register value corresponds to a unique simulated power failure, the simulated power failure comprising: one or more of a power supply voltage above the first preset value, a power supply voltage below the second preset value, a power supply current above the third preset value, a power supply current below the fourth preset value, a power supply temperature above the fifth preset value, and a power supply temperature below the sixth preset value.
In a second aspect, the present application further provides a device for verifying the reliability of a firmware upgrade of a server power supply, where the device includes:
the register value sending module is used for obtaining 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 upgrade 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 to be tested writes in the failure register value, and sending a power firmware upgrade 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 upgrade instruction;
The reliability verification module is used for receiving a power firmware upgrading result returned by the server power supply and verifying the reliability of the power firmware upgrading of the server according to the upgrading result.
In a third aspect, the present application also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for verifying the reliability of a firmware upgrade of a server power supply as mentioned in the first aspect when the computer program is executed by the processor.
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 method for verifying the reliability of a server power firmware upgrade mentioned in the first aspect.
According to the method, the device, the computer equipment and the storage medium for verifying the reliability of the server power firmware upgrade, the power failure signal sent by the power supply to be tested due to the fact that the power supply to be tested writes in the failure register value is read by sending the preset failure register value to the power supply to be tested in the server power, the power firmware upgrade instruction is sent to the server power according to the power failure signal, so that the server power performs upgrade operation according to the upgrade instruction, and the reliability of the server power firmware upgrade is verified according to the power firmware upgrade result returned by the server power. 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 utilizing the fault register value so as to simulate the power failure, and the power failure is triggered without manually identifying and loosening the jig, so that the power failure is safe and reliable. In addition, the BMC sends a power firmware upgrading instruction to the server power supply according to the simulated power supply faults corresponding to the fault register values written in the power supply to be tested, so that each power supply can conduct power firmware upgrading under various simulated power supply faults, the reliability of the power firmware upgrading is verified according to the upgrading results, and therefore the reliability verification of the power firmware upgrading of the server is achieved simply and quickly, manual operation is not needed, safety and reliability are achieved, automatic testing is achieved, and labor verification cost is saved.
Drawings
FIG. 1 is a schematic diagram of an application scenario of a reliability verification method for upgrading firmware of a server power supply in an embodiment;
FIG. 2 is a flow chart of a method for verifying the reliability of a firmware upgrade of a server power supply in an embodiment;
FIG. 3 is another flowchart of a method for verifying the reliability of a firmware upgrade of a server power supply according to an embodiment;
FIG. 4 is a schematic diagram of a reliability verification device for upgrading firmware of a server power supply according to an embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In order to facilitate understanding of the solution of the present application, an application environment to which the embodiments of the present application are applicable will be first described.
Fig. 1 is a schematic application scenario of a reliability verification method for firmware upgrade of a server power supply in an embodiment, as shown in fig. 1, where the application scenario includes a baseboard management controller (Baseboard Manager Controller, BMC) and a server power supply that are communicatively connected, the server power supply includes a plurality of power supplies (Power Supply Unit, PSU) for supplying power to the server, and the BMC may be connected to the server power supply through an I2C (Inter-Integrated Circuit, two-wire serial bus) bus to implement communication between the BMC and the server power supply, for example, the BMC obtains fault information of the server power supply through the I2C bus, and the BMC sends a power firmware upgrade instruction to the server power supply through the I2C bus. Of course, the BMC may also be connected to the server power line by other communication means, such as PECI bus. The BMC may also be connected to other devices through other communication means such as IPMI (Intelligent Platform Management Interface ) buses, PCI (Peripheral Component Interconnect, peripheral component interconnect standard) buses, etc. to monitor the status of each device in the system.
BMC is a specialized service processor, a baseboard management system on a server that uses sensors to monitor the status of computers, web servers, or other hardware driven devices, and is connected to the host processor and components on the board to monitor and to some extent manage the status of the physical components. In this embodiment, the BMC reads the value of the sensor inside the power supply through the I2C bus, and obtains information such as voltage, current, temperature, and the like 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 can also communicate with a system administrator through an independent connection line to receive control and management instructions triggered by the system administrator.
When the power supply of the server fails to supply power to the server, the power firmware is required to be upgraded immediately to restore normal use of the power supply, so that the reliability of the power firmware upgrade is required to be verified to ensure that the power firmware upgrade can restore normal use of the power supply. For power firmware upgrade, it can be understood that the output voltage of the PSU to be upgraded is cut off, and the new power firmware version is burned on line by the BMC. If the power supply state of the PSU after the burning is qualified, the PSU which is qualified after the burning is used for supplying power to the server, and then the next PSU to be upgraded in the power supply of the server is upgraded until all the PSUs are upgraded.
In the related art, the power supply reliability upgrade test mainly uses a special fixture to identify a power supply fan, so that the power supply fan is powered up to trigger a power supply fault, such as an excessive power supply output voltage, and then upgrades the power supply firmware to verify the reliability of the power supply firmware upgrade.
However, the power fan is distinguished by a special jig to trigger a power failure, which causes certain damage to the power supply and affects the service life of the power supply. In addition, the method can refresh the power firmware only by manually removing the jig, and cannot realize automation, so that the testing efficiency is affected. Moreover, the type of the power failure triggered by the mode is too single, and the reliability of the power firmware upgrade of each power supply in the server power supply under various power failures is difficult to verify, so that the accuracy of the verification reliability result is affected.
The method, the device, the computer equipment and the storage medium for verifying the reliability of the server power firmware upgrade can automatically and rapidly verify the reliability of the server power firmware upgrade, 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 the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail 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 method for verifying the reliability of a firmware upgrade of a server power supply, which may be performed by a device for verifying the reliability of a firmware upgrade of a server power supply, and optionally, in this embodiment, may be performed by a baseboard management controller 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 firmware upgrade of the server power supply may include the following steps:
s210, acquiring a 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.
In this embodiment, a plurality of different fault register values may be preset to respectively correspond to different analog fault types, where each fault register value corresponds to a unique analog power supply fault. When a certain power failure is simulated, the fault register value 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 fault register value so that the power supply simulates the corresponding power failure.
Optionally, the fault register value may be preset on the BMC system, and the BMC system sends the preset fault register value to the power supply to be tested in the server power supply, or may preset different fault register values through the upper computer, and the BMC system sends corresponding control information to the upper computer according to the fault simulation instruction, so as 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 fault register value may be set according to the value of the internal register of the power supply in the actual power supply fault, that is, when a certain type of power supply fault occurs in the power supply, the value of the internal register of the power supply under the power supply fault is X, and when the type of power supply fault is simulated, the fault register value corresponding to the simulated power supply fault is set according to the value X of the internal register of the power supply.
The user triggers the fault simulation instruction in 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, the simulated power failure types include: the power supply voltage is too high (i.e., the power supply voltage is higher than a first preset value), the power supply voltage is too low (i.e., the power supply voltage is lower than a second preset value), the power supply current is too high (i.e., the power supply current is higher than a third preset value), the power supply current is too low (i.e., the power supply current is lower than a fourth preset value), the power supply temperature is too high (i.e., the power supply temperature is higher than a fifth preset value), and the power supply temperature is too low (i.e., the power supply temperature is lower than a sixth preset value), among many types. 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 situations.
The BMC system acquires a fault simulation instruction, analyzes the fault simulation instruction to determine a simulation fault type corresponding to the fault simulation instruction, and invokes 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 writing of 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, writing the fault register value into an internal corresponding register, modifying an original value in the register into the fault register value, and reading the modified value of the internal register by the power supply to be tested, misjudging that the power supply fault corresponding to the modified value of the internal register occurs, and sending a power supply fault signal to the BMC, thereby achieving the aim that the power supply simulates the power supply fault.
The BMC system receives a power failure signal sent by the power supply to be tested, and responds to the power failure signal to send a power firmware upgrading instruction to the server power supply, so that each power supply in the server power supply performs power firmware upgrading operation. Generally, when a power supply fails, the power supply returns to normal after a power firmware upgrade operation is performed.
S230, receiving a power firmware upgrading result returned by the server power supply, and verifying the reliability of the server power firmware upgrading according to the upgrading result.
For upgrading the power firmware, the power firmware is burned again to update the power firmware information.
The server power supply upgrades the power firmware of each power supply, records the upgrade sequence and upgrade state of each power supply to obtain the upgrade result of the power firmware, wherein the upgrade state comprises: upgrade success, upgrade failure, 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 to which the power supply belongs.
And the BMC system receives a power 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 firmware. If the received target information in the upgrading result is compared with the corresponding information in the ideal upgrading result, if the target information and the information are consistent, the upgrading reliability of the power firmware of the server is determined to pass, otherwise, the upgrading reliability of the power firmware of the server is determined not to pass.
In order to improve the stability of the verification result of the upgrade reliability of the power supply firmware of the server, repeated tests can be carried out based on the upgrade of the power supply firmware of the server under the same simulated power supply fault, and the upgrade reliability of the power supply firmware of the server is comprehensively evaluated according to the repeated test results.
The method for verifying the reliability of the firmware upgrade of the server power supply, which is provided by the embodiment, can be executed by a BMC system, wherein the server power supply comprises a plurality of power supplies, and a preset fault register value is sent to the power supplies to be tested in the server power supply; receiving a power failure signal sent by a power supply to be tested due to writing of a failure register value, 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 upgrades the power firmware according to the upgrading instruction; and receiving a power firmware upgrading result returned by the server power supply, and verifying the reliability of the power firmware upgrading of the server according to the upgrading result, so that the reliability verification of the power firmware upgrading of the server is simply and quickly realized, the manual operation is not needed, the safety and the reliability are realized, the automatic test is realized, and the manual verification cost is saved.
Compared with the reliability verification method for upgrading the power firmware in the related art, the method has the advantages that 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 utilizing the fault register value to simulate the power failure, the power failure is triggered without manually identifying and loosening the 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 supply faults corresponding to the fault register values written in the power supply to be tested, so that each power supply can conduct power firmware upgrading under various simulated power supply faults, the reliability of the power firmware upgrading is verified according to upgrading results, verification automation is achieved, and verification efficiency and accuracy of verification results are improved.
In order to more clearly illustrate the technical solution of the present application, the following describes further the implementation manner of the steps of the reliability verification method for upgrading the power firmware of the server.
In an embodiment, the step S210 of sending the preset fault register value to the power supply to be tested in the server power according to the fault simulation instruction may include the following steps:
s2101, determining a 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 faults is pre-established. And when a certain simulated power failure is determined, according to the mapping relation, a failure register value corresponding to the simulated power failure can be inquired.
In this embodiment, the fault simulation instruction includes information of the simulated power failure selected by the user to be tested. The BMC acquires the fault simulation instruction, analyzes the fault simulation instruction, and determines the simulated power supply fault to be tested 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. At the beginning, one of the power supplies is arbitrarily selected as the power supply to be tested, for example, PSU0 is used as the power supply to be tested. Then, at the next time of reliability test, 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 by analogy, 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. 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 after the power supply to be tested writes the fault register value into the internal register, the fault register value in the internal register is read, and the power supply fault is mistakenly generated for the power supply, so that the effect of simulating the power supply fault corresponding to the fault register value is achieved.
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 the 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 upgrade process of the server power supply, including the upgrade sequence of the power firmware of each power supply, the upgrade status (i.e. whether the upgrade is successful), the upgrade time, the post-upgrade register value, and the like.
And acquiring 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. The method comprises the steps of obtaining register values of all power supplies from various information of upgrading results, determining upgrading states of all power supplies according to the register values, or determining upgrading states of all power supplies according to power states of power supplies after upgrading. Of course, in other embodiments, the upgrade order and upgrade status of each power supply may also be determined according to other parameters in the upgrade result.
S2302, obtaining an upgrade reliability verification result of the server power supply according to the upgrade sequence and the upgrade state.
With respect to upgrade reliability, it refers to the ability or likelihood that power firmware is fault free to perform an upgrade operation.
In the present embodiment, the power firmware upgrade reliability of the server power supply is evaluated by taking the power firmware upgrade order and upgrade status of the respective power supplies as a basis.
In an embodiment, the step S2302 of obtaining the upgrade reliability verification result of the server power supply according to the upgrade order and the upgrade status may include the following steps:
s301, judging whether the power supply of the server, which is upgraded preferentially, is the power supply to be tested or not according to the upgrading sequence.
Optionally, the upgrades of the power supplies are performed one by one, and when one power supply is upgraded, the next power supply is upgraded.
The upgrade order of the power supplies in the server power supply is determined according to the upgrade time of the power supplies, wherein the upgrade time can be an upgrade start time and an upgrade end time. By comparing the upgrade times of the individual power supplies, it is determined whether the power supply that is upgraded preferentially (upgraded first) is the power supply to be tested.
S302, judging whether each power supply in the server power supply is successfully upgraded according to the upgrading state.
Optionally, the upgrade status of each power supply in the server power supply may be determined by the values of the registers before and after the upgrade of each power supply, and the upgrade status 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 successfully upgraded according to the upgrade status.
And S303, if the power supply with the priority to be 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 supply fault is passed.
The upgrade state of the power supply after the upgrade of the power firmware is judged, and only when the upgrade state of the PSU after the upgrade of the power firmware is qualified/passed, the PSU can be used as a new redundant standby PSU for supplying 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 to perform power firmware upgrade, it is ensured that the PSU supplying power to the server is a normal PSU.
If the first power supply for upgrading the power supply firmware is the power supply to be tested in the power supply 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 supply fault corresponding to the fault register value is passed.
S304, if the power supply with the priority upgrading is not the power supply to be tested and/or the upgrading of the existing power supply in the server power supply is unsuccessful, determining that the upgrading reliability test of the server power supply under the simulated power supply fault is not passed.
If the first power supply for performing power firmware upgrade is not the power supply to be tested in the power firmware upgrade of each power supply of the server power supply, it is indicated that the power supply to be tested with the power failure is used to power the server in the power firmware upgrade process of the server power supply, and the power supply to be tested with the power failure cannot actually power the server, so that the server cannot work to affect the stability of the server.
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 a power supply that is not successfully upgraded, or the first power supply performing the power firmware upgrade is not the power supply to be tested and there is a power supply that is not successfully upgraded, in this case, in the process of performing the power firmware upgrade of the server power supply, there is a case that the power supply to be tested with the power failure is used to power the server, then it is determined that the upgrade reliability test of the server power supply under the simulated power failure corresponding to the failure register value is not passed.
In one embodiment, a plurality of power supplies under test are subjected to a reliability verification of power firmware upgrades to verify the reliability of the power firmware upgrades when there is a power failure of each PSU in the server power supply.
In an embodiment, the sending of the fault register value corresponding to the analog power fault to the power supply to be tested in the server power in step S2102 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.
There are multiple power supplies in the server power supply, such as PSU0, PSU1, PSU2 and PSU3, respectively. The BMC system sends a fault register value corresponding to the simulated power supply fault to a first power supply PSU0 to be tested in the server power supply.
Optionally, the BMC system executes the following instructions: i2c-test-b 11-s 0x 58-m 1-w-d 0x40 x00 x18, simulate a power failure with an excessively high power supply output voltage for PSU 0. Wherein 0x58 is used to indicate that the power supply to be tested is PSU0, and 0x40 x00 x 0x18 is used to indicate a power failure with excessive analog power output voltage.
And S402, after the power firmware upgrading execution 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 simulated power failure.
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 that the power output voltage of the first power supply PSU0 to be tested is too high, and upgrades the power firmware of each PSU in the server power supply. According to the upgrading sequence and the upgrading state of the power firmware upgrading, the reliability of the power firmware upgrading of the server power supply under the condition that the power output voltage of the PSU0 is overhigh is determined.
After the reliability verification of the power firmware upgrade is performed on the first power supply PSU0 to be tested, the same fault register value is sent to the second power supply PSU1 to be tested, for example, a BMC system execution instruction: i2 c-test-b 11-s 0x 59-m 1-w-d 0x40 0x00 x18, wherein 0x59 is used for indicating that the power supply to be tested is the PSU10, and 0x40 x00 x18 is used for indicating that the analog power supply output voltage is too high.
And the BMC system receives a power failure signal of overhigh power output voltage sent by the second power supply PSU1 to be tested, and upgrades the power firmware of each PSU in the server power supply. According to the upgrading sequence and the upgrading state of the power firmware upgrading, the reliability of the power firmware upgrading of the server power supply under the condition that the PSU1 has power failure with overhigh power output voltage is determined.
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 upgrade of each power supply to be tested under the simulated power failure.
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 faults. For example, in addition to verifying the reliability of the power firmware upgrade of each power supply to be tested in the case of a power failure in which the power output voltage is too high, the reliability of the power firmware upgrade of each power supply to be tested in the case of a power failure in which the power output voltage is too low, the power output current is too high, the power output current is too low, the power temperature is too high, the power temperature is too low, and the like may be verified.
In one embodiment, after obtaining the upgrade reliability verification result 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.
And presenting the upgrade sequence of each power supply and the corresponding upgrade state of each power supply in the server power supply in a list form, and determining whether the verification result is passing or not by integrating the upgrade sequence and the upgrade state of each power supply.
Optionally, the BMC system comprises a display screen, and the upgrading sequence of each power supply of the server power supply, the corresponding upgrading state and the verification result are displayed in a list form through a visual interface of the display screen. Optionally, a display device is connected to the BMC system, and the BMC system generates a corresponding upgrade information list according to the upgrade sequence of each power supply of the server power supply, the corresponding upgrade state and the verification result, and sends the upgrade information list to the display device, and displays the upgrade information list through a visual interface of the display device.
In order to more clearly illustrate the technical solutions of the present application, the following examples are combined for detailed description. In this example two power supplies with PSU0 and PSU1 in the server power supply are illustrated.
As shown in fig. 3, fig. 3 is another flowchart of a method for verifying the reliability of a server power firmware upgrade, where the method for verifying the reliability of a server power firmware upgrade is implemented as follows:
S501, the BMC system receives a login instruction of a user.
The user can remotely log in to the BMC system by SSH (Secure Shell) through SSH BMC OS commands.
S502, the BMC system receives a simulated power failure instruction, triggered by a user, of the PSU0, so that the PSU0 simulates a power failure.
The user triggers and executes a fault simulation instruction by triggering the fault simulation instruction on the BMC system, for example, the user selects a 'power supply output voltage too high' fault simulation button on the BMC system, and the fault simulation instruction with the power supply output voltage too high is triggered and executed: i2 c-test-b 11-s 0x 58-m 1-w-d 0x40 x00 x18, simulating a power supply output voltage excessive fault for PSU0.
The BMC system acquires a fault simulation instruction, analyzes the fault simulation instruction to determine a simulation fault type corresponding to the fault simulation instruction, and sends a preset fault register value corresponding to the simulation fault type to the current power supply PSU0 to be tested.
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 the fault register value, reads the modified value of the internal register, and mistakenly sends a power failure signal to the BMC for the power failure corresponding to the modified value of the internal register, thereby achieving the purpose that the PSU0 simulates the power failure with overhigh power supply voltage.
S503, the server power supply upgrades the power supply firmware of each PSU aiming at the analog power failure of the PSU 0.
The BMC system determines a power failure signal sent by the PSU0 and sends a power firmware upgrading instruction to the server power supply so that each power supply in the server power supply can conduct power firmware upgrading operation.
S504, judging whether the priority upgrade in the server power supply is PSU0 and whether all PSUs are successfully upgraded; if yes, step S505 is executed, otherwise step S509 is executed.
If the power supply of the priority upgrading in the server power supply is PSU0 and all PSUs are successfully upgraded, determining that the power firmware upgrading reliability of the PSU0 under the power failure with the excessively high power output voltage passes, and performing power firmware upgrading reliability verification of the next power supply, otherwise, determining that the power firmware upgrading reliability of the PSU0 under the power failure with the excessively high power output voltage does not pass, and ending the reliability verification.
S505, the BMC system receives a simulated power failure instruction triggered by a user to the PSU1, so that the PSU1 simulates a power failure.
Similarly, the BMC system executes a fault simulation instruction of overhigh power supply output voltage: i2 c-test-b 11-s 0x 59-m 1-w-d 0x40 x00 x18, simulate a power failure with an excessively high power supply output voltage to PSU 1.
The BMC system acquires a fault simulation instruction, analyzes the fault simulation instruction to determine a simulation fault type corresponding to the fault simulation instruction, and sends a preset fault register value corresponding to the simulation fault type to the current power supply PSU1 to be tested.
The PSU1 receives the fault register value, writes the fault register value into an internal corresponding register, modifies the original value in the register into the fault register value, reads the modified value of the internal register, and sends a power failure signal to the BMC if the power supply to be tested is mistakenly a power failure corresponding to the modified value of the internal register, thereby achieving the purpose that the PSU1 simulates the power failure with overhigh power supply voltage.
S506, the server power supply upgrades the power supply firmware of each PSU aiming at the analog power failure of the PSU1.
And the BMC system sends a power firmware upgrading instruction to the server power supply so that each power supply in the server power supply can conduct power firmware upgrading operation.
S507, judging whether the priority upgrade in the server power supply is PSU1 and whether all PSUs are successfully upgraded; if yes, step S508 is executed, otherwise step S509 is executed.
If the power supply of the priority upgrading in the server power supply is PSU1 and all PSUs are successfully upgraded, determining that the power firmware upgrading reliability of the PSU1 under the power failure with the excessively high power output voltage passes, and performing power firmware upgrading reliability verification of the next power supply, otherwise, determining that the power firmware upgrading reliability of the PSU1 under the power failure with the excessively high power output voltage does not pass, and ending the reliability verification.
S508, determining that the reliability verification of the server power firmware upgrade is passed.
S509, determining that the reliability verification of the server power firmware upgrade is not passed.
And similarly, other PSUs in the server power supply can be subjected to power firmware reliability verification by simulating power faults with excessively high power output voltage, and other power faults, such as reliability verification of power firmware upgrading by simulating power faults with excessively low power output voltage, excessively high power output current, excessively low power output current, excessively high power temperature, excessively low power temperature and the like, of the power supply of the server power supply can be simulated.
The above examples are only used to assist in explaining the technical solutions of the present disclosure, and the illustrations and specific procedures related thereto do not constitute limitations on the usage scenarios of the technical solutions of the present disclosure.
Related embodiments of a device for verifying the reliability of a server power firmware upgrade are described in detail below.
Fig. 4 is a schematic structural diagram of a reliability verification device for upgrading firmware of a server power supply in an embodiment, where the reliability verification device for upgrading firmware of the server power supply may be executed on a server.
As shown in fig. 4, the reliability verification device 200 for server power firmware upgrade may include: a register value sending module 210, an upgrade instruction sending module 220, and a reliability verification 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 the server power supply according to the fault simulation instruction;
the upgrade instruction sending module 220 is configured to read a power failure signal sent by the power supply to be tested due to writing of the failure register value, and send a power firmware upgrade instruction to the server power according to the power failure signal, so that the server power performs power firmware upgrade according to the upgrade instruction;
the reliability verification module 230 is configured to receive a power firmware upgrade result returned by the server power, and verify the reliability of the upgrade of the power firmware of the server according to the upgrade result.
According to the reliability verification device for the server power firmware upgrade, the register value sending module 210 is used for sending the preset fault register value to the power supply to be tested in the server power, the upgrade instruction sending module 220 is used for reading the power failure signal sent by the power supply to be tested due to the fact that the fault register value is written in, and sending the power firmware upgrade instruction to the server power, so that the server power can conduct power firmware upgrade according to the upgrade instruction, the reliability verification module 230 is used for verifying the reliability of the server power firmware upgrade according to the power firmware upgrade result returned by the server power, the user is not required to use a jig to conduct reliability verification of the power firmware upgrade on the power fan, automatic testing can be achieved, and testing efficiency is improved.
In one embodiment, the register value sending module 210 includes: an analog power failure determining unit and a failure register value transmitting unit; the simulated power supply fault determining unit is used for determining a simulated power supply fault to be tested according to the fault simulation instruction; the fault register value sending unit is used for sending a fault register value corresponding to the simulated power failure to the power supply to be tested in the server power supply, so that the power supply to be tested modifies the 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 reliability verification module 230 includes: an upgrade information determining unit and a verification result obtaining unit; the upgrade information determining unit is used for determining the upgrade sequence and the upgrade state of each power supply in the server power supply according to the upgrade result; the verification result obtaining unit is used for obtaining the upgrade reliability verification result of the server power supply according to the upgrade sequence and the upgrade state.
In one embodiment, the verification result obtaining unit includes: an upgrade order judging subunit, an upgrade state judging subunit, a test passing determining subunit and a test failing determining subunit; the upgrade order judging subunit is used for judging whether the power supply which is preferentially upgraded in all the power supplies in the server power supply is the power supply to be tested or not according to the upgrade order; the upgrading state judging subunit is used for judging whether each power supply in the server power supply is successfully upgraded according to the upgrading state; the test pass determining subunit is used for determining that the upgrade reliability test of the server power supply under the simulated power supply fault passes if the power supply which is preferentially upgraded is the power supply to be tested and each power supply in the server power supply is successfully upgraded; the test failure determination subunit is configured to determine that the upgrade reliability test of the server power supply under the simulated power failure is failed if the power supply that is preferentially upgraded is not the power supply to be tested and/or the existing power supply in the server power supply is not successfully upgraded.
In one embodiment, performing reliability verification of power firmware upgrade on a plurality of power supplies to be tested; the fault register value sending unit is specifically configured to send a fault register value corresponding to a simulated power failure to a first power supply to be tested in the server power supply; after the power firmware upgrading execution 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 simulated power failure.
In one embodiment, after the step of obtaining the upgrade reliability verification result 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 each fault register value corresponds to a unique simulated power failure, the simulated power failure comprising: one or more of a power supply voltage above the first preset value, a power supply voltage below the second preset value, a power supply current above the third preset value, a power supply current below the fourth preset value, a power supply temperature above the fifth preset value, and a power supply temperature below the sixth preset value.
The reliability verification device for upgrading the server power firmware of the present embodiment may execute the reliability verification method for upgrading the server power firmware shown in the foregoing embodiment of the present application, and the implementation principle is similar, and will not be repeated here.
The modules in the above-mentioned reliability verification device for upgrading the power firmware of the server may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of verifying the reliability of a server power firmware upgrade.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than 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 steps of 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 writing of a failure register value, and sending a power firmware upgrading instruction to a server power according to the power failure signal so that the server power can upgrade the power firmware according to the upgrading instruction;
and receiving a power firmware upgrading result returned by the server power supply, and verifying the reliability of the power firmware upgrading of the server according to the upgrading result.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining a simulated power supply fault to be tested according to the fault 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 the upgrading state of each power supply in the server power supply according to the upgrading result; and obtaining an upgrade reliability verification result of the server power supply according to the upgrade sequence and the upgrade state.
In one embodiment, the processor when executing the computer program further performs the steps of:
judging whether the power supply of the server, which is preferentially upgraded, is the 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 with priority upgrading is the power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrading reliability test of the server power supply under the simulated power supply fault is passed; if the power supply of the priority upgrade is not the power supply to be tested and/or the upgrade of the existing power supply in the server power supply is unsuccessful, determining that the upgrade reliability test of the server power supply under the simulated power supply fault is not passed.
In one embodiment, performing reliability verification of power firmware upgrades to a plurality of power supplies to be tested; the processor when executing the computer program also implements the steps of:
transmitting a fault register value corresponding to the simulated power supply fault to a first power supply to be tested in the server power supply; after the power firmware upgrading execution 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 simulated power failure.
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 each fault register value corresponds to a unique simulated power failure, the simulated power failure comprising: one or more of a power supply voltage above the first preset value, a power supply voltage below the second preset value, a power supply current above the third preset value, a power supply current below the fourth preset value, a power supply temperature above the fifth preset value, and a power supply temperature below 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 writing of a failure register value, and sending a power firmware upgrading instruction to a server power according to the power failure signal so that the server power can upgrade the power firmware according to the upgrading instruction;
and receiving a power firmware upgrading result returned by the server power supply, and verifying the reliability of the power firmware upgrading of the server 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 supply fault to be tested according to the fault 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 the upgrading state of each power supply in the server power supply according to the upgrading result; and obtaining an upgrade reliability verification result of the server power supply according to the upgrade sequence and the upgrade state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the power supply of the server, which is preferentially upgraded, is the 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 with priority upgrading is the power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrading reliability test of the server power supply under the simulated power supply fault is passed; if the power supply of the priority upgrade is not the power supply to be tested and/or the upgrade of the existing power supply in the server power supply is unsuccessful, determining that the upgrade reliability test of the server power supply under the simulated power supply fault is not passed.
In one embodiment, performing reliability verification of power firmware upgrades to a plurality of power supplies to be tested; the computer program when executed by the processor also performs the steps of:
Transmitting a fault register value corresponding to the simulated power supply fault to a first power supply to be tested in the server power supply; after the power firmware upgrading execution 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 simulated power failure.
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 each fault register value corresponds to a unique simulated power failure, the simulated power failure comprising: one or more of a power supply voltage above the first preset value, a power supply voltage below the second preset value, a power supply current above the third preset value, a power supply current below the fourth preset value, a power supply temperature above the fifth preset value, and a power supply temperature below the sixth preset value.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the figures described above may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (8)

1. A method for verifying the reliability of a firmware upgrade of 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 fact that the power supply to be tested writes in 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 the power firmware according to the upgrading instruction;
receiving a power firmware upgrading result returned by the server power supply, and determining the upgrading sequence and the upgrading state of each power supply in the server power supply according to the upgrading result;
judging whether the power supply of the server, which is upgraded preferentially, is the 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 with the priority upgrading is the power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrading reliability verification of the server power supply under the simulated power supply fault is passed; if the power supply with the priority upgrading is not the power supply to be tested and/or the upgrading of the existing power supply in the server power supply is unsuccessful, determining that the upgrading reliability verification of the server power supply under the simulated power supply fault is not passed.
2. The method of claim 1, wherein the step of sending a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction comprises:
determining a simulated power supply fault to be tested according to the fault 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 2, wherein the plurality of power supplies under test are subjected to a reliability verification of power firmware upgrades;
the step of sending the fault register value corresponding to the simulated power failure to the power supply to be tested in the server power supply comprises the following steps:
transmitting a fault register value corresponding to the simulated power supply fault to a first power supply to be tested in a server power supply;
after the power firmware upgrading execution corresponding to the first power supply to be tested is determined to be completed, the fault register value is sent to a second power supply to be tested in the server power supply, and the like until the fault register value is sent to each power supply to be tested in the server power supply, so that the reliability of the power firmware upgrading of each power supply to be tested under the simulated power failure is verified.
4. The method of claim 1, further comprising, after the step of obtaining an upgrade reliability verification result of the server power supply according to the upgrade order and the upgrade status:
and displaying the upgrading sequence, the upgrading state and the verification result through a visual interface.
5. The method according to any one of claims 1 to 4, further comprising, before the step of sending a preset fault register value to a power supply to be tested in a server power supply according to the fault simulation instruction: presetting a plurality of different fault register values; wherein each fault register value corresponds to a unique analog power failure comprising: one or more of a power supply voltage above the first preset value, a power supply voltage below the second preset value, a power supply current above the third preset value, a power supply current below the fourth preset value, a power supply temperature above the fifth preset value, and a power supply temperature below the sixth preset value.
6. A device for verifying the reliability of a firmware upgrade of a server power supply, said device comprising:
the register value sending module is used for obtaining a preset 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;
The upgrade 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 to be tested writes in the failure register value, and sending a power firmware upgrade 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 upgrade instruction;
the reliability verification module is used for receiving a power firmware upgrading result returned by the server power supply, determining the upgrading sequence and the upgrading state of each power supply in the server power supply according to the upgrading result, 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, judging whether each power supply in the server power supply is successfully upgraded according to the upgrading state, and if the power supply which is preferentially upgraded is the power supply to be tested and each power supply in the server power supply is successfully upgraded, determining that the upgrading reliability verification of the server power supply under the simulated power supply fault is passed, and if the power supply which is preferentially upgraded is not the power supply to be tested and/or the power supply which exists in the server power supply is not successfully upgraded, determining that the upgrading reliability verification of the server power supply under the simulated power supply fault is not passed.
7. 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 processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by the processor.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
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 CN114138587A (en) 2022-03-04
CN114138587B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309250B (en) * 2022-07-29 2024-05-24 苏州浪潮智能科技有限公司 Method and system for improving reliability of power supply oring
CN117331723B (en) * 2023-11-30 2024-02-27 苏州元脑智能科技有限公司 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

Also Published As

Publication number Publication date
CN114138587A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
US9747192B2 (en) Automated operating system installation on multiple drives
CN110888414B (en) Test method for upgrading vehicle controller
US9984244B2 (en) Controller, information processing apparatus, and recording medium
CN106547653B (en) Computer system fault state detection method, device and system
US20140236914A1 (en) Controller, information processing apparatus, and recording medium
US9542304B1 (en) Automated operating system installation
CN111104275A (en) Automatic testing method and device for flash SSD hard disk power supply
CN109509508A (en) Abnormal power failure test method, device, medium and equipment for SSD
CN116340076B (en) Hard disk performance test method, device and medium
CN117251333A (en) Method, device, equipment and storage medium for acquiring hard disk information
CN112485572A (en) System, method, equipment and storage medium for testing radiation anti-interference degree of server
CN108364670B (en) Read-write pressure testing method, device, equipment and storage medium
CN110739025A (en) storage equipment power failure test method, device and system
TW202018312A (en) Testing system
CN116680101A (en) Method and device for detecting downtime of operating system, and method and device for eliminating downtime of operating system
CN115757099A (en) Automatic test method and device for platform firmware protection recovery function
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN106909489B (en) Method and device for testing EventLog state
CN111078484B (en) Power-off test method, device, equipment and storage medium for system upgrade
TW202018507A (en) A host boot detection method and its system
CN118012685B (en) Automatic test method and device for server AC
CN113094221B (en) Fault injection method, device, computer equipment and readable storage medium
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN115827359A (en) Alarm verification method and test machine

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