CN104156239A - System cleaning method under Linux system of computer server - Google Patents

System cleaning method under Linux system of computer server Download PDF

Info

Publication number
CN104156239A
CN104156239A CN201410364525.3A CN201410364525A CN104156239A CN 104156239 A CN104156239 A CN 104156239A CN 201410364525 A CN201410364525 A CN 201410364525A CN 104156239 A CN104156239 A CN 104156239A
Authority
CN
China
Prior art keywords
cleaned
input
random character
server
random
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
CN201410364525.3A
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 CN201410364525.3A priority Critical patent/CN104156239A/en
Publication of CN104156239A publication Critical patent/CN104156239A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a system cleaning method under a Linux system of a computer server and belongs to system cleaning methods. The system cleaning method includes that the Linux operating system is mounted on the server to establish an environment required for software operating; a starting server enters the Linux operating system to operate an inspection and test program to inspect, and automatically runs a system scrip cleaning program after confirming by inspection; the system script cleaning program automatically generates two random characters and prompting statements to be displayed on a display; the random characters are input or users can opt out according to the prompting statements; the system script cleaning program acquires the input random characters and automatically compares the input random characters with the generated random characters; if the input random characters are confirmed after inspection, all hard drives are cleaned by a dd program; after the system is cleaned, the server automatically restarts to confirm whether the system is correctly cleaned or not. By the system cleaning method, reliability in system cleaning is improved, system cleaning time is reduced and efficiency is improved.

Description

A kind of cleaned system method under computer server linux system
 
