CN115480627A - Power supply testing method and device for server, electronic equipment and readable medium - Google Patents

Power supply testing method and device for server, electronic equipment and readable medium Download PDF

Info

Publication number
CN115480627A
CN115480627A CN202211214631.4A CN202211214631A CN115480627A CN 115480627 A CN115480627 A CN 115480627A CN 202211214631 A CN202211214631 A CN 202211214631A CN 115480627 A CN115480627 A CN 115480627A
Authority
CN
China
Prior art keywords
power
power supply
test
server
supplies
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211214631.4A
Other languages
Chinese (zh)
Inventor
房超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202211214631.4A priority Critical patent/CN115480627A/en
Publication of CN115480627A publication Critical patent/CN115480627A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • 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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested

Abstract

The application provides a power supply testing method and device for a server, electronic equipment and a readable medium, and belongs to the technical field of computers. The method comprises the following steps: responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply on-off table, wherein the power supply on-off table is used for describing an electrified power supply and a power-off power supply corresponding to each test in the plurality of power supplies; controlling the corresponding electrified power supply to be electrified and the corresponding power-off power supply to be powered off in the test indicated in the power supply on-off table; under the condition that the power-on power supply is powered on and the power-off power supply is powered off, testing the server to obtain a power supply test result; and testing the plurality of power supplies of the server again based on the power-on power supply and the power-off power supply corresponding to the next test described by the power supply on-off table until each test in the power supply on-off table is completed.

Description

