CN103970660A - Total system stability automatic test method based on crontab - Google Patents

Total system stability automatic test method based on crontab Download PDF

Info

Publication number
CN103970660A
CN103970660A CN201410211106.6A CN201410211106A CN103970660A CN 103970660 A CN103970660 A CN 103970660A CN 201410211106 A CN201410211106 A CN 201410211106A CN 103970660 A CN103970660 A CN 103970660A
Authority
CN
China
Prior art keywords
crontab
test
reboot
under
content
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
CN201410211106.6A
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 CN201410211106.6A priority Critical patent/CN103970660A/en
Publication of CN103970660A publication Critical patent/CN103970660A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a total system stability automatic test method based on crontab, and belongs to the field of system stability tests. The method includes the steps that the content of a crontab command is periodically executed under a linux system, the content for executing reboot is written in crontab through a script, the content is executed in a timing mode when a system is entered afterwards, and the program that a crond service is automatically started after reboot to operate a timing reboot and shutdown test under the linux system is set; every reboot time under the system is grasped in the initial stage of script operation, and current time is recorded to RebootLog. txt every time reboot operation is conducted. Test data are automatically recorded in the system stability test process, manual attendance is not needed, so that system stability test efficiency is improved and labor cost is reduced.

Description

A kind of automated testing method of the machine system stability based on crontab
technical field
the present invention relates to system stability test, specifically a kind of automated testing method of the machine system stability based on crontab.
Background technology
Industry is in the pressure test of linux system stability at present, most tests are that content measurement is programmed in the middle of crontab, test the setting that all needs manually to carry out instruction and parameter at every turn, aspect manpower, will strengthen human input like this, simultaneously also can be because artificial output order easily produces mistake.
Summary of the invention
Consider the more exquisite high-level efficiency of current test, under the result of high output, a kind of novel robotization stability pressure test instrument produces.The automated testing method that the invention provides a kind of machine system stability based on crontab, this technical scheme is:
By periodically carrying out the content in instruction crontab under linux, the content that execution is restarted writes in crontab by the mode of script, when entering system again, just timing is carried out later, start is set and automatically starts timed power on/off test under crond service operation linux system; Time while at every turn restarting under grasping system at the beginning of this script running job, restart operation at every turn and all current time can be recorded to RebootLog.txt.
This script running job is the test of restarting of carrying out OS aspect under system, and will restart operation at every turn and all current system reboot time, number of times, test result can be saved by RebootLog.txt file.Test is considered in persistent switch machine environment, guarantees the stability of system continuous firing.
The test procedure of the complete machine operating system stability based on crontab is full-automatic program, and system is restarted the content that automatic operation crontab the inside writes, and without artificial guard, automatic production record is restarted number of times and automatic production record reboot time; This program can arrange system reboot time, meets difference under Different L inux system and restarts testing requirement.
The invention has the beneficial effects as follows:
Be suitable for current all Linux OS under system stability test, there is good universal and generalization, provide a kind of and direct, easy-operatingly carry generic command in machine system stability test method based on Linux, can directly set the test duration, the system of checking is restarted number of times in time.
In Linux environment, consider the stability of machine system operation, can assess more scientifically and more effectively machine system reliability in use, promote the total quality of company's sale service applicator platform.
Automatic record test data in system stability test process, without artificial guard, improves the efficiency of system stability test with this, reduces cost of labor.
Brief description of the drawings
Accompanying drawing 1 is test general thought process flow diagram of the present invention.
Embodiment
The test procedure implementation method of the complete machine stable memory based on Crontab, its step is as follows:
1, be ready to Linux test platform (comprise Test Host platform, (SuSE) Linux OS is installed on Test Host);
2, Test Host is powered on start, enters operating system, uses root user's login;
3, LinuxReboot.sh script is copied on linux system desktop;
4, under linux system, move terminal terminal program, under terminal, carry out following operation:
#cd/root/Desktop carriage return
#chmod a+x LinuxReboot.sh
# ./LinuxReboot.sh
This script will perform a reboot testing per 5 minutes
To stop testing by command: crontab -r
You can check the RebootLog on Desktop
After Do you want to start testing now [yes/no]: yes input yes, start to restart test,
5, now/root/Desktop/RebootLog.txt file will be recorded and restart counting
6, system will start to restart test in 5min;
7, test machine continuous service is restarted test 500 times;
8, after restarting and having tested for 500 times, in/root/Desktop/RebootLog.txt, check and restart number of times, reboot time,, there is not the abnormal occurrencies such as deadlock, power down or blue screen in the record that do not report an error, and tester table stable operation in whole test process;
9, after test finishes, deletion/root/Desktop/LinuxReboot.sh file.
[root@inspur157 Desktop]# cat RebootLog.txt
1: System reboots at Tue Mar 18 10:04:55 CST 2014
2: System reboots at Tue Mar 18 10:15:02 CST 2014。
Test data and defining standard
Testing standard
After restarting and having tested for 500 times, in/root/Desktop/RebootLog.txt, checking and restart number of times, reboot time,, there is not the abnormal occurrencies such as deadlock, power down or blue screen in the record that do not report an error, and tester table stable operation in whole test process;
Test data
What RebootLog.txt deposited restarts record.

