CN106815132A - A kind of cluster server formation gathering method - Google Patents

A kind of cluster server formation gathering method Download PDF

Info

Publication number
CN106815132A
CN106815132A CN201710024824.6A CN201710024824A CN106815132A CN 106815132 A CN106815132 A CN 106815132A CN 201710024824 A CN201710024824 A CN 201710024824A CN 106815132 A CN106815132 A CN 106815132A
Authority
CN
China
Prior art keywords
node
cluster server
information
script
parameter information
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
CN201710024824.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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710024824.6A priority Critical patent/CN106815132A/en
Publication of CN106815132A publication Critical patent/CN106815132A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms

Abstract

The present invention discloses a kind of cluster server formation gathering method, is related to cluster server management domain;Choose some node of cluster server, the parameter information of each node is stored in configuration documentation, copy information collect script to selection node under, execution information collects the parameter information that script extracts each node in configuration documentation, and call expect instruments to realize automatically entering for the parameter information of each node, execution information is collected script and copies the log information of all nodes under the node of selection and named according to sequence number.

Description

A kind of cluster server formation gathering method
Technical field
The present invention discloses a kind of formation gathering method, is related to cluster server management domain, specifically a kind of cluster Server info collection method.
Background technology
The various information of computer are preserved in the server, and the management and maintenance of server are most important.Server is in management With the various files that acquisition server is needed when safeguarding, such as the log information of system carrys out the situation of Analysis server, for small Type cluster, this is not also very time-consuming laborious, but for larger cluster, the node of server is a lot, if using usual method The information of node one by one is copied by USB flash disk or scp orders, needs to take considerable time energy, much repeated Work.The present invention provides a kind of cluster server formation gathering method, and the method passes through expect instruments and shell scripts together Realize being input into ip addresses during scp telecopies, the operation of username and password completes copy by performing the script afterwards Operation, need not be manually entered other system commands and carry out other operations in implementation procedure.The inventive method is easy to use, behaviour Make simple, can also be completed without grasping professional knowledge, save manpower and time, improve operating efficiency.
Expect for Windows are powerful expect instruments under a windows platform, for system pipes Reason and automatic test.Expect uses Tcl as language core.Tcl is actually a subroutine library, these subroutine librarys Can be embedded into so as to provide language service moreover in program, no matter program is interaction and or noninteractive, Expect Can use.
The content of the invention
Demand and weak point of the present invention for the development of current technology, there is provided a kind of cluster server information side Method, a node need to be only chosen using the method, and the script is copied on the node, will be all by then performing the script The log information of node is copied under the node and named according to sequence number.
A kind of cluster server formation gathering method:
Some node of cluster server is chosen, the parameter information of each node is stored in configuration documentation, copy letter Breath collect script to choose node under, execution information collect script extraction configuration documentation in each node parameter information, and Expect instruments are called to realize automatically entering for the parameter information of each node, execution information collects script by the file of all nodes Information copy to choose node under and according to sequence number name.
Described information is collected script and uses shell Scripting Editions.
The scp orders during described information collects script are performed, the fileinfo of all nodes is copied using remote operation Named under to the node chosen and according to sequence number.
The parameter information of each node includes ip addresses, username and password, filename to be copied.
A kind of cluster server formation gathering method concrete operation step is:
S1 chooses some node of cluster server,
S2 edits configuration documentation, and the parameter information of each node is stored in configuration documentation;
S3 copy informations collect script to selection node under,
S4 information scripts are performed automatically, obtain configuration documentation information, and call expect instruments to automatically enter each section The parameter information of point,
S5 execution informations are collected script and copy the fileinfo of all nodes under the node of selection and ordered according to sequence number Name.
Write as following form in the parameter information of the configuration documentation interior joint:IP username password.
Execution information is input into order in such a way when collecting script:./copy.sh configuration documentation path node target File path/local storing path.
The present invention has an advantageous effect in that compared with prior art:
Some node of cluster server is chosen using the inventive method, the parameter information of each node is stored in configuration In document, under copy information collection script to the node chosen, execution information collects each node that script is extracted in configuration documentation Parameter information, and call expect instruments to realize automatically entering for the parameter information of each node, execution information collects script will The fileinfo of all nodes is copied under the node of selection and named according to sequence number;This method further borrows shell scripts File copy operation with expect instruments realize cluster server, can be applied to the cluster server product of all Linux systems Product, facilitate the maintenance management of cluster server, enormously simplify operating process, especially for the personnel without correlation experience, Task can be easily accomplished using the method, during used in the management service of cluster server, time-consuming raising efficiency.
Brief description of the drawings
The schematic flow sheet of Fig. 1 the inventive method.
Specific embodiment
The present invention provides a kind of cluster server formation gathering method:Some node of cluster server is chosen, will be each The parameter information of node is stored in configuration documentation, and under copy information collection script to the node chosen, execution information collects pin The parameter information of each node in this extraction configuration documentation, and call expect instruments to realize the automatic of the parameter information of each node Input, execution information is collected script and copies the fileinfo of all nodes under the node of selection and named according to sequence number.
To make the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with specific embodiment, to this hair Bright further description.
By taking a certain cluster server as an example, node of wherein one server as copied files information is chosen, by each section The parameter informations such as node i p addresses, username and password, the filename to be copied of point are stored in configuration documentation;
Copy shell scripts perform the parameter of each node in shell scripts extraction configuration documentation under the node chosen Information, and call expect instruments to realize that the ip addresses of each node, username and password automatically enter, perform shell scripts The fileinfo of all nodes is copied under the node of selection and named according to sequence number by middle scp orders, remote operation.
Concrete operation step is:
S1 chooses some node of cluster server,
S2 edits configuration documentation configure.list, by the ip addresses of each node, username and password, text to be copied The parameter informations such as part name are stored in configuration documentation;Wherein parameter information is write as following form:IP username Password, centre is separated with space or tab key, and the information of multiple host needs to write multiple line content, such as:
192.168.0.10root 12345678
192.168.0.20user passw0rd
S3 copy shell scripts to selection node under,
S4shell scripts are performed automatically, obtain configuration documentation information, and call expect instruments to automatically enter each node Parameter information,
Order is input into during execution in such a way:./copy.sh/ configuration documentation path/node destination file path/sheet Ground storing path, for example:./copy.sh./configure.list/var/log/messages/tmp
S5 performs shell scripts and copies the fileinfo of all nodes under the node of selection and named according to sequence number.
The Script section code of said process is as follows:
Perform script:
Expect scripts, for perform user name, password automatically enter it is as follows:
Realize that the file copy of cluster server is operated using shell scripts and expect instruments using this method, can answer For the cluster server product of all Linux systems, facilitate the maintenance management of cluster server, enormously simplify operation stream Journey, especially for the personnel without correlation experience, task can be easily accomplished using the method, used in the pipe of cluster server When reason is safeguarded, time-consuming raising efficiency.