Technical field
The present invention relates to a kind of cleaned system method, specifically a kind of cleaned system method under computer server linux system.
Background technology
In the server dispatching from the factory at great majority, all without operating system, dispatch from the factory, if not cleaning system is dispatched from the factory, test procedure and the test result of Hui Jiang factory on the one hand flow out user side, cause the leakage of technology and data, entrained operating system does not meet user's requirement on the other hand, can suffer user's the problems such as complaint.
Just in order, by warehouse-in after cleaned system, to have two schemes to realize in prior art:
1, restart and enter DOS cleaning.The method is after checker's test ending, and server is restarted, and enters under DOS system, and the program under DOS of carrying out is carried out cleaned system, and the method can clean out most operating system.The problem existing is: can not guarantee all systems all to clean out completely, and need to first restart cleaning, then the process of restart ack, lose time.
2, carry out PXE guiding Linux environment execution dd order cleaning is installed.The method is after checker's test ending, and server is restarted, and by checker, in restarting process, by PXE guiding button, enters guiding interface, selects the numbering of carrying out dd order to clear up, and the method can clean out all operating system.The problem existing is: 1) before cleaning and the guiding interface entering after cleaning is just the same, easily causes error in judgement, the server of the system of not clearing up is thought by mistake to the server of having cleared up; 2), after need to restarting, checker manually carries out PXE button pathfinder selection liquidation procedures, restarts afterwards checking again, has increased checker's operational motion, and has needed the process of restart ack, loses time.
Summary of the invention
Technical assignment of the present invention is to provide a kind of reliability that has increased cleaning system, has reduced the time of cleaning system, has promoted the cleaned system method under a kind of computer server linux system of efficiency.
Technical assignment of the present invention is realized in the following manner, and a kind of cleaned system method under computer server linux system, comprises the steps:
(1), (SuSE) Linux OS is installed on server, build the required environment of running software, download verification test program, cleaned system shell script;
(2), start server and enter (SuSE) Linux OS, operation test test procedure is tested, check errorless, operational system cleaning shell script automatically;
(3), cleaned system shell script automatically generates two random characters and be presented at display together with prompt statement;
(4), input random character or select to exit according to prompt statement;
(5) if input random character, cleaned system shell script obtains the random character of input, and random character automatic and that generate is compared; If select to exit according to prompt statement, cleaning shell script logs off;
(6) if after verifying that the random character of input is errorless, use dd program that all hard disks are all cleared up; If the random character mistake of checking input, points out input error, re-enter;
(7), the complete rear server autoboot of cleaned system, whether checking correctly clears up system.
In step (6), use dd program that all hard disks are all cleared up, finally clear up system disk.
In step (3), cleaned system shell script generates two random character methods automatically, comprises the steps:
(1), cleaned system shell script, create two random character arrays;
(2), from two random character arrays, randomly draw respectively a random character, be combined into two random characters;
(3), two random characters of combinations thereof are presented to checker's display, prompt statement will carry out cleaned system or prompting is selected to exit for prompting input character.
Cleaned system method under a kind of computer server linux system of the present invention has the following advantages:
1, the feature of taking into account system cleaning suggesting effect and cleaned system validity, adopt software programming technique, use shell language, coordinate (SuSE) Linux OS to use, before carrying out cleaned system, carry out random character generation, confirm rear cleaned system, the suggesting effect while increasing cleaned system with this and the correctness of cleaned system;
2, create two random character arrays, the variable existing in each random character array is a plurality of, unique, simple and easy input;
3, from two random character arrays, randomly draw respectively a random character, be combined into two random characters, each random character generating is constantly to change, and number is identical;
4, two random characters of prompting input will carry out cleaned system, and information has explicitly, the property read;
5, obtaining the random character of input, obtain the accuracy of random character, is to carry out cleaned system to guarantee below, or retention system, and accuracy is very high;
6, guaranteed cleaning system reliability, reduced checker operational motion, reduced the restarting process of cleaning system, improved quality and the efficiency of producing.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described.
Accompanying drawing 1 is the process flow diagram of a kind of cleaned system method under computer server linux system.
Embodiment
With reference to Figure of description and specific embodiment, the cleaned system method under a kind of computer server linux system of the present invention is described in detail below.
Embodiment 1:
Cleaned system method under a kind of computer server linux system of the present invention, comprises the steps:
(1), (SuSE) Linux OS is installed on server, build the required environment of running software, download verification test program, cleaned system shell script;
(2), start server and enter (SuSE) Linux OS, operation test test procedure is tested, check errorless, operational system cleaning shell script automatically;
(3), cleaned system shell script automatically generates two random characters and be presented at display together with prompt statement;
(4), input random character or select to exit according to prompt statement;
(5) if input random character, cleaned system shell script obtains the random character of input, and random character automatic and that generate is compared; If select to exit according to prompt statement, cleaning shell script logs off;
(6) if after verifying that the random character of input is errorless, use dd program that all hard disks are all cleared up; If the random character mistake of checking input, points out input error, re-enter;
(7), the complete rear server autoboot of cleaned system, whether checking correctly clears up system.
Embodiment 2:
Cleaned system method under a kind of computer server linux system of the present invention, comprises the steps:
(1), (SuSE) Linux OS is installed on server, build the required environment of running software, download verification test program, cleaned system shell script;
(2), start server and enter (SuSE) Linux OS, operation test test procedure is tested, check errorless, operational system cleaning shell script automatically;
(3), cleaned system shell script automatically generates two random characters and be presented at display together with prompt statement;
(4), input random character or select to exit according to prompt statement;
(5) if input random character, cleaned system shell script obtains the random character of input, and random character automatic and that generate is compared; If select to exit according to prompt statement, cleaning shell script logs off;
(6) if after verifying that the random character of input is errorless, use dd program that all hard disks are all cleared up; If the random character mistake of checking input, points out input error, re-enter;
(7), the complete rear server autoboot of cleaned system, whether checking correctly clears up system.
In step (6), use dd program that all hard disks are all cleared up, finally clear up system disk.
In step (3), cleaned system shell script generates two random character methods automatically, comprises the steps:
(1), cleaned system shell script, create two random character arrays;
(2), from two random character arrays, randomly draw respectively a random character, be combined into two random characters;
(3), two random characters of combinations thereof are presented to checker's display, prompt statement will carry out cleaned system or prompting is selected to exit for prompting input character.
Create two random character arrays, the variable existing in each random character array is a plurality of, unique, simple and easy input.
From two random character arrays, randomly draw respectively a random character, be combined into two random characters, each random character generating is constantly to change, and number is identical.
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to 2 kinds of above-mentioned embodiments.On the basis of disclosed embodiment, described those skilled in the art can the different technical characterictic of combination in any, thereby realizes different technical schemes.

Claims (3)