Claims (4)

1. an automated testing method for the machine system stability based on crontab, is characterized in that
By periodically carrying out the content in instruction crontab under linux, the content that execution is restarted writes in crontab by the mode of script, when entering system again, just timing is carried out later, start is set and automatically starts timed power on/off test under crond service operation linux system; Time while at every turn restarting under grasping system at the beginning of this script running job, restart operation at every turn and all current time can be recorded to RebootLog.txt.
2. method according to claim 1, it is characterized in that this script running job is the test of restarting of carrying out OS aspect under system, will restart operation at every turn and all current system reboot time, number of times, test result can be saved by RebootLog.txt file.
3. method according to claim 1, the test procedure that it is characterized in that the complete machine operating system stability based on crontab is full-automatic program, system is restarted the content that automatic operation crontab the inside writes, without artificial guard, automatic production record is restarted number of times and automatic production record reboot time; This program can arrange system reboot time, meets difference under Different L inux system and restarts testing requirement.
4. method according to claim 1, it is characterized in that the test procedure of the automatic operational system stability of complete machine based on Crontab, adopt c program cycle count function to count switching on and shutting down, and tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down or blue screen, assess whereby testing service applicator platform operation stability.
CN201410211106.6A 2014-05-19 2014-05-19 Total system stability automatic test method based on crontab Pending CN103970660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410211106.6A CN103970660A (en) 2014-05-19 2014-05-19 Total system stability automatic test method based on crontab

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410211106.6A CN103970660A (en) 2014-05-19 2014-05-19 Total system stability automatic test method based on crontab

Publications (1)

Publication Number Publication Date
CN103970660A true CN103970660A (en) 2014-08-06

Family

ID=51240189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410211106.6A Pending CN103970660A (en) 2014-05-19 2014-05-19 Total system stability automatic test method based on crontab

Country Status (1)