Power supply testing method and device for server, electronic equipment and readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a power supply testing method and apparatus for a server, an electronic device, and a readable medium.
Background
Nowadays, large enterprises and important industries (such as finance, securities, traffic, post and telecommunications, and the like) need to use servers as important bottom-layer supporting equipment of core services of a data center, and with the continuous increase of the traffic, in addition to the capacity expansion and optimization of the servers, the enterprises need to erect more servers to meet more and more service requirements. In order to ensure the normal operation of the existing servers, in addition to the normal uninterrupted power support, the servers also need to be added with a standby power supply to ensure the continuous operation of the servers. Generally, each server is provided with a plurality of power supply devices, one of the power supply devices can be set to be in an active mode and the other power supply devices can be set to be in a Standby mode in the BMC, when one of the power supply devices stops supplying power for external or internal reasons, the other power supply device can immediately enter the active mode, and during power failure and mode conversion, the service on the server needs to be ensured to normally operate, and various key performance indexes in the system cannot be influenced.
The existing server performance testing method under the switching of the main power supply and the standby power supply of the server is as follows (taking two power supplies as an example): firstly, manually operating a pressure testing tool on a machine, pressurizing a CPU, a memory and a hard disk by the tool, recording the operating state of the machine in real time, then entering a Web end to open a BMC (baseboard management controller), setting one power supply in the BMC to be an Active mode, setting the other power supply to be a Standby mode, manually pulling out a power supply wire of the power supply set to be the Active mode, and observing whether the operating state of the machine is influenced or not in the period; and testing in reverse, setting one power supply to be in a Standby mode and the other power supply to be in an Active mode, manually pulling out the power supply line of the power supply set to be in the Active mode, and observing whether the running state of the machine is influenced again. The test is repeated for many times, and whether the running states of the machine are consistent in the whole process or not and whether the performance can be severely influenced or not is observed.
The existing power supply testing mode needs to manually start a pressure testing tool in a server, set the state of a power supply in logging in a BMC, manually and repeatedly plug and unplug a power line, and is low in efficiency; the testing process needs to be beside a machine, remote operation cannot be carried out, if a plurality of standby power supplies exist, errors can occur when the power supply state is manually set or the power line is plugged, and then the testing result is influenced.
Disclosure of Invention
The application provides a power supply testing method and device for a server, electronic equipment and a readable medium.
Some embodiments of the present application provide a power testing method for a server, the method including:
responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply on-off table, wherein the power supply on-off table is used for describing an electrified power supply and a power-off power supply corresponding to each test in the plurality of power supplies;
controlling the corresponding power-on power supply of the test indicated in the power supply on-off table to be powered on and the power-off power supply to be powered off;
under the condition that the power-on power supply is powered on and the power-off power supply is powered off, testing the server to obtain a power supply test result;
and testing the plurality of power supplies of the server again based on the power-on power supply and the power-off power supply corresponding to the next test described by the power supply on-off table until each test in the power supply on-off table is completed.
Optionally, the obtaining the power on-off table in response to a test instruction of a plurality of power supplies in the server includes:
responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply identifier and the total test times of each power supply in the server;
distributing corresponding power-off power supply identifiers and power-on power supply identifiers to each test from the plurality of power supply identifiers according to the number of the power supplies of the server and the total number of tests;
and establishing a mapping relation between the corresponding power-off power supply identifier and the corresponding power-off action identifier of each test and a mapping relation between the corresponding power-on power supply identifier and the corresponding power-on action identifier to obtain a circuit on-off table.
Optionally, the allocating, according to the number of power supplies of the server and the total number of tests, a corresponding power-off power supply identifier and a corresponding power-on power supply identifier to each test from the plurality of power supply identifiers includes:
calculating the number of power-off power supplies and the number of power-on power supplies corresponding to each test according to the number of the power supplies and the total number of tests, wherein the number of the power-on power supplies and the number of the power-off power supplies are at least 1;
and distributing different power-off power supply identifications and power-on power supply identifications to each test from the plurality of power supply identifications according to the number of the power-off power supplies and the number of the power-on power supplies.
Optionally, the testing the server to obtain a power test result includes:
and keeping the power-off power supply and the power-on power supply powered on in a target time period, and continuously testing the server to obtain a power supply test result.
Optionally, the retesting the multiple power supplies of the server based on the power-on power supply and the power-off power supply corresponding to the next test described in the power on-off table until each test in the power on-off table is completed includes:
after the test is finished, accumulating 1 for the number of times of finished test, and inquiring an electrified power supply and a power-off power supply corresponding to the next test in the power supply on-off table to test the plurality of power supplies of the server again;
and when the number of times of the completed tests is greater than or equal to the total number of times of the tests, ending the tests.
Optionally, before the obtaining the power on-off table in response to the test instruction of the plurality of power supplies in the server, the method further includes:
and receiving a test instruction which is sent by the remote control terminal through a Telnet protocol and is used for a plurality of power supplies in the server.
Optionally, the controlling the power-on power supply corresponding to the current test indicated in the power on-off table to be powered on and the power-off power supply to be powered off includes:
transmitting an energization instruction for the energized power supply and a power-off instruction for the power-off power supply to the plurality of power supply-connected power distribution units.
Some embodiments of the present application provide a power testing apparatus for a server, the apparatus including:
the acquisition module is used for responding to test instructions of a plurality of power supplies in the server and acquiring the power supply on-off table, and the power supply on-off table is used for describing the power-on power supply and the power-off power supply corresponding to each test in the plurality of power supplies;
the control module is used for controlling the corresponding electrified power supply of the test indicated in the power supply on-off table to be electrified and the power-off power supply to be powered off;
the test module is used for testing the server under the condition that the power-on power supply is powered on and the power-off power supply is powered off to obtain a power supply test result;
the acquisition module is further configured to retest the plurality of power supplies of the server based on the power-on power supply and the power-off power supply corresponding to the next test described in the power on-off table until each test in the power on-off table is completed.
Optionally, the obtaining module is further configured to:
responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply identifier and the total test times of each power supply in the server;
distributing corresponding power-off power supply identifiers and power-on power supply identifiers to each test from the plurality of power supply identifiers according to the number of the power supplies of the server and the total number of tests;
and establishing a mapping relation between the corresponding power-off power supply identifier and the corresponding power-off action identifier of each test and a mapping relation between the corresponding power-on power supply identifier and the corresponding power-on action identifier to obtain a circuit on-off table.
Optionally, the obtaining module is further configured to:
calculating the number of power-off power supplies and the number of power-on power supplies corresponding to each test according to the number of the power supplies and the total testing times, wherein the number of the power-on power supplies and the number of the power-off power supplies are at least 1;
and distributing different power-off power supply identifications and power-on power supply identifications to each test from the plurality of power supply identifications according to the number of the power-off power supplies and the number of the power-on power supplies.
Optionally, the test module is further configured to:
and keeping the power-off power supply powered off and the power-on power supply powered on in a target time period, and continuously testing the server to obtain a power supply test result.
Optionally, the obtaining module is further configured to:
after the test is completed, accumulating 1 for the number of times of the completed test, and inquiring an electrified power supply and a power-off power supply corresponding to the next test in the power supply on-off table to test the plurality of power supplies of the server again;
and when the number of times of the completed tests is greater than or equal to the total number of times of the tests, ending the tests.
Optionally, the obtaining module is further configured to:
and receiving a test instruction which is sent by the remote control end through a Telnet protocol and is used for testing a plurality of power supplies in the server.
Optionally, the control module is further configured to:
transmitting an energization instruction for the energized power supply and a power-off instruction for the power-off power supply to the plurality of power supply-connected power distribution units.
Some embodiments of the present application provide a computing processing device comprising:
a memory having computer readable code stored therein;
one or more processors that, when the computer readable code is executed by the one or more processors, the computing processing device performs the power testing method for the server as described above.
Some embodiments of the present application provide a non-transitory computer readable medium storing computer readable code which, when run on a computing processing device, causes the computing processing device to perform the above-described power supply testing method for a server.
According to the power supply testing method and device for the server, the electronic equipment and the readable medium, the server is subjected to cross power-off testing according to the received power supply on-off table, multiple power supplies of multiple servers can be tested repeatedly, time for manual plugging in and out of an equipment site is saved, testing error risks caused by human factors are avoided, and accuracy of server power supply testing is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 schematically illustrates a flow chart of a power testing method for a server according to some embodiments of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another method for testing a power supply of a server according to some embodiments of the present application;
fig. 3 schematically illustrates a second flowchart of another power testing method for a server according to some embodiments of the present application;
fig. 4 schematically illustrates a third flowchart of another power testing method for a server according to some embodiments of the present application;
FIG. 5 schematically illustrates a schematic diagram of a Telnet network provided by some embodiments of the present application;
FIG. 6 schematically illustrates a schematic diagram of a power distribution unit provided by some embodiments of the present application;
FIG. 7 is a logic diagram schematically illustrating a power testing method for a server according to some embodiments of the present application;
FIG. 8 is a schematic diagram illustrating a power testing apparatus of a server according to some embodiments of the present disclosure;
FIG. 9 schematically illustrates a block diagram of a computing processing device for performing a method according to some embodiments of the present application;
fig. 10 schematically illustrates a memory unit for holding or carrying program code implementing methods according to some embodiments of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 schematically shows a flow chart of a power supply testing method of a server provided by the present application, where the method includes:
step 101, responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply on-off table, wherein the power supply on-off table is used for describing an electrified power supply and a power-off power supply corresponding to each test in the plurality of power supplies.
It should be noted that, the server is an electronic device having functions of data processing, data transmission, data storage, and the like, the server is connected with a plurality of power supplies, and when the server is in operation, a part of the power supplies are powered on and a part of the power supplies are powered off, so that when the power supplies fail, the server can be switched to use the spare remaining power supplies to be powered on, and the stability of power supply of the server is ensured.
In this embodiment, a user may connect a NET connection Port of a PDU (Power Distribution Unit), a BMC (Baseboard Management Controller) interface of a server, and a service data network Port to an IP network, connect a sub Power output Port of the PDU to each Power of the server, power up the PDU, wait for the PDU to be completely powered on, check and record an NET connection Port IP of the PDU, that is, a PDU-IP, a sub Power output Port number of the PDU and a corresponding server Power Port connection number, and after the server is powered on, determine whether the server can normally enter the system, check and record a BMC-IP and a service data network Port OS-IP under the server system. The testing computer performs Ping communication test on the IP of the PDU, the BMC-IP of the server and the OS-IP of the service data network port, and further tests whether the network connection condition is normal.
The test equipment runs the script program, and a tester needs to input the PDU-IP, the Port number of the sub-power output Port of the PDU, the PSU number of the corresponding server power Port, the test times N, the BMC-IP and the OS-IP of the tested server to configure a power on-off table needed after configuration. Of course, the power on-off table may also be input by the user in a user-defined manner, and may be specifically set according to actual requirements, which is not limited herein.
And 102, controlling the corresponding power-on power supply of the current test indicated in the power supply on-off table to be powered on and the power-off power supply to be powered off.
In the embodiment of the application, the corresponding power-on power supply and power-off power supply for each test are recorded in the power supply on-off table, so that the test equipment can send a control instruction carrying the identification of the power-on power supply and the identification of the power-off power supply to the power distribution unit, the power distribution unit controls the power-on power supply to keep in a power-on state, and the power-off power supply keeps in a power-off state.
And 103, testing the server under the condition that the power-on power supply is powered on and the power-off power supply is powered off to obtain a power supply test result.
In this embodiment of the application, after the power-on power supply of the server is powered on and the power-off power supply of the server is powered off, the test program performs a performance test on the server remotely, and mainly pressurizes a Central Processing Unit (CPU), a memory and a hard disk, the CPU may use a Super PI tool for testing, the memory may use a Memtest tool for testing, and the hard disk may use a Fio tool for testing. And the system can call the test logs of the OS-IP remote collection server and transmit the test logs to the local computer through the SFTP for the tester to view and analyze.
And 104, retesting the plurality of power supplies of the server based on the electrified power supply and the power-off power supply corresponding to the next test described by the power supply on-off table until each test in the power supply on-off table is finished.
In the embodiment of the application, after the test is completed, the test program automatically traverses the power on-off table to obtain the power-on power supply and the power-off power supply when the next test is performed, and it is worth to be noted that the power-on power supply and the power-off power supply of each test are different, so that repeated tests are avoided, and data resources are wasted. And when each test in the power on-off standard configuration is finished, ending the test and outputting the power test result of the server in each test. Of course, an analysis report of the test result may also be output, which may be specifically set according to actual requirements, and is not limited herein.
According to the embodiment of the application, the server is subjected to cross power-off test according to the received power supply on-off table, and multiple power supplies of multiple servers can be repeatedly tested, so that the time for manually plugging and unplugging equipment on site is saved, the risk of test errors caused by human factors is avoided, and the accuracy of the server power supply test is improved.
Optionally, referring to fig. 2, the step 101 includes:
step 1011, in response to the test instruction of the plurality of power supplies in the server, acquiring the power supply identifier and the total test times of each power supply in the server.
Step 1012, according to the number of the power supplies of the server and the total number of tests, allocating corresponding power-off power supply identifiers and power-on power supply identifiers to each test from the plurality of power supply identifiers.
And step 1013, establishing a mapping relation between the corresponding power-off power supply identifier and the power-off action identifier of each test and a mapping relation between the power-on power supply identifier and the power-on action identifier to obtain a circuit on-off table.
In the embodiment of the application, in the cross power-off method of the adaptive server, a PDU (protocol data Unit) sub power output Port number and a corresponding PSU (power supply unit) number which are transmitted by a tester are used as initial data, and a 'on-off table' which is in the shape of a truth table is generated through logic circulation, and at least one power supply is required to be in an Active state. Taking three power supplies as an example, the "on-off table" can be expressed as: { (1, 2, 3), (100, 010, 001, 110, 101, 011, 111) }, three numbers in the first bracket indicate from left to right, respectively: PDU sub power output Port1, PDU sub power output Port2 and PDU sub power output Port3; the following brackets are listed in three columns, where 1 represents Active state, 0 represents Standby state, and 7 columns in total represent 7 cross states, and taking "100" as an example, the corresponding power states should be set as: (Active Standby), the power source position of Active is Port1, that is, PDU sub power outlet Port1; the position of the middle Standby is Port2, namely PDU sub power outlet Port2, the position of the last Standby is Port3, namely PDU sub power outlet Port3, the power action of the Active must be kept powered on, and the power of the Standby can be powered on or powered off.
Optionally, referring to fig. 3, the step 1012 includes:
step 10121, calculating the number of power-off power supplies and the number of power-on power supplies corresponding to each test according to the number of power supplies and the total number of tests, wherein the number of power-off power supplies and the number of power-on power supplies are at least 1.
Step 10122, according to the number of the power-off power supplies and the number of the power-on power supplies, different power-off power supply identifiers and different power-on power supply identifiers are allocated to each test.
In the embodiment of the present application, for simplicity, each value in the "on-off table" is set as: { (1- > 1), (2- > 0), (3- > 0) }, that is, port1 is powered on correspondingly, port2 is powered off correspondingly, port3 is powered off correspondingly, which is referred to as "P-P action pair" for short, and so on, the following 010, 001, etc. are also in one-to-one correspondence according to this method. After the on-off table is generated, the method can remotely test the pressure (CPU pressure, memory pressure and hard disk pressure) of the PTU of the machine, and the corresponding sub-power output port of the control PDU is powered on or powered off according to each P-P action of the on-off table, and after all on-off current processes are finished, test results can be transmitted to a local computer through SFTP for a tester to check and analyze. The on-off table generated by the method can be adaptive to a plurality of power supplies, and each power supply of the server is orderly operated according to a cross power-off method under the condition that at least one power supply is enabled (Active).
Optionally, the step 103 includes: and keeping the power-off power supply powered off and the power-on power supply powered on in a target time period, and continuously testing the server to obtain a power supply test result.
Optionally, referring to fig. 4, the step 104 includes:
step 1041, after the test is completed, adding 1 to the number of times of the completed test, and querying the power-on power supply and the power-off power supply corresponding to the next test in the power supply on-off table to re-test the plurality of power supplies of the server.
And 1042, when the number of times of the completed test is greater than or equal to the total number of times of the test, ending the test.
Optionally, before the step 101, the method further comprises: and receiving a test instruction which is sent by the remote control terminal through a Telnet protocol and is used for a plurality of power supplies in the server.
In the embodiment of the present application, referring to fig. 5, telnet protocol is a standard protocol for remote login, which is one of the most widely used protocols on the Internet today. The terminal or computer in use by the user is changed into a simulation terminal of a remote host of the network, so that the user can conveniently use the software and hardware resources on the remote host, and the process of establishing service by Telnet is as follows:
(1) Telnet is based on TCP protocol, firstly, a user establishes a connection based on TCP protocol;
(2) If the router can reach the destination, the router transmits the user name and the password to the remote host through a transmission medium (network cable) after the local terminal inputs the user name and the password;
(3) The remote host computer carries out authentication, and after the authentication is passed, the reply data is converted into a format accepted locally and sent back to the local terminal, wherein the format includes an input command playback and a command execution result;
(4) The local terminal revokes the connection to the remote host by revoking a TCP connection.
With the intelligent management system of the PDU equipment, the Telnet service is also integrated into the intelligent management system, and when the PDU is started, the Telnet service is started. Therefore, a tester can be connected to the telnet service of the PDU through the script, and then the PDU is controlled to power on and off each sub power supply output port
Optionally, the step 102 includes: transmitting an energization instruction for the energized power supply and a power-off instruction for the power-off power supply to the plurality of power supply-connected power distribution units.
In the embodiment of the present application, referring to fig. 6, a pdu (power distribution unit) device, also called a power distribution socket for a cabinet, may provide power distribution for electrical devices installed in the cabinet, have various series specifications of different functions, installation manners and different insertion combinations, and be equipped with an intelligent management system to provide a suitable rack-mounted power distribution solution for different power environments. In the related test of the server power-off restarting, the PDU is applied, so that a tester can program according to actual needs, remotely pass through the NET connector and use Telnet to connect the PDU to control the power-on and power-off of each sub power supply output port, and the circuit connection and the power-off of each power supply on the server are realized.
Fig. 7 is a logic diagram of a power testing method of a server in a system according to some embodiments of the present application, including:
step S1, inputting OS-IP and BMC-IP of a tested server, PDU-IP of PDU equipment, a power output Port number and a PSU number of a server power Port corresponding to the PDU equipment, and testing times N;
step S2, starting the cycle times N, judging whether x is less than or equal to N when the initial variable x =1, if so, continuing the next step, and if not, ending the process;
s3, generating an on-off table according to the data input in the S1, and calculating a P-P action pair and a total number S of the power supply on-off table;
step S4, starting the cycle times S, judging whether y is less than or equal to S when the initial variable y =1, if yes, continuing the next step, and if not, automatically increasing x by 1, and returning to the step S2;
s5, according to the P-P action pair, active and Standby settings are remotely carried out on each power supply on the server through the BMC;
s6, remotely testing the performance of the server through OS-IP, and mainly pressurizing a CPU, an internal memory and a hard disk, wherein the CPU uses a SuperPI tool, the internal memory uses a Memtest tool, and the hard disk uses a Fio tool;
and S7, performing power-on and power-off operation on each power supply of the server by the remote control PSU according to the P-P action pair, waiting for 10 minutes to ensure that the server is maintained in a stress test state for a period of time, then increasing by self 1, and returning to the step S4.
Fig. 8 schematically shows a schematic structural diagram of a power supply testing device 20 of a server provided by the present application, the device including:
an obtaining module 201, configured to respond to a test instruction of a plurality of power supplies in a server, and obtain the power on-off table, where the power on-off table is used to describe an energized power supply and a de-energized power supply corresponding to each test in the plurality of power supplies;
the control module 202 is used for controlling the corresponding power-on power supply of the test indicated in the power supply on-off table to be powered on and the power-off power supply to be powered off;
the testing module 203 is used for testing the server under the condition that the power-on power supply is powered on and the power-off power supply is powered off to obtain a power supply testing result;
the obtaining module 201 is further configured to retest the plurality of power supplies of the server based on the power-on power supply and the power-off power supply corresponding to the next test described in the power on-off table until each test in the power on-off table is completed.
Optionally, the obtaining module 201 is further configured to:
responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply identifier and the total test times of each power supply in the server;
distributing corresponding power-off power supply identifiers and power-on power supply identifiers to each test from the plurality of power supply identifiers according to the number of the power supplies of the server and the total number of tests;
and establishing a mapping relation between the corresponding power-off power supply identifier and the corresponding power-off action identifier of each test and a mapping relation between the corresponding power-on power supply identifier and the corresponding power-on action identifier to obtain a circuit on-off table.
Optionally, the obtaining module 201 is further configured to:
calculating the number of power-off power supplies and the number of power-on power supplies corresponding to each test according to the number of the power supplies and the total number of tests, wherein the number of the power-on power supplies and the number of the power-off power supplies are at least 1;
and distributing different power-off power supply identifications and power-on power supply identifications to each test from the plurality of power supply identifications according to the number of the power-off power supplies and the number of the power-on power supplies.
Optionally, the testing module 203 is further configured to:
and keeping the power-off power supply powered off and the power-on power supply powered on in a target time period, and continuously testing the server to obtain a power supply test result.
Optionally, the obtaining module 201 is further configured to:
after the test is completed, accumulating 1 for the number of times of the completed test, and inquiring an electrified power supply and a power-off power supply corresponding to the next test in the power supply on-off table to test the plurality of power supplies of the server again;
and when the number of times of the completed tests is greater than or equal to the total number of times of the tests, ending the tests.
Optionally, the obtaining module 201 is further configured to:
and receiving a test instruction which is sent by the remote control end through a Telnet protocol and is used for testing a plurality of power supplies in the server.
Optionally, the control module 202 is further configured to:
transmitting an energization instruction for the energized power supply and a power-off instruction for the power-off power supply to the plurality of power supply-connected power distribution units.
According to the embodiment of the application, the server is subjected to cross power-off test according to the received power supply on-off table, and multiple power supplies of multiple servers can be repeatedly tested, so that the time for manually plugging and unplugging equipment on site is saved, the risk of test errors caused by human factors is avoided, and the accuracy of the server power supply test is improved.
The above-described device embodiments are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a computing processing device according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a non-transitory computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form.
For example, FIG. 9 illustrates a computing processing device that may implement methods in accordance with the present application. The computing processing device conventionally includes a processor 310 and a computer program product or non-transitory computer-readable medium in the form of a memory 320. The memory 320 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 320 has a storage space 330 for program code 331 for performing any of the method steps of the above-described method. For example, the storage space 330 for the program code may include respective program codes 331 respectively for implementing various steps in the above method. The program code can be read from and written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or fixed storage unit as described with reference to fig. 10. The memory unit may have memory segments, memory spaces, etc. arranged similarly to the memory 320 in the computing processing device of fig. 9. The program code may be compressed, for example, in a suitable form. Typically, the memory unit comprises computer readable code 331', i.e. code that can be read by a processor, such as 310, for example, which when executed by a computing processing device causes the computing processing device to perform the steps of the method described above.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless otherwise indicated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Moreover, it is noted that instances of the word "in one embodiment" are not necessarily all referring to the same embodiment.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present application.