Claims (7)

1. a kind of cluster server formation gathering method, it is characterised in that
Some node of cluster server is chosen, the parameter information of each node is stored in configuration documentation, copy information is received To under the node chosen, execution information collects the parameter information of each node in script extraction configuration documentation to collection script, and calls Expect instruments realize automatically entering for the parameter information of each node, and execution information collects script by the fileinfo of all nodes Copy under the node of selection and named according to sequence number.
2. a kind of cluster server formation gathering method according to claim 1, it is characterised in that information script is used Shell Scripting Editions.
3. a kind of cluster server formation gathering method according to claim 2, it is characterised in that execution information collects script In scp orders, the fileinfo of all nodes is copied to using remote operation under the node of selection and is named according to sequence number.
4. a kind of cluster server formation gathering method according to claim any one of 1-3, it is characterised in that each node Parameter information includes ip addresses, username and password, filename to be copied.
5. a kind of cluster server formation gathering method according to claim 4, it is characterised in that concrete operation step is:
S1 chooses some node of cluster server,
S2 edits configuration documentation, and the parameter information of each node is stored in configuration documentation;
S3 copy informations collect script to selection node under,
S4 information scripts are performed automatically, obtain configuration documentation information, and call expect instruments to automatically enter each node Parameter information,
S5 execution informations are collected script and copy the fileinfo of all nodes under the node of selection and named according to sequence number.
6. a kind of cluster server formation gathering method according to claim 4, it is characterised in that in configuration documentation interior joint Parameter information write as following form:IP username password.
7. a kind of cluster server formation gathering method according to claim 4, it is characterised in that execution information collects script When be input into order in such a way:./copy.sh configuration documentation path node file destination path/local storing path.
CN201710024824.6A 2017-01-13 2017-01-13 A kind of cluster server formation gathering method Pending CN106815132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710024824.6A CN106815132A (en) 2017-01-13 2017-01-13 A kind of cluster server formation gathering method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710024824.6A CN106815132A (en) 2017-01-13 2017-01-13 A kind of cluster server formation gathering method

