CN102520370B - Server switching power supply testing method and server switching power supply testing device - Google Patents
Server switching power supply testing method and server switching power supply testing device Download PDFInfo
- Publication number
- CN102520370B CN102520370B CN201110455876.1A CN201110455876A CN102520370B CN 102520370 B CN102520370 B CN 102520370B CN 201110455876 A CN201110455876 A CN 201110455876A CN 102520370 B CN102520370 B CN 102520370B
- Authority
- CN
- China
- Prior art keywords
- server
- power switch
- power
- time interval
- power supply
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention provides a server switching power supply testing method, which includes the steps: S1, opening a corresponding power port of a Power Switch connected to a server to be tested; S2, automatically starting up the server by powering on the server; S3, automatically stopping the server; S4, closing the corresponding power port of the Power Switch connected to the server to be tested when reaching a fixed first time interval; and S5, executing the steps from S1 to S4 for preset times when a fixed second time interval passes after closing the power port of the Power Switch connected to the server to be tested. During testing, AC on-off times of the server controlled by the Power Switch and stopping times of the server are respectively recorded. Automated power switch testing is realized by matching the Power Switch with a corresponding script, labor is saved, and testing efficiency is improved.
Description
Technical field
The present invention relates to server field, more particularly, relate to a kind of Switching Power Supply method of testing for server and proving installation.
Background technology
Server test is the prerequisite of server steady operation, and the validity of method of testing directly affects the quality of subsequent server.Wherein, the test of AC on/off (Switching Power Supply) is the method for effective BIOS, compatibility test, but existing method of testing needs people to plug power lead by hand always carries out.
Summary of the invention
For the one or more problems existed in correlation technique, the object of the present invention is to provide a kind of AC on/off method of testing, automatically can test, and not need the manual operation of operating personnel.
For achieving the above object, according to an aspect of the present invention, provide a kind of AC on/off method of testing for server, comprising: step S1: open the corresponding power port that Power Switch is connected to server to be measured; Step S2: server powers on Auto Power On; Step S3: server automatic shutdown; Step S4:Power Switch closes the corresponding power port being connected to server to be measured after arriving fixing very first time interval; And step S5: after Power Switch closes the second fixing time interval of the power port that is connected to server to be measured, then carry out step S1 to step S4 until step S1 was performed pre-determined number to step S4.
Preferably, pre-determined number is at least 500 times.
Preferably, the number of times that record Power Switch shuts down to the number of times of the AC break-make of described server and record server is comprised further.
Preferably, the number of times of server automatic shutdown and the shutdown of record server is realized by the start self-operating program on server.
Preferably, the very first time is spaced apart 300 seconds, and described second time interval is 60s.
The present invention also provides a kind of proving installation of the Switching Power Supply for server, comprising: PowerSwitch, is electrically connected with described server, can carry out AC break-make to described server; First controller, is electrically connected with described Power Switch, and controls the AC break-make of described Power Switch to described server; First metering device, is electrically connected with described controller, is controlled by controller, for recording the number of times of PowerSwitch to the AC break-make of described server.
Compared to prior art, the present invention is tested by the AC on/off coordinating corresponding scripts to realize robotization by Power Switch (power switch) equipment, saves manpower, improves testing efficiency.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the system flowchart of method of testing of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 shows the method for testing of holding according to the Switching Power Supply AC of exemplary embodiment of the present invention.
Step S1: open the corresponding power port that Power Switch is connected to server to be measured;
Step S2: server powers on Auto Power On;
Step S3: server automatic shutdown;
Step S4:Power Switch closes the corresponding power port being connected to server to be measured after arriving fixing very first time interval; And
Step S5: after Power Switch closes the second fixing time interval of the power port that is connected to server to be measured, then carry out step S1 to step S4 until step S1 was performed pre-determined number to step S4.
The number of times that Power Switch shuts down to the number of times of the AC break-make of server and record server is recorded respectively in above-mentioned whole test process.
Wherein the number of times of server automatic shutdown and the shutdown of record server is realized by the start self-operating program on server, and specific operation process is as described below:
Server to be measured is installed RHEL 5U5 64bit operating system, and compile script realizes automatic shutdown and records the function of number of times.Concrete grammar: under system /etc/rc.local file (start self-starting file) under input following content:
#!/bin/bash
i=`cat/root/num`
i=`expr$i+1`
echo$i>/root/num
init 0
Wherein num file is used for recording shutdown number of times;
When after server start, run above-mentioned/etc/rc.local file automatic shutdown, and record the number of times of server shutdown.
The present invention also provides a kind of proving installation of the Switching Power Supply for server, comprising:
Power Switch, is electrically connected with described server, can carry out AC break-make to described server;
First controller, is electrically connected with described Power Switch, and controls the AC break-make of described Power Switch to described server;
First metering device, is electrically connected with described controller, is controlled by controller, for recording the number of times of PowerSwitch to the AC break-make of described server.
The method of testing of Switching Power Supply AC end is described below by a concrete example.
After Power Switch and server to be measured and controller being connected, server to be measured is installed RHEL 5U5 64bit operating system, and compile script realizes automatic shutdown and records the function of number of times.Concrete grammar: the input under system is above-mentioned/etc/rc.local file (start self-starting file).
The strategy arranging Restore on AC Power Loss under the BIOS of server to be measured is Power On, so just can make server to be measured Auto Power On when each power supply AC powers on.
After above-mentioned preliminary work completes, server to be measured is shut down.
Start below to carry out test process.The corresponding power port that Power Switch is connected to server to be measured is opened by the first controller; Auto Power On after server powers on; Above-mentioned/etc/rc.local file automatic shutdown is run after server start, and record shutdown number of times; Power Switch is after arrival 300s, and the first controller control Power Switch closes the corresponding power port being connected to server to be measured; After Power Switch closedown is connected to the power port 60s of server to be measured, the first controller control Power Switch opens the corresponding power port that Power Switch is connected to server to be measured again, completes a Switching Power Supply test.Repeat above-mentioned test process afterwards.In test process, by the metering device record Power Switch that is electrically connected with the first controller to the number of times of the AC break-make of server, recorded the number of times of server shutdown by server self-operating/etc/rc.local file.
Check result 500 times to be done later.If the number of times of Power Switch to the AC break-make of server is identical with the number of times that server shuts down, then illustrate that server is working properly, test is passed through; If not identical, then need the system journal checking server to be measured, can be judged by the on time each in system journal which time or which time server to be measured normally do not start and enter system.And then find trouble spot further
The present invention is tested by the AC on/off coordinating corresponding scripts to realize robotization by Power Switch (power switch) equipment, saves manpower, improves testing efficiency.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1., for a Switching Power Supply method of testing for server, comprising:
Step S1: open the corresponding power port that Power Switch is connected to server;
Step S2: server powers on Auto Power On;
Step S3: server automatic shutdown;
Step S4:Power Switch closes the corresponding power port being connected to server after arriving fixing very first time interval; And
Step S5: after Power Switch closes the second fixing time interval of the power port that is connected to server, then carry out step S1 to step S4 until step S1 was performed pre-determined number to step S4;
Comprise the number of times that record Power Switch shuts down to the number of times of the AC break-make of described server and record server further,
The number of times of described server automatic shutdown and the shutdown of described record server is realized by the start self-operating program on described server.
2. method according to claim 1, is characterized in that, described pre-determined number is at least 500 times.
3. method according to claim 1, is characterized in that, the described very first time is spaced apart 300 seconds, and described second time interval is 60s.
4. for a proving installation for the Switching Power Supply of server, it is characterized in that, comprising:
Power Switch, is electrically connected with described server, can carry out AC break-make to described server;
Controller, is electrically connected with described Power Switch, and controls the AC break-make of described Power Switch to described server;
First metering device, is electrically connected with described controller, is controlled by controller, for recording the number of times of PowerSwitch to the AC break-make of described server,
Wherein the number of times of server automatic shutdown and the shutdown of record server is realized by the start self-operating program on server;
Wherein, after opening the very first time interval that the described Power Switch corresponding power port that is connected to described server is fixed, described controller controls described Power Switch and cuts out the described corresponding power port being connected to described server, after described closedown connects second time interval be fixed, described controller controls described Power Switch and again opens the described corresponding power port that described Power Switch is connected to described server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110455876.1A CN102520370B (en) | 2011-12-31 | 2011-12-31 | Server switching power supply testing method and server switching power supply testing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110455876.1A CN102520370B (en) | 2011-12-31 | 2011-12-31 | Server switching power supply testing method and server switching power supply testing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102520370A CN102520370A (en) | 2012-06-27 |
CN102520370B true CN102520370B (en) | 2015-02-18 |
Family
ID=46291355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110455876.1A Active CN102520370B (en) | 2011-12-31 | 2011-12-31 | Server switching power supply testing method and server switching power supply testing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102520370B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850473B (en) * | 2015-05-11 | 2018-10-12 | 深圳市同泰怡信息技术有限公司 | A kind of startup test method of server at low ambient temperatures |
CN104898070B (en) * | 2015-05-22 | 2018-01-30 | 曙光信息产业(北京)有限公司 | Power supply test method and device |
CN111176736B (en) * | 2019-12-25 | 2022-07-08 | 苏州浪潮智能科技有限公司 | Method and system for power-on and power-off test of server motherboard |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1831784A (en) * | 2005-03-09 | 2006-09-13 | 深圳市顶星数码网络技术有限公司 | Testing device and method of computer |
CN1904849A (en) * | 2005-07-29 | 2007-01-31 | 英业达股份有限公司 | Test system and method |
CN101047374A (en) * | 2006-03-31 | 2007-10-03 | 技嘉科技股份有限公司 | test system |
CN101539876A (en) * | 2008-03-21 | 2009-09-23 | 环隆电气股份有限公司 | Start-up test system and method thereof |
CN102236073A (en) * | 2010-04-29 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Test fixture and method for controlling computer power switch by using test fixture |
CN102236054A (en) * | 2010-04-28 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Power on/off test device and method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1241118C (en) * | 2002-09-20 | 2006-02-08 | 联想(北京)有限公司 | System and method for realizing automatic on/off test of computer |
JP2005235047A (en) * | 2004-02-23 | 2005-09-02 | Matsushita Electric Ind Co Ltd | Power source intermittent disconnection debugging device and recording medium with program for realizing the method recorded thereon |
CN100395720C (en) * | 2005-11-25 | 2008-06-18 | 鸿富锦精密工业(深圳)有限公司 | Automated computer on-off operation testing device and method |
CN101526585B (en) * | 2008-03-07 | 2011-02-16 | 佛山市顺德区顺达电脑厂有限公司 | Automatic switching test system and method |
-
2011
- 2011-12-31 CN CN201110455876.1A patent/CN102520370B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1831784A (en) * | 2005-03-09 | 2006-09-13 | 深圳市顶星数码网络技术有限公司 | Testing device and method of computer |
CN1904849A (en) * | 2005-07-29 | 2007-01-31 | 英业达股份有限公司 | Test system and method |
CN101047374A (en) * | 2006-03-31 | 2007-10-03 | 技嘉科技股份有限公司 | test system |
CN101539876A (en) * | 2008-03-21 | 2009-09-23 | 环隆电气股份有限公司 | Start-up test system and method thereof |
CN102236054A (en) * | 2010-04-28 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Power on/off test device and method |
CN102236073A (en) * | 2010-04-29 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Test fixture and method for controlling computer power switch by using test fixture |
Also Published As
Publication number | Publication date |
---|---|
CN102520370A (en) | 2012-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103970650B (en) | Distributed testing method and device | |
CN103051490A (en) | Method for carrying out startup and shutdown testing on blade server | |
CN102520370B (en) | Server switching power supply testing method and server switching power supply testing device | |
CN102855184B (en) | Android automatic test cross application device and method | |
CN103973858B (en) | The Auto-Test System of mobile terminal | |
CN107948302B (en) | Life cycle management method and system of Internet of things embedded equipment | |
CN106776320A (en) | Android intelligent terminal automatization test system and method | |
CN102609356B (en) | Terminal product driver loading stability testing method | |
CN101950253A (en) | Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface | |
CN105807155A (en) | Testing device and method for power cut and starting of electric devices | |
CN110377347A (en) | A kind of automatic inspection method and system of Redfish setting BIOS option | |
CN104320313A (en) | System and method for testing ports of interchanger | |
CN106500251A (en) | Indoor fan automatic fault selftesting method and device | |
CN105302680A (en) | Automatic testing method for AC stability of RACK cabinet | |
CN107526663A (en) | A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system | |
CN102654845A (en) | Power supply testing system and method | |
CN106603790A (en) | Start-up and shutdown test method for mobile terminal | |
CN101661065A (en) | System and method for automatically testing electronic product | |
CN114623478B (en) | A debugging and error correction method, device, fume extraction equipment and readable storage medium | |
CN105827462A (en) | Method and tool for detecting network device | |
CN113688058B (en) | Automatic detection system and detection method for station server monitoring software | |
CN104932294A (en) | Method for testing output switching capacity of power supply module of high-density server cabinet | |
CN102033172A (en) | Network-controlled AC power cycling (APC) test system and method | |
CN114710431A (en) | Automatic closed-loop test method for intelligent Internet of things terminal | |
CN104237715A (en) | Test running fixture of fan coil |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |