Server power supply fault test method and system, computer equipment and medium

By obtaining fault factors and analyzing analog register information, the server power failure status is automatically tested, and the problems of low manual operation efficiency and load meter range limitation in the existing technology are solved, achieving a wider test range and efficient fault detection.

CN119126956APending Publication Date: 2024-12-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411102108.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The prior art has problems of low manual operation efficiency and limited load meter pressurization range in server power failure testing, resulting in insufficient test range and efficiency.

Method used

By obtaining fault factors, analyzing simulated register information, modifying the threshold of the server power supply, and monitoring the current test value to automate the test server power failure status, it covers a wider range of tests and improves test efficiency.

Benefits of technology

It realizes automated testing as needed, covers a wider range of tests, improves testing efficiency, reduces dependence on load instruments, and ensures accurate detection and timely alarms of server power failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119126956A_ABST
    Figure CN119126956A_ABST
Patent Text Reader

Abstract

The invention discloses a server power supply fault testing method and system, computer equipment and a medium, and relates to the technical field of testing, and the method comprises the steps: obtaining a to-be-tested fault of a server power supply, and determining a fault factor corresponding to the to-be-tested fault; analyzing the fault factor to obtain analog register information associated with the to-be-tested fault; modifying a threshold value of a register in the server power supply into a simulation threshold value according to the simulation register information; and monitoring a current test value in the server power supply, and determining that the server power supply is in a fault state in response to the fact that the current test value exceeds the simulation threshold value. According to the application, the power supply can be set to test related items according to test conditions required to be carried out, the coverage test range is wider, and the test efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a server power failure testing method, system, computer equipment and medium. Background Art

[0002] The server power supply, or PSU (Power Supply Unit), is one of the most important components in the computer system. Its function is to provide stable power to the computer to ensure the normal operation of the computer. In order to ensure stable power supply during the operation of the server, it is necessary to detect the server power supply to determine the server power supply status and issue an alarm when the server power supply may fail, so as to remind the staff to diagnose and handle the fault in time.

[0003] In some related technologies, different test items are usually set manually to test the test conditions of the power supply one by one. Manual operation is inefficient and may result in operational errors. Alternatively, a load meter is used to perform related pressure tests. However, the pressure range provided by the load meter itself is limited. Therefore, the test range and test items of the related pressure tests performed by the load meter are also limited. Summary of the invention

[0004] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a server power supply failure testing method, system, computer equipment and medium, which can set the power supply to test related projects according to the test conditions required, and directly perform automated testing without the need for load meter auxiliary testing. The test range covered is wider and the test efficiency is high.

[0005] The specific technical solutions provided by the embodiments of this application are as follows:

[0006] In a first aspect, a method for testing a server power failure is provided, the method comprising:

[0007] Obtain a to-be-tested fault of a server power supply, and confirm a fault factor causing the to-be-tested fault;

[0008] Analyzing the fault factor to obtain simulation register information associated with the fault to be tested;

[0009] Obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0010] A current test value in the server power supply is monitored, and in response to the current test value exceeding the simulation threshold, the server power supply is confirmed to be in a fault state.

[0011] In a specific embodiment, the method also includes: collecting historical fault information and information on factors causing faults, and constructing an alarm data structure table in combination with the historical fault information and the information on factors causing faults; in response to performing the fault to be tested on the server power supply, querying the alarm data structure table according to the fault to be tested to obtain the fault factor.

[0012] In a specific embodiment, the method also includes: setting a server power supply to be communicatively connected to a baseboard management controller, and in response to performing a fault test on the server power supply, sending the fault factor to the baseboard management controller; parsing the fault factor by the baseboard management controller to obtain the simulation register information.

[0013] In a specific embodiment, before the baseboard management controller parses the fault factor, the method also includes: querying the alarm data structure table according to the fault to be tested to obtain initial format data; converting the initial format data into a fault factor in a preset format, and sending the fault factor in the preset format to the baseboard management controller.

[0014] In a specific embodiment, the method also includes: before responding to a fault test on the server power supply, setting a register configuration permission to open the server power supply; reading the type information of the server power supply with the register configuration permission open, and converting the analog register information into analog register information in an updated format in combination with the type information; so that the baseboard management controller writes the analog register information in the updated format into the register of the server power supply; in response to completion of the threshold modification of the register in the server power supply, monitoring the current test value in the server power supply at preset intervals; in response to the current test value exceeding the analog threshold or the server power supply being abnormal, configuring the state of the server power supply to have a first identifier, the first identifier being used to identify the server power supply as being in a fault state; or, in response to the current test value not exceeding the analog threshold, configuring the state of the server power supply to have a second identifier, the second identifier being used to identify the server power supply as being in a normal state; in response to completion of the server power supply fault test, setting a register configuration permission to close the server power supply.

[0015] In a specific embodiment, the first identifier is a preset fault bit of the server power supply, which is 1, and the second identifier is a preset fault bit of the server power supply, which is 0.

[0016] In a specific embodiment, after confirming that the server power supply is in a fault state, the method also includes: confirming that the server power supply is in a fault state, generating alarm information, and sending the alarm information to a baseboard management controller via a serial bus; in response to obtaining the alarm information, reading the alarm information in the baseboard management controller through a preset command.

[0017] In a second aspect, a server power supply failure test system is provided, which is used to implement the server power supply failure test method as described above, and the system includes:

[0018] A confirmation unit, used to obtain a to-be-tested fault of a server power supply and confirm a fault factor causing the to-be-tested fault;

[0019] An analysis unit, used for analyzing the fault factor to obtain simulation register information associated with the fault to be tested;

[0020] A modification unit, configured to obtain a simulation threshold value in the simulation register information, and modify the threshold value of the register in the server power supply to the simulation threshold value;

[0021] The testing unit is used to monitor a current test value in the server power supply, and confirm that the server power supply is in a fault state in response to the current test value exceeding the simulation threshold.

[0022] In a third aspect, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the method described below:

[0023] Step A: obtaining a to-be-tested fault of a server power supply, and confirming a fault factor causing the to-be-tested fault;

[0024] Step B: analyzing the fault factor to obtain simulation register information associated with the fault to be tested;

[0025] Step C: obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0026] Step D: monitoring a current test value in the server power supply, and confirming that the server power supply is in a fault state in response to the current test value exceeding the simulation threshold.

[0027] In a fourth aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0028] Step A: obtaining a to-be-tested fault of a server power supply, and confirming a fault factor causing the to-be-tested fault;

[0029] Step B: analyzing the fault factor to obtain simulation register information associated with the fault to be tested;

[0030] Step C: obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0031] Step D: monitoring a current test value in the server power supply, and confirming that the server power supply is in a fault state in response to the current test value exceeding the simulation threshold.

[0032] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0033] Step A: obtaining a to-be-tested fault of a server power supply, and confirming a fault factor causing the to-be-tested fault;

[0034] Step B: analyzing the fault factor to obtain simulation register information associated with the fault to be tested;

[0035] Step C: obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0036] Step D: monitoring a current test value in the server power supply, and confirming that the server power supply is in a fault state in response to the current test value exceeding the simulation threshold.

[0037] The embodiments of the present application have the following beneficial effects:

[0038] 1. The server power supply fault testing method provided in the embodiment of the present application firstly confirms the fault factor causing the fault to be tested by querying the alarm data structure table according to the fault information to be tested, sends the data such as the ancient war drum factor to the baseboard management controller, and parses the data such as the fault factor through the baseboard management controller to obtain the simulation register information associated with the fault to be tested, modifies the threshold of the register in the server power supply to be tested to the simulation threshold according to the simulation register information, and then starts to monitor the running server power supply. When the current test value of the server power supply is monitored, in response to the current test value exceeding the simulation threshold, it indicates that the server power supply is in a fault state. Through this scheme, the power supply can be set to test the relevant items according to the test conditions to be performed as needed, and there is no need to directly perform automated testing through the auxiliary test of the load meter. The test range covered is wider and the test efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 A schematic diagram showing an application architecture according to the present application;