Claims (10)

1. A method for testing a power supply of a server, the method comprising:
responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply on-off table, wherein the power supply on-off table is used for describing an electrified power supply and a power-off power supply corresponding to each test in the plurality of power supplies;
controlling the corresponding electrified power supply to be electrified and the corresponding power-off power supply to be powered off in the test indicated in the power supply on-off table;
under the condition that the power-on power supply is powered on and the power-off power supply is powered off, testing the server to obtain a power supply test result;
and testing the plurality of power supplies of the server again based on the power-on power supply and the power-off power supply corresponding to the next test described by the power supply on-off table until each test in the power supply on-off table is completed.
2. The method of claim 1, wherein the obtaining the power on/off table in response to a test instruction of a plurality of power supplies in a server comprises:
responding to test instructions of a plurality of power supplies in a server, and acquiring a power supply identifier and the total test times of each power supply in the server;
distributing corresponding power-off power supply identifiers and power-on power supply identifiers to each test from the plurality of power supply identifiers according to the number of the power supplies of the server and the total number of tests;
and establishing a mapping relation between the corresponding power-off power supply identifier and the corresponding power-off action identifier of each test and a mapping relation between the corresponding power-on power supply identifier and the corresponding power-on action identifier to obtain a circuit on-off table.
3. The method of claim 2, wherein assigning corresponding powered-off power identifiers and powered-on power identifiers to each test from the plurality of power identifiers according to the number of power sources of the server and the total number of tests comprises:
calculating the number of power-off power supplies and the number of power-on power supplies corresponding to each test according to the number of the power supplies and the total number of tests, wherein the number of the power-on power supplies and the number of the power-off power supplies are at least 1;
and distributing different power-off power supply identifications and power-on power supply identifications to each test from the plurality of power supply identifications according to the number of the power-off power supplies and the number of the power-on power supplies.
4. The method of claim 1, wherein the testing the server to obtain the power test result comprises:
and keeping the power-off power supply powered off and the power-on power supply powered on in a target time period, and continuously testing the server to obtain a power supply test result.
5. The method of claim 1, wherein the retesting the plurality of power supplies of the server based on the powered-on power supply and the powered-off power supply corresponding to the next test described by the power on-off table until each test in the power on-off table is completed comprises:
after the test is completed, accumulating 1 for the number of times of the completed test, and inquiring an electrified power supply and a power-off power supply corresponding to the next test in the power supply on-off table to test the plurality of power supplies of the server again;
and when the number of times of the completed tests is greater than or equal to the total number of times of the tests, ending the tests.
6. The method of claim 1, wherein prior to said obtaining the power on/off table in response to a test command for a plurality of power supplies in the server, the method further comprises:
and receiving a test instruction which is sent by the remote control terminal through a Telnet protocol and is used for a plurality of power supplies in the server.
7. The method of claim 1, wherein the controlling the corresponding power-on power source to be powered on and the power-off power source to be powered off in the current test indicated in the power on/off table comprises:
transmitting an energization instruction for the energized power supply and a power-off instruction for the power-off power supply to the plurality of power supply-connected power distribution units.
8. A power supply testing apparatus of a server, the apparatus comprising:
the acquisition module is used for responding to test instructions of a plurality of power supplies in the server and acquiring the power supply on-off table, and the power supply on-off table is used for describing an electrified power supply and a power-off power supply corresponding to each test in the plurality of power supplies;
the control module is used for controlling the corresponding electrified power supply to be electrified and the corresponding power-off power supply to be powered off in the test indicated in the power supply on-off table;
the test module is used for testing the server under the condition that the power-on power supply is powered on and the power-off power supply is powered off to obtain a power supply test result;
the acquisition module is further configured to retest the plurality of power supplies of the server based on the power-on power supply and the power-off power supply corresponding to the next test described in the power supply on-off table until each test in the power supply on-off table is completed.
9. A computing processing device, comprising:
a memory having computer readable code stored therein;
one or more processors which, when executed by the computer readable code, the computing processing device performs the power testing method of the server of any of claims 1-7.
10. A non-transitory computer-readable medium storing computer-readable code which, when run on a computing processing device, causes the computing processing device to perform the power supply testing method of the server of any one of claims 1-7.
CN202211214631.4A 2022-09-30 2022-09-30 Power supply testing method and device for server, electronic equipment and readable medium Pending CN115480627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211214631.4A CN115480627A (en) 2022-09-30 2022-09-30 Power supply testing method and device for server, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211214631.4A CN115480627A (en) 2022-09-30 2022-09-30 Power supply testing method and device for server, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN115480627A true CN115480627A (en) 2022-12-16

