[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106055440B - A kind of test method and system for realizing server exception power-off by BMC - Google Patents

A kind of test method and system for realizing server exception power-off by BMC Download PDF

Info

Publication number
CN106055440B
CN106055440B CN201610378028.8A CN201610378028A CN106055440B CN 106055440 B CN106055440 B CN 106055440B CN 201610378028 A CN201610378028 A CN 201610378028A CN 106055440 B CN106055440 B CN 106055440B
Authority
CN
China
Prior art keywords
bmc
test
server
test method
power
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
Application number
CN201610378028.8A
Other languages
Chinese (zh)
Other versions
CN106055440A (en
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.)
Shenzhen Tong Yi Yi Information Technology Co., Ltd.
Original Assignee
Shenzhen Tong Yi Yi Information 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 Shenzhen Tong Yi Yi Information Technology Co Ltd filed Critical Shenzhen Tong Yi Yi Information Technology Co Ltd
Priority to CN201610378028.8A priority Critical patent/CN106055440B/en
Publication of CN106055440A publication Critical patent/CN106055440A/en
Application granted granted Critical
Publication of CN106055440B publication Critical patent/CN106055440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/2273Test methods
    • 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/2284Detection 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 present invention provides a kind of test method and system that server exception power-off is realized by BMC, and the test method is the following steps are included: step S1: script booting operation is opened and be arranged to server, then restarts and is again introduced into server system;Step S2 records the available machine time;Step S3 is waited and is judged whether the number of starts reaches preset times, if then test terminates, if otherwise return step S2.The present invention can test on any one server equipped with Linux system, environmentally protective and simple and practical without other equipment;The present invention can not only carry out study on the stability to system, BIOS and hardware, the completeness of control test that can also be more intelligent, booting is avoided not complete the problems such as the destorying the scene after abnormal power-down in engineering that just powered off or be switched on, in addition some software program of starting up is added in test script, so that it may test software stability etc. of the software program under abnormal power-down.

Description

A kind of test method and system for realizing server exception power-off by BMC
Technical field
The present invention relates to a kind of abnormal power-down test methods, more particularly to a kind of BMC realization server exception that passes through to power off Test method, and be related to use this by BMC realize server exception power off test method system.
Background technique
Server is the high product of a kind of pair of reliability requirement, therefore for the test of server in R&D process It puts into also quite large.The abnormal power-down test of server is realized by relay or AC Source under normal conditions, Estimate service enter system need how long, server power-off after all components thoroughly discharge need how long, then AC power supplies is set and realizes the power-off that is powered according to this frequency.Test is completed to need by relay or AC Source, and Whether normal boot-strap can not be learnt system in test process;In addition, if hung lives that hung can not be positioned during system boot Specific location.AC Source refers to AC power source on circuit, and various alternating currents can be exported by referring in terms of product test The instrument of source specification, user can arbitrarily set the voltage and frequency of AC power source;Hung lives to refer to hang, and is abnormal disconnected The problem of being easy to appear when electric does not complete the exception just powered off in booting.
Summary of the invention
It is simple the technical problem to be solved by the present invention is to need to provide a kind of testing procedure, without other tools, And the test method of server exception power-off that can be time saving and energy saving, and the test for using server exception power-off is provided The system of method.
In this regard, the present invention provides a kind of test method for realizing server exception power-off by BMC, comprising the following steps:
Step S1: script booting operation is opened and be arranged to server, then restarts and is again introduced into server system;
Step S2 records the available machine time;
Step S3 is waited and is judged whether the number of starts reaches preset times, if then test terminates, if otherwise returning to step Rapid S2.
A further improvement of the present invention is that the step S1 includes following sub-step:
Step S101, booting enter Linux system, the interval time of restarting are arranged;
Step S102 writes test script content;
Step S103, automatic running after setting script is switched on.
A further improvement of the present invention is that the interval time is set as 60 ~ 100 seconds in the step S101.
A further improvement of the present invention is that in the step S102, including following sub-step:
The completed number of starts is stored to inside predeterminable area by step S1021;
Step S1022, judges whether the number that system has been started up reaches preset times, shows and tests if reaching At;
Step S1023 will enter the time of system and be stored in specified file;
Step S1024, into system after wait preset interval time;
Step S1025, executes restarting, and system powers off at once;
Step S1026, waiting are powered again after power-off time reaches preset interval time.
A further improvement of the present invention is that further including interrupt step in the step S1, the interrupt step is for connecing Interrupt instruction is received, the interrupt instruction is used to modify numerical value and/or the interval time of the preset times.
A further improvement of the present invention is that first waiting preset time interval in the step S3, then carry out by force It is powered again after power-off into system, judges whether the number of starts reaches preset times, if then test terminates, if otherwise returning to step Rapid S2.
A further improvement of the present invention is that first being waited 60 ~ 100 seconds, after then carrying out forced interruption in the step S3 It is powered again into system.
A further improvement of the present invention is that first waiting preset time interval in the step S3, then passing through The IPMI order of Linux system is powered again after carrying out forced interruption into system.
A further improvement of the present invention is that being broken by force in the step S3 by the IPMI order of Linux system Electricity is powered again after 60 seconds into system.
The present invention also provides a kind of test macros that server exception power-off is realized by BMC, use as described above The test method of server exception power-off is realized by BMC.
Compared with prior art, the beneficial effects of the present invention are: can whenever and wherever possible any one be equipped with linux system It is tested on the server of system, it is environmentally protective and simple and practical without other equipment;The present invention can not only to system, BIOS and hardware carry out study on the stability, moreover it is possible to which the completeness of more intelligent control test avoids booting from not completing just Powered off or be switched on the problems such as destorying the scene after abnormal power-down in engineering, in addition in test script be added starting up some Software program, so that it may test software stability etc. of the software program under abnormal power-down.
Detailed description of the invention
Fig. 1 is the workflow schematic diagram of an embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing, preferably embodiment of the invention is described in further detail:
As shown in Figure 1, this example provides a kind of test method for realizing server exception power-off by BMC, including following step It is rapid:
Step S1: script booting operation is opened and be arranged to server, then restarts and is again introduced into server system;
Step S2 records the available machine time;
Step S3 is waited and is judged whether the number of starts reaches preset times, if then test terminates, if otherwise returning to step Rapid S2.
Preset times described in this example can requirement according to client to server it is different, it is default required for test to change The interval time waited after number and entrance system can also examine software can by setting starting up's certain applications program By property;Abnormal power-down is realized by BMC control server system, and then realizes and the abnormal power-down of server is tested, test step It is rapid simple, it is a kind of time saving and energy saving test method without other tools.
Standardizing in IPMI without server before occurring is no BMC function, and BMC function is added on traditional server The additional functionality added, for monitoring the physical health feature of server, such as temperature, voltage, fan operating state and power supply status Deng.BMC function break down or can not working condition in the case where server still can continue to operate normally, this example is pair Server with BMC function carries out the test method of abnormal power-down to part of the server in addition to BMC module.
For server with BMC function in the case where being powered still system closedown, only preceding power supply has electricity, supplies BMC Module can work normally, and mainboard other positions all without electricity, are at this time removed server by mono- powercycle function of BMC BMC module with for part carry out the test of abnormal power-down, which is restarting, and test method described in this example is not The stability of BIOS and system can be only tested, but also can be with the stability of part of detecting software in the case of abnormal power failure.
Step S1 described in this example includes following sub-step:
Step S101, booting enter Linux system, the interval time of setting restarting (powercycle), the interval Time is preferably arranged to 60 ~ 100 seconds, which can also be adjusted with foundation actual conditions and demand;
Step S102 writes test script content;
Step S103, automatic running after setting script is switched on.
In step S102 described in this example, including following sub-step:
Step S1021, the completed number of starts is stored to inside predeterminable area, and the predeterminable area can be row LINE;
Step S1022, judges whether the number that system has been started up reaches preset times N, and test is shown if reaching It completes;Preset times N can be changed in operation by realizations such as interrupt instructions;
Step S1023 will enter the time of system and be stored in specified file, and the specified file can be log text Part;
Step S1024, into system after wait preset interval time, such as wait 60 seconds;
Step S1025 executes restarting (powercycle), and system powers off at once;
Step S1026, waiting are powered again after power-off time reaches preset interval time, as led to again after waiting 60 seconds Electricity.
It further include interrupt step in step S1 described in this example, the interrupt step is for receiving interrupt instruction, the interruption Instruct numerical value and/or the interval time for modifying the preset times, such setting, convenient for user according to the actual situation and Demand is modified and is adjusted to the numerical value of preset times and interval time.
In step S3 described in this example, preset time interval is first waited, such as first waits 60 ~ 100 seconds, is then broken by force It is powered again after electricity into system, judges whether the number of starts reaches preset times, if then test terminates, if otherwise return step S2.Preferably, in the step S3, preset time interval is first waited, is then carried out by the IPMI order of Linux system strong Row power-off is powered again after 60 seconds into system.
The present invention also provides a kind of test macros that server exception power-off is realized by BMC, use as described above The test method of server exception power-off is realized by BMC.
This example can be tested on the machine of any one server equipped with Linux system whenever and wherever possible, be not necessarily to It is environmentally protective and simple and practical by other equipment;The present invention can not only carry out stability to system, BIOS and hardware and examine It examines, moreover it is possible to which the completeness of more intelligent control test avoids booting from not completing the hung in engineering that just powered off or be switched on In addition some software program of starting up is added in the problems such as destorying the scene after firmly powering off in test script, so that it may which test should Software stability etc. of the software program under abnormal power-down.
The BMC is Baseboard Management Controller, i.e. baseboard management controller.The IPMI is Intelligent Platform Management Interface, i.e. Intelligent Platform Management Interface (IPMI), this is a kind of The hardware management interface specification of open standard defines the ad hoc approach that embedded management subsystem is communicated;IPMI information It is exchanged by baseboard management controller (BMC), the baseboard management controller is located at the hardware component of IPMI specification On.The 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 of program being cured in computer on mainboard on a rom chip, its in store computer Self-check program and system self-triggered program after the programs of most important basic input and output, booting, it can read and write system from CMOS The specifying information of system setting.Its major function is that the bottom, most direct hardware setting and control are provided for computer. IPMI tool is a kind of IPMI platform management tool that can be used in the command line mode under linux system, it supports IPMI The function such as information, display system log content and the network remote switching on and shutting down of acquisition sensor may be implemented by it in 1.5 specifications Energy.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention Protection scope.

Claims (8)

1. a kind of test method for realizing server exception power-off by BMC, which comprises the following steps:
Step S1: script booting operation is opened and be arranged to server, then restarts and is again introduced into server system;
Step S2 records the available machine time;
Step S3 is waited and is judged whether the number of starts reaches preset times, if then test terminates, if otherwise return step S2;The step S1 includes following sub-step:
Step S101, booting enter Linux system, the interval time of restarting are arranged;
Step S102 writes test script content;
Step S103, automatic running after setting script is switched on;
In the step S102, including following sub-step:
The completed number of starts is stored to inside predeterminable area by step S1021;
Step S1022, judges whether the number that system has been started up reaches preset times, shows that test is completed if reaching;
The time for entering system is stored in specified file by step S1023;
Step S1024, into system after wait preset interval time;
Step S1025, executes restarting, and system powers off at once;
Step S1026, waiting are powered again after power-off time reaches preset interval time;
Being powered in the case where system closedown, the BMC module is worked normally server with BMC function, mainboard its The all no electricity in his position at this time carries out part of the server in addition to BMC module by the restarting facility of BMC abnormal disconnected The test of electricity.
2. the test method according to claim 1 for realizing server exception power-off by BMC, which is characterized in that described In step S101, the interval time is set as 60 ~ 100 seconds.
3. the test method according to claim 1 for realizing server exception power-off by BMC, which is characterized in that described It further include interrupt step in step S1, for the interrupt step for receiving interrupt instruction, the interrupt instruction is described for modifying The numerical value of preset times and/or interval time.
4. special according to claim 1 to the test method for realizing server exception power-off described in 3 any one by BMC Sign is, in the step S3, first waits preset time interval, is powered again after then carrying out forced interruption into system, is sentenced Whether the disconnected number of starts reaches preset times, if then test terminates, if otherwise return step S2.
5. the test method according to claim 4 for realizing server exception power-off by BMC, which is characterized in that described In step S3, first waits 60 ~ 100 seconds, be powered again after then carrying out forced interruption into system.
6. the test method according to claim 4 for realizing server exception power-off by BMC, which is characterized in that described In step S3, preset time interval is first waited, is powered again after then carrying out forced interruption by the IPMI order of Linux system Into system.
7. the test method according to claim 6 for realizing server exception power-off by BMC, which is characterized in that described In step S3, it is powered again after being carried out forced interruption 60 seconds by the IPMI order of Linux system into system.
8. a kind of test macro for realizing server exception power-off by BMC, which is characterized in that use such as claim 1 to 7 The test method of server exception power-off is realized described in any one by BMC.
CN201610378028.8A 2016-05-31 2016-05-31 A kind of test method and system for realizing server exception power-off by BMC Active CN106055440B (en)

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 CN106055440A (en) 2016-10-26
CN106055440B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
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
CN108089961A (en) * 2017-11-28 2018-05-29 郑州云海信息技术有限公司 One kind is based on MOC boards hardware reboot test methods and system
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
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

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN106055440A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106055440B (en) A kind of test method and system for realizing server exception power-off by BMC
TW201500935A (en) System and method of controlling shutdown and booting of servers
JP2017224272A (en) Hardware failure recovery system
US9170618B2 (en) Power management circuit, server, and power management method thereof
CN104899120A (en) Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions
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
CN109582505B (en) BIOS option default value recovery system, method and device
CN104699215A (en) Power supply protection system and power supply protection method
CN101206600B (en) Testing device and method for testing open/close machine of computer system
CN104424086B (en) Computer error detection module and method
CN103135728B (en) Power supply start-up control method and system thereof
CN205263730U (en) Novel IO riser integrated circuit board based on POWER platform
CN102819474A (en) Test method and device for system operation
CN102681872A (en) Automatic cold boot method of notebook computer
CN116028123A (en) Method and system for safely switching on and switching off server
US20140164815A1 (en) Server analyzing system
CN102193609B (en) Setting method for power supply locking and electronic device thereof
CN105137330B (en) The verification device and its operation method of multiple voltage domain digital circuit
CN102708014B (en) Dual-embedded controller circuit supporting ultralow temperature work of laptop, and control method
JP6036229B2 (en) Battery control device, battery control method, and program
CN112003727A (en) Multi-node server power supply testing method, system, terminal and storage medium
US8001313B2 (en) Insertion and removal of computing cards in server I/O slots
CN108108273B (en) Motherboard and computer system thereof
CN117074915B (en) Board card soft and hard restarting test method based on characteristic keyword monitoring technology
CN114328044B (en) AIC+box topology testing method, device and system

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