CN105700997A - Method for testing reboot of server under DOS and recording number of reboot times - Google Patents

Method for testing reboot of server under DOS and recording number of reboot times Download PDF

Info

Publication number
CN105700997A
CN105700997A CN201610001883.7A CN201610001883A CN105700997A CN 105700997 A CN105700997 A CN 105700997A CN 201610001883 A CN201610001883 A CN 201610001883A CN 105700997 A CN105700997 A CN 105700997A
Authority
CN
China
Prior art keywords
autoexec
dos
reboot
server
restarted
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
Application number
CN201610001883.7A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610001883.7A priority Critical patent/CN105700997A/en
Publication of CN105700997A publication Critical patent/CN105700997A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems

Abstract

The present invention discloses a method for testing a reboot of a server under a DOS and recording the number of reboot times. According to the method, a program package is copied into a storage device that can be booted to enter a DOS, and when the device is booted to enter the DOS, an autoexec. bat batch processing file automatically runs, and an exe executable program whose number of reboot times adds 1 is called in the batch processing file firstly, and then an executable program that delays for 2s is called, and finally a feasibility program for rebooting a server is called. According to the method disclosed by the present invention, server rebooting is controlled by a program, and human intervention is avoided. By using the method, human resources of links such as development, testing and production line operation are conserved. Reboot testing can be rapidly and accurately performed, so that the method is strong in practicality, wide in application range and easy to promote.

Description