Country Link
CN (1) CN103970660A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automated startup and shutdown testing method
CN104407950A (en) * 2014-11-04 2015-03-11 浪潮电子信息产业股份有限公司 Novel power-off switching-on and switching-off test method based on program control variable-frequency power supply
CN104636242A (en) * 2015-02-06 2015-05-20 浪潮电子信息产业股份有限公司 Method for automatically deleting repeated content in system logs on basis of Linux operating system
CN104731655A (en) * 2015-04-07 2015-06-24 南京途牛科技有限公司 Script sustainable operation method and system
CN104932977A (en) * 2015-06-12 2015-09-23 浪潮电子信息产业股份有限公司 Automatic reboot test method of Solaris system
CN105068899A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Automatic reboot stability test method for Vmware system
CN105718340A (en) * 2016-01-13 2016-06-29 浪潮电子信息产业股份有限公司 Crontab based CPU stability testing method
CN106354600A (en) * 2016-08-29 2017-01-25 浪潮电子信息产业股份有限公司 Cold reboot testing realization method based on IPMI tools
CN106776189A (en) * 2017-01-11 2017-05-31 郑州云海信息技术有限公司 It is a kind of that method of testing is restarted based on platform of soaring automatically
CN107153611A (en) * 2017-05-09 2017-09-12 郑州云海信息技术有限公司 A kind of method of RHEL7&CentOS7 systems Reboot tests
CN107832178A (en) * 2017-11-20 2018-03-23 郑州云海信息技术有限公司 A kind of automated testing method of server stability
CN107894954A (en) * 2017-11-30 2018-04-10 郑州云海信息技术有限公司 A kind of automatic method for surveying BMC username and passwords
CN107918574A (en) * 2017-12-05 2018-04-17 郑州云海信息技术有限公司 A kind of method of inspection based on test hardware information under Redhat
CN108196982A (en) * 2017-12-29 2018-06-22 北京诺君安信息技术股份有限公司 A kind of LINUX system restarts the configuration method of service automatically
CN108804265A (en) * 2018-05-16 2018-11-13 郑州云海信息技术有限公司 A kind of PowerCycle test methods and system based on server DC
CN109240850A (en) * 2018-08-21 2019-01-18 郑州云海信息技术有限公司 Server DC Reboot test method under a kind of linux system
CN115250249A (en) * 2022-09-02 2022-10-28 北京安盟信息技术股份有限公司 IPv6 Ready-based automatic testing method, device, medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032114B1 (en) * 2000-08-30 2006-04-18 Symantec Corporation System and method for using signatures to detect computer intrusions
CN103019920A (en) * 2012-12-14 2013-04-03 浪潮电子信息产业股份有限公司 Complete machine non-power-off startup and shutdown method based on Linux system
CN103399787A (en) * 2013-08-06 2013-11-20 北京华胜天成科技股份有限公司 Map Reduce task streaming scheduling method and scheduling system based on Hadoop cloud computing platform
CN103744764A (en) * 2013-12-26 2014-04-23 浪潮电子信息产业股份有限公司 Crontab based whole computer memory stability test method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032114B1 (en) * 2000-08-30 2006-04-18 Symantec Corporation System and method for using signatures to detect computer intrusions
CN103019920A (en) * 2012-12-14 2013-04-03 浪潮电子信息产业股份有限公司 Complete machine non-power-off startup and shutdown method based on Linux system
CN103399787A (en) * 2013-08-06 2013-11-20 北京华胜天成科技股份有限公司 Map Reduce task streaming scheduling method and scheduling system based on Hadoop cloud computing platform
CN103744764A (en) * 2013-12-26 2014-04-23 浪潮电子信息产业股份有限公司 Crontab based whole computer memory stability test method

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407950A (en) * 2014-11-04 2015-03-11 浪潮电子信息产业股份有限公司 Novel power-off switching-on and switching-off test method based on program control variable-frequency power supply
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automated startup and shutdown testing method
CN104636242A (en) * 2015-02-06 2015-05-20 浪潮电子信息产业股份有限公司 Method for automatically deleting repeated content in system logs on basis of Linux operating system
CN104731655B (en) * 2015-04-07 2018-03-20 南京途牛科技有限公司 The sustainable operation method and system of script
CN104731655A (en) * 2015-04-07 2015-06-24 南京途牛科技有限公司 Script sustainable operation method and system
CN104932977A (en) * 2015-06-12 2015-09-23 浪潮电子信息产业股份有限公司 Automatic reboot test method of Solaris system
CN105068899A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Automatic reboot stability test method for Vmware system
CN105718340A (en) * 2016-01-13 2016-06-29 浪潮电子信息产业股份有限公司 Crontab based CPU stability testing method
CN106354600A (en) * 2016-08-29 2017-01-25 浪潮电子信息产业股份有限公司 Cold reboot testing realization method based on IPMI tools
CN106776189A (en) * 2017-01-11 2017-05-31 郑州云海信息技术有限公司 It is a kind of that method of testing is restarted based on platform of soaring automatically
CN107153611A (en) * 2017-05-09 2017-09-12 郑州云海信息技术有限公司 A kind of method of RHEL7&CentOS7 systems Reboot tests
CN107832178A (en) * 2017-11-20 2018-03-23 郑州云海信息技术有限公司 A kind of automated testing method of server stability
CN107894954A (en) * 2017-11-30 2018-04-10 郑州云海信息技术有限公司 A kind of automatic method for surveying BMC username and passwords
CN107918574A (en) * 2017-12-05 2018-04-17 郑州云海信息技术有限公司 A kind of method of inspection based on test hardware information under Redhat
CN108196982A (en) * 2017-12-29 2018-06-22 北京诺君安信息技术股份有限公司 A kind of LINUX system restarts the configuration method of service automatically
CN108196982B (en) * 2017-12-29 2021-12-07 北京诺君安信息技术股份有限公司 Configuration method for automatic restart service of LINUX system
CN108804265A (en) * 2018-05-16 2018-11-13 郑州云海信息技术有限公司 A kind of PowerCycle test methods and system based on server DC
CN109240850A (en) * 2018-08-21 2019-01-18 郑州云海信息技术有限公司 Server DC Reboot test method under a kind of linux system
CN115250249A (en) * 2022-09-02 2022-10-28 北京安盟信息技术股份有限公司 IPv6 Ready-based automatic testing method, device, medium and equipment
CN115250249B (en) * 2022-09-02 2023-02-03 北京安盟信息技术股份有限公司 IPv6 Ready-based automatic testing method, device, medium and equipment

Similar Documents

Publication Publication Date Title
CN103970660A (en) Total system stability automatic test method based on crontab
CN106598835B (en) Application testing method, device and system
CN103744764A (en) Crontab based whole computer memory stability test method
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN105446878A (en) Continuous program automated testing method
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN104375910A (en) Automated startup and shutdown testing method
CN106775877A (en) A kind of firmware method for refreshing and a kind of server
CN104268076A (en) Memory bandwidth automatically testing method applicable to various processor platforms
CN106201799A (en) A kind of service based on ipmi carries out, to server, the method for testing that DC is restarted
CN105718340A (en) Crontab based CPU stability testing method
CN105159719A (en) Starting method and device of master basic input/output system and slave basic input/output system
CN104391780A (en) Method for automatically testing stability of redundancy function of power supply of server
US20140033179A1 (en) Application testing
CN103984613A (en) Method for automatically testing floating point calculation performance of CPU (Central Processing Unit)
WO2021082110A1 (en) Power-down pressure testing method for flash memory storage device
CN104699615B (en) A kind for the treatment of method and apparatus of the system failure
CN104572225A (en) Novel method for testing online updating stability of BIOS
CN104125504A (en) Deployment method, device and system based on continuous integration
CN110764960B (en) Solid state disk firmware testing method
CN106909480A (en) A kind of embedded system cross debugging method and apparatus
CN104317685A (en) Starting method of calculator system
CN106649005A (en) Automatic pressure testing method of memory ras (Reliability, Availability and Serviceability) characteristics on the basis of shell
CN106603289B (en) LMT configuration file smooth upgrading method
CN113590401B (en) CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140806