Family

ID=84393584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211214631.4A Pending CN115480627A (en) 2022-09-30 2022-09-30 Power supply testing method and device for server, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN115480627A (en)

Similar Documents

Publication Publication Date Title
US10969844B2 (en) Method and apparatus of controlling network node by providing a virtual power distribution unit
CN110557299A (en) network transmission function batch test method, system, terminal and storage medium
CN112328440A (en) Hard disk physical position determining method and device
CN105843718A (en) Test board card as well as management card test system and method
CN111181781A (en) Vdbench test configuration method, system, terminal and storage medium
CN111352662B (en) Server starting sequence control method, system, terminal and storage medium
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
CN211720749U (en) Control panel, management equipment and system for realizing wireless transmission of fault information
US20120054391A1 (en) Apparatus and method for testing smnp cards
CN112256503A (en) Test report generation method, device, equipment and computer readable storage medium
CN115480627A (en) Power supply testing method and device for server, electronic equipment and readable medium
CN115080325A (en) PSU (power system unit) testing method, system, device and medium based on PDU (protocol data Unit)
CN113219319B (en) Integrated test board card, chip test system and chip test method
CN108763004A (en) One kind interconnecting test method and system from server duplexed system
CN112003727A (en) Multi-node server power supply testing method, system, terminal and storage medium
CN112463498A (en) Hardware module testing method, system, electronic device and storage medium
CN112953788A (en) Network state detection method and device, BMC and storage medium
CN109067836B (en) Power distribution information remote interactive communication system
CN111367756A (en) Remote viewing method, system, terminal and storage medium for hard disk serial port log
CN111475398A (en) Server NIC diagnosis method, system, terminal and storage medium
CN115333987B (en) Interface test system and method
CN116915583B (en) Communication abnormality diagnosis method, device and electronic equipment
CN111880974B (en) Device and method compatible with multi-type server test
CN115022378B (en) Transmission valve control equipment communication method and system, valve tower monitoring equipment and storage medium
CN114911739B (en) Method, system, device and storage medium for self-adapting operation mode of memory card

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