[0041] Figure 2 A schematic diagram showing a method for testing a server power failure according to the present application is shown;

[0042] Figure 3 A schematic diagram showing specific execution steps in the application architecture according to the present application;

[0043] Figure 4 A schematic diagram of a server power failure test system according to the present application is shown;

[0044] Figure 5 A schematic diagram showing a computer device according to the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The server power failure test method provided in this application can be applied to Figure 1 The application architecture shown includes a server, a baseboard management controller and a user end, wherein the server end can be implemented with an independent server or a server cluster composed of multiple servers. The server end includes a server power supply, which is communicated with the baseboard management controller via an I2C bus to enable the baseboard management controller to read and write data in the server power supply via the I2C bus, that is, the data stream generated by the server power supply flows to the baseboard management controller and the user end in turn; at the same time, the baseboard management controller and the user end are connected through network communication to enable the user end to transmit data to the baseboard management controller through preset commands, and the baseboard management controller writes the received user-transmitted data into the server power supply via the I2C bus.

[0047] In one embodiment, Figure 2 As shown, a server power supply failure test method is provided, and the method is applied to Figure 1 The architecture in is taken as an example, including the following steps:

[0048] Step 101: Obtain a to-be-tested fault of a server power supply, and confirm a fault factor causing the to-be-tested fault.

[0049] It should be noted that the specific fault type for testing the server power supply needs to be confirmed, where the faults to be tested include but are not limited to overcurrent, overvoltage, undervoltage, short circuit, hard disk backplane indicator light not lit, mainboard indicator light not lit, and IO board indicator light not lit. The faults to be tested are determined based on the required test content.

[0050] Before confirming the fault factor causing the fault to be tested, it includes collecting historical fault information and information on factors causing the fault, and constructing an alarm data structure table in combination with the historical fault information and the information on factors causing the fault; in response to performing the fault to be tested test on the server power supply, querying the alarm data structure table according to the fault to be tested to obtain the fault factor.

[0051] In the present embodiment, during the use of the server power supply, the status of the server power supply is detected according to a preset period by the internal monitoring circuit of the server power supply, and fault-related information of the server power supply is collected to form an alarm data structure table. Specifically, the faults to be tested, power supply addresses, data formats, and expected alarms in the operation of the server power supply are collected, and an alarm data structure table is formed based on the faults to be tested, power supply addresses, data formats, and expected alarms.

[0052] Exemplarily, the fault to be tested is "PSU1 output overcurrent warning", the corresponding power supply address is "Bus1Addr1", the corresponding data format is "Bus1,Addr1,0x4A,0x000C", and the corresponding expected alarm is "IOUT_OC_WARNING"; the fault to be tested is "PSU1 output overcurrent alarm", the corresponding power supply address is "Bus1 Addr1", the corresponding data format is "Bus1,Addr1,0x46,0x0014", and the corresponding expected alarm is "IOUT_OC_FAULT"; the fault to be tested is "PSU1 output overvoltage alarm", the corresponding power supply address is "Bus1,Addr1,0x40,0x1800", and the corresponding expected alarm is "VOUT_OV_FAULT".

[0053] Step 102: Analyze the fault factor to obtain simulation register information associated with the fault to be tested.

[0054] This embodiment also includes setting up a server power supply to communicate with a baseboard management controller. In response to a fault test on the server power supply, the fault factor is sent to the baseboard management controller so that the baseboard management controller analyzes the fault factor and obtains simulation register information.

[0055] In a specific embodiment, the fault factor includes the information of the server power supply to be tested, the address of the server power supply, the I2C bus where the server power supply is located, and the register information to be modified in the server power supply, which is sent to the baseboard management controller. The baseboard management controller transmits the above data to the server power supply to enable the server power supply to perform subsequent operations based on the above data information.

