CN105589773A - Method and device for collecting configuration information in computer system - Google Patents

Method and device for collecting configuration information in computer system Download PDF

Info

Publication number
CN105589773A
CN105589773A CN201510862082.5A CN201510862082A CN105589773A CN 105589773 A CN105589773 A CN 105589773A CN 201510862082 A CN201510862082 A CN 201510862082A CN 105589773 A CN105589773 A CN 105589773A
Authority
CN
China
Prior art keywords
configuration information
client host
main control
control server
client
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.)
Granted
Application number
CN201510862082.5A
Other languages
Chinese (zh)
Other versions
CN105589773B (en
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201510862082.5A priority Critical patent/CN105589773B/en
Publication of CN105589773A publication Critical patent/CN105589773A/en
Application granted granted Critical
Publication of CN105589773B publication Critical patent/CN105589773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

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)
  • Information Transfer Between Computers (AREA)

Abstract

This invention relates to a data processing technology, and specifically relates to a method and a device for collecting configuration information in a computer system and a computer system containing the device. The method for collecting configuration information in the computer system comprises the following steps: a confidential relationship is built between a master server and each client host computer; and the master server starts a plurality of concurrently executed local progresses for collecting the configuration information. Each local progress executes the following steps by means of being independent of other local progresses: logging each client host computer by using the confidential relationship; remotely running the configuration information collecting program on each client host computer; and once finishing collecting the configuration information, immediately indicating the client host computer to return the configuration information.

Description