A kind of method that under DOS, server is restarted in test and number of times restarted in record
Technical field
The present invention relates to server, storage class server test technical field, be specifically related under a kind of DOS the method that server is restarted in test and number of times restarted in record。
Background technology
Along with the development of mobile Internet Yu big data, server uses in a large number。The stability of server is a vital parameter, and the method for testing service device stability has a variety of, and such as stress test, environmental testing, high temperature test etc., and restarting test is also an important ring。Mostly restarting test at present all to carry out under system, so a lot of times are all wasted in system starting process。
Summary of the invention
The technical problem to be solved in the present invention is: in order to solve the problems referred to above, the present invention proposes under a kind of DOS the method that server is restarted in test and number of times restarted in record, a kind of practical, method of restarting server fast and easily is provided, specific software program package is copied to the root of the equipment such as USB flash disk etc. that can launch into DOS, use the mode of batch processing, it is achieved restart testing service device and number of times restarted in record。Function can be realized in different platform。
The technical solution adopted in the present invention is:
A kind of method that under DOS, server is restarted in test and number of times restarted in record, described method is by the root of program of file copy bag to the storage device such as USB flash disk etc. that can launch into DOS, once equipment launches into DOS and can automatically run autoexec.bat autoexec, first call in autoexec and restart the exe executable program (times.exe that number of times adds 1, when performing first, the number of times.dat is 0), then recall the executable program sleep.exe postponing 2S, finally call the reliability program reboot.exe restarting server。
Described package content includes: autoexec.bat, reboot.exe, times.dat, times.exe。
Described method flow is as follows:
1) program package is copied to can start the equipment such as USB flash disk etc. into DOS;
2) autoexec.bat autoexec runs automatically;
3) the program times.exe of record number of times is performed in autoexec.bat;
4) by performing delay routine sleep.exe in autoexec.bat, 2S is postponed;
5) reset routine reboot.exe is performed in autoexec.bat。
Described method can be passed through times.dat Fileview and perform to restart the number of times of test。
The invention have the benefit that
Present invention achieves programme-control Server Restart, it is to avoid human intervention。Exploitation is this method saved by using, test, the human resources of each links such as production line operation。Can carry out restarting test fast and accurately, practical, applied widely, it is easy to promote。
Accompanying drawing explanation
Fig. 1 is the inventive method flow chart。
Detailed description of the invention
Below according to Figure of description, in conjunction with detailed description of the invention, the present invention is further described:
Embodiment 1:
A kind of method that under DOS, server is restarted in test and number of times restarted in record, described method is by the root of program of file copy bag to the storage device such as USB flash disk etc. that can launch into DOS, once equipment launches into DOS and can automatically run autoexec.bat autoexec, the exe executable program (when performing first, the number of times.dat is 0) restarted number of times and add 1 is first called in autoexec, then recall the executable program postponing 2S, finally call the reliability program restarting server。
Embodiment 2:
On the basis of embodiment 1, described in the present embodiment, package content includes: autoexec.bat, reboot.exe, times.dat, times.exe。
Embodiment 3:
On the basis of embodiment 2, described in the present embodiment, method flow is as follows:
1) program package is copied to can start the equipment such as USB flash disk etc. into DOS;
2) autoexec.bat autoexec runs automatically;
3) the program times.exe of record number of times is performed in autoexec.bat;
4) by performing delay routine sleep.exe in autoexec.bat, 2S is postponed;
5) reset routine reboot.exe is performed in autoexec.bat。
Embodiment 4:
On the basis of embodiment 2 or 3, method described in the present embodiment can be passed through times.dat Fileview and perform to restart the number of times of test。
Wherein, autoexec.bat content is as follows:
echooff
echoq|debug>nul
echoBjjzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.com
echo0DxFP,0Xx.t0P,=XtGsB4o$?PIyUWwX0GwUYWv;ovBX2Gv0ExGIuht6>>sleep.com
echoT}{z~~GwkBGOEKcUt`~}MqqBsy?seHB~_Phxr?zAB`LrPEyoDtCj?>>sleep.com
echopky_jNQEKpEtij?jySjNREKpEtjj?jyGjNSEKkjtlGuNw?ppjirz>>sleep.com
echoLFvAURQ?OYLTQ?~QCoOL~RDU?aU?{QOq?}IKuNWpe~FpeQFwH?Vkk>>sleep.com
echo_GSqoCvH{OjeOSeIQRmAKnEFB?p??mcjNne~B?M??QhetLBgBPHexhe=>>sleep.com
echoEsOgwTLbLK?sFU`?LDODKxO?SUudA?_FKJN?KD?UA??O}HCQOQ??R>>sleep.com
echo_OQOL?CLA?CEU?_FU?UAQ?UBD?LOC?ORO?UOL?UOD?OOI?UgL?LORYUO?>>sleep.com
echodsmSQswDOR[BQAQ?LUA?_L_oUNUScLOOuLOODUO?UOEOwH?UOQ?DJTSDM>>sleep.com
echoQTqrKkcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT>>sleep.com
echodmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EH>>sleep.com
echo{zpQpKGk?Jbs?FqokOH{T?jPvPIQBDFAN?OHROL?Kj??pd~aN?OHROd?G>>sleep.com
echoQ??PGT~B??OC~?ipO?T?~U?p~cUo0x>>sleep.com
sleep.com>sleep.exe
delsleep.com
echowait2seconds:
times.exe
sleep.exe2000
reboot.exe
echoon
Embodiment of above is merely to illustrate the present invention; and it is not limitation of the present invention; those of ordinary skill about technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes fall within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims。

Claims (4)

1. the method that under a DOS, server is restarted in test and number of times restarted in record, it is characterized in that: described method is by program of file copy bag to the storage device that can launch into DOS, automatically autoexec.bat autoexec is run when equipment launches into DOS, first call in autoexec and restart the exe executable program that number of times adds 1, then recall the executable program postponing 2S, finally call the reliability program restarting server。
2. the method that under a kind of DOS according to claim 1, server is restarted in test and number of times restarted in record, it is characterised in that: described package content includes: autoexec.bat, reboot.exe, times.dat, times.exe。
3. the method that under a kind of DOS according to claim 2, server is restarted in test and number of times restarted in record, it is characterised in that described method flow is as follows:
1) program package is copied to can start the equipment into DOS;
2) autoexec.bat autoexec runs automatically;
3) the program times.exe of record number of times is performed in autoexec.bat;
4) by performing delay routine sleep.exe in autoexec.bat, 2S is postponed;
5) reset routine reboot.exe is performed in autoexec.bat。
4. the method that under a kind of DOS according to Claims 2 or 3, server is restarted in test and number of times restarted in record, it is characterised in that: described method performs to restart the number of times of test by times.dat Fileview。
CN201610001883.7A 2016-01-05 2016-01-05 Method for testing reboot of server under DOS and recording number of reboot times Pending CN105700997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610001883.7A CN105700997A (en) 2016-01-05 2016-01-05 Method for testing reboot of server under DOS and recording number of reboot times

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610001883.7A CN105700997A (en) 2016-01-05 2016-01-05 Method for testing reboot of server under DOS and recording number of reboot times

Publications (1)

Publication Number Publication Date
CN105700997A true CN105700997A (en) 2016-06-22

Family

ID=56226067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610001883.7A Pending CN105700997A (en) 2016-01-05 2016-01-05 Method for testing reboot of server under DOS and recording number of reboot times

Country Status (1)

Country Link
CN (1) CN105700997A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608829A (en) * 2017-09-26 2018-01-19 郑州云海信息技术有限公司 A kind of authentication server whether there is the method that hardware is lost
CN109243518A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 A kind of test method for solid state hard disk, device and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385766B1 (en) * 1999-05-20 2002-05-07 Dell Usa L.P. Method and apparatus for windows-based installation for installing software on build-to-order computer systems
CN101187876A (en) * 2007-12-11 2008-05-28 铁道第三勘测设计院集团有限公司 Parasitic DOS operation system manufacture and its usage method
CN101615149A (en) * 2009-07-28 2009-12-30 上海北大方正科技电脑系统有限公司 A kind of system automatic recovery method
CN104536875A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Automatic server restart testing method based on IPMI
CN104932977A (en) * 2015-06-12 2015-09-23 浪潮电子信息产业股份有限公司 Automatic reboot test method of Solaris system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385766B1 (en) * 1999-05-20 2002-05-07 Dell Usa L.P. Method and apparatus for windows-based installation for installing software on build-to-order computer systems
CN101187876A (en) * 2007-12-11 2008-05-28 铁道第三勘测设计院集团有限公司 Parasitic DOS operation system manufacture and its usage method
CN101615149A (en) * 2009-07-28 2009-12-30 上海北大方正科技电脑系统有限公司 A kind of system automatic recovery method
CN104536875A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Automatic server restart testing method based on IPMI
CN104932977A (en) * 2015-06-12 2015-09-23 浪潮电子信息产业股份有限公司 Automatic reboot test method of Solaris system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608829A (en) * 2017-09-26 2018-01-19 郑州云海信息技术有限公司 A kind of authentication server whether there is the method that hardware is lost
CN109243518A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 A kind of test method for solid state hard disk, device and computer storage medium

Similar Documents

Publication Publication Date Title
US9501289B2 (en) Method of a UEFI firmware and computer system thereof
US10139876B2 (en) Efficient reboot of an operating system executed in a virtual machine
JP6124994B2 (en) Method and system for restoring from legacy OS environment to Unified Extensible Firmware Interface (UEFI) pre-boot environment, and computer program
CN105843741B (en) Information processing method and device for application program
US8495344B2 (en) Simultaneous execution resumption of multiple processor cores after core state information dump to facilitate debugging via multi-core processor simulator using the state information
TWI482015B (en) Backing up firmware during initialization of device
US10481916B2 (en) Computer device and memory startup method of computer device
KR101931007B1 (en) Initialization trace of a computing device
US10599419B2 (en) Secure firmware updates using virtual machines to validate firmware packages
JP6017706B2 (en) Mechanisms that support reliability, availability, and maintainability (RAS) flows in peer monitors
US7962736B1 (en) Interactive pre-OS firmware update with repeated disabling of interrupts
JP2009277223A (en) Computer system, method for initializing computer system and computer program
JP5710434B2 (en) Method, information processing system, and processor for extensible state tracking of assist hardware threads
TWI454925B (en) Psmi using at-speed scan capture
CN109101416B (en) Kernel fault injection method and electronic equipment
US11144328B2 (en) System method to update failover process by running basic input/output (BIOS) system boot code from non-volatile memory express device (NVME)
US20200348946A1 (en) Information Handling System (IHS) And Method To Proactively Restore Firmware Components To A Computer Readable Storage Device Of An IHS
WO2016206514A1 (en) Startup processing method and device
EP3127036B1 (en) Systems and methods for identifying a source of a suspect event
TW201633176A (en) Dual purpose boot registers
US10586048B2 (en) Efficient reboot of an operating system
US20190332461A1 (en) Embedding forensic and triage data in memory dumps
CN105700997A (en) Method for testing reboot of server under DOS and recording number of reboot times
US11010249B2 (en) Kernel reset to recover from operating system errors
US10229033B2 (en) System, method and apparatus for debugging of reactive applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622

RJ01 Rejection of invention patent application after publication