[0056] It should be noted that the data in the alarm data structure table is processed data. After the fault factor data is queried through the alarm data structure table, the data format of the fault factor needs to be converted. Specifically, before the baseboard management controller parses the fault factor, it queries the alarm data structure table according to the fault to be tested to obtain the initial format data; converts the initial format data into a fault factor in a preset format, and sends the fault factor in the preset format to the baseboard management controller.

[0057] Exemplarily, the initial format data queried from the alarm data structure table is "Bus1, Addr1, 0x4A, 0x000C". The above initial format data is converted into "ipmitool command" and sent to the baseboard management controller, that is, converted into "ipmitoolNetFn CMD Bus1, Addr1, 0x4A, 0x000C". After the baseboard management controller receives the fault factor data in the preset format, it parses the fault factor data in the preset format.

[0058] Exemplarily, the configuration of the fault to be tested includes current, input voltage, power consumption, and temperature data. The data format of the fault factor of the fault to be tested is set to use "PMBUS V1.2 Linear-11", and the data format of the output voltage is "PMBUSV1.2 Linear-16".

[0059] Step 103: Obtain the simulation threshold in the simulation register information, and modify the threshold of the register in the server power supply to the simulation threshold.

[0060] In order to ensure that the register data in the server power supply is modified according to the simulated register information, it is necessary to set the support of the register from the modification of the server power supply, specifically including setting the register configuration permission of the server power supply to be opened before responding to the fault test of the server power supply; reading the type information of the server power supply with the open register configuration permission, and converting the simulated register information into the simulated register information in the updated format in combination with the type information; so that the baseboard management controller writes the simulated register information in the updated format into the register of the server power supply.

[0061] It should be noted that the initial value and modified value of the threshold value of the register of the server power supply are data stored in accordance with the "PMbus protocol". For example, the initial setting value of the fault to be tested is "12V output OCW" is "0xF3C6 (241.5A)", and the value in the register is "0xF3C6". Combined with the type of the server power supply, the analog register value of the updated format of this server power supply is converted to "241.5A", and then the analog register value of this updated format is written into the register of the server power supply.

[0062] Alternatively, in a specific embodiment, by using a preset power supply hardware test firmware when testing the server power supply, in response to completion of a fault test on the server power supply, the baseboard management controller controls the hardware test firmware of the server power supply to be flashed back to a normal version through the I2C bus; so as to open the register setting permission of the server power supply during the test, and lock the register setting permission of the server power supply after the test is completed.

[0063] Specifically, the threshold values ​​of various parameters inside the server power supply are fixed inside the server power supply according to the hardware design of the server power supply component itself. The various threshold parameters in the server power supply are fixed to fixed values ​​based on the PMbus protocol, and modification or writing of the threshold values ​​in the registers is not supported. By setting the register configuration permissions of the open server power supply, the baseboard management controller is supported to read and write the register information in the server power supply through the I2C bus.

[0064] For example, taking a 12V server power supply as an example, the initial setting value of the fault to be tested is "12V output OCW" is "0xF3C6 (241.5A)", and the value in the register is "0xF3C6". The register that requires the server power supply to set the open register configuration permission is "Iout_OC_Warn_Limit 0x4A".

[0065] Step 104: monitor the current test value of the server power supply, and in response to the current test value exceeding the simulation threshold, confirm that the server power supply is in a fault state.

[0066] In a specific embodiment, in response to completion of threshold modification of a register in the server power supply, a current test value in the server power supply is monitored at preset intervals; in response to the current test value exceeding the simulation threshold or the server power supply being abnormal, the state of the server power supply is configured to have a first identifier, and the first identifier is used to identify that the server power supply is in a fault state; or, in response to the current test value not exceeding the simulation threshold, the server power supply state is configured to have a second identifier, and the second identifier is used to identify that the server power supply is in a normal state; in response to completion of the server power supply fault test, the register configuration permission of the server power supply is set to be turned off.

[0067] In this embodiment, the first identifier is a preset fault bit of the server power supply, which is 1, and the second identifier is a preset fault bit of the server power supply, which is 0.

