System and method for remotely testing abnormal power failure of server

文档序号:1782700 发布日期:2019-12-06 浏览:26次 中文

阅读说明:本技术 一种远程测试服务器异常断电的系统及方法 (System and method for remotely testing abnormal power failure of server ) 是由 刘汉龙 于 2019-08-09 设计创作,主要内容包括:本发明提供一种远程测试服务器异常断电的系统及方法,包括PC客户端、电源控制模块和被测服务器;电源控制模块连接AC220v供电输入;所述的被测服务器与电源控制模块的输出端连接;电源控制模块与PC客户端通过网络进行通信连接,通过远程控制电源控制模块的输出端的通断实现被测服务器的异常断电。利用电源控制模块,被测试的服务器通过该电源控制模块供电,电源控制模块通过网络接口连接网络;测试人员通过网络远程控制电源控制模块进而达到异常断电的效果。通过远程控制服务器异常断电、省去到设备现场人工插拔时间、达到精确控制时间测试、大大提高测试人员的工作效率。(The invention provides a system and a method for remotely testing abnormal power failure of a server, which comprises a PC client, a power supply control module and a tested server; the power supply control module is connected with the power supply input of the AC220 v; the tested server is connected with the output end of the power control module; the power supply control module is in communication connection with the PC client through a network, and abnormal power failure of the server to be tested is achieved by remotely controlling the on-off of the output end of the power supply control module. The tested server supplies power through the power control module by using the power control module, and the power control module is connected with a network through a network interface; the tester remotely controls the power supply control module through a network so as to achieve the effect of abnormal power failure. The abnormal power failure of the server is controlled remotely, the manual plugging time to the equipment site is saved, the time test is accurately controlled, and the working efficiency of testers is greatly improved.)

1. A system for remotely testing abnormal power failure of a server is characterized by comprising a PC client, a power supply control module and a tested server;

The power supply control module is connected with the power supply input of the AC220 v;

The tested server is connected with the output end of the power control module;

the power supply control module is in communication connection with the PC client through a network, and abnormal power failure of the server to be tested is achieved by remotely controlling the on-off of the output end of the power supply control module.

2. The system according to claim 1, wherein the power control module comprises 1 220V power input interface, an RJ45 network interface, and at least one 220V power output interface;

and the RJ45 network interface is used for connecting an IP network, the PC client communicates with the power supply control module through the IP network, and controls the on-off of the power supply output port of the power supply control module through an up-off command and a down-off command issued by the IP network, so that the corresponding up-off of the tested server is realized.

3. The system according to claim 2, wherein the power control module is provided with a USB interface, and the USB interface of the power control module is connected to the USB port of the server under test via a USB cable, and is configured to detect whether the USB of the server under test has a voltage of 5V to determine whether the server is powered normally.

4. The system of claim 3, wherein the BMC interface of the server under test communicates with the PC client via an IP network, and is configured to receive a power-on command from the PC client.

5. the system of claim 4, wherein the BMC interface of the tested server is configured to communicate with the PC client via an IP network, and further configured to send the power on/off status of the tested server to the PC client.

6. The system according to claim 5, wherein the service data network port of the tested server communicates with the PC client through an IP network, so as to enable the PC client to determine whether the tested server has been loaded with the operating system and is normally powered on by detecting the network connection/disconnection of the service data network port of the tested server.

7. The system for remotely testing the abnormal power failure of the server as claimed in claim 6, wherein the PC client is provided with client software, and the client software is used for setting and recording the total power failure times, the buffer time, the power-on time interval and the power-off time interval;

when the server to be tested is judged to be abnormally started, the client software stops issuing a power-off instruction, and prompts a tester through sound alarm.

8. a method for remotely testing abnormal power failure of a server is characterized by comprising the following steps:

the PC client sends a power-off command to control the disconnection of the power output port of the power control module through the IP network so as to power off the server to be tested;

detecting whether a USB interface of a tested server has 5V voltage or not;

If not, waiting for the set power-on interval time, and sending a power-on instruction by the PC client through the IP network to control the connection of the power output port of the power control module to power on the server to be tested; if yes, executing the following steps: the PC client sends a power-off command to control the disconnection of the power output port of the power control module through the IP network so as to power off the server to be tested;

Waiting for the set buffer time, detecting whether the USB interface of the tested server has 5V voltage, if so, simultaneously detecting the BMC interface state of the tested server as starting;

waiting for reaching the set buffering time, and detecting whether the service data network port is in a path state or not;

If yes, waiting for the set power-off interval time, judging whether the specified total power-off times are reached, and ending.

9. The method as claimed in claim 8, wherein if it is detected that the USB interface of the tested server does not have a voltage of 5V, it is determined that the tested server is abnormally started, the client software stops issuing the power-off command, and prompts the tester through an audible alarm.

10. the method according to claim 8, wherein if the power failure is not reached to the specified total power failure, the method further comprises: and the PC client sends a power-off command to control the disconnection of the power output port of the power control module through the IP network so as to power off the tested server.

Technical Field

the invention relates to the technical field of server testing, in particular to a system and a method for remotely testing abnormal power failure of a server.

background