Publications (1)

Publication Number Publication Date
CN106815132A true CN106815132A (en) 2017-06-09

Family

ID=59110831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710024824.6A Pending CN106815132A (en) 2017-01-13 2017-01-13 A kind of cluster server formation gathering method

Country Status (1)

Country Link
CN (1) CN106815132A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6335927B1 (en) * 1996-11-18 2002-01-01 Mci Communications Corporation System and method for providing requested quality of service in a hybrid network
CN1848787A (en) * 2006-04-30 2006-10-18 西安交通大学 Automatic fast dispositioning method for aggregated server system node
CN105487943A (en) * 2015-12-09 2016-04-13 浪潮电子信息产业股份有限公司 Method for automatically copying files to each node of cluster server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6335927B1 (en) * 1996-11-18 2002-01-01 Mci Communications Corporation System and method for providing requested quality of service in a hybrid network
CN1848787A (en) * 2006-04-30 2006-10-18 西安交通大学 Automatic fast dispositioning method for aggregated server system node
CN105487943A (en) * 2015-12-09 2016-04-13 浪潮电子信息产业股份有限公司 Method for automatically copying files to each node of cluster server

Similar Documents

Publication Publication Date Title
Dias Neto et al. A survey on model-based testing approaches: a systematic review
WO2018010552A1 (en) Test method and device
US9003362B2 (en) Systems and methods for processing software application metadata associated with a software application
CN110222715B (en) Sample homologous analysis method based on dynamic behavior chain and dynamic characteristics
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN104598380A (en) Method and system for automatic testing based on control
US9116779B2 (en) Test management domain asset discovery and analysis
CN106682036A (en) Data exchange system and exchange method thereof
CN102053912A (en) Device and method for automatically testing software based on UML (unified modeling language) graphs
US20180268081A1 (en) Data extraction
CN104391796B (en) A kind of test case analytic method
CN104572085A (en) Method and device for analyzing application program
CN110515679A (en) Collecting method, device, equipment and storage medium
CN104360837A (en) Method for realizing evidence collection and analysis of electronic data in evidence collection software based on custom scripts
CN110135595A (en) The method and system of the equipment information operation of task based access control template
CN107169362B (en) Method based on automatic identification driving parameter auxiliary kernel bug excavation
CN106611063A (en) Method and device for correlating approval information of construction project
US8719766B1 (en) System and method for identifying and adding files to a project manifest
CN106815132A (en) A kind of cluster server formation gathering method
CN112068981A (en) Knowledge base-based fault scanning recovery method and system in Linux operating system
CN111813648A (en) Automatic testing method and device applied to App, storage medium and electronic equipment
CN114510725B (en) Vulnerability information processing method based on digital service and server
CN101577839B (en) Method and system for processing links between network elements of intelligent network platform
Liew et al. Performance database: capturing data for optimizing distributed streaming workflows
CN112699011A (en) Method and device for counting incremental code coverage rate, electronic equipment and storage medium

Legal Events

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

Application publication date: 20170609