CN106354600A - Method for realizing Cold reboot test based on IPMI tool - Google Patents
Method for realizing Cold reboot test based on IPMI tool Download PDFInfo
- Publication number
- CN106354600A CN106354600A CN201610751636.9A CN201610751636A CN106354600A CN 106354600 A CN106354600 A CN 106354600A CN 201610751636 A CN201610751636 A CN 201610751636A CN 106354600 A CN106354600 A CN 106354600A
- Authority
- CN
- China
- Prior art keywords
- server
- cold reboot
- instrument
- state
- ipmitool
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 title claims abstract description 10
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 title abstract 2
- 238000010998 test method Methods 0.000 claims description 14
- 125000004122 cyclic group Chemical group 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
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/26—Functional testing
- G06F11/263—Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
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)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a method for realizing Cold reboot test based on an IPMI tool, which relates to a server test technology, and comprises the steps of firstly adding a timed shutdown task to a machine by using a chord tool, and then inquiring the state of a server by using an ipmitool tool; when the server is inquired to be in a shutdown state, sending a startup command to the server through an ipmitool tool, and then waiting for the server to be automatically shut down and circularly inquiring the state of the server; the cold reboot control of the server is realized by such a loop. The method is suitable for all server platforms, the whole implementation process is simple and easy, additional testing equipment is not needed, the cost of the Cold reboot test of the server is reduced, the testing efficiency is improved, and the method has better universality and practical value.
Description
Technical field
The present invention relates to server test technology, specifically cold reboot test side is realized based on ipmi instrument
Method.
Background technology
In server test, when machine is carried out with stability test and the test of other component compatibility, need to carry out
Cold reboot tests.In view of in server test cold reboot test demand, the present invention proposes one kind and is based on
Cold reboot method of testing realized by ipmi instrument, and this method of testing is realized by ipmitool instrument collocation crontab
The control of cold reboot.
Crontab order is common among unix and the operating system of class unix, the finger being periodically performed for setting
Order.This order reads instruction from standard input device, and is deposited in " crontab " file, for reading afterwards and holding
OK.The instruction of crontab storage is activated by finger daemon, and usually in running background, each minute checks whether there is predetermined crond
Operation need execute.Crontab file comprises a series of operations and the instruction delivering cron finger daemon.Each user is permissible
Have the crontab file of oneself;Meanwhile, operating system preserves a crontab file being directed to whole system, and this document leads to
Often deposit in/etc or/etc under subdirectory in, and this file can only be changed by system manager.
Content of the invention
The present invention is directed to demand and the weak point of current technology development, provides and realizes cold based on ipmi instrument
Reboot method of testing.
Of the present invention cold reboot method of testing is realized based on ipmi instrument, solve what above-mentioned technical problem adopted
Technical scheme is as follows: described cold reboot method of testing is realized based on ipmi instrument, arranged in pairs or groups by ipmitool instrument
Crontab is realizing the control to cold reboot, and then completes the test of server cold reboot;It realizes process master
Comprise the steps: 1) using crontab to machine add timing shutdown task, 2) using ipmitool instrument control clothes
Business device circulation start, the cold reboot realizing server controls.
Preferably, to add the task of timing shutdown first by crontab to machine, then pass through ipmitool instrument
To inquire about the state of server.
Preferably, when the state inquiring server is off-mode, sent to server by ipmitool instrument
Power-on command, the then state of waiting for server automatic shutdown cyclic query server.
Of the present invention based on ipmi instrument realize that cold reboot method of testing compared with prior art has beneficial
Effect is: the present invention realizes the control to cold reboot by ipmitool instrument collocation crontab, and then completes to take
The test of business device cold reboot;It is applied to Servers-all platform, whole implementation process is simple it is not necessary to extra survey
Examination equipment, reduces the cost of server cold reboot test, improves testing efficiency, have preferable versatility and reality
With being worth.
Specific embodiment
For making the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with specific embodiment, to this
Bright described based on ipmi instrument realize cold reboot method of testing further describe.
Embodiment:
The present embodiment realizes cold reboot method of testing based on ipmi instrument, is arranged in pairs or groups by ipmitool instrument
Crontab is realizing the control to cold reboot, and then completes the test of server cold reboot;This method of testing
Process of realizing mainly comprises the steps: 1) use crontab to add the task of timing shutdown, the shape of inquiry server to machine
State, 2) control server circulation start using ipmitool instrument, the cold reboot realizing server controls.
Described 1) uses crontab to add the step for task of timing shutdown, state of inquiry server to machine, its
Main including, to add timing shutdown to machine first by crontab of task, is then inquired about by ipmitool instrument
The state of server.
Described 2) use the step for ipmitool instrument controls server circulation start, and it mainly includes, when inquiring
When the state of server is off-mode, power-on command, then waiting for server are sent to server by ipmitool instrument
Automatic shutdown the state of cyclic query server.So, the present embodiment passes through step 1), 2) so circulation to be realizing server
Cold reboot control.
Described in this example example, cold reboot method of testing is realized based on ipmi instrument, server is carried out by crontab
Cold reboot tests, and when being embodied as, adds the task of automatic shutdown first under server system, then runs
Remote scripting, long-range execution ipmitool order;Described remote scripting is as follows:
Above-mentioned specific embodiment is only the concrete case of the present invention, and the scope of patent protection of the present invention includes but is not limited to
Above-mentioned specific embodiment, any person of an ordinary skill in the technical field that meet claims of the present invention and any
The suitable change or replacement that it is done, all should fall into the scope of patent protection of the present invention.
Claims (3)
1. cold reboot method of testing is realized it is characterised in that arranging in pairs or groups by ipmitool instrument based on ipmi instrument
Crontab is realizing the control to cold reboot, and then completes the test of server cold reboot;It realizes process master
Comprise the steps: 1) using crontab to machine add timing shutdown task, 2) using ipmitool instrument control clothes
Business device circulation start, the cold reboot realizing server controls.
2. according to claim 1 cold reboot method of testing is realized it is characterised in that making first based on ipmi instrument
With crontab to add the task of timing shutdown to machine, then inquire about the state of server by ipmitool instrument.
3. according to claim 2 cold reboot method of testing is realized based on ipmi instrument it is characterised in that working as inquiry
To the state of server be off-mode when, power-on command is sent to server by ipmitool instrument, then etc. to be serviced
Device automatic shutdown the state of cyclic query server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610751636.9A CN106354600A (en) | 2016-08-29 | 2016-08-29 | Method for realizing Cold reboot test based on IPMI tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610751636.9A CN106354600A (en) | 2016-08-29 | 2016-08-29 | Method for realizing Cold reboot test based on IPMI tool |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106354600A true CN106354600A (en) | 2017-01-25 |
Family
ID=57855760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610751636.9A Pending CN106354600A (en) | 2016-08-29 | 2016-08-29 | Method for realizing Cold reboot test based on IPMI tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354600A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051490A (en) * | 2012-11-26 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Method for carrying out startup and shutdown testing on blade server |
CN103970660A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Total system stability automatic test method based on crontab |
CN104536875A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | IPMI-based method for carrying out automatic restart test on server |
-
2016
- 2016-08-29 CN CN201610751636.9A patent/CN106354600A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051490A (en) * | 2012-11-26 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Method for carrying out startup and shutdown testing on blade server |
CN103970660A (en) * | 2014-05-19 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Total system stability automatic test method based on crontab |
CN104536875A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | IPMI-based method for carrying out automatic restart test on server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106708597A (en) | Method, device and system for creating cluster environment on the basis of Openstack | |
CN103034735B (en) | Big data distributed file export method | |
CN109814910A (en) | Automate gray scale dissemination method, device, computer system and storage medium | |
CN110086658B (en) | Interface switching method and device and computer readable storage medium | |
CN102333115A (en) | Method and device for transforming existing Web application into SaaS multi-tenant application | |
RU2014152999A (en) | IDENTIFICATION OF DOWNLOADED APPLICATIONS COMPATIBLE TO THE BASIS | |
CN107707687A (en) | A kind of method and apparatus of virtual machine IP address configuration | |
CN105843707A (en) | Quick recovery method and equipment of database | |
CN106713042B (en) | Method and device for determining network topology | |
CN106096997A (en) | Inventory composing exes, system and device | |
CN111190823A (en) | UI automation test method, electronic device and computer readable storage medium | |
CN102486732A (en) | Distributed type platform and control method for starting priorities of functional modules in platform | |
TW201229749A (en) | An automated operating system test framework | |
CN107453953A (en) | A kind of data update system and method based on httpclient | |
CN105224441A (en) | Virtual machine information harvester, method and virtual machine information maintaining method and system | |
CN103294494A (en) | Automatic deployment method and system of virtual system | |
CN103389905A (en) | Plug-in loading method and plug-in loading system | |
CN105335186A (en) | Data downloading management method and system | |
CN103019977A (en) | Method for automatically identifying edition by application apparatus of embedded system and starting method | |
CN105068899A (en) | Automatic restart stability test method under Vmware system | |
CN106354600A (en) | Method for realizing Cold reboot test based on IPMI tool | |
CN102957562A (en) | Linux cluster system remote automatic maintenance method and maintenance system | |
CN102707943A (en) | Implementation method of remote control automation tool | |
CN108363671B (en) | Interface switching method, terminal equipment and storage medium | |
CN101373464B (en) | Method, apparatus and system for automatically adopting form setting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170125 |
|
WD01 | Invention patent application deemed withdrawn after publication |