CN106487560A - A kind of acquisition method of server configuration information, apparatus and system - Google Patents

A kind of acquisition method of server configuration information, apparatus and system Download PDF

Info

Publication number
CN106487560A
CN106487560A CN201510549821.5A CN201510549821A CN106487560A CN 106487560 A CN106487560 A CN 106487560A CN 201510549821 A CN201510549821 A CN 201510549821A CN 106487560 A CN106487560 A CN 106487560A
Authority
CN
China
Prior art keywords
configuration information
server
information
formatting
parameter
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
CN201510549821.5A
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510549821.5A priority Critical patent/CN106487560A/en
Publication of CN106487560A publication Critical patent/CN106487560A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of acquisition method of server configuration information, apparatus and system, it is related to Internet technical field, solve and cannot collect server configuration information quickly, in large quantity to CMDB intersystem problem.The main technical scheme of the present invention is:Send configuration information gathering instructs, to obtain the configuration information of the server being associated with executive agent;Process is formatted to the configuration information of the server that executive agent is associated, obtains formatting configuration information or reception is formatted the formatting configuration information obtaining after process by server;According to formatting configuration information, determine the parameter in the configuration information of server and corresponding parameter information;Parameter in the configuration information of server and corresponding parameter information are sent to CMDB system database.Present invention is mainly used for high-volume acquisition server configuration information.

Description

