CN106055440A - Testing method and system for realizing abnormal power failure of server through BMC - Google Patents
Testing method and system for realizing abnormal power failure of server through BMC Download PDFInfo
- Publication number
- CN106055440A CN106055440A CN201610378028.8A CN201610378028A CN106055440A CN 106055440 A CN106055440 A CN 106055440A CN 201610378028 A CN201610378028 A CN 201610378028A CN 106055440 A CN106055440 A CN 106055440A
- Authority
- CN
- China
- Prior art keywords
- bmc
- testing
- power
- server
- server exception
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention provides a testing method and system for realizing abnormal power failure of a server through a BMC. The testing method comprises the following steps of: S1, starting the server, setting a script to start and operate, and then, restarting to enter a server system again; S2, recording the starting time; and S3, waiting and judging whether the starting time is up to a pre-set time or not, if so, ending the test, and otherwise, returning to the step S2. According to the testing method and system disclosed by the invention, testing can be carried out on any server with a linux system; other equipment is unnecessary; the testing method is green, environment-friendly, simple and practical; stable inspection of the system, a BIOS and hardware can be carried out; furthermore, the testing completeness can also be controlled more intelligently; the problems that power is off when starting is not completed or a field is damaged due to abnormal power failure in starting engineering can be avoided; and in addition, a certain software program is started up in a testing script, so that the software stability of the software program in an abnormal power failure condition can be tested, etc.
Description
Technical field
The present invention relates to a kind of abnormal power-down method of testing, particularly relate to one and realize server exception power-off by BMC
Method of testing, and relate to the system that have employed this method of testing being realized server exception power-off by BMC.
Background technology
Server is a kind of product high to reliability requirement, therefore for the test of server in R&D process
Put into the biggest.The abnormal power-down test of server is all to be realized by relay or AC Source under normal circumstances,
Estimating how long service entrance system needs, how long after server power-off, all components and parts thoroughly discharge needs, then
AC power supplies is set and realizes energising power-off according to this frequency.Test and needed by relay or AC Source, and
In test process, system whether cannot learn by normal boot-strap;If additionally, hung firmly cannot position hung during system boot
Particular location.AC Source refers to alternating current power supply on circuit, refers to export various alternating current in terms of product test
The instrument of source specification, user can arbitrarily set voltage and the frequency of alternating current power supply;Hung firmly refers to hang, and is abnormal the most disconnected
Easy produced problem during electricity, is i.e. not fully complete the exception of the most power-off in start.
Summary of the invention
The technical problem to be solved is to need to provide a kind of testing procedure simple, it is not necessary to by other instruments,
And the method for testing of server exception power-off that can be time saving and energy saving, and provide the test that have employed this server exception power-off
The system of method.
To this, the present invention provides a kind of method of testing being realized server exception power-off by BMC, comprises the following steps:
Step S1: server is opened and arranged script start and runs, and then restarts and is again introduced into server system;
Step S2, records the available machine time;
Step S3, waits and judges whether the number of starts reaches preset times, if then test terminates, if otherwise returning step
S2。
Further improvement of the present invention is, described step S1 includes following sub-step:
Step S101, start enters Linux system, arranges the interval time restarted;
Step S102, writes test script content;
Step S103, runs after arranging script start automatically.
Further improvement of the present invention is, in described step S101, described interval time is set to 60 ~ 100 seconds.
Further improvement of the present invention is, in described step S102, including following sub-step:
Step S1021, is stored to the completed number of starts inside predeterminable area;
Step S1022, it is judged that whether the number of times that system has been started up reaches preset times, if reached, shows that test completes;
Step S1023, will enter time of system and is saved in specified file;
Step S1024, waits default interval time after entrance system;
Step S1025, performs to restart, system power-off at once;
Step S1026, waits until that power-off time is energized after reaching default interval time again.
Further improvement of the present invention is, in described step S1, also includes that interrupt step, described interrupt step are used for connecing
Receiving interrupt instruction, described interrupt instruction is for revising numerical value and/or the interval time of described preset times.
Further improvement of the present invention is, in described step S3, first waits default time interval, then carries out by force
Be energized after power-off entrance system again, it is judged that whether the number of starts reaches preset times, if then test terminates, if otherwise returning step
Rapid S2.
Further improvement of the present invention is, in described step S3, first waits 60 ~ 100 seconds, after then carrying out forced interruption
Be energized entrance system again.
Further improvement of the present invention is, in described step S3, first waits default time interval, then passes through
The IPMI order of Linux system is energized after carrying out forced interruption entrance system again.
Further improvement of the present invention is, in described step S3, is broken by force by the IPMI order of Linux system
Be energized after electric 60 seconds entrance system again.
The present invention also provides for a kind of test system being realized server exception power-off by BMC, have employed as above
The method of testing of server exception power-off is realized by BMC.
Compared with prior art, the beneficial effects of the present invention is: can whenever and wherever possible at any one equipped with linux system
Test on the server of system, it is not necessary to by other equipment, environmental protection and simple and practical;The present invention can not only to system,
BIOS and hardware carry out study on the stability, moreover it is possible to the more intelligent completeness controlling test, it is to avoid start is not fully complete the most
The problem such as destory the scene after abnormal power-down in power-off or start engineering, additionally add in test script starting up certain
Software program, it is possible to test this software program software stability etc. under abnormal power-down.
Accompanying drawing explanation
Fig. 1 is the workflow schematic diagram of an embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings, the preferably embodiment of the present invention is described in further detail:
As it is shown in figure 1, this example provides a kind of method of testing being realized server exception power-off by BMC, comprise the following steps:
Step S1: server is opened and arranged script start and runs, and then restarts and is again introduced into server system;
Step S2, records the available machine time;
Step S3, waits and judges whether the number of starts reaches preset times, if then test terminates, if otherwise returning step
S2。
Preset times described in this example can be different to the requirement of server according to client, change test required for preset
The interval time waited after number of times and entrance system, it is also possible to check the software can by arranging starting up's certain applications program
By property;Control server system by BMC and realize abnormal power-down, and then realize the test of the abnormal power-down to server, test step
Rapid simple, it is not necessary to by other instruments, to be a kind of time saving and energy saving method of testing.
Before IPMI specification does not occur, server does not has BMC function, BMC function to be to add on traditional server
The additional functionality added, is used for monitoring the physical health feature of server, such as temperature, voltage, fan operating state and power supply status
Deng.Breaking down in BMC function or cannot still can continue properly functioning by server in the case of duty, this example be right
With the server of BMC function, this server part in addition to BMC module is carried out the method for testing of abnormal power-down.
But server with BMC function is being energized in the case of system closedown, and only front power supply has electricity, supplies BMC
Module can normally work, and other positions of mainboard all do not have electricity, removes server now by mono-powercycle function of BMC
The part that BMC module is thought carries out the test of abnormal power-down, and this powercycle is for restarting, and method of testing described in this example is not
Only can test the stability of BIOS and system, but also can be with part of detecting software stability in the case of abnormal power-down.
Step S1 described in this example includes following sub-step:
Step S101, start enters Linux system, arranges the interval time restarting (powercycle), this interval time
Being preferably arranged to 60 ~ 100 seconds, this interval time can also foundation practical situation and demand be adjusted;
Step S102, writes test script content;
Step S103, runs after arranging script start automatically.
In step S102 described in this example, including following sub-step:
Step S1021, is stored to inside predeterminable area by the completed number of starts, and described predeterminable area can be row LINE;
Step S1022, it is judged that whether the number of times that system has been started up reaches preset times N, if reached, shows that test completes;
This preset times N can realize change by interrupt instruction etc. when operation;
Step S1023, will enter time of system and is saved in specified file, and described specified file can be log file;
Step S1024, waits default interval time after entrance system, as waited 60 seconds;
Step S1025, performs to restart (powercycle), system power-off at once;
Step S1026, waits until that power-off time is energized after reaching default interval time again, is energized after waiting 60 seconds again.
In step S1 described in this example, also include that interrupt step, described interrupt step are used for receiving interrupt instruction, described interruption
Instruction for revising numerical value and/or the interval time of described preset times, such setting, it is simple to user according to practical situation and
Demand is to the numerical value of preset times and modifies interval time and adjusts.
In step S3 described in this example, first wait default time interval, as first waited 60 ~ 100 seconds, break by force
Be energized after electricity entrance system again, it is judged that whether the number of starts reaches preset times, if then test terminates, if otherwise returning step
S2.Preferably, in described step S3, first wait default time interval, then carried out by force by the IPMI order of Linux system
Row power-off is energized after 60 seconds entrance system again.
The present invention also provides for a kind of test system being realized server exception power-off by BMC, have employed as above
The method of testing of server exception power-off is realized by BMC.
This example can be tested equipped with on the machine of the server of Linux system at any one whenever and wherever possible, it is not necessary to
By other equipment, environmental protection and simple and practical;The present invention can not only carry out stability to system, BIOS and hardware and examine
Examine, moreover it is possible to the more intelligent completeness controlling test, it is to avoid start is not fully complete hung in the most power-off or start engineering
Live problems such as destorying the scene after power-off, in test script, additionally add certain software program of starting up, it is possible to test should
Software program software stability etc. under abnormal power-down.
Described BMC is Baseboard Management Controller, i.e. baseboard management controller.Described IPMI is
Intelligent Platform Management Interface, i.e. IPMI (IPMI), this is a kind of
The hardware management interface specification of open standard, defines the ad hoc approach that embedded management subsystem communicates;IPMI information
Being exchanged by baseboard management controller (BMC), described baseboard management controller is positioned at the nextport hardware component NextPort of IPMI specification
On.Described BIOS is the initialism of Basic Input Output System, and literally rear Chinese is exactly basic input
Output system, in fact, it is one group and is cured in computer the program on a rom chip, its in store computer on mainboard
Self-check program and system self-triggered program after the program of most important basic input and output, start, it can read and write system from CMOS
The specifying information that system is arranged.Its major function provides the bottom, the most direct hardware setting and control for computer.
IPMI instrument is the IPMI platform management instrument of a kind of command line mode that can be used under linux system, and it supports IPMI
1.5 specifications, can realize obtaining the merits such as the information of sensor, display system log content and network remote switching on and shutting down by it
Energy.
Above content is to combine concrete preferred implementation further description made for the present invention, it is impossible to assert
Being embodied as of the present invention is confined to these explanations.For general technical staff of the technical field of the invention,
On the premise of present inventive concept, it is also possible to make some simple deduction or replace, all should be considered as belonging to the present invention's
Protection domain.
Claims (10)
1. the method for testing being realized server exception power-off by BMC, it is characterised in that comprise the following steps:
Step S1: server is opened and arranged script start and runs, and then restarts and is again introduced into server system;
Step S2, records the available machine time;
Step S3, waits and judges whether the number of starts reaches preset times, if then test terminates, if otherwise returning step
S2。
The method of testing being realized server exception power-off by BMC the most according to claim 1, it is characterised in that described
Step S1 includes following sub-step:
Step S101, start enters Linux system, arranges the interval time restarted;
Step S102, writes test script content;
Step S103, runs after arranging script start automatically.
The method of testing being realized server exception power-off by BMC the most according to claim 2, it is characterised in that described
In step S101, described interval time is set to 60 ~ 100 seconds.
The method of testing being realized server exception power-off by BMC the most according to claim 2, it is characterised in that described
In step S102, including following sub-step:
Step S1021, is stored to the completed number of starts inside predeterminable area;
Step S1022, it is judged that whether the number of times that system has been started up reaches preset times, if reached, shows that test completes;
Step S1023, will enter time of system and is saved in specified file;
Step S1024, waits default interval time after entrance system;
Step S1025, performs to restart, system power-off at once;
Step S1026, waits until that power-off time is energized after reaching default interval time again.
The method of testing being realized server exception power-off by BMC the most according to claim 2, it is characterised in that described
In step S1, also including that interrupt step, described interrupt step are used for receiving interrupt instruction, described interrupt instruction is used for revising described
The numerical value of preset times and/or interval time.
6., according to the method for testing being realized server exception power-off by BMC described in claim 1 to 5 any one, it is special
Levying and be, in described step S3, first wait default time interval, be energized after then carrying out forced interruption entrance system again, sentences
Whether the disconnected number of starts reaches preset times, if then test terminates, if otherwise returning step S2.
The method of testing being realized server exception power-off by BMC the most according to claim 6, it is characterised in that described
In step S3, first waiting 60 ~ 100 seconds, be energized after then carrying out forced interruption entrance system again.
The method of testing being realized server exception power-off by BMC the most according to claim 6, it is characterised in that described
In step S3, first wait default time interval, be energized again after then carrying out forced interruption by the IPMI order of Linux system
Entrance system.
The method of testing being realized server exception power-off by BMC the most according to claim 8, it is characterised in that described
In step S3, be energized after carrying out forced interruption 60 seconds by the IPMI order of Linux system entrance system again.
10. the test system being realized server exception power-off by BMC, it is characterised in that have employed as claim 1 to
The method of testing being realized server exception power-off by BMC described in 9 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610378028.8A CN106055440B (en) | 2016-05-31 | 2016-05-31 | A kind of test method and system for realizing server exception power-off by BMC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610378028.8A CN106055440B (en) | 2016-05-31 | 2016-05-31 | A kind of test method and system for realizing server exception power-off by BMC |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106055440A true CN106055440A (en) | 2016-10-26 |
CN106055440B CN106055440B (en) | 2019-08-20 |
Family
ID=57171737
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610378028.8A Active CN106055440B (en) | 2016-05-31 | 2016-05-31 | A kind of test method and system for realizing server exception power-off by BMC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106055440B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107315467A (en) * | 2017-06-21 | 2017-11-03 | 联想(北京)有限公司 | A kind of control method, control device and server |
CN107943643A (en) * | 2017-11-28 | 2018-04-20 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware DC test methods and system |
CN107943637A (en) * | 2017-12-07 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of mains cycle test device and method based on IPMI platforms |
CN108051728A (en) * | 2017-11-28 | 2018-05-18 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware AC test methods and system |
CN108089961A (en) * | 2017-11-28 | 2018-05-29 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware reboot test methods and system |
CN108153629A (en) * | 2017-12-12 | 2018-06-12 | 郑州云海信息技术有限公司 | A kind of test method and device for automatically adjusting Redriver |
CN108614754A (en) * | 2018-08-17 | 2018-10-02 | 北京航星中云科技有限公司 | A kind of server power failure test method and device based on platform of soaring |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186439A (en) * | 2011-12-27 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Server test system and server stability test method |
JP2015011413A (en) * | 2013-06-27 | 2015-01-19 | 株式会社日立製作所 | Verification automation method |
CN104375910A (en) * | 2014-11-24 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Automatic power-on and power-off test method |
CN104899120A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions |
CN105404569A (en) * | 2015-12-09 | 2016-03-16 | 浪潮电子信息产业股份有限公司 | Method for testing remote Power Reset of server |
-
2016
- 2016-05-31 CN CN201610378028.8A patent/CN106055440B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186439A (en) * | 2011-12-27 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Server test system and server stability test method |
JP2015011413A (en) * | 2013-06-27 | 2015-01-19 | 株式会社日立製作所 | Verification automation method |
CN104375910A (en) * | 2014-11-24 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Automatic power-on and power-off test method |
CN104899120A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions |
CN105404569A (en) * | 2015-12-09 | 2016-03-16 | 浪潮电子信息产业股份有限公司 | Method for testing remote Power Reset of server |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107315467A (en) * | 2017-06-21 | 2017-11-03 | 联想(北京)有限公司 | A kind of control method, control device and server |
CN107943643A (en) * | 2017-11-28 | 2018-04-20 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware DC test methods and system |
CN108051728A (en) * | 2017-11-28 | 2018-05-18 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware AC test methods and system |
CN108089961A (en) * | 2017-11-28 | 2018-05-29 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware reboot test methods and system |
CN107943637A (en) * | 2017-12-07 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of mains cycle test device and method based on IPMI platforms |
CN108153629A (en) * | 2017-12-12 | 2018-06-12 | 郑州云海信息技术有限公司 | A kind of test method and device for automatically adjusting Redriver |
CN108614754A (en) * | 2018-08-17 | 2018-10-02 | 北京航星中云科技有限公司 | A kind of server power failure test method and device based on platform of soaring |
Also Published As
Publication number | Publication date |
---|---|
CN106055440B (en) | 2019-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055440A (en) | Testing method and system for realizing abnormal power failure of server through BMC | |
US9710334B2 (en) | Automatic restart server system | |
US8538720B2 (en) | Cold boot test system and method for electronic devices | |
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
US9170618B2 (en) | Power management circuit, server, and power management method thereof | |
TW201500935A (en) | System and method of controlling shutdown and booting of servers | |
US20200193029A1 (en) | Hardware structure of a trusted computer and trusted booting method for a computer | |
CN106909479B (en) | Startup and shutdown test fixture | |
US9542288B2 (en) | Diagnosis for a server motherboard | |
CN102087625A (en) | Boot test system and test method | |
CN104899055A (en) | BIOS control based ME updating system and updating method thereof | |
CN102571478A (en) | Server and method thereof for controlling channel to be opened or closed by server | |
CN105045599A (en) | Television and computer integrated machine and method for realizing remote startup and shutdown control of same | |
WO2016110000A1 (en) | Adjustment method, device and system for power-down reboot of single plate | |
CN103605596A (en) | System and method for collaborative power management of FPGA (field programmable gata array) chip and BMC (baseboard management controller) chip used on ATCA (advanced telecom computing architecture) blade | |
CN109581911A (en) | A kind of fan of the dual control storage equipment during booting powers on surely controls method and device | |
CN102915265A (en) | BMC (baseboard management controller) loop test method and system | |
CN108833981B (en) | Startup and shutdown method | |
CN104699215A (en) | Power supply protection system and power supply protection method | |
CN110879768A (en) | Power-on and power-off test method and device for multi-system server | |
CN114356062B (en) | Power control system of server and related power control method thereof | |
CN102819474B (en) | Test method and device for system operation | |
CN112114901B (en) | Standby control circuit, method, device and storage medium | |
CN106649002B (en) | Server and method for automatically overhauling baseboard management controller | |
CN111208891B (en) | CPLD updating system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170509 Address after: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Park seven Shenzhen Digital Technology Park B1 building 3 floor C District Applicant after: Shenzhen Tong Yi Yi Information Technology Co., Ltd. Address before: 518000 Guangdong province Shenzhen city Nanshan District high tech park, seven Shenzhen City Digital Technology Park B1 building 3 floor C District Applicant before: Shenzhen Guo Xinheng space Science and Technology Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |