CN105589773B - Method and apparatus for collecting configuration information in computer systems - Google Patents
Method and apparatus for collecting configuration information in computer systems Download PDFInfo
- Publication number
- CN105589773B CN105589773B CN201510862082.5A CN201510862082A CN105589773B CN 105589773 B CN105589773 B CN 105589773B CN 201510862082 A CN201510862082 A CN 201510862082A CN 105589773 B CN105589773 B CN 105589773B
- Authority
- CN
- China
- Prior art keywords
- configuration information
- client host
- main control
- control server
- trusting relationship
- 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.)
- Active
Links
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/2247—Verification 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
The present invention relates to data processing techniques, in particular to a kind of method and apparatus for collecting configuration information in computer systems and include the computer system of above-mentioned apparatus.Method according to the present invention for collecting configuration information in computer systems includes the following steps: to establish trusting relationship between the main control server and each client host;The main control server starts multiple local processes for being used to collect the configuration information concurrently executed, executes the following steps in a manner of independently of other local processes per the local process: logging in each client host using the trusting relationship;The long-range running configuration information collection procedure on each client host;And once completing the collection of the configuration information, then indicate that the client host returns to the configuration information immediately.
Description
Technical field
The present invention relates to data processing techniques, match confidence for collecting in computer systems in particular to one kind
The method and apparatus of breath and computer system comprising above-mentioned apparatus.
Background technique
Computer system often includes the more hosts by network connection.With the extension of system scale, complexity
Increase therewith.For each host in preferably management system, need to collect their configuration information in time.
The acquisition of existing host configuration information is generally in the following manner: inputting order directly on host, or uses
The program run in host obtains.But for the host of substantial amounts, due to needing individually to log in, spend the time compared with
It is long, and not can guarantee the integrality of information.In addition, current configuration information collection is all to work as host number by having been manually done
When measuring huge, it is easy to appear the case where human error leads to information disunity or mistakes and omissions.Meanwhile it all being disposed on each host
Configuration information collection procedure will increase the cost of later maintenance.Furthermore configuration information is usually dispersed in each host document, shape
At information island, system manager can not intuitively, fast analyze the influence degree of failed host component, also can not be timely, quasi-
Really understand the variation characteristic of system parameter.
Summary of the invention
The present invention provides a kind of method and apparatus for collecting configuration information in computer systems, with embodiment party
Just, fast and collect information accuracy it is high the advantages that.
According to an aspect of the invention, there is provided a kind of method for collecting configuration information in computer systems,
The computer system includes multiple client host and the main control server that can be communicated with the client host, the side
Method includes the following steps:
Trusting relationship is established between the main control server and each client host;
The main control server starts multiple local processes for being used to collect the configuration information concurrently executed, Mei Gesuo
It states local process and executes the following steps in a manner of independently of other local processes:
Each client host is logged in using the trusting relationship;
The long-range running configuration information collection procedure on each client host;And
Once completing the collection of the configuration information, then indicate that the client host returns to the configuration information immediately.
Preferably, in the above-mentioned methods, further comprise the following steps: the main control server deposits the configuration information
Storage is in configuration information database and shows in server.
Preferably, in the above-mentioned methods, further comprise the following steps: logic-based contextual definition carrys out configuration described in tissue
Information, to show the incidence relation of the component of the client host.
Preferably, in the above-mentioned methods, the client host deletes institute after the upload for completing the configuration information
State configuration information.
Preferably, in the above-mentioned methods, the foundation of the trusting relationship is based on Secure Shell (SSH) agreement.Preferably, institute
It states main control server and logs in each client host in a manner of no password or in the way of dynamic password.
Preferably, in the above-mentioned methods, the trusting relationship configuration information is presented in the form of configuration file.
According to another aspect of the present invention, it provides a kind of for collecting the dress of configuration information in computer systems
It sets, the computer system includes multiple client host and the main control server that can be communicated with the client host,
Include:
Trusting relationship management module is configured as establishing trusting relationship with each client host;
Configuration information collection module is configured to start multiple locals for being used to collect the configuration information concurrently executed
Process is to execute the following steps:
Each client host is logged in using the trusting relationship;
The long-range running configuration information collection procedure on each client host;
Once completing the collection of the configuration information, then indicate that the client host returns to the configuration information immediately.
The present invention also provides a kind of computer system, can be convenient, fast and configuration information therein be accurately collected.
According to another aspect of the present invention, a kind of computer system is provided comprising:
Multiple client host;
Main control server, comprising:
Trusting relationship management module is configured as establishing trusting relationship with each client host;
Configuration information collection module is configured to start multiple locals for being used to collect the configuration information concurrently executed
Process, each local process execute the following steps in a manner of independently of other local processes:
Each client host is logged in using the trusting relationship;
The long-range running configuration information collection procedure on each client host;
Once completing the collection of the configuration information, then indicate the client host on the main control server immediately
Pass the configuration information.
Detailed description of the invention
Above-mentioned and/or other aspects and advantage of the invention will be become by the description of the various aspects below in conjunction with attached drawing
It is more clear and is easier to understand, the same or similar unit, which is adopted, in attached drawing is indicated by the same numeral, and attached drawing includes:
Fig. 1 is the architecture diagram according to the computer system of one embodiment of the invention.
Fig. 2 is the flow graph in configuration information computer system shown in Fig. 1.
Fig. 3 is the frame according to the device for collecting configuration information in computer systems of another embodiment of the present invention
Figure.
Fig. 4 is the stream according to the method for collecting configuration information in computer systems of another embodiment of the present invention
Cheng Tu.
Fig. 5 is shown in Fig. 4 for collecting the flow chart of the local process of configuration information.
Specific embodiment
Referring to which illustrates the attached drawings of illustrative examples of the present invention to more fully illustrate the present invention.But this hair
It is bright to be realized by different form, and be not construed as being only limitted to each embodiment given herein.The above-mentioned each implementation provided
Example is intended to make the disclosure of this paper comprehensively complete, and protection scope of the present invention is more fully communicated to those skilled in the art
Member.
The term of such as "comprising" and " comprising " etc indicates have directly in addition to having in the specification and in the claims
Other than the unit and step clearly stated, technical solution of the present invention is also not excluded for having its that do not stated directly or clearly
The situation of its unit and step.
It according to one aspect of the present invention, include the computer system of multiple client host and main control server at one
In, by establishing trusting relationship between main control server and each client host, main control server is stepped on automatically
Client host is recorded to collect the configuration information of client host.Preferably, the foundation of this trusting relationship is based on Secure Shell
(SSH) agreement.SSH agreement to progress authentication and carries out data encryption using public key and private key.Carry out data encryption and
It is using different keys when decryption, each communication party is required to key (i.e. public key and private key), this two keys can be each other
Encryption and decryption, wherein public key is disclosed, and private key be it is underground, only taken care of by owning side.Recognizing for public-key cryptography is completed in SSH
After card process, so that it may confirm the identity of registrant, while carry out encryption and decryption operation using data key in subsequent session.
When client host enormous amount, to accelerate to log in speed, private key is set as no password, no password can be realized by configuration
Trust and logs in.In addition, scene higher for safety requirements, can also make main control server by the way of dynamic cipher verification
Client host is logged in, to realize the automatic collection of configuration information.
It is another aspect of this invention to provide that after main control server logs in client host, concomitantly in each client
Long-range running configuration information collection procedure in end main frame, and the collection of configuration information is once completed, main control server indicates
Client host returns to configuration information immediately.It, can be with since the collection of configuration information is initiated from main control server
Easily the initiation time of control task and range.Simultaneously as control is implemented at main control server, so in client master
After machine completes configuration information acquisition, main control server can indicate client in assigning configuration information transmission order at the first time
The configuration information of collection is aggregated into main control server by host.Preferably, the form that configuration information uses configuration file is collected.?
In the prior art, usually after capture program runs period regular hour, from main control server end to client host
Configuration information transmission order is assigned, this is likely to cause imperfect or idle (invalid to wait) overlong time of configuration information.
The configuration information summarized manner of above-mentioned event triggering type of the invention can overcome the disadvantages mentioned above of the prior art, have stronger
Flexible row, scalability and adaptability, in particular for the client host of acquisition vast number configuration information when.
It describes to realize the embodiment of the present invention below by attached drawing.
Fig. 1 is the architecture diagram according to the computer system of one embodiment of the invention.Computer system 100 shown in FIG. 1
Including multiple client host 111-11N and main control server 120.Preferably, computer system 100 also includes configuration information number
According to library and show server 130.
Each of client host 111-11N can be communicated with main control server 120.In the present embodiment, master control takes
Trusting relationship as described above is established between each of business device 120 and client host 111-11N, so as to step on automatically
Record client host.Configuration information is collected task and is periodically or non-periodically initiated by main control server 120.In particular, master control takes
Device 120 be engaged according to the IP address of client host 111-11N, starts multiple locals for being used to collect configuration information concurrently executed
Process.The concurrently execution of multiple local processes will greatly save program runtime, and reduce the influence to system.
For each local process, main control server is stepped in a manner of independently of other local processes using trusting relationship
Each client host is recorded, then the long-range running configuration information collection procedure on each client host, and as described above,
For each client host, once completing the collection of configuration information, then the local process indicates corresponding client master immediately
The configuration information of machine return document form.Preferably, client host will be automatically deleted after the upload for completing configuration information
Configuration information.
Configuration information received from client host 111-11N is stored in configuration information database by main control server 120
In displaying server 130.In the present embodiment, configuration information database and displaying 130 logic-based contextual definition of server
Carry out structuring configuration information, to show the incidence relation of the component of client host.Preferably, it will be collected using Python
To configuration information be saved in configuration information database and show in server, and showed by WEB JSP mode.
Fig. 2 is the flow graph in configuration information computer system shown in Fig. 1.In the present embodiment shown in Fig. 2, use
The form of star data flow.In particular, main control server 120 is only appointed as the active initiator in communication, to client
Host sends order and obtains data from client host, and client host only passively executes the order of main control server.On
The form of stating reduces the maintenance cost of client host, so that data are simply controllable, and strengthens the control to individual node.
As shown in Fig. 2, configuration information data are saved in configuration information database from main control server 120 and show in server 130, by
The latter is according to logical relation structuring configuration information, easily to show that the variation of various vertical and horizontal of client host is closed
System.
Fig. 3 is the frame according to the device for collecting configuration information in computer systems of another embodiment of the present invention
Figure.The device of the present embodiment can be used as a kind of specific implementation form of the main control server 120 in computer system shown in Fig. 1.
Device 300 shown in Fig. 3 for collecting configuration information in computer systems includes trusting relationship management module
310 and configuration information collection module 320.
Trusting relationship management module 310, which is configured as establishing with each client host in the manner described above, trusts
Relationship.Configuration information collection module 320 is configured as starting multiple local processes for being used to collect configuration information concurrently executed.
As described previously for each local process, executed in a manner of independently of other local processes log in each client host,
Long-range running configuration information collection procedure and instruction client host return configuration information on each client host.
Fig. 4 is the stream according to the method for collecting configuration information in computer systems of another embodiment of the present invention
Cheng Tu.Illustratively, it is realized in the method for the present embodiment embodiment shown in Fig. 1 and 3.
As shown in figure 4, the method for collecting configuration information in computer systems according to the present embodiment starts from walking
Rapid S410.In this step, main control server 120 or trusting relationship management module 310 in the manner described above with client
Each of end main frame 111-11N establishes trusting relationship.Preferably, the foundation of this trusting relationship is based on Secure Shell (SSH)
Agreement.
Step S420 is subsequently entered, main control server 120 or configuration information collection module 320 periodically or non-periodically start
Multiple local processes for being used to collect the configuration information concurrently executed.Illustratively, it is assumed here that N number of local process, often
It is a to correspond to a client host, for collecting the configuration information of corresponding client host.
Step S430 is subsequently entered, multiple local processes are concurrently run, that is, each local process is independently of other
The mode of local process is run.
Fig. 5 is shown in Fig. 4 for collecting the flow chart of the local process of configuration information.For what is started in step S420
Each local process all executes process flow shown in fig. 5.
As shown in figure 5, main control server 120 or configuration information collection module 320 are stepped on using trusting relationship in step S510
Record corresponding one in client host 111-11N.Step S520 is subsequently entered, main control server 120 or configuration information are collected
The long-range running configuration information collection procedure on client host of module 320.In step S530, main control server 120 or configuration
Information collection module 320 detects whether that the collection for completing configuration information enters step S540 if completed, immediately instruction visitor
Family end main frame returns to configuration information;Otherwise, then it continues waiting for.
The present invention has the advantage that
1, it can be realized automatically and the information of all clients host collected automatically.
2, to newly-increased client-server, it is only necessary to spend shorter time modification configuration file that the receipts of information can be completed
Collection.
3, configuration information collection procedure can customize realization, safeguard a serve end program, dimension is greatly reduced
Protect cost.
4, by defining logical relation, show the relationship between component with can be convenient, be capable of quick positioning failure component
Coverage.
5, small to the influence of client host, without installing extra client end program.
It 6, is only the configuration information of renewable customization by the program at modification main control server end.
7, it can quickly and easily collect configuration information and keep the consistency for the configuration information being collected into.
Although having been shown and illustrating each exemplary embodiment, what those of ordinary skill in the art should understand that
It is that various changes can be made without departing from by the appended claims in terms of form and details to these exemplary embodiments
The spirit and scope of the present inventive concept of restriction.
Claims (13)
1. a kind of method for collecting configuration information in computer systems, the computer system includes multiple client master
Machine and the main control server that can be communicated with the client host, characterized in that it comprises the following steps:
Trusting relationship is established between the main control server and each client host;
The main control server based on the initiation time of configuration information acquisition tasks and range start it is multiple concurrently execute be used for
The local process of the configuration information is collected, each local process executes following in a manner of independently of other local processes
Step:
Each client host is logged in using the trusting relationship;
The long-range running configuration information collection procedure on each client host;And
Once completing the collection of the configuration information, then indicate that the client host returns to the configuration information immediately.
2. the method for claim 1, wherein further comprising the following steps: the main control server is by the configuration
Information is stored in configuration information database and shows in server.
3. method according to claim 2, wherein further comprise the following steps: logic-based contextual definition comes tissue institute
Configuration information is stated, to show the incidence relation of the component of the client host.
4. the method for claim 1, wherein the client host is deleted after the upload for completing the configuration information
Except the configuration information.
5. the method for claim 1, wherein the foundation of the trusting relationship is based on Secure Shell (SSH) agreement.
6. method as claimed in claim 5, wherein the main control server is stepped in a manner of no password or in the way of dynamic password
Record each client host.
7. the method for claim 1, wherein the trusting relationship configuration information is presented in the form of configuration file.
8. a kind of for collecting the device of configuration information in computer systems, the computer system includes multiple client master
Machine and the main control server that can be communicated with the client host characterized by comprising
Trusting relationship management module is configured as establishing trusting relationship with each client host;
Configuration information collection module, initiation time and the range starting for being configured to configuration information acquisition tasks are multiple concurrent
The local process for collecting the configuration information executed is to execute the following steps:
Each client host is logged in using the trusting relationship;
The long-range running configuration information collection procedure on each client host;
Once completing the collection of the configuration information, then indicate that the client host returns to the configuration information immediately.
9. device as claimed in claim 8, wherein the foundation of the trusting relationship is based on Secure Shell (SSH) agreement.
10. device as claimed in claim 9, wherein the trusting relationship management module is in a manner of no password or dynamic password
Mode log in each client host.
11. a kind of computer system characterized by comprising
Multiple client host;
Main control server, comprising:
Trusting relationship management module is configured as establishing trusting relationship with each client host;
Configuration information collection module, initiation time and the range starting for being configured to configuration information acquisition tasks are multiple concurrent
What is executed is used to collect the local process of the configuration information, and each local process is with the side independently of other local processes
Formula executes the following steps:
Each client host is logged in using the trusting relationship;
The long-range running configuration information collection procedure on each client host;
Once completing the collection of the configuration information, then indicate that the client host uploads institute to the main control server immediately
State configuration information.
12. computer system as claimed in claim 11, wherein further include configuration information database and displaying server, use
In storing the main control server from the received configuration information of the client host.
13. computer system as claimed in claim 12, wherein the configuration information database is based on patrolling with server is shown
It collects contextual definition and carrys out configuration information described in tissue, to show the incidence relation of the component of the client host.
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 CN105589773A (en) | 2016-05-18 |
CN105589773B true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104022904A (en) * | 2014-06-13 | 2014-09-03 | 中国民航信息网络股份有限公司 | Unified management platform for IT devices in distributed computer rooms |
Family Cites Families (1)
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 |
-
2015
- 2015-11-30 CN CN201510862082.5A patent/CN105589773B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104022904A (en) * | 2014-06-13 | 2014-09-03 | 中国民航信息网络股份有限公司 | Unified management platform for IT devices in distributed computer rooms |
Non-Patent Citations (1)
Title |
---|
某银行业务服务管理系统设计和实现;沈雷;《中国优秀硕士学位论文全文数据库 信息科技辑》;20120815;正文第2-5章 |
Also Published As
Publication number | Publication date |
---|---|
CN105589773A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190207812A1 (en) | Hybrid cloud network configuration management | |
EP3886367B1 (en) | Automating 5g slices using real-time analytics | |
TWI678909B (en) | Safety authentication method, device and system | |
CN104038476A (en) | Method, apparatus and system used for login management | |
CN110048908B (en) | Network test platform, network test method and device | |
WO2022227311A1 (en) | Access processing method for performing remote control on terminal, and device and storage medium | |
EP2769304B1 (en) | Telemetry file hash and conflict detection | |
CN110221949B (en) | Automatic operation and maintenance management method, device, equipment and readable storage medium | |
CN112187491B (en) | Management method, device and equipment of server | |
CN104333556B (en) | Based on resource service management system Security Certificate gateway decentralized configuration management method | |
CN110286998A (en) | Virtual machine graphics user interface comes into force, implementation procedure recording method and device | |
CN113614718A (en) | Abnormal user session detector | |
CN115118705A (en) | Industrial edge management and control platform based on micro-service | |
KR101357135B1 (en) | Apparatus for Collecting Log Information | |
US9471759B2 (en) | Enabling device functionality based on indoor positioning system detection of physical customer presence | |
CN105704133A (en) | Method, terminal and server for data synchronism | |
CN107222361A (en) | Collecting method, system, computer equipment and medium | |
CN112565225B (en) | Method and device for data transmission, electronic equipment and readable storage medium | |
Ruiu et al. | Accessing cloud services through biometrics authentication | |
CN104717127B (en) | Method, terminal and the system of contact person's triggering are realized based on image recognition | |
CN108900480A (en) | Client certificate management method and device | |
CN112969046A (en) | Video surface signing system and method based on intranet agent | |
CN105589773B (en) | Method and apparatus for collecting configuration information in computer systems | |
CN109040331B (en) | Electronic business card processing method and device, computing equipment and storage medium | |
US20190236265A1 (en) | Preventing Unauthorized Access to Secure Information Systems Using Dynamic, Multi-Device Authentication |
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 |