A kind of acquisition method of server configuration information, apparatus and system
Technical field
The present invention relates to Internet technical field, more particularly, to a kind of collection side of server configuration information Method, apparatus and system.
Background technology
Configuration management data base (Configuration Management Database, CMDB), passes through Identification, controlling, safeguard, checking the IT resource of enterprise, thus efficiently control being continually changing with management IT infrastructure is serviced with IT, and is other flow processs, for example Incident Management, issue management, change pipe The flow processs such as reason, release management provide accurate configuration information.With the progress and development of IT technology, look forward to The IT environment of industry becomes increasingly complex.Substantial amounts, information technoloy equipment various in style are difficult to effectively be managed, Not to mention manage the various IT services based on these information technoloy equipments.Meanwhile, the IT environment of enterprise It is being continually changing, how to assess the accident of certain equipment or service generation or change caused impact, And how for other flow processs provide IT resource currently accurately configuration information Dou Shi enterprise face great Challenge.
At present, the CMDB system increased income in market all has server assets management function, collection Principle is all to be taken with server one by one by Secure Shell (Secure Shell, be abbreviated as SSH) agreement Must contact, then the information of server is collected by execution order, finally carry out warehouse-in and show.This Plant operation principle to must be set up allowing to CMDB open system SSH end in the security strategy of server Mouthful, and if sub- client quantity too many, parallel processing restriction is not being carried out to SSH port In the case of, by the serious process resource consuming system itself, and parallel processing is carried out limiting, drop Low can be to the speed of information gathering.Therefore, cannot be met based on the CMDB system of SSH agreement large quantities of The quick training in rotation of amount equipment, and also the SSH port of client to be ensured is open mode.
Additionally, some the server assets management softwares based on message queue transmission mode also having, such as The software tools such as saltstack, puppet all can complete quickly to collect the data message of high-volume user, But output can only be shown in order line for collected data message, and these data can not be believed Breath is analyzed processing, and stores in CMDB system.
Content of the invention
In view of this, the present invention provides a kind of acquisition method of server configuration information, apparatus and system, The system configuration information of high-volume client can quickly be collected, and the information of collection is automatically stored to In CMDB system database.
For reaching above-mentioned purpose, present invention generally provides following technical scheme:
According to one aspect of the invention it is proposed that a kind of acquisition method of server configuration information, the party Method includes:
Send configuration information gathering instructs, to obtain the configuration letter of the server being associated with executive agent Breath;
Process is formatted to the configuration information of the server that described executive agent is associated, to obtain Format configuration information or reception is formatted the formatting configuration obtaining after process by described server Information, wherein, described formatting configuration information, is joining the server being associated with executive agent Confidence breath is converted into the information that executive agent is capable of identify that or operates;
According to described formatting configuration information, determine parameter in the configuration information of server and corresponding Parameter information;
The parameter of described server end configuration and corresponding parameter information are sent to CMDB system number According to storehouse.
According to another aspect of the present invention it is also proposed that a kind of acquisition method of server configuration information, The method includes:
Receive configuration collection information command;
To main control end send configuration information or formatting configuration information;Wherein, described configuration information, be The configuration information of executive agent itself or the configuration information of the server being associated with executive agent;
Described formatting configuration information, be by the configuration information of executive agent itself or with executive agent phase The configuration information of the server of association, is converted into the information that described main control end is capable of identify that or operates.
According to another aspect of the present invention it is also proposed that a kind of harvester of server configuration information, This device includes:
Transmitting element, for send configuration information gathering instruction, is associated with executive agent with acquisition The configuration information of server;
Format configuration information acquiring unit, for joining to the server that described executive agent is associated Confidence breath formats process, and to obtain formatting configuration information, wherein, described formatting configures Information, is the configuration information of the server being associated with executive agent to be converted into executive agent can know Information that is other or operating;
Described formatting configuration information acquiring unit is additionally operable to, and receives and is formatted by described server The formatting configuration information obtaining after process;
Resolution unit, for according to described formatting configuration information, determining in the configuration information of server Parameter and corresponding parameter information;
Described transmitting element is additionally operable to, by the parameter of described server end configuration and corresponding parameter letter Breath is sent to CMDB system database.
According to another aspect of the present invention it is also proposed that a kind of harvester of server configuration information, This device includes:
Receiving unit, for receiving configuration collection information command;
Transmitting element, for main control end send configuration information, wherein, described configuration information, for holding The configuration information of row main body itself or the configuration information of the server being associated with executive agent;
Described transmitting element is additionally operable to, for sending out formatting configuration information to main control end, interim, described Format configuration information, be the clothes be associated the configuration information of executive agent itself or with executive agent The configuration information of business device, is converted into the information that described main control end is capable of identify that or operates.
According to another aspect of the present invention it is also proposed that a kind of acquisition system of server configuration information, This system is included in server configuration information harvester and the clothes being used in server end in main control end Business device configuration information harvester, and CMDB system;
Described CMDB system, for being sent to CMDB system database by described main control end The configuration information of described server end be updated, show.
The acquisition method of server configuration information of the present invention, apparatus and system, are in service Device end predetermined server configuration information harvester, is instructed by main control end Batch sending Remote triggering, To realize the automatic data collection process of server end configuration information, and to pass through to configuration letter in server end The formatting of breath processes and allows main control end disposably to obtain multiple configuration parameters.Meanwhile, in master control End, can be selectively by the server end being obtained by the parsing to formatting configuration information In the data base of configuration information typing CMDB system, and can realize large batch of server end Configuration information carry out Rapid input.Finally the joining to received server end by CMDB system Confidence breath is updated, shows.With respect to the existing software with asset management functions, the present invention Closely large batch of server can not carried out with automatic, the Quick Acquisition of configuration information, simultaneously acceptable CMDB system is avoided to carry out the acquisition server configuration information of remotely one-to-one formula by SSH agreement The configuration information of all of server is uploaded by drawback by main control end simultaneously, thus improve clothes The acquisition efficiency of asset management information and automaticity in business device system.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention's Technological means, and being practiced according to the content of description, and in order to allow the above-mentioned of the present invention and Other objects, features and advantages can become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit for Those of ordinary skill in the art will be clear from understanding.Accompanying drawing is only used for illustrating the mesh of preferred implementation , and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical with reference to symbol Number represent identical part.In the accompanying drawings:
Fig. 1 shows a kind of acquisition method flow process of server configuration information that the embodiment of the present invention proposes Figure;
Fig. 2 shows the acquisition method stream of another kind of server configuration information that the embodiment of the present invention proposes Cheng Tu;
Fig. 3 shows the acquisition method stream of another kind of server configuration information that the embodiment of the present invention proposes Cheng Tu;
Fig. 4 shows the acquisition method stream of another kind of server configuration information that the embodiment of the present invention proposes Cheng Tu;
Fig. 5 shows a kind of group of the harvester of server configuration information that the embodiment of the present invention proposes Become block diagram;
Fig. 6 shows the harvester of another kind of server configuration information that the embodiment of the present invention proposes Composition frame chart;
Fig. 7 shows the harvester of another kind of server configuration information that the embodiment of the present invention proposes Composition frame chart;
Fig. 8 shows the harvester of another kind of server configuration information that the embodiment of the present invention proposes Composition frame chart;
Fig. 9 shows a kind of showing of the acquisition system of server configuration information that the embodiment of the present invention proposes It is intended to.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although it is aobvious in accompanying drawing Show the exemplary embodiment of the disclosure it being understood, however, that may be realized in various forms the disclosure And should not be limited by embodiments set forth here.On the contrary, these embodiments are provided to be able to more Thoroughly understand the disclosure, and can be by the technology conveying to this area complete for the scope of the present disclosure Personnel.
Embodiments provide a kind of acquisition method of server configuration information, as shown in figure 1, The method is applied in the main control end that batch obtains server configuration information, and this main control end (executes master Body) can be a server in distributed server or there is information processing capability Computing device, the concrete steps of the method include:
101st, send configuration information gathering instruction, to obtain joining of the server being associated with executive agent Confidence ceases.
Wherein, the configuration information of server can comprise:Server ID, execution system mark, IP ground Location, maximum memory capacity, maximum hard-disk capacity etc..
The embodiment of the present invention being achieved in that based on bulk management clothes in acquisition server end configuration information The C/S framework of the automation tools (Saltstack, hereinafter referred to as salt) of business device, achievable high-volume, Quickly obtain the configuration information of server end.In the C/S framework of salt, used server end It is referred to as master, client is referred to as minion, subscribed to the message queue of master by minion, Command value, commander's minion execution task are issued to minion from master.
In embodiments of the present invention, main control end can be represented with master, and other end server end (connects Receive the server that executive agent sends information gathering instruction) can use minion to represent.Main control end is obtaining During the configuration information of server end, need to send an instruction to server end, be arranged on clothes to trigger The configuration information capture program at business device end.
Because server end is often multiple stage in actual applications, large batch of deployment.Therefore, master control End, when send configuration information gathering instructs, is also to send this to all attachable server ends simultaneously Instruction, to obtain the configuration information of Servers-all.
102nd, obtain the formatting configuration information of the server being associated with executive agent.
Main control end, after being transmitted across configuration information acquisition instructions, can receive by each server end according to finger The acquired server configuration information of order.And format configuration information and refer to the configuration information of server Format obtained configuration information after process, be not limited to server in embodiments of the present invention Configuration information formatting process be master side execution or minion side execution.
Wherein, formatting is processed, and may refer to the configuration information to server and carries out arranging, screens, To obtain meeting information resources (the i.e. form that executive agent be can recognize that to this configuration information or operated Change configuration information).
In actual application, due to assemble can be included in the configuration information of a server end more Put parameter and corresponding parameter information, therefore, overall transfer for the ease of configuration information and Follow-up process, server end can first by the configuration information being collected locally formatting process, Again the formatting configuration information after processing is sent to main control end.In this formatting configuration information, bag Containing the multigroup configuration parameter of server end and corresponding parameter information.Wherein, the form being adopted Change mode can adopt different format modes according to real needs, and the present embodiment is not had to this Body limits.
103rd, according to this formatting configuration information, the parameter in the configuration information of server and correspondence are determined Parameter information.
Main control end after get the formatting configuration information of server end, in order to getting Server end configuration information is sent in CMDB system database, can be joined by parsing this formatting Confidence cease, obtain this server end configuration parameter and this parameter corresponding to parameter information, thus Meet the call format to Data Enter for the CMDB system database.
It is pointed out that the parsing formatting configuration information is not only included to configuration information lattice in 102 The parsing of formula, also includes the form after parsing being mated, if not meeting CMDB system number According to storehouse to the call format of Data Enter in addition it is also necessary to enter to advance to the server end configuration information after parsing One step form conversion, obtain can typing CMDB system database configuration information.
104th, the parameter configuring server end and corresponding parameter information are sent to CMDB system Data base.
After main control end has parsed the configuration information at Servers-all end, can be by the configuration of these server ends Information uploads in the data base of CMDB system, by the parameter of this database lookup server end configuration, If it does, just the corresponding value of this parameter newly getting is covered original value, if it does not, Just increase in this data base this server end configuration parameter and to should parameter value.Final by CMDB system calls the information in this data base, shows to manager and is in this system management range Servers-all relevant configuration information.
Corresponding with the acquisition method of the server configuration information of application in main control end, the present embodiment Additionally provide the acquisition method of another kind of server configuration information, as shown in Fig. 2 the method is applied to Server end, specific step is:
201st, receive configuration collection information command.
The configuration information acquisition mode that server end in the embodiment of the present invention is adopted, is by preset Information acquisition program realize information gathering, by writing to preset program, can set and be adopted The content of the configuration information of collection, species.It is also possible to by this capture program entry condition Arrange and to realize the automatic acquisition to server end configuration information.
In embodiments of the present invention using by main control end remotely send triggering command start local The mode of executable program is a kind of more universal implementation, implementing herein to which Do not illustrate.
It is pointed out that in addition to receiving the mode of long-range configuration information acquisition instructions it is also possible to By periodic detection is carried out to the configuration information of server end, become finding that server configuration information exists During change, start configuration information capture program, then or start by set date configuration information capture program.Right This, the embodiment of the present invention is not specifically limited, and can select different programs according to specific application scenarios Starting mode.
202nd, to main control end send configuration information.
According to the configuration collection information command receiving, server can will be anti-for the configuration information of current state Feed main control end.The embodiment of the present invention does not limit for the form of configuration information, can be will be automatic The relevant configuration information of the book server obtaining after executing preset information acquisition program is transmitted, Can be by after obtaining the relevant configuration information of server, process is formatted to this configuration information, The formatting obtaining configuration information is transmitted.
Wherein, acquired configuration information can be the configuration information of server end hardware, as internal memory The configuration letter of size, the capacity of hard disk, performance of central processing unit (cpu) etc. or software Breath, such as server end be provided with what software, have which software service be in running status or Start self-starting etc..And the configuration information that server is collected formats process, mainly It is in order to configuration information is converted into the information that main control end is capable of identify that or operates.Additionally, also for It is easy to be integrated the configuration information of server end and entirety is sent to main control end.Simultaneously also favourable with The main control end formatting configuration information that the reception server end returns in bulk, and follow-up Information procession Process work.
After determining configuration information, server end by configuration information or format configuration information send to Main control end.In embodiments of the present invention, it is achieved in that the configuration carrying out based on the C/S framework of salt Information Batch sending.To accordingly, main control end is also carried out the configuration information at the reception server end of batch.
Can be seen that the server configures letter that the embodiment of the present invention is adopted in conjunction with above-mentioned implementation The acquisition method of breath, the collecting work of the configuration information executing in server end, compared with prior art, The server end of the present embodiment, when carrying out configuration information collection, is to be preset at local joining by triggering Put information acquisition program to realize the collection of multiparameter configuration information, and by parameter configuration Formatting process, realize by the integration of multiparameter configuration information, and disposably upload main control end, Improve the overall collecting efficiency of configuration information and upper transfer efficiency.Achieve Quick Acquisition in main control end big The work of bulk service device end configuration information, compared with prior art, main control end is passed through to collecting Configuration information carries out dissection process it is achieved that uploading to the configuration information of the server end collecting Purpose in CMDB system database is so that the configuration information at Servers-all end can CMDB again System real-time update, and show manager.The embodiment of the present invention has large batch of server end System in, more can embody the efficiency of configuration information collection, and the collection in whole information, upload During, without manual intervention, manager can be directly viewable in CMDB system currently to be owned The configuration information of server end.
In order to the acquisition method of the server configuration information of the invention described above proposition is explained in more detail, The present embodiment will be illustrated by way of example said method implementation in actual applications, as Fig. 3 institute Show, in the concrete mode of server end acquisition configuration information be:
301st, receive configuration collection information command.
By the C/S framework of salt, main control end can remotely send instruction to server end, using salt Order and to control server end to carry out the collecting work of configuration information.
302nd, according to configuration information acquisition instructions, obtain the configuration information of local server-side.
The salt order being issued according to main control end, server end can start and is preset in this server Information acquisition program, programming language used in salt is Python.The configuration letter write Breath capture program obtains the configuration information of server end one by one by executing shell-command.The present invention is real Apply example taking obtain server end hardware configuration information as a example, according to specific programming, can obtain To information such as the title of server, system, IP address, internal memory, hard disks.
303rd, to main control end send configuration information.
In server end, the configuration information of the local server-side of acquisition can be left intact directly Main control end is given in sending and receiving.Main control end can also be sent and format the configuration letter of the formatting after process Breath.
Format to process and first have to determine the parameter in acquired configuration information and corresponding parameter Then parameter and corresponding parameter information are formatted process by information again.The present embodiment will be with word The configuration information formatting of allusion quotation form is illustrated as a example processing.Complete configuration letter in information acquisition program After the collection of breath, extract the parameter in configuration information and corresponding parameter value, by the ginseng in configuration information The key that number is defined as in dictionary format, by should the value of configuration parameter be defined as in dictionary format Valuel, generates a dictionary information after formatting, its specific form is for example: {id:’server1’,system:’centos6’,ip:’10.1.1.1’,memory_size:’16G’,disk_size:’1024 G’,cpu_num:' 4 ' }, the content being comprised includes server name referred to as server1, system is centos6, IP address is 10.1.1.1, interior 16G, the hard disk of saving as is 4 for 1024G, cpu check figure.Finally will obtain The dictionary information taking is uploaded to main control end.So far, server end just complete the collection of configuration information with And format the work processing and feeding back to main control end.
Next the process work further to configuration information is realized by main control end, as shown in figure 4, main The acquisition method of the configuration information at control end includes:
401st, send configuration information gathering instruction.
Due to main control end can batch transmission instruction, therefore, main control end select send server It is necessary to first obtain the currently online server list (clothes being associated with main control end during the object of end Business device list), according to acquired list, refer to all online server send configuration information gatherings Order.
It should be noted that configuration information acquisition instructions are disposably issued in batches to all of by main control end Server end, then responded by each server end and returned the configuration information of server to main control end, Based on the characteristic of salt itself, the time of the configuration information at acquisition server end for the main control end is very fast, Not there is a problem of waiting in line.
402nd, obtain the formatting configuration information of the server being associated with executive agent.
This step is directed to the two ways of server end send configuration information, i.e. not entering described in 303 Configuration information and the formatting configuration information having carried out formatting process that formatting lines are processed.Work as master control When what termination received is the configuration information not formatted, main control end can be carried out to this configuration information Formatting is processed, thus obtaining formatting configuration information, so that main control end can be known to this information Operation that is other and carrying out follow-up upload CMDB system database.
Wherein, the concrete mode in main control end, configuration information being formatted with operation may be referred to above-mentioned Format manipulation configuration information being carried out in server end, this partial content is no longer repeated.
It should be noted that main control end is when receiving the configuration information being sent by server end, due to clothes Large number of, the configuration information also more than one that therefore returned at business device end, therefore, master control terminal After the configuration information receiving a server end, first this configuration information can be stored in main control end In internal memory, carrying out one by one is processed.
403rd, formatting configuration information is converted into the formatting configuration information of dictionary format.
In embodiments of the present invention, set the typing form of CMDB system database as dictionary format, So, main control end, after getting formatting configuration information, can first be judged, for non-dictionary lattice The formatting configuration information of formula, will change to the form of this formatting configuration information, obtains dictionary The formatting configuration information of form.
404th, the parameter of the configuration information of server and corresponding parameter information are determined.
The parameter of configuration information to be determined and corresponding parameter information are firstly the need of again in the lattice of dictionary format In formula configuration information, determine the keyword of configuration information and corresponding key message.In conjunction with above-mentioned institute The example of the formatting configuration information of the dictionary format being given, to the dictionary in master control end memory {id:’server1’,system:’centos6’,ip:’10.1.1.1’,memory_size:’16G’,disk_size:’1024 G’,cpu_num:' 4 ' } parsed, by the key (keyword of configuration information) in dictionary, that is, id, The information such as system, ip, memory_size, are converted into the parameter of configuration information, by the valuel in dictionary (the corresponding key message of keyword of configuration information), i.e. server1, centos6,10.1.1.1,16G Etc. information, it is converted into parameter value corresponding with configuration information parameter.After parsing, the configuration that draws The form of information is:
Id=server1
System=centos6
Ip=10.1.1.1
Memory_size=16G
Disk_size=1024G
Cpu_num=4
It is the process to the configuration information that a server end is sent through above-mentioned parsing, afterwards, Main control end will need the configuration information after parsing further can also be screened according to specific, Extract and need the one or more groups of configuration informations uploading in CMDB system database to carry out uploading behaviour Make.
405th, the parameter configuring server end and corresponding parameter information are sent to CMDB system Data base.
In addition it is also necessary to elder generation and CMDB system data before main control end carries out the operation of configuration information upload Data cube computation is set up in storehouse, in the prior art, be all by CMDB system pass through the active of ssh port with Server end sets up long-range connection, thus obtaining the configuration information of this server, and the present embodiment is then Actively initiate to set up the request of data cube computation with CMDB system database by main control end, by CMDB System is responded.The CMDB system that so setting can make is saved and is set up even with server end meaning The step connecing, and then save CMDB system to process resource occupancy.
Main control end is after setting up data cube computation with CMDB system database it is possible to will carry in 403 The configuration information group taken out is sent in the data base of CMDB system, then the terminal through CMDB system This configuration information is shown.
Further, as the realization to said method, embodiments provide a kind of server The harvester of configuration information, this device is arranged on based in the main control end in the C/S framework of salt, its In this main control end can be in server or a computing device being independently arranged, As shown in figure 5, this device specifically includes:
Transmitting element 51, for send configuration information gathering instruction, is associated with executive agent with obtaining Server configuration information;
Format configuration information acquiring unit 52, for the server that described executive agent is associated Configuration information formats process, and to obtain formatting configuration information, wherein, described formatting is joined Confidence cease, be the configuration information of the server being associated with executive agent is converted into executive agent can Identification or the information of operation;
Described formatting configuration information acquiring unit 52 is additionally operable to, and receives and enters row format by described server The formatting configuration information that change obtains after processing;
Resolution unit 53, for formatting, according to described, the formatting that configuration information acquiring unit 52 obtains Configuration information, determines the parameter in the configuration information of server and corresponding parameter information;
Described transmitting element 51 is additionally operable to, the server end configuration that described resolution unit 53 is determined Parameter and corresponding parameter information are sent to CMDB system database.
Further, as shown in fig. 6, the transmitting element 51 of this device includes:
Acquisition module 511, for obtaining associated server list;
Sending module 512, for the server list being obtained according to described acquisition module 511, to correlation The server send configuration information gathering instruction of connection.
Further, as shown in fig. 6, the resolution unit 53 of this device includes:
Modular converter 531, for formatting configuration information, is converted into the formatting configuration of dictionary format Information;Wherein, described dictionary format is to extract the configuration information that described CMDB system database needs Form;
Parsing module 532, the formatting configuration of the dictionary format for changing in described modular converter 531 In information, determine the keyword of the configuration information of described server and corresponding key message;
Determining module 533, the key of the server configuration information for determining described parsing module 532 Word and corresponding key message, are defined as the parameter in the configuration information of server and corresponding parameter letter Breath.
Further, the embodiment of the present invention also provides a kind of harvester of server configuration information, such as Shown in Fig. 7, this device is arranged on based in the server end in the C/S framework of salt, and this device includes:
Receiving unit 71, for receiving configuration collection information command;
Transmitting element 72, for the instruction being received according to described receiving unit 71, sends to main control end and joins Confidence ceases, and wherein, described configuration information, is configuration information or and the executive agent of executive agent itself The configuration information of associated server;
Described transmitting element 72 is additionally operable to, and the instruction being received according to described receiving unit 71, to master control End sends and formats configuration information, and wherein, described formatting configuration information, is by executive agent itself Configuration information or the server being associated with executive agent configuration information, be converted into described main control end The information being capable of identify that or operating.
Further, as shown in figure 8, the transmitting element 72 of this device includes:
Determining module 721, for determining the parameter in server configuration information and corresponding parameter information;
Processing module 722, for parameter that described determining module 721 is determined and corresponding parameter information Format process, to obtain formatting configuration information;
Sending module 723, for sending the formatting configuration information that described processing module 722 obtains.
Additionally, the embodiment of the present invention after with reference to above-mentioned device it is also proposed that a kind of server configures The acquisition system of information, as shown in figure 9, this system includes applies above-mentioned server configuration information The main control end 91 server end 92 of harvester, and CMDB system 93.
Wherein, server end 92 is used for gathering the configuration information of itself, and by this configuration information through lattice Formulaization is sent to main control end after processing.Main control end 91 is used for the lattice that batch the reception server end 92 sends Formula configuration information, and collected configuration information is processed, and it is uploaded to CMDB system In the data base of system 93.And CMDB system 93, for being sent to CMDB by main control end 92 The configuration information of the server end in system database is updated, shows.
The acquisition method of a kind of server configuration information that in sum, the embodiment of the present invention is adopted, Apparatus and system, is in server end predetermined server configuration information harvester, is criticized by main control end Amount sends Remote triggering instruction, to realize the automatic data collection process of server end configuration information, and Server end allows main control end disposably to obtain multiple joining by processing to the formatting of configuration information Put parameter.Meanwhile, pass through to the parsing formatting configuration information in main control end, can be selectively By in the data base of the configuration information typing CMDB system of the server end being obtained, and can be real Now the configuration information of large batch of server end is carried out Rapid input.Finally by CMDB system to institute The configuration information of the server end receiving is updated, shows.With respect to existing, there is Assets Reorganization Taking Reason function software, the present invention closely large batch of server can not carried out configuration information automatic, Quick Acquisition, can also avoid CMDB system to carry out long-range one-to-one formula by SSH agreement simultaneously The configuration information of all of server is entered by the drawbacks of obtain server configuration information by main control end simultaneously Row uploads, thus improve acquisition efficiency and the automaticity of asset management information in server system.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment The part being described in detail, may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in said method and device can mutually reference.In addition, " first ", " second " in above-described embodiment etc. is for distinguishing each embodiment, and does not represent each enforcement The quality of example.
Those skilled in the art can be understood that, for convenience and simplicity of description, above-mentioned The specific work process of the system, apparatus, and unit of description, may be referred in preceding method embodiment Corresponding process, will not be described here.
Provided herein algorithm and display not with any certain computer, virtual system or miscellaneous equipment Inherently related.Various general-purpose systems can also be used together with based on teaching in this.According to above Description, the structure constructing required by this kind of system is obvious.Additionally, the present invention is also not for Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here The content of invention, and the description above language-specific done is the optimal reality in order to disclose the present invention Apply mode.
In description mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that Embodiments of the invention can be put into practice in the case of not having these details.In some instances, Known method, structure and technology are not been shown in detail, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect Individual or multiple, in the description to the exemplary embodiment of the present invention above, each feature of the present invention Sometimes it is grouped together in single embodiment, figure or descriptions thereof.However, should be by The method of the disclosure is construed to reflect following intention:I.e. the present invention for required protection requires ratio at each The more feature of feature being expressly recited in claim.More precisely, as following right will As asking book to be reflected, inventive aspect is all features less than single embodiment disclosed above. Therefore, it then follows claims of specific embodiment are thus expressly incorporated in this specific embodiment, Wherein each claim itself is as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out Adaptively change and they are arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and In addition multiple submodule or subelement or sub-component can be divided into.Except such feature and/or Outside at least some of process or unit exclude each other, can be using any combinations to this explanation All features disclosed in book (including adjoint claim, summary and accompanying drawing) and such as the displosure Any method or all processes of equipment or unit be combined.Unless expressly stated otherwise, originally Each feature disclosed in description (including adjoint claim, summary and accompanying drawing) can be by carrying Alternative features for identical, equivalent or similar purpose to replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include Included some features rather than further feature in other embodiments, but the feature of different embodiment Combination mean to be within the scope of the present invention and formed different embodiments.For example, under In the claims in face, embodiment required for protection one of arbitrarily can be in any combination Mode is using.
The all parts embodiment of the present invention can be realized with hardware, or with one or more The software module run on reason device is realized, or is realized with combinations thereof.Those skilled in the art It should be appreciated that can be realized using microprocessor or digital signal processor (DSP) in practice Some in denomination of invention (as determined the device of website internal chaining grade) according to embodiments of the present invention Or some or all functions of whole parts.The present invention is also implemented as execution institute here Description some or all equipment of method or program of device (for example, computer program and Computer program).Such program realizing the present invention can be stored in computer-readable medium On, or can have the form of one or more signal.Such signal can be from the Internet net Download on standing and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than the present invention is limited Make, and those skilled in the art can design without departing from the scope of the appended claims Alternative embodiment.In the claims, any reference markss between bracket should not be configured to Limitations on claims.Word "comprising" does not exclude the presence of element not listed in the claims or step Suddenly.Word "a" or "an" before element does not exclude the presence of multiple such elements.The present invention Can be come real by means of the hardware including some different elements and by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be logical Cross same hardware branch to embody.The use of word first, second, and third does not indicate that Any order.These words can be construed to title.