For collect the method and apparatus of configuration information in computer system
Technical field
The present invention relates to data processing technique, be used in department of computer science in particular to oneThe computer system of collecting the method and apparatus of configuration information in system and comprising said apparatus.
Background technology
Computer system often comprises many main frames that connect by network. Along with the expansion of system scaleExhibition, its complexity also increases thereupon. For each main frame in management system better, needCollect in time their configuration information.
Following manner is generally passed through in obtaining of existing host configuration information: directly on main frame, inputOrder, or use the program of moving in main frame to obtain. But for the huge main frame of quantity,Because needs are logined separately, therefore spended time is longer, and integrality that cannot guarantee information.In addition, current configuration information is collected and is all completed by craft, in the time that host number is huge,Easily occur that artificial error causes the situation of information disunity or mistakes and omissions. Meanwhile, main at eachOn machine, all deployment configuration information collection procedure will increase the cost of later maintenance. Moreover, configuration letterBreath is usually dispersed in each main frame document, forms information island, system manager cannot be intuitively,The influence degree of analysis of failure host part rapidly, also cannot understand system in time, exactlyThe variation characteristic of parameter.
Summary of the invention
The invention provides a kind of for collect method and the dress of configuration information in computer systemPut, it has implements convenient, fast and collection information accuracy advantages of higher.
According to an aspect of the present invention, provide a kind of for collecting and join in computer systemPut the method for information, described computer system comprise multiple client hosts and can with described visitorThe main control server of family end main-machine communication, described method comprises the following steps:
Relation breaks the wall of mistrust between described main control server and each described client host;
Described main control server start multiple concurrent execution for collecting described configuration informationLocal process, each described local process is carried out following to be independent of the mode of other local processStep:
Utilize the each described client host of described trusting relationship login;
Long-range operation configuration information collection procedure on each described client host; And
Once complete the collection of described configuration information, indicate immediately described client hostReturn to described configuration information.
Preferably, in said method, further comprise the following steps: described main control serverDescribed configuration information is stored in to configuration information database and shows in server.
Preferably, in said method, further comprise the following steps: that logic-based relation is fixedJustice is organized described configuration information, to represent the incidence relation of parts of described client host.
Preferably, in said method, described client host completes described configuration informationAfter uploading, delete described configuration information.
Preferably, in said method, the foundation of described trusting relationship is based on Secure Shell(SSH) agreement. Better, described main control server is with without password mode or dynamic passwordMode is logined each described client host.
Preferably, in said method, described trusting relationship configuration information is with the shape of configuration fileFormula presents.
According to another aspect of the present invention, provide a kind of for collecting in computer systemThe device of configuration information, described computer system comprises multiple client hosts and can be with describedThe main control server of client host communication, it comprises:
Trusting relationship administration module, it is configured to break the wall of mistrust with each described client hostRelation;
Configuration information collection module, its be configured to start multiple concurrent execution for described in collectingThe local process of configuration information is to carry out the following step:
Utilize the each described client host of described trusting relationship login;
Long-range operation configuration information collection procedure on each described client host;
Once complete the collection of described configuration information, indicate immediately described client hostReturn to described configuration information.
The present invention also provides a kind of computer system, and it can be collected convenient, fast and exactlyConfiguration information wherein.
According to another aspect of the present invention, provide a kind of computer system, it comprises:
Multiple client hosts;
Main control server, comprising:
Trusting relationship administration module, it is configured to break the wall of mistrust with each described client hostRelation;
Configuration information collection module, its be configured to start multiple concurrent execution for described in collectingThe local process of configuration information, each described local process is to be independent of the side of other local processFormula is carried out the following step:
Utilize the each described client host of described trusting relationship login;
Long-range operation configuration information collection procedure on each described client host;
Once complete the collection of described configuration information, indicate immediately described client hostUpload described configuration information to described main control server.
Brief description of the drawings
Above-mentioned and/or other side of the present invention and advantage are by by below in conjunction with each of accompanying drawingThe description of aspect becomes more clear and is easier to understand, and in accompanying drawing, same or analogous unit is adoptedRepresent with identical label, accompanying drawing comprises:
Fig. 1 is according to the Organization Chart of the computer system of one embodiment of the invention.
Fig. 2 is the flow graph of configuration information in computer system shown in Fig. 1.
Fig. 3 be according to another embodiment of the present invention for computer system collect joinPut the block diagram of the device of information.
Fig. 4 be according to another embodiment of the present invention for computer system collect joinPut the flow chart of the method for information.
Fig. 5 shows in Fig. 4 the flow chart of the local process for collecting configuration information.
Detailed description of the invention
Say more all sidedly below with reference to the accompanying drawing that wherein illustrates illustrative examples of the present inventionBright the present invention. But the present invention can realize by multi-form, only limit to this and should not be read asEach embodiment that literary composition provides. The various embodiments described above that provide are intended to make disclosure herein comprehensively completeWhole, so that protection scope of the present invention is conveyed to those skilled in the art more all sidedly.
Term such as " comprising " and " comprising " represents except having in description and powerBeyond the unit and step having directly in profit claim and clearly explain, technical scheme of the present inventionDo not get rid of and there is other unit of directly or clearly not explained and the situation of step yet.
According to one aspect of the present invention, comprise multiple client hosts and master control service at oneIn the computer system of device, by set up letter between main control server and each client hostThe relation of appointing, make main control server can logging on client automatically main frame to collect client hostConfiguration information. Preferably, the foundation of this trusting relationship is assisted based on Secure Shell (SSH)View. SSH agreement uses public-key with private key to carrying out authentication and carrying out data encryption. EnteringWhen the encryption and decryption of row data, be to adopt different keys, (each communication party all needs keyPKI and private key), these two keys encryption and decryption each other, wherein PKI is disclosed, andPrivate key is covert, only by the side's of having keeping. Complete the certification of public-key cryptography at SSHCheng Hou, just can confirm registrant's identity, utilizes key to data in subsequent session simultaneouslyCarry out encryption and decryption operation. In the time of client host enormous amount, for accelerating login speed, private keyBe set to without password, can realize without password and trust login through configuration. In addition, for safetyThe scene of having relatively high expectations, also can adopt the mode of dynamic cipher verification to make main control server loginClient host, thus realize the automatic collection of configuration information.
According to another aspect of the present invention, when after main control server login client host, it alsoSend out ground long-range operation configuration information collection procedure on each client host, once and completeThe collection of configuration information, main control server indicates client host to return to immediately configuration information.Because the collection of configuration information is initiated from main control server, therefore can control easilyInitiation time and the scope of task. Meanwhile, owing to implementing and controlling at main control server place, soComplete after configuration information collection at client host, main control server can be assigned in the very first timeConfiguration information transmission command, the configuration information of collection is aggregated into master control clothes by instruction client hostBusiness device. Preferably, collect the form of configuration information employing configuration file. In the prior art,Normally after capture program operation cycle regular hour, by main control server end to clientEnd main frame assign configuration information transmission command, this likely cause the imperfect of configuration information orIdle (invalid wait) overlong time. The configuration information of above-mentioned Event triggered type of the present invention convergesTotal mode can overcome the above-mentioned shortcoming of prior art, have stronger flexible row, autgmentability andAdaptability, while particularly needing the configuration information of the client host that gathers huge quantity.
Describe and realize embodiments of the invention by accompanying drawing below.
Fig. 1 is according to the Organization Chart of the computer system of one embodiment of the invention. Shown in Fig. 1Computer system 100 comprise multiple client host 111-11N and main control server 120.Preferably, computer system 100 also comprises configuration information database and shows server 130.
Each of client host 111-11N can be communicated by letter with main control server 120. At thisIn embodiment, between each of main control server 120 and client host 111-11N, buildVertical trusting relationship as above, thus can logging on client automatically main frame. Configuration information is receivedSet task regularly or is aperiodically initiated by main control server 120. Particularly, main control server120 according to the IP address of client host 111-11N, start multiple concurrent execution forCollect the local process of configuration information. The concurrent execution of multiple local processes will be saved program greatlyRunning time, and reduce the impact on system.
For each local process, main control server to be to be independent of the mode of other local process,Utilize trusting relationship to login each client host, subsequently long-range fortune on each client hostRow configuration information collection procedure, and as mentioned above, for each client host, once completeBecome the collection of configuration information, this local process indicates corresponding client host to return to literary composition immediatelyThe configuration information of part form. Preferably, client host after completing the uploading of configuration information,To automatically delete configuration information.
Main control server 120 is stored in the configuration information that is received from client host 111-11NIn configuration information database and displaying server 130. In the present embodiment, configuration information dataOrganization configurations information is carried out with showing server 130 logic-based contextual definitions in storehouse, to represent clientThe incidence relation of the parts of end main frame. Preferably, can utilize Python to collectConfiguration information is saved in configuration information database and shows in server, and passes through WEBJSPMode represents.
Fig. 2 is the flow graph of configuration information in computer system shown in Fig. 1. Shown in Fig. 2The present embodiment in, adopt the form of star data flow. Particularly, only by main control server120 are appointed as the active initiator in communication, and it is to client host transmission order with from clientEnd main frame obtains data, and the only order of passive execution main control server of client host. Above-mentionedForm has reduced the maintenance cost of client host, makes data simply controlled, and has strengthenedTo the control of individual node. As shown in Figure 2, configuration information data are protected from main control server 120Deposit configuration information database and show in server 130, organized according to logical relation by the latterConfiguration information, to show easily the variation relation of various vertical and horizontal of client host.
Fig. 3 be according to another embodiment of the present invention for computer system collect joinPut the block diagram of the device of information. The device of the present embodiment can be used as shown in Fig. 1 in computer systemThe concrete form of implementation of one of main control server 120.
The device 300 for collect configuration information in computer system shown in Fig. 3 comprises letterAppoint relation management module 310 and configuration information collection module 320.
Trusting relationship administration module 310 is configured to mode and each visitor as described aboveThe family end main frame relation that breaks the wall of mistrust. Configuration information collection module 320 is configured to start also multipleSend out carry out for collecting the local process of configuration information. As mentioned above, enter for each this localityJourney, it carries out the each client host of login to be independent of the mode of other local process, oftenOn individual client host, long-range operation configuration information collection procedure and instruction client host returnThe steps such as configuration information.
Fig. 4 be according to another embodiment of the present invention for computer system collect joinPut the flow chart of the method for information. Exemplarily, the method for the present embodiment is shown in Fig. 1 and 3Embodiment in realize.
As shown in Figure 4, according to the present embodiment for collecting configuration information in computer systemMethod start from step S410. In this step, main control server 120 or trusting relationshipAdministration module 310 as described above each of mode and client host 111-11N is builtVertical trusting relationship. Preferably, the foundation of this trusting relationship is assisted based on Secure Shell (SSH)View.
Then enter step S420, main control server 120 or configuration information collection module 320Regularly or aperiodically start multiple concurrent execution for collecting this locality of described configuration informationProcess. Exemplarily, suppose N local process here, each corresponding to a clientMain frame, for collecting the configuration information of corresponding client host.
Enter subsequently step S430, multiple local processes are moved concurrently, that is, and and Mei GebenGround process is moved in the mode that is independent of other local process.
Fig. 5 shows in Fig. 4 the flow chart of the local process for collecting configuration information. ForThe each local process starting in step S420, it is the handling process shown in execution graph 5 all.
As shown in Figure 5, at step S510, main control server 120 or configuration information are collected mouldPiece 320 utilizes corresponding in trusting relationship login client host 111-11N. With laggardEnter step S520, main control server 120 or configuration information collection module 320 are client masterLong-range operation configuration information collection procedure on machine. At step S530, main control server 120 orConfiguration information collection module 320 detects the collection that whether completes configuration information, if completed,Enter step S540, indicate immediately client host to return to configuration information; Otherwise, continueWait for.
The present invention has following advantages:
1, can automatically realize the information of all client hosts is collected automatically.
2,, to newly-increased client-server, only need the shorter time modification configuration file of costCan complete the collection of information.
3, configuration information collection procedure can customize realization, safeguards that a serve end programCan, greatly reduce maintenance cost.
4, by definition logical relation, can represent easily the relation between parts, can be fastThe coverage of speed location trouble unit.
5, little on the impact of client host, without extra client end program is installed.
6, be only the configuration information of renewable customization by the program of amendment main control server end.
7, can collect quickly and easily the configuration information that configuration information and maintenance are collectedUniformity.
Although illustrated and illustrated each exemplary embodiment, ordinary skill peopleMember should be understood that, can aspect form and details, make respectively these exemplary embodimentsKind change and do not deviate from the spirit and scope of the present invention design being limited by appended claims.