[0068] It should be noted that, in this embodiment, the current test value of the server power supply is read, wherein the current test value includes but is not limited to voltage, current and temperature. When it is monitored that the parameter exceeds the analog threshold, the server power supply state is triggered to have a first flag, wherein the first flag is set to the fault bit of the "79 status word" of the server power supply to 1; or, when it is monitored that the parameter does not exceed the analog threshold, the server power supply state is triggered to have a second flag, wherein the second flag is set to the fault bit of the "79 status word" of the server power supply to 0.

[0069] In a specific embodiment, after confirming that the server power supply is in a fault state, the method also includes: confirming that the server power supply is in a fault state, generating alarm information, and sending the alarm information to a baseboard management controller via a serial bus; in response to obtaining the alarm information, reading the alarm information in the baseboard management controller through a preset command.

[0070] Specifically, Figure 3 As shown, when the server power supply is detected to be in a fault state, an alarm message is generated, and the server power supply sends the alarm message to the baseboard management controller through the I2C bus. The baseboard management controller records the alarm message in the log. At this time, the user end reads the alarm message in the baseboard management controller through the IPMI command.

[0071] In this embodiment, the fault to be tested is taken as "IOUT_OC_WARNING" as an example. The current test value of the server power supply is polled at preset intervals. Under normal circumstances, the initial threshold is "200A+" and the power supply current is "100A+". The threshold of the server power supply is modified to "12A" according to the analog register information, so that when the current test value exceeds the analog threshold, the interrupt register event is triggered; at the same time, the status word of the server power supply is modified to the fault bit. Further, when the alarm information is obtained, the alarm data structure table is queried, and the alarm information content is compared with the data in the alarm data structure table. If the content is consistent, it means that the test case has passed; or, if the content is inconsistent, the test case has failed.

[0072] It should be noted that, in order to improve the efficiency of testing the alarm data structure table, a test script is set to test the test cases in the alarm data structure table one by one.

[0073] Through the scheme in this embodiment, the power supply can be set to test related projects according to the test conditions required, and the automated test can be directly performed without the need for auxiliary testing through a load meter. The test range covered is wider and the test efficiency is high.

[0074] It should be understood that although Figure 2 and Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 and Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0075] In one embodiment, Figure 4 As shown, a server power supply failure test system is provided, which is used to implement the server power supply failure test method as described above, and the system includes:

[0076] A confirmation unit, used to obtain a to-be-tested fault of a server power supply and confirm a fault factor causing the to-be-tested fault;

[0077] An analysis unit, used for analyzing the fault factor to obtain simulation register information associated with the fault to be tested;

[0078] A modification unit, configured to obtain a simulation threshold value in the simulation register information, and modify the threshold value of the register in the server power supply to the simulation threshold value;

[0079] The testing unit is used to monitor a current test value in the server power supply, and confirm that the server power supply is in a fault state in response to the current test value exceeding the simulation threshold.

[0080] In a specific embodiment, the confirmation unit is also used to collect historical fault information and information on factors causing faults, and to construct an alarm data structure table in combination with the historical fault information and the information on factors causing faults; in response to performing the fault to be tested on the server power supply, the alarm data structure table is queried according to the fault to be tested to obtain the fault factor.

[0081] In a specific embodiment, the parsing unit is also used to set up a server power supply communication connection with a baseboard management controller, and in response to a fault test on the server power supply, the fault factor is sent to the baseboard management controller; the fault factor is parsed by the baseboard management controller to obtain the simulation register information.

[0082] In a specific embodiment, the parsing unit is also used to query the alarm data structure table according to the fault to be tested to obtain initial format data before the baseboard management controller parses the fault factor; convert the initial format data into a fault factor in a preset format, and send the fault factor in the preset format to the baseboard management controller.

[0083] In a specific embodiment, the test unit is also used to set the register configuration permission of the server power supply to be opened before responding to the fault test of the server power supply; read the type information of the server power supply with the open register configuration permission, and convert the analog register information into the analog register information in the updated format in combination with the type information; so that the baseboard management controller writes the analog register information in the updated format into the register of the server power supply; in response to the completion of the threshold modification of the register in the server power supply, monitor the current test value in the server power supply at preset intervals; in response to the current test value exceeding the analog threshold or the server power supply being abnormal, configure the state of the server power supply to have a first identifier, and the first identifier is used to identify that the server power supply is in a fault state; or, in response to the current test value not exceeding the analog threshold, configure the state of the server power supply to have a second identifier, and the second identifier is used to identify that the server power supply is in a normal state; in response to the completion of the server power supply fault test, set the register configuration permission of the server power supply to be closed.

[0084] In a specific embodiment, the first identifier is a preset fault bit of the server power supply, which is 1, and the second identifier is a preset fault bit of the server power supply, which is 0.

[0085] In a specific embodiment, the test unit is also used to, after confirming that the server power supply is in a fault state, generate an alarm message, and send the alarm message to the baseboard management controller via a serial bus; in response to obtaining the alarm message, read the alarm message in the baseboard management controller via a preset command.

[0086] For the specific definition of the server power failure test system, please refer to the definition of the server power failure test method above, which will not be repeated here. Each module in the above server power failure test system can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0087] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store alarm data structure table data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a server power failure test method is implemented.

[0088] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0089] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the method described below:

[0090] Step 201: Obtain a to-be-tested fault of a server power supply, and confirm a fault factor causing the to-be-tested fault;

[0091] Step 202: Analyze the fault factor to obtain simulation register information associated with the fault to be tested;

[0092] Step 203: obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0093] Step 204: monitor the current test value of the server power supply, and in response to the current test value exceeding the simulation threshold, confirm that the server power supply is in a fault state.

[0094] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0095] Collect historical fault information and information on factors causing the faults, and construct an alarm data structure table in combination with the historical fault information and the information on factors causing the faults; in response to performing the to-be-tested fault test on the server power supply, query the alarm data structure table according to the to-be-tested fault to obtain the fault factor.

[0096] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0097] The server power supply is set to be communicatively connected with a baseboard management controller. In response to a fault test on the server power supply, the fault factor is sent to the baseboard management controller. The baseboard management controller parses the fault factor to obtain the simulation register information.

[0098] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0099] Before the baseboard management controller parses the fault factor, the alarm data structure table is queried according to the fault to be tested to obtain initial format data; the initial format data is converted into a fault factor of a preset format, and the fault factor of the preset format is sent to the baseboard management controller.

[0100] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0101] Before responding to a fault test on the server power supply, setting a register configuration permission for opening the server power supply; reading the type information of the server power supply for opening the register configuration permission, and converting the analog register information into analog register information in an updated format in combination with the type information; so that the baseboard management controller writes the analog register information in the updated format into the register of the server power supply; in response to completion of the threshold modification of the register in the server power supply, monitoring the current test value in the server power supply at preset intervals; in response to the current test value exceeding the analog threshold or the server power supply being abnormal, configuring the state of the server power supply to have a first identifier, the first identifier being used to identify the server power supply as being in a fault state; or, in response to the current test value not exceeding the analog threshold, configuring the state of the server power supply to have a second identifier, the second identifier being used to identify the server power supply as being in a normal state; in response to completion of the server power supply fault test, setting a register configuration permission for closing the server power supply.

[0102] The first identifier is a preset fault bit of the server power supply, which is 1; and the second identifier is a preset fault bit of the server power supply, which is 0.

[0103] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0104] After confirming that the server power supply is in a fault state, generating alarm information, and sending the alarm information to a baseboard management controller via a serial bus; in response to obtaining the alarm information, reading the alarm information in the baseboard management controller via a preset command.

[0105] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0106] Step 301: Obtain a to-be-tested fault of a server power supply, and confirm a fault factor causing the to-be-tested fault;

[0107] Step 302: Analyze the fault factor to obtain simulation register information associated with the fault to be tested;

[0108] Step 303: obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0109] Step 304: monitor the current test value of the server power supply, and in response to the current test value exceeding the simulation threshold, confirm that the server power supply is in a fault state.