Claims (10)

1. a kind of acquisition method of server configuration information is it is characterised in that methods described includes:
Send configuration information gathering instructs, to obtain the configuration letter of the server being associated with executive agent Breath;
Process is formatted to the configuration information of the server that described executive agent is associated, to obtain Format configuration information or reception is formatted the formatting configuration obtaining after process by described server Information, wherein, described formatting configuration information, is joining the server being associated with executive agent Confidence breath is converted into the information that executive agent is capable of identify that or operates;
According to described formatting configuration information, determine parameter in the configuration information of server and corresponding Parameter information;
Parameter in the configuration information of described server and corresponding parameter information are sent to CMDB system System data base.
2. method according to claim 1 is it is characterised in that described send configuration information gathering Instruction, is included with the configuration information obtaining the server being associated with executive agent:
Obtain associated server list;
According to described server list, to associated server send configuration information gathering instruction.
3. method according to claim 2 is it is characterised in that format configuration letter according to described Breath, determines that the parameter in the configuration information of server and corresponding parameter information include:
By described formatting configuration information, it is converted into the formatting configuration information of dictionary format;Wherein, Described dictionary format is the form extracting the configuration information that described CMDB system database needs;
In the formatting configuration information of described dictionary format, determine the configuration information of described server Keyword and corresponding key message;
By the keyword of the configuration information of described server and corresponding key message, it is defined as server Configuration information in parameter and corresponding parameter information.
4. a kind of acquisition method of server configuration information is it is characterised in that methods described includes:
Receive configuration collection information command;
To main control end send configuration information or formatting configuration information;Wherein, described configuration information, be The configuration information of executive agent itself or the configuration information of the server being associated with executive agent;
Described formatting configuration information, be by the configuration information of executive agent itself or with executive agent phase The configuration information of the server of association, is converted into the information that described main control end is capable of identify that or operates.
5. method according to claim 4 is it is characterised in that described send form to main control end Change configuration information to include:
Determine the parameter in the configuration information of server and corresponding parameter information;
Process is formatted to described parameter and corresponding parameter information, to obtain formatting configuration letter Breath;
Send described formatting configuration information.
6. a kind of harvester of server configuration information is it is characterised in that described device includes:
Transmitting element, for send configuration information gathering instruction, is associated with executive agent with acquisition The configuration information of server;
Format configuration information acquiring unit, for joining to the server that described executive agent is associated Confidence breath formats process, and to obtain formatting configuration information, wherein, described formatting configures Information, is the configuration information of the server being associated with executive agent to be converted into executive agent can know Information that is other or operating;
Described formatting configuration information acquiring unit is additionally operable to, and receives and is formatted by described server The formatting configuration information obtaining after process;
Resolution unit, for according to described formatting configuration information, determining in the configuration information of server Parameter and corresponding parameter information;
Described transmitting element is additionally operable to, by the parameter in the configuration information of described server and corresponding ginseng Number information is sent to CMDB system database.
7. device according to claim 6 is it is characterised in that described resolution unit includes:
Modular converter, for by described formatting configuration information, the formatting being converted into dictionary format is joined Confidence ceases;Wherein, described dictionary format is to extract the configuration letter that described CMDB system database needs The form of breath;
Parsing module, for, in the formatting configuration information of described dictionary format, determining described service The keyword of the configuration information of device and corresponding key message;
Determining module, for by the keyword of the configuration information of described server and corresponding key message, It is defined as the parameter in the configuration information of server and corresponding parameter information.
8. a kind of harvester of server configuration information is it is characterised in that described device includes:
Receiving unit, for receiving configuration collection information command;
Transmitting element, for main control end send configuration information, wherein, described configuration information, for holding The configuration information of row main body itself or the configuration information of the server being associated with executive agent;
Described transmitting element is additionally operable to, and sends to main control end and formats configuration information, wherein, described lattice Formula configuration information, is the service be associated the configuration information of executive agent itself or with executive agent The configuration information of device, is converted into the information that described main control end is capable of identify that or operates.
9. device according to claim 8 is it is characterised in that described transmitting element includes:
Determining module, for determining parameter and corresponding parameter information in the configuration information of server;
Processing module, for process is formatted to described parameter and corresponding parameter information, with To formatting configuration information;
Sending module, for sending described formatting configuration information.
10. a kind of acquisition system of server configuration information is it is characterised in that described system includes using The harvester of server configuration information as claimed in claims 6 or 7 in main control end and being used for The harvester of the server configuration information as claimed in claim 8 or 9 in server end, and CMDB system;
Described CMDB system, for being sent to CMDB system database by described main control end The configuration information of described server end be updated, show.
CN201510549821.5A 2015-08-31 2015-08-31 A kind of acquisition method of server configuration information, apparatus and system Pending CN106487560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510549821.5A CN106487560A (en) 2015-08-31 2015-08-31 A kind of acquisition method of server configuration information, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510549821.5A CN106487560A (en) 2015-08-31 2015-08-31 A kind of acquisition method of server configuration information, apparatus and system