With the rapid development of various industries, the demand for servers is getting larger and larger, and more clients adopt a large number of servers as core applications. Therefore, higher requirements are also put on the stability and reliability of the server. Whether the server can keep normal and stable operation becomes the premise of whether the client service can stably operate. Because the server needs to operate for a long time, the abnormal power failure condition can exist due to various factors; whether the server can still stably operate after the abnormal power failure is recovered becomes one of the important standards for measuring the stability of the server. The abnormal power failure mainly refers to the sudden loss of power input of the server, namely the sudden power failure when the server is running.

The conventional method for testing abnormal power failure of the server generally adopts a mode of manually pulling out a power supply line to power off; moreover, the abnormal power failure of the test server generally needs hundreds of times; and manual power off generally requires the field operation of the tested equipment, which results in low efficiency.

Disclosure of Invention

aiming at the current abnormal power failure of the test server, the power failure is generally realized by manually pulling out a power supply line; moreover, the abnormal power failure of the test server generally needs hundreds of times; the invention also provides a system and a method for remotely testing abnormal power failure of a server, which solves the problem of low efficiency caused by the fact that manual power failure generally needs to be carried out on the site of a tested device.

The technical scheme of the invention is as follows:

On one hand, the technical scheme of the invention provides a system for remotely testing abnormal power failure of a server, which comprises a PC client, a power supply control module and a tested server;

The power supply control module is connected with the power supply input of the AC220 v;

The tested server is connected with the output end of the power control module;

The power supply control module is in communication connection with the PC client through a network, and abnormal power failure of the server to be tested is achieved by remotely controlling the on-off of the output end of the power supply control module.

Preferably, the power control module is provided with 1 220V power input interface, one RJ45 network interface, and at least one 220V power output interface;

And the RJ45 network interface is used for connecting an IP network, the PC client communicates with the power supply control module through the IP network, and controls the on-off of the power supply output port of the power supply control module through an up-off command and a down-off command issued by the IP network, so that the corresponding up-off of the tested server is realized.

Preferably, the power control module is provided with a USB interface, and the USB interface of the power control module is connected to the USB port of the server to be tested through a USB cable, and is configured to detect whether the USB of the server to be tested has a voltage of 5V to determine whether the server is normally powered.

Preferably, the BMC interface of the server under test communicates with the PC client through the IP network, and is configured to receive a power-on instruction sent by the PC client.

preferably, the BMC interface of the tested server communicates with the PC client through the IP network, and is further configured to send the on/off state of the tested server to the PC client.

Preferably, the service data network port of the tested server communicates with the PC client through the IP network, so as to enable the PC client to determine whether the tested server has loaded the operating system and is normally powered on by detecting the network connection and disconnection of the service data network port of the tested server.

Preferably, the PC client is provided with client software which is used for setting and recording the total power-off times, the buffer time, the power-on time interval and the power-off time interval;

When the server to be tested is judged to be abnormally started, the client software stops issuing a power-off instruction, and prompts a tester through sound alarm.

on the other hand, the technical scheme of the invention provides a method for remotely testing abnormal power failure of a server, which comprises the following steps:

the PC client sends a power-off command to control the disconnection of the power output port of the power control module through the IP network so as to power off the server to be tested;

detecting whether a USB interface of a tested server has 5V voltage or not;

if not, waiting for the set power-on interval time, and sending a power-on instruction by the PC client through the IP network to control the connection of the power output port of the power control module to power on the server to be tested; if yes, executing the following steps: the PC client sends a power-off command to control the disconnection of the power output port of the power control module through the IP network so as to power off the server to be tested;

waiting for the set buffer time, detecting whether the USB interface of the tested server has 5V voltage, if so, simultaneously detecting the BMC interface state of the tested server as starting;

Waiting for reaching the set buffering time, and detecting whether the service data network port is in a path state or not;

If yes, waiting for the set power-off interval time, judging whether the specified total power-off times are reached, and ending.

Preferably, if it is detected that the USB interface of the tested server does not have 5V voltage, the tested server is judged to be abnormally started, the client software stops issuing the power-off instruction, and the sound alarm prompts a tester.

preferably, if the total number of times of power outage does not reach the specified number of times of power outage, the following steps are executed: and the PC client sends a power-off command to control the disconnection of the power output port of the power control module through the IP network so as to power off the tested server.

according to the technical scheme, the invention has the following advantages: the tested server supplies power through the power control module by using the power control module, and the power control module is connected with a network through a network interface; the tester remotely controls the power supply control module through a network so as to achieve the effect of abnormal power failure. The abnormal power failure of the server is controlled remotely, the manual plugging time to the equipment site is saved, the time test is accurately controlled, and the working efficiency of testers is greatly improved.

in addition, the invention has reliable design principle, simple structure and very wide application prospect.

Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.

drawings

in order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.

Fig. 1 is a schematic block diagram of a system for remotely testing abnormal power outage of a server according to an embodiment of the present invention.

Fig. 2 is a schematic flowchart of a method for remotely testing abnormal power failure of a server according to a second embodiment of the present invention.

Detailed Description

in order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and 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 invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种轨道交通服务器掉电保护方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!