[0110] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0111] Collect historical fault information and information on factors causing the faults, and construct an alarm data structure table in combination with the historical fault information and the information on factors causing the faults; in response to performing the to-be-tested fault test on the server power supply, query the alarm data structure table according to the to-be-tested fault to obtain the fault factor.

[0112] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0113] The server power supply is set to be communicatively connected with a baseboard management controller. In response to a fault test on the server power supply, the fault factor is sent to the baseboard management controller. The baseboard management controller parses the fault factor to obtain the simulation register information.

[0114] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0115] Before the baseboard management controller parses the fault factor, the alarm data structure table is queried according to the fault to be tested to obtain initial format data; the initial format data is converted into a fault factor of a preset format, and the fault factor of the preset format is sent to the baseboard management controller.

[0116] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0117] Before responding to a fault test on the server power supply, setting a register configuration permission for opening the server power supply; reading the type information of the server power supply for opening the register configuration permission, and converting the analog register information into analog register information in an updated format in combination with the type information; so that the baseboard management controller writes the analog register information in the updated format into the register of the server power supply; in response to completion of the threshold modification of the register in the server power supply, monitoring the current test value in the server power supply at preset intervals; in response to the current test value exceeding the analog threshold or the server power supply being abnormal, configuring the state of the server power supply to have a first identifier, the first identifier being used to identify the server power supply as being in a fault state; or, in response to the current test value not exceeding the analog threshold, configuring the state of the server power supply to have a second identifier, the second identifier being used to identify the server power supply as being in a normal state; in response to completion of the server power supply fault test, setting a register configuration permission for closing the server power supply.

[0118] The first identifier is a preset fault bit of the server power supply, which is 1; and the second identifier is a preset fault bit of the server power supply, which is 0.

[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0120] After confirming that the server power supply is in a fault state, generating alarm information, and sending the alarm information to a baseboard management controller via a serial bus; in response to obtaining the alarm information, reading the alarm information in the baseboard management controller via a preset command.

[0121] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0122] Step 401: Obtain a to-be-tested fault of a server power supply, and confirm a fault factor causing the to-be-tested fault;

[0123] Step 402: Analyze the fault factor to obtain simulation register information associated with the fault to be tested;

[0124] Step 403: obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold;

[0125] Step 404: monitor the current test value of the server power supply, and in response to the current test value exceeding the simulation threshold, confirm that the server power supply is in a fault state.

[0126] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0127] Collect historical fault information and information on factors causing the faults, and construct an alarm data structure table in combination with the historical fault information and the information on factors causing the faults; in response to performing the to-be-tested fault test on the server power supply, query the alarm data structure table according to the to-be-tested fault to obtain the fault factor.

[0128] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0129] The server power supply is set to be communicatively connected with a baseboard management controller. In response to a fault test on the server power supply, the fault factor is sent to the baseboard management controller. The baseboard management controller parses the fault factor to obtain the simulation register information.

[0130] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0131] Before the baseboard management controller parses the fault factor, the alarm data structure table is queried according to the fault to be tested to obtain initial format data; the initial format data is converted into a fault factor of a preset format, and the fault factor of the preset format is sent to the baseboard management controller.

[0132] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0133] Before responding to the fault test of the server power supply, setting the register configuration permission of the server power supply to be opened; reading the type information of the server power supply with the register configuration permission opened, and converting the analog register information into the analog register information in the updated format in combination with the type information; so that the baseboard management controller writes the analog register information in the updated format into the register of the server power supply;

[0134] In response to completion of the threshold modification of the register in the server power supply, monitoring the current test value in the server power supply at preset intervals; in response to the current test value exceeding the simulation threshold or the server power supply being abnormal, configuring the state of the server power supply to have a first identifier, the first identifier being used to identify that the server power supply is in a fault state; or, in response to the current test value not exceeding the simulation threshold, configuring the server power supply state to have a second identifier, the second identifier being used to identify that the server power supply is in a normal state; in response to completion of the server power supply fault test, setting the register configuration permission to shut down the server power supply.