Publications (1)

Publication Number Publication Date
CN106487560A true CN106487560A (en) 2017-03-08

Family

ID=58235466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510549821.5A Pending CN106487560A (en) 2015-08-31 2015-08-31 A kind of acquisition method of server configuration information, apparatus and system

Country Status (1)

Country Link
CN (1) CN106487560A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124292A (en) * 2017-03-13 2017-09-01 国网江苏省电力公司信息通信分公司 A kind of information system method of operation incidence relation dynamic creation method
CN107220304A (en) * 2017-05-10 2017-09-29 杭州铭师堂教育科技发展有限公司 The slow Log Administration Systems of magnanimity mongodb based on salt
CN107402868A (en) * 2017-07-07 2017-11-28 杭州绿湾网络科技有限公司 The equipment information collection method and device of physical machine
CN107483653A (en) * 2017-08-24 2017-12-15 郑州云海信息技术有限公司 The acquisition methods and device of host information in computer room
CN107547275A (en) * 2017-08-23 2018-01-05 北京北纬通信科技股份有限公司 Deployment and exchange method in PaaS cloud platforms
CN107943900A (en) * 2017-11-17 2018-04-20 北京锐安科技有限公司 The method and device of a kind of data management
CN109495288A (en) * 2017-09-13 2019-03-19 北京国双科技有限公司 Service arrangement method and apparatus
CN109597742A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 Data processing method and device
CN110635963A (en) * 2018-06-25 2019-12-31 北京国双科技有限公司 Network state detection method and device
CN112671933A (en) * 2021-02-23 2021-04-16 浙江中控技术股份有限公司 Data processing method and system
CN113190540A (en) * 2021-04-29 2021-07-30 广州嘉为科技有限公司 CMDB level discovery method, system, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684430A (en) * 2004-04-16 2005-10-19 华为技术有限公司 Configurating data collecting system and its method in network management
WO2011025595A1 (en) * 2009-08-26 2011-03-03 Zeewise, Inc. Remote data collection systems and methods
CN102123042A (en) * 2010-12-30 2011-07-13 中国民航信息网络股份有限公司 System configuration intelligent management system and management method thereof
CN104268241A (en) * 2014-09-29 2015-01-07 北京合力思腾科技股份有限公司 Attribute display method in configuration database

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684430A (en) * 2004-04-16 2005-10-19 华为技术有限公司 Configurating data collecting system and its method in network management
WO2011025595A1 (en) * 2009-08-26 2011-03-03 Zeewise, Inc. Remote data collection systems and methods
CN102123042A (en) * 2010-12-30 2011-07-13 中国民航信息网络股份有限公司 System configuration intelligent management system and management method thereof
CN104268241A (en) * 2014-09-29 2015-01-07 北京合力思腾科技股份有限公司 Attribute display method in configuration database

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124292B (en) * 2017-03-13 2022-06-17 国网江苏省电力公司信息通信分公司 Method for dynamically generating incidence relation of information system operation modes
CN107124292A (en) * 2017-03-13 2017-09-01 国网江苏省电力公司信息通信分公司 A kind of information system method of operation incidence relation dynamic creation method
CN107220304B (en) * 2017-05-10 2018-05-01 杭州铭师堂教育科技发展有限公司 The slow Log Administration Systems of magnanimity mongodb based on salt
CN107220304A (en) * 2017-05-10 2017-09-29 杭州铭师堂教育科技发展有限公司 The slow Log Administration Systems of magnanimity mongodb based on salt
CN107402868A (en) * 2017-07-07 2017-11-28 杭州绿湾网络科技有限公司 The equipment information collection method and device of physical machine
CN107402868B (en) * 2017-07-07 2021-03-16 杭州绿湾网络科技有限公司 Equipment information acquisition method and device of physical machine
CN107547275A (en) * 2017-08-23 2018-01-05 北京北纬通信科技股份有限公司 Deployment and exchange method in PaaS cloud platforms
CN107547275B (en) * 2017-08-23 2020-05-15 北京北纬通信科技股份有限公司 Deployment and interaction method on PaaS cloud platform
CN107483653A (en) * 2017-08-24 2017-12-15 郑州云海信息技术有限公司 The acquisition methods and device of host information in computer room
CN109495288A (en) * 2017-09-13 2019-03-19 北京国双科技有限公司 Service arrangement method and apparatus
CN109597742A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 Data processing method and device
CN109597742B (en) * 2017-09-30 2022-06-03 北京国双科技有限公司 Data processing method and device
CN107943900B (en) * 2017-11-17 2020-06-09 北京锐安科技有限公司 Data management method and device
CN107943900A (en) * 2017-11-17 2018-04-20 北京锐安科技有限公司 The method and device of a kind of data management
CN110635963A (en) * 2018-06-25 2019-12-31 北京国双科技有限公司 Network state detection method and device
CN112671933A (en) * 2021-02-23 2021-04-16 浙江中控技术股份有限公司 Data processing method and system
CN112671933B (en) * 2021-02-23 2022-04-26 浙江中控技术股份有限公司 Data processing method and system
CN113190540A (en) * 2021-04-29 2021-07-30 广州嘉为科技有限公司 CMDB level discovery method, system, device and medium

