CN106354599A - Automatic restart testing method for Solaris11 series servers - Google Patents
Automatic restart testing method for Solaris11 series servers Download PDFInfo
- Publication number
- CN106354599A CN106354599A CN201610722714.2A CN201610722714A CN106354599A CN 106354599 A CN106354599 A CN 106354599A CN 201610722714 A CN201610722714 A CN 201610722714A CN 106354599 A CN106354599 A CN 106354599A
- Authority
- CN
- China
- Prior art keywords
- reboot
- echo
- s99reboot
- file
- script
- 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 15
- 238000010998 test method Methods 0.000 claims description 5
- 230000007613 environmental effect Effects 0.000 claims description 3
- 238000000034 method Methods 0.000 claims description 3
- 238000012956 testing procedure Methods 0.000 claims description 3
- 238000012430 stability testing Methods 0.000 abstract 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
- 239000002699 waste material Substances 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
- G06F11/2635—Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files
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 an automatic restart testing method for Solaris11 series servers, which belongs to the field of system stability testing and comprises the following testing steps: logging in the system through a super user; copying a script Solaris _ rebot.sh into a test machine; executing a script file Solaris _ reboot.sh; txt command can be used to check the number of restarts when the system is restarted. The invention automatically carries out the restart test of the server, thereby saving the labor.
Description
Technical field
The present invention relates to system stability measuring technology, more particularly, to a kind of server for solaris11 series is certainly
Move and restart method of testing.
Background technology
Tide, as largest domestic server provider, has opened up the application of every field server, such as the Internet,
Finance ... etc.;Client's also more and more higher of the requirement to server stability.In system stability test, it usually needs to machine
Carry out 500 times restart test, waste time and energy, not only inefficiency, and test quality be not high.
Content of the invention
In order to solve above technical problem, the present invention proposes a kind of server for solaris11 series and automatically weighs
Open method of testing.Automatically restarting of system under solaris11 is realized by script, improves the work efficiency of tester, carry
The quality of high server product.
The technical scheme is that
A kind of server for solaris11 series restarts method of testing automatically,
Its testing procedure:
1). system is logged into by power user
2). script solaris_reboot.sh is copied in tester table
3). perform script file solaris_reboot.sh
4). can be checked using wc l times.txt order during system reboot and restart number of times
Concrete content for script is as follows:
#!/bin/sh
echo "rebooting,this may be take about five minutes,please wait
patiently!"
Cd/etc/rc2.d/ enters the catalogue of start self-starting
Touch s99reboot.sh creates s99reboot.sh file
echo "#!/usr/sbin/sh" >> s99reboot.sh
echo "path=/bin:/usr/bin/:/usr/sbin/:sbin;export path" >> s99reboot.sh
Add environmental variable
Echo " sh/root/reboot & " > > reboot.sh will order write s99reboot file
Chmod 777 s99reboot.sh adds operation authority
cd /root/
Touch reboot enters under root file
echo "#!/ bin/bash " > > reboot establishment reboot file
echo "echo reboot >> /root/times" >>reboot
echo "sleep 45" >>reboot
Echo " reboot-p " > > reboot will order write reboot file
Chmod 777 reboot adds operation authority
./reboot execute reboot script, start to test
Need machine is carried out 500 times restart test.
The invention has the beneficial effects as follows
Test is restarted automatically to the server being mounted with solaris11, is improve the stability of product, reduce manpower and throw
Enter, Improving The Quality of Products.
Specific embodiment
Below present disclosure is carried out with more detailed elaboration:
Testing procedure and method:
1. system is logged into by power user
2. script solaris_reboot.sh is copied in tester table
3. perform script file solaris_reboot.sh
4. can be checked using wc l times.txt order during system reboot and restart number of times
Concrete content for script is as follows:
#!/bin/sh
echo "rebooting,this may be take about five minutes,please wait
patiently!"
Cd/etc/rc2.d/ enters the catalogue of start self-starting
Touch s99reboot.sh creates s99reboot.sh file
echo "#!/usr/sbin/sh" >> s99reboot.sh
echo "path=/bin:/usr/bin/:/usr/sbin/:sbin;export path" >> s99reboot.sh
Add environmental variable
Echo " sh/root/reboot & " > > reboot.sh will order write s99reboot file
Chmod 777 s99reboot.sh adds operation authority
cd /root/
Touch reboot enters under root file
echo "#!/ bin/bash " > > reboot establishment reboot file
echo "echo reboot >> /root/times" >>reboot
echo "sleep 45" >>reboot
Echo " reboot-p " > > reboot will order write reboot file
Chmod 777 reboot adds operation authority
./reboot execute reboot script, start to test
This method simply and easily can be restarted test to the server being mounted with solaris11 serial system automatically, has
Improve work efficiency to effect, save human cost.
Claims (3)
1. a kind of for solaris11 series server automatically restart method of testing it is characterised in that
Testing procedure is:
1) system is logged into by power user;
2) script solaris_reboot.sh is copied in tester table;
3) perform script file solaris_reboot.sh;
4) can be checked using wc l times.txt order during system reboot and restart number of times.
2. method according to claim 1 it is characterised in that
Concrete content for script is as follows:
#!/bin/sh
echo "rebooting,this may be take about five minutes,please wait
patiently!"
Cd/etc/rc2.d/ enters the catalogue of start self-starting
Touch s99reboot.sh creates s99reboot.sh file
echo "#!/usr/sbin/sh" >> s99reboot.sh
echo "path=/bin:/usr/bin/:/usr/sbin/:sbin;export path" >> s99reboot.sh
Add environmental variable
Echo " sh/root/reboot & " > > reboot.sh will order write s99reboot file
Chmod 777 s99reboot.sh adds operation authority
cd /root/
Touch reboot enters under root file
echo "#!/ bin/bash " > > reboot establishment reboot file
echo "echo reboot >> /root/times" >>reboot
echo "sleep 45" >>reboot
Echo " reboot-p " > > reboot will order write reboot file
Chmod 777 reboot adds operation authority
./reboot execute reboot script, start to test.
3. method according to claim 2 it is characterised in that
Machine is carried out 500 times restart test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610722714.2A CN106354599A (en) | 2016-08-25 | 2016-08-25 | Automatic restart testing method for Solaris11 series servers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610722714.2A CN106354599A (en) | 2016-08-25 | 2016-08-25 | Automatic restart testing method for Solaris11 series servers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106354599A true CN106354599A (en) | 2017-01-25 |
Family
ID=57856074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610722714.2A Pending CN106354599A (en) | 2016-08-25 | 2016-08-25 | Automatic restart testing method for Solaris11 series servers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354599A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704355A (en) * | 2017-10-27 | 2018-02-16 | 郑州云海信息技术有限公司 | A kind of method that reboot tests are carried out under Solaris11 systems |
CN107766072A (en) * | 2017-11-28 | 2018-03-06 | 郑州云海信息技术有限公司 | Video card refreshes BIOS method under a kind of linux system |
CN109243518A (en) * | 2018-09-26 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of test method for solid state hard disk, device and computer storage medium |
CN109669825A (en) * | 2018-12-03 | 2019-04-23 | 郑州云海信息技术有限公司 | A kind of Linux server of self adapting operating system is restarted automatically test method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6681389B1 (en) * | 2000-02-28 | 2004-01-20 | Lucent Technologies Inc. | Method for providing scaleable restart and backout of software upgrades for clustered computing |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN104932977A (en) * | 2015-06-12 | 2015-09-23 | 浪潮电子信息产业股份有限公司 | Automatic restart testing method for Solaris system |
-
2016
- 2016-08-25 CN CN201610722714.2A patent/CN106354599A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6681389B1 (en) * | 2000-02-28 | 2004-01-20 | Lucent Technologies Inc. | Method for providing scaleable restart and backout of software upgrades for clustered computing |
CN103744764A (en) * | 2013-12-26 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Crontab based whole computer memory stability test method |
CN104932977A (en) * | 2015-06-12 | 2015-09-23 | 浪潮电子信息产业股份有限公司 | Automatic restart testing method for Solaris system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704355A (en) * | 2017-10-27 | 2018-02-16 | 郑州云海信息技术有限公司 | A kind of method that reboot tests are carried out under Solaris11 systems |
CN107766072A (en) * | 2017-11-28 | 2018-03-06 | 郑州云海信息技术有限公司 | Video card refreshes BIOS method under a kind of linux system |
CN109243518A (en) * | 2018-09-26 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of test method for solid state hard disk, device and computer storage medium |
CN109669825A (en) * | 2018-12-03 | 2019-04-23 | 郑州云海信息技术有限公司 | A kind of Linux server of self adapting operating system is restarted automatically test method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106354599A (en) | Automatic restart testing method for Solaris11 series servers | |
CN104317714A (en) | Method for automatically testing stability of rack based on expect | |
CN108959080B (en) | Automatic testing method based on UnitTest parallel execution | |
CN104932977A (en) | Automatic restart testing method for Solaris system | |
CN105843707B (en) | Database quick recovery method and equipment | |
CN104267944A (en) | Spring-based MVC (model view controller) mode optimization system | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN103970660A (en) | Total system stability automatic test method based on crontab | |
CN1760833A (en) | Method for testing synchronous automatic installation for system including multiple complete computers | |
CN103559126A (en) | Method, device and computer terminal for testing software versions | |
CN103793242A (en) | Quick information system deploying method on basis of virtual computing environment | |
CN104391780A (en) | Method for automatically checking stability of power supply redundancy function of server | |
CN105302681A (en) | Automatic test method for disk performance of rack whole cabinet | |
CN104516985A (en) | Rapid mass data importing method based on HBase database | |
CN105302680A (en) | Automatic testing method for AC stability of RACK cabinet | |
Gao et al. | A theoretical study: The impact of cloning failed test cases on the effectiveness of fault localization | |
CN106603343A (en) | A method for testing stability of servers in batch | |
CN103412776A (en) | Method for debugging blade server in parallel | |
CN204407010U (en) | Off line programming system | |
CN105426304B (en) | A kind of control method and device for restarting test | |
CN106325817A (en) | Embedded system automatic update method | |
CN105550086A (en) | Startup and shutdown testing method based on voltage and frequency changes | |
CN104915291A (en) | Terminal restart verification method and system | |
CN204423010U (en) | A kind of simple equivalent load replacement circuit being beneficial to household electrical appliances software debugging | |
侯春燕 et al. | Rate-based component software reliability process simulation |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170125 |