[0135] The first identifier is a preset fault bit of the server power supply, which is 1; and the second identifier is a preset fault bit of the server power supply, which is 0.

[0136] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0137] After confirming that the server power supply is in a fault state, generating alarm information, and sending the alarm information to a baseboard management controller via a serial bus; in response to obtaining the alarm information, reading the alarm information in the baseboard management controller via a preset command.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. 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. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A server power failure testing method, characterized in that: The method comprises: Obtain a to-be-tested fault of a server power supply, and confirm a fault factor causing the to-be-tested fault; Analyzing the fault factor to obtain simulation register information associated with the fault to be tested; Obtaining the simulation threshold in the simulation register information, and modifying the threshold of the register in the server power supply to the simulation threshold; A current test value of the server power supply is monitored, and in response to the current test value exceeding the simulation threshold, the server power supply is confirmed to be in a fault state.

2. The server power failure testing method according to claim 1, characterized in that: The method further comprises: Collecting historical fault information and information about factors causing the faults, and constructing an alarm data structure table in combination with the historical fault information and the information about factors causing the faults; In response to performing the to-be-tested fault test on the server power supply, the alarm data structure table is queried according to the to-be-tested fault to obtain the fault factor.

3. The server power failure testing method according to claim 1 or 2, characterized in that: The method further comprises: Setting a server power supply to be communicatively connected to a baseboard management controller, and in response to performing a fault test on the server power supply, sending the fault factor to the baseboard management controller; The fault factor is analyzed by the baseboard management controller to obtain the simulation register information.

4. The server power failure testing method according to claim 3, characterized in that: Before the baseboard management controller analyzes the fault factor, the method further includes: According to the fault to be tested, query the alarm data structure table to obtain initial format data; The initial format data is converted into a fault factor in a preset format, and the fault factor in the preset format is sent to a baseboard management controller.

5. The server power failure testing method according to claim 3, characterized in that: The method further comprises: Before responding to performing a fault test on the server power supply, setting a register configuration permission for opening the server power supply; Read the type information of the server power supply with open register configuration permission, and convert the analog register information into analog register information in an updated format in combination with the type information; so that the baseboard management controller writes the analog register information in the updated format into the register of the server power supply; In response to completion of modifying the threshold of the register in the server power supply, monitoring the current test value in the server power supply at preset intervals; In response to the current test value exceeding the simulation threshold or the server power supply being abnormal, configuring the state of the server power supply to have a first identifier, wherein the first identifier is used to identify that the server power supply is in a fault state; Alternatively, in response to the current test value not exceeding the simulation threshold, the server power state is configured to have a second identifier, wherein the second identifier is used to identify that the server power state is normal; In response to the server power failure test being completed, setting a register configuration permission for shutting down the server power supply.

6. The server power failure testing method according to claim 4, characterized in that: The first identifier is a preset fault bit of the server power supply, which is 1; the second identifier is a preset fault bit of the server power supply, which is 0.

7. The server power failure testing method according to claim 3, characterized in that: After confirming that the server power supply is in a fault state, the method further includes: Confirming that the server power supply is in a fault state, generating an alarm message, and sending the alarm message to a baseboard management controller via a serial bus; In response to acquiring the alarm information, the alarm information in the baseboard management controller is read through a preset command.

8. A server power failure test system, used to implement the server power failure test method according to any one of claims 1 to 7, characterized in that: The system comprises: A confirmation unit, used to obtain a to-be-tested fault of a server power supply and confirm a fault factor causing the to-be-tested fault; An analysis unit, used for analyzing the fault factor to obtain simulation register information associated with the fault to be tested; A modification unit, configured to obtain a simulation threshold value in the simulation register information, and modify the threshold value of the register in the server power supply to the simulation threshold value; The testing unit is used to monitor a current test value in the server power supply, and confirm that the server power supply is in a fault state in response to the current test value exceeding the simulation threshold.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Chip fault test method and electronic equipment

    CN121255557A

  • A chip fault testing method and electronic device

    CN121255557B

  • Server alarm function detection method and electronic equipment

    CN121396851A