Claims (13)

1. for collect a method for configuration information, described department of computer science in computer systemTurnkey contains multiple client hosts and the main control server that can communicate by letter with described client host,It is characterized in that, comprise the following steps:
Relation breaks the wall of mistrust between described main control server and each described client host;
Described main control server start multiple concurrent execution for collecting described configuration informationLocal process, each described local process is carried out following to be independent of the mode of other local processStep:
Utilize the each described client host of described trusting relationship login;
Long-range operation configuration information collection procedure on each described client host; And
Once complete the collection of described configuration information, indicate immediately described client hostReturn to described configuration information.
2. described in the method for claim 1, wherein further comprising the following steps:Main control server is stored in described configuration information configuration information database and shows in server.
3. method as claimed in claim 2, wherein, further comprise the following steps: based onLogical relation defines to organize described configuration information, to represent the parts of described client hostIncidence relation.
The method of claim 1, wherein described client host described in completingDescribed configuration information is deleted in uploading of configuration information afterwards.
The method of claim 1, wherein the foundation of described trusting relationship based on peaceFull shell (SSH) agreement.
6. method as claimed in claim 5, wherein, described main control server is with without password sideThe mode of formula or dynamic password is logined each described client host.
The method of claim 1, wherein described trusting relationship configuration information to joinThe form of putting file presents.
8. for collect a device for configuration information, described department of computer science in computer systemTurnkey contains multiple client hosts and the main control server that can communicate by letter with described client host,It is characterized in that, comprising:
Trusting relationship administration module, it is configured to break the wall of mistrust with each described client hostRelation;
Configuration information collection module, its be configured to start multiple concurrent execution for described in collectingThe local process of configuration information is to carry out the following step:
Utilize the each described client host of described trusting relationship login;
Long-range operation configuration information collection procedure on each described client host;
Once complete the collection of described configuration information, indicate immediately described client hostReturn to described configuration information.
9. device as claimed in claim 8, wherein, the foundation of described trusting relationship is based on peaceFull shell (SSH) agreement.
10. device as claimed in claim 9, wherein, described trusting relationship administration module withLogin each described client host without the mode of password mode or dynamic password.
11. 1 kinds of computer systems, is characterized in that, comprising:
Multiple client hosts;
Main control server, comprising:
Trusting relationship administration module, it is configured to set up with each described client hostTrusting relationship;
Configuration information collection module, its be configured to start multiple concurrent execution for collectingThe local process of described configuration information, each described local process is to be independent of other this localityThe mode of process is carried out the following step:
Utilize the each described client host of described trusting relationship login;
Long-range operation configuration information collection procedure on each described client host;
Once complete the collection of described configuration information, indicate immediately described client hostUpload described configuration information to described main control server.
12. computer systems as claimed in claim 11, wherein, also comprise configuration information numberAccording to storehouse and displaying server, receive from described client host for storing described main control serverDescribed configuration information.
13. computer systems as claimed in claim 12, wherein, described configuration information dataDescribed configuration information is organized with showing server logic-based contextual definition in storehouse, described in representingThe incidence relation of the parts of client host.
CN201510862082.5A 2015-11-30 2015-11-30 Method and apparatus for collecting configuration information in computer systems Active CN105589773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510862082.5A CN105589773B (en) 2015-11-30 2015-11-30 Method and apparatus for collecting configuration information in computer systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510862082.5A CN105589773B (en) 2015-11-30 2015-11-30 Method and apparatus for collecting configuration information in computer systems