1. the cleaned system method under computer server linux system, is characterized in that comprising the steps:
(1), (SuSE) Linux OS is installed on server, build the required environment of running software, download verification test program, cleaned system shell script;
(2), start server and enter (SuSE) Linux OS, operation test test procedure is tested, check errorless, operational system cleaning shell script automatically;
(3), cleaned system shell script automatically generates two random characters and be presented at display together with prompt statement;
(4), input random character or select to exit according to prompt statement;
(5) if input random character, cleaned system shell script obtains the random character of input, and random character automatic and that generate is compared; If select to exit according to prompt statement, cleaning shell script logs off;
(6) if after verifying that the random character of input is errorless, use dd program that all hard disks are all cleared up; If the random character mistake of checking input, points out input error, re-enter;
(7), the complete rear server autoboot of cleaned system, whether checking correctly clears up system.
2. the cleaned system method under a kind of computer server linux system according to claim 1, is characterized in that in step (6), uses dd program that all hard disks are all cleared up, and finally clears up system disk.
3. the cleaned system method under a kind of computer server linux system according to claim 1, is characterized in that in step (3), and cleaned system shell script generates two random character methods automatically, comprises the steps:
(1), cleaned system shell script, create two random character arrays;
(2), from two random character arrays, randomly draw respectively a random character, be combined into two random characters;
(3), two random characters of combinations thereof are presented to checker's display, prompt statement will carry out cleaned system or prompting is selected to exit for prompting input character.
CN201410364525.3A 2014-07-29 2014-07-29 System cleaning method under Linux system of computer server Pending CN104156239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410364525.3A CN104156239A (en) 2014-07-29 2014-07-29 System cleaning method under Linux system of computer server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410364525.3A CN104156239A (en) 2014-07-29 2014-07-29 System cleaning method under Linux system of computer server

Publications (1)

Publication Number Publication Date
CN104156239A true CN104156239A (en) 2014-11-19

Family

ID=51881746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410364525.3A Pending CN104156239A (en) 2014-07-29 2014-07-29 System cleaning method under Linux system of computer server

Country Status (1)

Country Link
CN (1) CN104156239A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833493A (en) * 2010-03-24 2010-09-15 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of server based on linux system
CN102202044A (en) * 2011-02-25 2011-09-28 北京兴宇中科科技开发股份有限公司 Portable cloud storage method and device
CN102957701A (en) * 2012-11-05 2013-03-06 深圳市共进电子股份有限公司 Method and system for verifying telnet server brute force attack prevention
CN103279419A (en) * 2013-06-09 2013-09-04 浪潮电子信息产业股份有限公司 Automation version verifying method and system based on B/S structural system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833493A (en) * 2010-03-24 2010-09-15 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of server based on linux system
CN102202044A (en) * 2011-02-25 2011-09-28 北京兴宇中科科技开发股份有限公司 Portable cloud storage method and device
CN102957701A (en) * 2012-11-05 2013-03-06 深圳市共进电子股份有限公司 Method and system for verifying telnet server brute force attack prevention
CN103279419A (en) * 2013-06-09 2013-09-04 浪潮电子信息产业股份有限公司 Automation version verifying method and system based on B/S structural system

Similar Documents

Publication Publication Date Title
US9747191B1 (en) Tool to replicate actions across devices in real time for improved efficiency during manual application testing
US11436125B2 (en) Game test automation device and method
US8874953B2 (en) System and method of cloud testing and remote monitoring for integrated circuit components in system validation
CN103634199A (en) Notification message display method and notification message display device
KR20090118863A (en) Reducing power-on time by simulating operating system memory hot add
US20130138381A1 (en) Handheld electronic device testing method
CN103123605A (en) Android platform automation integration testing method and device
CN105491010A (en) Cross validation method and system for verification codes
CN112068852B (en) Method, system, equipment and medium for installing open-source software based on domestic server
CN111309586B (en) Command testing method and device and storage medium thereof
CN103744710A (en) Installation method and system of operating systems
US20140033179A1 (en) Application testing
CN107967207B (en) Method and device for testing user interface interaction function
CN106789409A (en) The detection method and device of a kind of server slot
CN104731617A (en) Server starting device determining method
CN110659171A (en) Test method, electronic device and computer readable storage medium
CN110377468A (en) A kind of test method and relevant apparatus of CPU activation core number setting
CN104809057A (en) Application test system, application test method and storage medium
CN105453033A (en) Program testing service
CN111899731A (en) Method, device and equipment for testing stability of voice function and computer storage medium
CN109240928A (en) Test method, device, equipment and storage medium
CN104156239A (en) System cleaning method under Linux system of computer server
CN105684454A (en) Serving content via an embedded content player with a looping function
JP2017129970A (en) Management apparatus, management method, and management program
CN102023916B (en) Computer system detection method

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

Application publication date: 20141119

WD01 Invention patent application deemed withdrawn after publication