Similar Documents

Publication Publication Date Title
CN106487560A (en) A kind of acquisition method of server configuration information, apparatus and system
US11886440B1 (en) Guided creation interface for streaming data processing pipelines
US11924021B1 (en) Actionable event responder architecture
US20190050428A1 (en) System and method for image annotation
CN111866769B (en) Message sending method, device, server and medium
US20120221893A1 (en) Managing test automation
CN102043665B (en) System landscape aware inter-application communication infrastructure
CN109558202A (en) Original list development approach, device, equipment and storage medium based on small routine
US20060116841A1 (en) Automated data collection and analysis
CN107809383A (en) A kind of map paths method and device based on MVC
CN110532182B (en) Automatic testing method and device for virtualization platform
CN109582289B (en) Method, system, storage medium and processor for processing rule flow in rule engine
CN106034113A (en) Data processing method and data processing device
US20120266186A1 (en) Providing inter-platform application launch in context
CN107623731A (en) A kind of method for scheduling task, client, service cluster and system
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
EP2492814A1 (en) Managing test automation
CN101667139A (en) Service program invocation method based on aggregate type object, device and system therefor
CN109327499B (en) Service interface management method and device, storage medium and terminal
WO2022033079A1 (en) Pico base station configuration method and apparatus, and storage medium and electronic apparatus
US9577967B2 (en) Method and system for managing an informational site using a social networking application
CN114338674A (en) Multi-agent automatic deployment method and system
CN115080771A (en) Data processing method and device based on artificial intelligence, medium and gateway equipment
US10938931B1 (en) Central subscription platform
CN115051866B (en) Message processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170308

RJ01 Rejection of invention patent application after publication