Publications (2)

Publication Number Publication Date
CN105589773A true CN105589773A (en) 2016-05-18
CN105589773B CN105589773B (en) 2019-06-14

Family

ID=55929372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510862082.5A Active CN105589773B (en) 2015-11-30 2015-11-30 Method and apparatus for collecting configuration information in computer systems

Country Status (1)

Country Link
CN (1) CN105589773B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010383A1 (en) * 2009-07-07 2011-01-13 Thompson Peter C Systems and methods for streamlining over-the-air and over-the-wire device management
CN104022904A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Unified management platform for IT devices in distributed computer rooms

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010383A1 (en) * 2009-07-07 2011-01-13 Thompson Peter C Systems and methods for streamlining over-the-air and over-the-wire device management
CN104022904A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Unified management platform for IT devices in distributed computer rooms

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈雷: "某银行业务服务管理***设计和实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN105589773B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
US11088903B2 (en) Hybrid cloud network configuration management
US9473458B2 (en) Connection configuration
US20200367057A1 (en) Single sign-in for iot devices
JP6707153B2 (en) Secure configuration of cloud computing nodes
CN103034530B (en) Provide services on the Internet exchange time use method and system
CN104871131A (en) Deploying hardware inventory as cloud-computing stamp
CN104160376A (en) Offline provisioning of virtual machines
US20190342170A1 (en) Auto-determining and installing missing components to a to-be-managed device by a single execution of unique device setup command
CN103401883A (en) Single sign-on method and system
CN108390937B (en) Remote monitoring method, device and storage medium
CN110597541B (en) Interface updating processing method, device, equipment and storage medium based on block chain
CN104468550A (en) User login method for Windows desktop, device and system
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
CN106131066A (en) A kind of authentication method and device
US20200014591A1 (en) Method and system of device deployment integrating with automatic configuration and asset management
CN111935195B (en) Distributed system management method, device, storage medium and distributed management system
CN107517121A (en) Equipment configuration method and device
CN105589773A (en) Method and device for collecting configuration information in computer system
CN114270785A (en) Setting device, communication system, setting method, and program
CN110071966A (en) The networking of block chain and data processing method based on cloud platform
US11693643B2 (en) Network-based solution module deployment platform
CN105471847A (en) User information management method and user information management device
CN112042152A (en) Method and system for securing communication between a primary device and a secondary device
CN111884837B (en) Migration method and device of virtual encryption machine and computer storage medium
CN111447080B (en) Private network decentralization control method, device and computer readable 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
GR01 Patent grant
GR01 Patent grant