CN107832446A - A kind of searching method and computing device of configuration item information - Google Patents

A kind of searching method and computing device of configuration item information Download PDF

Info

Publication number
CN107832446A
CN107832446A CN201711173520.2A CN201711173520A CN107832446A CN 107832446 A CN107832446 A CN 107832446A CN 201711173520 A CN201711173520 A CN 201711173520A CN 107832446 A CN107832446 A CN 107832446A
Authority
CN
China
Prior art keywords
classification
configuration item
relating attribute
item
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711173520.2A
Other languages
Chinese (zh)
Other versions
CN107832446B (en
Inventor
吴风玉
陈军
潘明
丁仲明
张亚军
张攀峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Union Mobile Pay Co Ltd
Original Assignee
Union Mobile Pay 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 Union Mobile Pay Co Ltd filed Critical Union Mobile Pay Co Ltd
Priority to CN201711173520.2A priority Critical patent/CN107832446B/en
Publication of CN107832446A publication Critical patent/CN107832446A/en
Application granted granted Critical
Publication of CN107832446B publication Critical patent/CN107832446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of searching method of configuration item information, including:Determine the configuration item classification belonging to known configurations item example, the associated path between the classification of known configurations item and the classification of target configuration item is then searched according to configuration classification relation figure, and then by the relating attribute and known configurations item example between each configuration item classification in the associated path, target configuration item example is determined from each example corresponding to the classification of target configuration item.Compared with prior art, the embodiment of the present invention is due to the incidence relation between the classification of only storage configuration item, and any configuration item is classified and is stored in the incidence relation between other each configuration item classification using graphic data structure in configuration item classification relation figure, therefore, in search configuration item information, associated path between the classification of known configurations item and the classification of target configuration item is found out by configuration item classification relation figure, search efficiency can be effectively improved, and avoid the generation of data isolation failure.

Description

A kind of searching method and computing device of configuration item information
Technical field
The present invention relates to field of computer data processing, more particularly to a kind of searching method of configuration item information and calculating to set It is standby.
Background technology
With the development of internet industry, the IT environment of enterprise becomes increasingly complex, caused mass data, species in enterprise Various, enormous amount, form disunity, it is difficult to be efficiently managed, not to mention all kinds of IT clothes based on these data Business.Therefore, it is necessary to build a resource management center being managed to all data, for record to manage it is all kinds of related The life cycle of data and data.
CMDB is Configuration ManagementDatabase abbreviation, i.e. configuration management database.CMDB can For storing and managing the various configuration item information of equipment in enterprise IT architecture, and the incidence relation between each configuration item, It is logic embodiment of the service asset in software systems in true environment, cannot be only used for effectively managing assets, can also be right Other Service management process provide support.
In the prior art, the configuration item information in CMDB is stored by the way of classification and classification, and is had in CMDB Body is stored with relation and relationship type between a certain configuration item example and another configuration item example.Due to the pass between configuration item Set type generally only includes forming, connects, needs 3 kinds, and therefore, CMDB is actually each come what is stored using tree form data structure Incidence relation between configuration item, it can be seen that this tree form data structure is applied to depth search, but parallel when need to carry out It is less efficient during retrieval.Further, since the characteristics of tree form data structure, if the corrupt data of a certain configuration item, can cause this All data below configuration item all can not be accessed normally, so as to trigger data isolation failure.
Therefore, the searching method for wanting a kind of configuration item information is needed badly at present, for solving the retrieval of CMDB in the prior art It is less efficient, easily trigger the technical problem of data isolation failure.
The content of the invention
The present invention provides a kind of searching method and computing device of configuration item information, for solving CMDB's in the prior art Recall precision is relatively low, easily triggers the technical problem of data isolation failure.
A kind of searching method of configuration item information provided in an embodiment of the present invention, including:
Determine the known configurations item classification belonging to known configurations item example;
According to configuration item classification relation figure, associating between the known configurations item classification and the classification of target configuration item is determined Path, the associated path comprise at least relating attribute, the relating attribute between the classification of any two configuration items for it is described any two The same alike result that configuration item classification has;
According to the known configurations item example and the relating attribute, from each example corresponding to target configuration item classification Middle determination target configuration item example.
Alternatively, the associated path includes m associated configuration item classification and m+1 relating attribute, and m is more than or equal to 0 Integer;The associated path being classified to from the known configurations item between target configuration item classification is:M be 0 when, it is described Know that configuration item classification is associated with the target association configuration item classification by the 1st relating attribute;It is described known to match somebody with somebody when m is not 0 It is associated with the 1st associated configuration item classification by the 1st relating attribute to put item classification, the classification of the i-th configuration item is associated by i+1 to be belonged to Property it is associated with the classification of i+1 associated configuration item, the classification of m-th associated configuration item passes through the m+1 relating attribute and the mesh It is associated to mark configuration item classification, i is the integer more than or equal to 0 and less than or equal to m;
According to the known configurations item example and the relating attribute, from each example corresponding to target configuration item classification Middle determination target configuration item example, including:
Determine the relating attribute value of corresponding 1st relating attribute of the known configurations item example;
Determined from the allocation list of the i-th associated configuration item classification i-th corresponding to the relating attribute value of i-th relating attribute The relating attribute value of+1 relating attribute, until determining the target configuration item example.
Alternatively, the allocation list of the configuration item classification includes tables of data corresponding to each attribute in configuration item classification And incidence relation table corresponding to each relating attribute;
Determined from the allocation list of the i-th associated configuration item classification i-th corresponding to the relating attribute value of i-th relating attribute The relating attribute value of+1 relating attribute, including:
According to incidence relation table corresponding to the relating attribute value of i-th relating attribute and i-th relating attribute, really Make the associated configuration item example in the i-th associated configuration item classification;
Associated configuration item example and the i+1 relating attribute in being classified according to the i-th associated configuration item is corresponding Tables of data, determine the relating attribute value of the i+1 relating attribute.
Alternatively, the configuration item classification relation figure obtains in the following way:
Each configuration item example is obtained, and each configuration item example is classified according to setting rule, obtains multiple match somebody with somebody Put item classification;
Any two configuration items in classifying for the multiple configuration item are classified, however, it is determined that any two configuration items classification With same alike result, it is determined that incidence relation be present between any two configuration items classification, and according to the same alike result, if The relationship type of the fixed incidence relation;
According to incidence relation between the classification of any two configuration items and the relationship type, obtain configuration item classification Graph of a relation.
Based on same inventive concept, the embodiment of the present invention also provides a kind of computing device, and the computing device includes:
Determining module, for determining the known configurations item classification belonging to known configurations item example;
Searching modul, for according to configuration item classification relation figure, determining the known configurations item classification and target configuration item Associated path between classification, the associated path comprise at least relating attribute, the association category between the classification of any two configuration items Property the same alike result that has for any two configuration items classification;
The searching modul, it is additionally operable to, according to the known configurations item example and the relating attribute, from the target match somebody with somebody Put in each example corresponding to item classification and determine target configuration item example.
Alternatively, the associated path includes m associated configuration item classification and m+1 relating attribute, and m is more than or equal to 0 Integer;The associated path being classified to from the known configurations item between target configuration item classification is:M be 0 when, it is described Know that configuration item classification is associated with the target association configuration item classification by the 1st relating attribute;It is described known to match somebody with somebody when m is not 0 It is associated with the 1st associated configuration item classification by the 1st relating attribute to put item classification, the classification of the i-th configuration item is associated by i+1 to be belonged to Property it is associated with the classification of i+1 associated configuration item, the classification of m-th associated configuration item passes through the m+1 relating attribute and the mesh It is associated to mark configuration item classification, i is the integer more than or equal to 0 and less than or equal to m;
The searching modul is specifically used for:
Determine the relating attribute value of corresponding 1st relating attribute of the known configurations item example;
Determined from the allocation list of the i-th associated configuration item classification i-th corresponding to the relating attribute value of i-th relating attribute The relating attribute value of+1 relating attribute, until determining the target configuration item example.
Alternatively, the allocation list of the configuration item classification includes tables of data corresponding to each attribute in configuration item classification And incidence relation table corresponding to each relating attribute;
The searching modul is specifically used for:
According to incidence relation table corresponding to the relating attribute value of i-th relating attribute and i-th relating attribute, really Make the associated configuration item example in the i-th associated configuration item classification;
Associated configuration item example and the i+1 relating attribute in being classified according to the i-th associated configuration item is corresponding Tables of data, determine the relating attribute value of the i+1 relating attribute.
Alternatively, processing module is also included in the computing device, is used for:
Each configuration item example is obtained, and each configuration item example is classified according to setting rule, obtains multiple match somebody with somebody Put item classification;
Any two configuration items in classifying for the multiple configuration item are classified, however, it is determined that any two configuration items classification With same alike result, it is determined that incidence relation be present between any two configuration items classification, and according to the same alike result, if The relationship type of the fixed incidence relation;
According to incidence relation between the classification of any two configuration items and the relationship type, obtain configuration item classification Graph of a relation.
Another embodiment of the present invention provides a kind of computing device, and it includes memory and processor, wherein, the storage Device instructs for storage program, and the processor is used to call the programmed instruction stored in the memory, according to the journey of acquisition Sequence performs any of the above-described kind of method.
Another embodiment of the present invention provides a kind of computer-readable storage medium, and the computer-readable recording medium storage has Computer executable instructions, the computer executable instructions are used to make the computer perform any of the above-described kind of method.
In the embodiment of the present invention, in search configuration item information, it is first determined the configuration item belonging to known configurations item example Classification, the associated path between the classification of known configurations item and the classification of target configuration item is then searched according to configuration classification relation figure, And then by the relating attribute and known configurations item example between each configuration item classification in the associated path, from target configuration item point Target configuration item example is determined in each example corresponding to class.Compared with prior art, the embodiment of the present invention is matched somebody with somebody due to only storing The incidence relation between item classification is put, and any configuration item is classified and adopted the incidence relation between other each configuration item classification It is stored in configuration item classification relation figure with graphic data structure, therefore, in search configuration item information, is classified by configuration item Graph of a relation finds out the associated path between the classification of known configurations item and the classification of target configuration item, can effectively improve search efficiency, And avoid the generation of data isolation failure.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is the schematic flow sheet corresponding to a kind of searching method of configuration item information provided in an embodiment of the present invention;
Fig. 2 classifies for a kind of known configurations item provided in the embodiment of the present invention directly to close between the classification of target configuration item The schematic diagram of connection;
Fig. 3 classifies for a kind of known configurations item provided in the embodiment of the present invention to close indirectly between the classification of target configuration item The schematic diagram of connection;
Fig. 4 is that the schematic flow sheet corresponding to the method for configuration item classification relation figure is obtained in the embodiment of the present invention;
Fig. 5 is the configuration item classification relation figure in a certain computer room stored in the CMDB of the embodiment of the present invention;
Fig. 6 is a kind of internal structure schematic diagram of computing device provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that described embodiment, only part of the embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Involved configuration item (i.e. configuration item, abbreviation CI) can be in enterprise in the embodiment of the present invention Polytype configuration item in portion, data center or IT computer rooms, such as, can be server, hard disk, operating system, Virtual machine, CPU, mainboard, IP address, port, application, configuration file, code bag etc., the present invention are not particularly limited to this.
Generally, the configuration item described in the embodiment of the present invention refers to that configuration item is classified, in a configuration item classification It may include one or more configuration item examples.So that for server this configuration item, existing Servers-all all belongs in computer room In server this configuration item classification, but each specific server is then one in server this configuration item classification All there is a unique mark (such as server numbering) to be used to distinguish with other servers for configuration item example, any server Come.
Specifically, all configuration item examples in a configuration item classification are respectively provided with identical attribute (also referred to as field), i.e., The attribute of configuration item classification, the specific property value of each configuration item example in the classification of this configuration item can phase certainly Together can also be different.
In the embodiment of the present invention, configuration item information may include in the information of configuration item classification, and a configuration item classification The information of each configuration item example.These configuration item information are stored in configuration management database CMDB, by CMDB to configuration Item information scans for.
The embodiment of the present invention is described in further detail with reference to Figure of description.
Fig. 1 is the schematic flow sheet corresponding to a kind of searching method of configuration item information provided in an embodiment of the present invention, such as Shown in Fig. 2, comprise the following steps:
Step S101:Determine the known configurations item classification belonging to known configurations item example;
Step S102:According to configuration item classification relation figure, determine that the known configurations item classification is classified with target configuration item Between associated path, the associated path comprises at least relating attribute, and the relating attribute between the classification of any two configuration items is The same alike result that any two configuration items classification has;
Step S103:According to the known configurations item example and the relating attribute, from target configuration item classification pair Target configuration item example is determined in each example answered.
In the embodiment of the present invention, in search configuration item information, it is first determined the configuration item belonging to known configurations item example Classification, the associated path between the classification of known configurations item and the classification of target configuration item is then searched according to configuration classification relation figure, And then by the relating attribute and known configurations item example between each configuration item classification in the associated path, from target configuration item point Target configuration item example is determined in each example corresponding to class.Compared with prior art, the embodiment of the present invention is matched somebody with somebody due to only storing The incidence relation between item classification is put, and any configuration item is classified and adopted the incidence relation between other each configuration item classification It is stored in configuration item classification relation figure with graphic data structure, therefore, in search configuration item information, is classified by configuration item Graph of a relation finds out the associated path between the classification of known configurations item and the classification of target configuration item, can effectively improve search efficiency, And avoid the generation of data isolation failure.
Specifically, can be according to known configurations item example search configuration item information, in this scene in the embodiment of the present invention Under, configuration item to be found classification and configuration item example are referred to as the classification of target configuration item and target configuration item example.Thus, In step S101, it is first determined the known configurations item classification belonging to known configurations item example.
And then in step s 102, according to configuration item classification relation figure, determine that the known configurations item classification is matched somebody with somebody with target Put the associated path between item classification.Wherein, relating attribute is comprised at least in the associated path.
In the embodiment of the present invention, it is known that the incidence relation that configuration item is classified between the classification of target configuration item can be divided into two kinds Type:
First type, it is known that configuration item is classified and the classification direct correlation of target configuration item, as shown in Figure 2, in this way, closing Connection path in relating attribute be known configurations item classification target configuration item classify between relating attribute, the relating attribute The same alike result having for the classification of known configurations item with the classification of target configuration item.Or it is also assumed that wrapped in associated path 0 associated configuration item classification and 1 relating attribute are included, the relating attribute is that the classification of known configurations item is classified with target configuration item Between relating attribute.
Second of type, it is known that configuration item is classified and target configuration item classification indirect association, as shown in figure 3, in this way, known Also include other configuration items in the associated path that configuration item is classified between the classification of target configuration item to classify, these configuration items point Class is associated with the classification of known configurations item and the classification of target configuration item successively by each relating attribute in associated path.Specifically , two adjacent configuration items are classified and are associated by relating attribute in each configuration item classification in associated path.It is of the invention real Apply in example, the relating attribute between the classification of any two configuration items is the same alike result that any two configuration items classification has.
Classified with also including m associated configuration item in addition to the classification of known configurations item and the classification of target configuration item in associated path Exemplified by (wherein m be integer) more than or equal to 0, this m associated configuration item classification divide with the classification of known configurations item, target configuration item Association is realized by m+1 relating attribute between class.
Specifically, the associated path being classified to from the known configurations item between the target configuration item classification is:M is 0 When, it is known that configuration item classification is associated with the classification of target association configuration item by the 1st relating attribute;When m is not 0, it is known that configuration Item classification is associated with the 1st associated configuration item classification by the 1st relating attribute, and the classification of the i-th configuration item passes through i+1 relating attribute Associated with the classification of i+1 associated configuration item, m-th of associated configuration item classification is configured by the m+1 relating attribute and target Item classification is associated.Wherein, i is the integer more than or equal to 0 and less than or equal to m;
Further, in step s 103, can be according to known configurations item example, and each association category in associated path Property, determine target configuration item example from each example corresponding to the classification of target configuration item.Specifically include, in associated path along Known configurations item is categorized into the direction of target configuration item classification, it is first determined corresponding 1st relating attribute of known configurations item example Relating attribute value, then, the 2nd association category corresponding to the 1st relating attribute is determined in the allocation list of the 1st associated configuration item classification The relating attribute of i-th relating attribute is determined in the allocation list that the relating attribute value ... of property is classified from the i-th associated configuration item The relating attribute value of i+1 relating attribute corresponding to value, the like, until determining target configuration item example.
In the embodiment of the present invention, tables of data and allocation list corresponding to each configuration item classification are stored with CMDB databases. Wherein, by taking the classification of any configuration item as an example, configuration item classification is stored with tables of data corresponding to configuration item classification to be included Each configuration item example, and the configuration item classification corresponding to allocation list include the configuration item classify each attribute corresponding to Incidence relation table corresponding to tables of data and each relating attribute.
That is, CMDB databases are also respectively provided with corresponding tables of data for each attribute, deposited in the tables of data Contain with the attribute configuration item classify each configuration item example to should attribute property value.Specifically, with any attribute Exemplified by, if the classification of only configuration item has an attribute, the attribute is not relating attribute, in tables of data corresponding to the attribute Only include property value corresponding to each configuration item example in that configuration item classification with the attribute.If have two or more When configuration item classification is respectively provided with the attribute, then the attribute can be used as the classification of these configuration items or part configuration item therein classification Between relating attribute, it is real that tables of data corresponding to the attribute includes each configuration item in all configuration items classification with the attribute Property value corresponding to example.
Thus, for each relating attribute, CMDB can also be each relating attribute set corresponding to incidence relation table, the pass The association between each configuration item example in each configuration item classification that association is realized by the relating attribute is stored with connection relation table Relation.
It should be noted that when two configuration item classification only have an identical attribute, only by the identical category Property as relating attribute, realize the association between the classification of the two configuration items, and when two configuration items classification have it is multiple identical Attribute when, can be using one or more of identical attribute attribute as relating attribute, to realize that two configuration items classify it Between association, it is preferred that only using an attribute in identical attribute as relating attribute, realize between two configuration items classification Association.In the embodiment of the present invention, those skilled in the art can be according to the association being actually needed between classifying to two configuration items Attribute is configured, and the present invention is not particularly limited to this.
In this way, in the embodiment of the present invention, it is above-mentioned that i-th association is determined from the allocation list of the i-th associated configuration item classification The relating attribute value of i+1 relating attribute may particularly include corresponding to the relating attribute value of attribute:First according to the i-th relating attribute Relating attribute value and the i-th relating attribute corresponding to incidence relation table, determine the i-th associated configuration item classification in association match somebody with somebody Put an example.Wherein, the associated configuration item example in the classification of the i-th associated configuration item refers in each of the i-th associated configuration item classification There is each configuration item example of incidence relation in configuration item example with known configurations item example.
And then number corresponding to the associated configuration item example and i+1 relating attribute in being classified according to the i-th associated configuration item According to table, the relating attribute value of i+1 relating attribute is determined.
As can be seen that because each relating attribute also has corresponding tables of data, therefore, in the embodiment of the present invention, also may be used To be not provided with being separately provided the corresponding incidence relation table of relating attribute, but each of association will be realized by a certain relating attribute Incidence relation in configuration item classification between each configuration item example is stored in tables of data corresponding to the relating attribute.
In this way, by the above-mentioned means, by configuration item classify each attribute be mapped as a single database table, can Reach the effect to data hierarchy.When database needs to operate a certain attribute (such as modification property value), database manipulation can Tables of data corresponding to the attribute and the property value in table are quickly located, so as to improve database manipulation efficiency.
It should be noted that the method flow search in the embodiment of the present invention in by above-mentioned steps S101 to S103 is matched somebody with somebody Before putting an information, also need to establish the configuration item classification relation figure for being used to search associated path in above-mentioned steps S102.This is matched somebody with somebody Put and incidence relation in system between the classification of each configuration item is stored with a classification relation figure, can specifically obtain as follows :
Step S401:Each configuration item example is obtained, and each configuration item example is classified according to setting rule, is obtained Classify to multiple configuration items;
In the embodiment of the present invention, those skilled in the art can classify to the configuration item example got as needed, Obtain each configuration item classification.Wherein, the classification of each configuration item have multiple attributes, i.e., same configuration item classify in each match somebody with somebody Putting an example has identical attribute.In addition, those skilled in the art can also divide each configuration item as needed Layer and classification.
Step S402:For the multiple configuration item classify in any two configuration items classify, however, it is determined that it is described any two Configuration item classification has same alike result, it is determined that incidence relation be present between any two configuration items classification, and according to described Same alike result, set the relationship type of the incidence relation.
, can be from this multiple phase if there are multiple identical attributes in the presence of two configuration item classification in the embodiment of the present invention The incidence relation that one or more attributes are established between two configuration items classification is chosen in same attribute.Moreover, the present invention is implemented Example by same alike result (i.e. relating attribute) possessed by the classification of two configuration items, by two configuration items it is classification associated after, may be used also The relationship type of incidence relation is specifically set according to the relating attribute.For example, Fig. 5 is what is provided in the embodiment of the present invention Configuration item classification relation figure in a certain computer room stored in CMDB, as shown in figure 5, including altogether in the configuration item classification relation figure Computer room, server, virtual machine, operating system, hard disk, CPU, mainboard, IP, application, configuration file, code bag, port etc. configure Item classification, according to attribute possessed by each configuration item, the IP that server and virtual machine the two configuration items classification can be respectively provided with This attribute of address is classification associated by two configuration items as relating attribute, and then by between server and virtual machine The relationship type of incidence relation is arranged to the relation between server and virtual machine.
Step S403:According to incidence relation between the classification of any two configuration items and the relationship type, obtain described Configuration item classification relation figure.
In the embodiment of the present invention, the incidence relation between each configuration item is classified is stored by graphic data structure, Due to the connectedness of figure, there can be a plurality of associated path between a configuration item classification and the classification of another configuration item, match somebody with somebody when known When putting a certain nodes break down that item is categorized into the associated path of target configuration item classification, also road can be associated by others Footpath finds target configuration item example, therefore, can effectively reduce the risk that data isolation failure occurs, improve CMDB safety Property.
Further, since being provided with configuration item classification relation figure, in the embodiment of the present invention, can be also categorized into known configurations item Most short associated path is searched on up to multiple associated paths of target configuration item classification, and then is searched in the most short associated path Target configuration item example, so as to improve search efficiency.
Due to scheming this data structure to mathematical characteristic of the root node without dependence, node corresponding to each configuration item classification Can be not in that root section is used as using different nodes as the root node of figure, in this way, the data stored in CMDB are also more accurate Point causes data area the problem of deviation to be present.
Based on same inventive concept, the embodiment of the present invention also provides a kind of computing device, and Fig. 6 is in the embodiment of the present invention The structural representation of a kind of computing device provided, as shown in fig. 6, the computing device 600 includes:
Determining module 601, for determining the known configurations item classification belonging to known configurations item example;
Searching modul 602, for according to configuration item classification relation figure, determining that the known configurations item classification configures with target Associated path between item classification, the associated path comprise at least relating attribute, the association between the classification of any two configuration items Attribute is the same alike result that any two configuration items classification has;
The searching modul 602, it is additionally operable to according to the known configurations item example and the relating attribute, from the target Target configuration item example is determined in each example corresponding to configuration item classification.
Alternatively, the associated path includes m associated configuration item classification and m+1 relating attribute, and m is more than or equal to 0 Integer;The associated path being classified to from the known configurations item between target configuration item classification is:M be 0 when, it is described Know that configuration item classification is associated with the target association configuration item classification by the 1st relating attribute;It is described known to match somebody with somebody when m is not 0 It is associated with the 1st associated configuration item classification by the 1st relating attribute to put item classification, the classification of the i-th configuration item is associated by i+1 to be belonged to Property it is associated with the classification of i+1 associated configuration item, the classification of m-th associated configuration item passes through the m+1 relating attribute and the mesh It is associated to mark configuration item classification, i is the integer more than or equal to 0 and less than or equal to m;
The searching modul 602 is specifically used for:
Determine the relating attribute value of corresponding 1st relating attribute of the known configurations item example;
Determined from the allocation list of the i-th associated configuration item classification i-th corresponding to the relating attribute value of i-th relating attribute The relating attribute value of+1 relating attribute, until determining the target configuration item example.
Alternatively, the allocation list of the configuration item classification includes tables of data corresponding to each attribute in configuration item classification And incidence relation table corresponding to each relating attribute;
The searching modul 602 is specifically used for:
According to incidence relation table corresponding to the relating attribute value of i-th relating attribute and i-th relating attribute, really Make the associated configuration item example in the i-th associated configuration item classification;
Associated configuration item example and the i+1 relating attribute in being classified according to the i-th associated configuration item is corresponding Tables of data, determine the relating attribute value of the i+1 relating attribute.
Alternatively, processing module 603 is also included in the computing device 600, is used for:
Each configuration item example is obtained, and each configuration item example is classified according to setting rule, obtains multiple match somebody with somebody Put item classification;
Any two configuration items in classifying for the multiple configuration item are classified, however, it is determined that any two configuration items classification With same alike result, it is determined that incidence relation be present between any two configuration items classification, and according to the same alike result, if The relationship type of the fixed incidence relation;
According to incidence relation between the classification of any two configuration items and the relationship type, obtain configuration item classification Graph of a relation.
Based on same inventive concept, the embodiment of the present invention also provides another computing device, and the computing device can wrap Include central processing unit (Center Processing Unit, CPU), memory, input-output apparatus etc., input equipment can be with Including keyboard, mouse, touch-screen etc., output equipment can include display device, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory can include read-only storage (ROM) and random access memory (RAM), and provide storage to processor The programmed instruction and data stored in device.In embodiments of the present invention, memory can be used for storing above-mentioned configuration item information The program of searching method.
By calling the programmed instruction of memory storage, processor is used to perform according to the programmed instruction of acquisition processor State the searching method of configuration item information.
Based on same inventive concept, the embodiments of the invention provide a kind of computer-readable storage medium, for saving as The computer program instructions used in computing device are stated, it includes the program for the searching method for being used to perform above-mentioned configuration item information.
The computer-readable storage medium can be any usable medium or data storage device that computer can access, bag Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD, BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid State hard disk (SSD)) etc..
By the above it can be seen that:
In the embodiment of the present invention, in search configuration item information, it is first determined the configuration item belonging to known configurations item example Classification, the associated path between the classification of known configurations item and the classification of target configuration item is then searched according to configuration classification relation figure, And then by the relating attribute and known configurations item example between each configuration item classification in the associated path, from target configuration item point Target configuration item example is determined in each example corresponding to class.Compared with prior art, the embodiment of the present invention is matched somebody with somebody due to only storing The incidence relation between item classification is put, and any configuration item is classified and adopted the incidence relation between other each configuration item classification It is stored in configuration item classification relation figure with graphic data structure, therefore, in search configuration item information, is classified by configuration item Graph of a relation finds out the associated path between the classification of known configurations item and the classification of target configuration item, can effectively improve search efficiency, And avoid the generation of data isolation failure.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use wherein includes the meter of computer usable program code at one or more The computer journey that calculation machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The function of being specified in present one flow of flow chart or one square frame of two or more flow and/or block diagram or two or more square frame Device.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to The manufacture of device is made, the command device is realized in one flow of flow chart or two or more flow and/or one side of block diagram The function of being specified in frame or two or more square frame.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or two or more flow and/or square frame The step of function of being specified in one square frame of figure or two or more square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of searching method of configuration item information, it is characterised in that methods described includes:
Determine the known configurations item classification belonging to known configurations item example;
According to configuration item classification relation figure, determine to associate road between the known configurations item classification and the classification of target configuration item Footpath, the associated path comprise at least relating attribute, and the relating attribute between the classification of any two configuration items is matched somebody with somebody for described any two Put the same alike result that item classification has;
It is true from each example corresponding to target configuration item classification according to the known configurations item example and the relating attribute Set the goal configuration item example.
2. according to the method for claim 1, it is characterised in that the associated path includes m associated configuration item classification and m + 1 relating attribute, m are the integer more than or equal to 0;It is classified to from the known configurations item between the target configuration item classification Associated path be:When m is 0, the known configurations item classification is classified by the 1st relating attribute and the target association configuration item It is associated;When m is not 0, the known configurations item classification is associated with the 1st associated configuration item classification by the 1st relating attribute, the The classification of i configuration items is associated with the classification of i+1 associated configuration item by i+1 relating attribute, and m-th of associated configuration item classification is logical Cross that the m+1 relating attribute is associated with the target configuration item classification, i is the integer more than or equal to 0 and less than or equal to m;
It is true from each example corresponding to target configuration item classification according to the known configurations item example and the relating attribute Set the goal configuration item example, including:
Determine the relating attribute value of corresponding 1st relating attribute of the known configurations item example;
Determine that i+1 corresponding to the relating attribute value of i-th relating attribute is closed from the allocation list of the i-th associated configuration item classification Attribute relating attribute value, until determining the target configuration item example.
3. according to the method for claim 2, it is characterised in that the allocation list of the configuration item classification includes the configuration item Incidence relation table corresponding to each tables of data corresponding to attribute and each relating attribute in classification;
Determine that i+1 corresponding to the relating attribute value of i-th relating attribute is closed from the allocation list of the i-th associated configuration item classification Attribute relating attribute value, including:
According to incidence relation table corresponding to the relating attribute value of i-th relating attribute and i-th relating attribute, determine Associated configuration item example in the i-th associated configuration item classification;
Number corresponding to associated configuration item example and the i+1 relating attribute in being classified according to the i-th associated configuration item According to table, the relating attribute value of the i+1 relating attribute is determined.
4. according to the method for claim 1, it is characterised in that the configuration item classification relation figure is to obtain in the following way Arrive:
Each configuration item example is obtained, and each configuration item example is classified according to setting rule, obtains multiple configuration items Classification;
Any two configuration items in classifying for the multiple configuration item are classified, however, it is determined that any two configuration items classification has Same alike result, it is determined that incidence relation between any two configuration items classification be present, and according to the same alike result, set institute State the relationship type of incidence relation;
According to any two configuration items classification between incidence relation and the relationship type, obtain the configuration item classification relation Figure.
5. a kind of computing device, it is characterised in that the computing device includes:
Determining module, for determining the known configurations item classification belonging to known configurations item example;
Searching modul, for according to configuration item classification relation figure, determining that the known configurations item classification is classified with target configuration item Between associated path, the associated path comprises at least relating attribute, and the relating attribute between the classification of any two configuration items is The same alike result that any two configuration items classification has;
The searching modul, it is additionally operable to according to the known configurations item example and the relating attribute, from the target configuration item Target configuration item example is determined in each example corresponding to classification.
6. computing device according to claim 5, it is characterised in that the associated path includes m associated configuration item point Class and m+1 relating attribute, m are the integer more than or equal to 0;The target configuration item classification is classified to from the known configurations item Between associated path be:When m is 0, the known configurations item classification passes through the 1st relating attribute and the target association configuration item Classification is associated;When m is not 0, the known configurations item classification is related to the 1st associated configuration item classification by the 1st relating attribute Connection, the classification of the i-th configuration item is associated with the classification of i+1 associated configuration item by i+1 relating attribute, m-th of associated configuration item Classification is associated with the target configuration item classification by the m+1 relating attribute, and i is more than or equal to 0 and whole less than or equal to m Number;
The searching modul is specifically used for:
Determine the relating attribute value of corresponding 1st relating attribute of the known configurations item example;
Determine that i+1 corresponding to the relating attribute value of i-th relating attribute is closed from the allocation list of the i-th associated configuration item classification Attribute relating attribute value, until determining the target configuration item example.
7. computing device according to claim 6, it is characterised in that the allocation list of the configuration item classification includes described match somebody with somebody Put incidence relation table corresponding to tables of data corresponding to each attribute and each relating attribute in item classification;
The searching modul is specifically used for:
According to incidence relation table corresponding to the relating attribute value of i-th relating attribute and i-th relating attribute, determine Associated configuration item example in the i-th associated configuration item classification;
Number corresponding to associated configuration item example and the i+1 relating attribute in being classified according to the i-th associated configuration item According to table, the relating attribute value of the i+1 relating attribute is determined.
8. computing device according to claim 5, it is characterised in that also include processing module in the computing device, use In:
Each configuration item example is obtained, and each configuration item example is classified according to setting rule, obtains multiple configuration items Classification;
Any two configuration items in classifying for the multiple configuration item are classified, however, it is determined that any two configuration items classification has Same alike result, it is determined that incidence relation between any two configuration items classification be present, and according to the same alike result, set institute State the relationship type of incidence relation;
According to any two configuration items classification between incidence relation and the relationship type, obtain the configuration item classification relation Figure.
A kind of 9. computing device, it is characterised in that including:
Memory, instructed for storage program;
Processor, for calling the programmed instruction stored in the memory, according to acquisition program perform as claim 1 to Method any one of 4.
10. a kind of computer-readable storage medium, it is characterised in that the computer-readable recording medium storage has computer can perform Instruction, the computer executable instructions are used to make the computer perform the side as any one of Claims 1-4 Method.
CN201711173520.2A 2017-11-22 2017-11-22 Configuration item information searching method and computing device Active CN107832446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711173520.2A CN107832446B (en) 2017-11-22 2017-11-22 Configuration item information searching method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711173520.2A CN107832446B (en) 2017-11-22 2017-11-22 Configuration item information searching method and computing device

Publications (2)

Publication Number Publication Date
CN107832446A true CN107832446A (en) 2018-03-23
CN107832446B CN107832446B (en) 2020-07-14

Family

ID=61652604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711173520.2A Active CN107832446B (en) 2017-11-22 2017-11-22 Configuration item information searching method and computing device

Country Status (1)

Country Link
CN (1) CN107832446B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683989A (en) * 2018-12-26 2019-04-26 北京中亦安图科技股份有限公司 The automatic acquiring method and device of incidence relation between a kind of configuration item
CN110532371A (en) * 2019-07-08 2019-12-03 北京中亦安图科技股份有限公司 Text searching method, device and electronic equipment based on configuration management database
CN113656139A (en) * 2021-08-27 2021-11-16 上海云轴信息科技有限公司 Interface rule adding method and equipment
CN113810235A (en) * 2021-09-22 2021-12-17 国网吉林省电力有限公司 CMDB automatic operation and maintenance management method and system based on configuration intelligent discovery
CN114610407A (en) * 2022-03-10 2022-06-10 中国建设银行股份有限公司 Method and device for creating configuration management object, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937189A (en) * 1996-11-12 1999-08-10 International Business Machines Corporation Object oriented framework mechanism for determining configuration relations
CN103562863A (en) * 2011-04-04 2014-02-05 惠普发展公司,有限责任合伙企业 Creating a correlation rule defining a relationship between event types

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937189A (en) * 1996-11-12 1999-08-10 International Business Machines Corporation Object oriented framework mechanism for determining configuration relations
CN103562863A (en) * 2011-04-04 2014-02-05 惠普发展公司,有限责任合伙企业 Creating a correlation rule defining a relationship between event types

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王刚: "CMDB配置管理系统研究及设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683989A (en) * 2018-12-26 2019-04-26 北京中亦安图科技股份有限公司 The automatic acquiring method and device of incidence relation between a kind of configuration item
CN110532371A (en) * 2019-07-08 2019-12-03 北京中亦安图科技股份有限公司 Text searching method, device and electronic equipment based on configuration management database
CN110532371B (en) * 2019-07-08 2020-08-07 北京中亦安图科技股份有限公司 Full-text retrieval method and device based on configuration management database and electronic equipment
CN113656139A (en) * 2021-08-27 2021-11-16 上海云轴信息科技有限公司 Interface rule adding method and equipment
CN113810235A (en) * 2021-09-22 2021-12-17 国网吉林省电力有限公司 CMDB automatic operation and maintenance management method and system based on configuration intelligent discovery
CN113810235B (en) * 2021-09-22 2024-02-23 国网吉林省电力有限公司 CMDB automatic operation and maintenance management method and system based on configuration intelligent discovery
CN114610407A (en) * 2022-03-10 2022-06-10 中国建设银行股份有限公司 Method and device for creating configuration management object, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107832446B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
US11710131B2 (en) Method and apparatus of identifying a transaction risk
CN107832446A (en) A kind of searching method and computing device of configuration item information
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
US9524310B2 (en) Processing of categorized product information
EP1667062A1 (en) Resource reconciliation
US20210092160A1 (en) Data set creation with crowd-based reinforcement
US7539689B2 (en) Bundling database
US10496692B1 (en) Resource tagging and grouping
WO2016118429A1 (en) System for efficient processing of transaction requests related to an account in a database
CN105095970A (en) Execution method and system of third-party application
US20140032611A1 (en) Relationship discovery in business analytics
CN106897342A (en) A kind of data verification method and equipment
US11797487B2 (en) Maintaining stable record identifiers in the presence of updated data records
JP2023522882A (en) Dynamic detection and correction of data quality issues
CN109033365A (en) A kind of data processing method and relevant device
US8463799B2 (en) System and method for consolidating search engine results
CN107980147B (en) Tracking data flows in a distributed computing system
US11847120B2 (en) Performance of SQL execution sequence in production database instance
US20230004977A1 (en) Exploiting graph structure to improve results of entity resolution
US9946755B2 (en) Automated hybrid constraint database manager
CN104731633B (en) Rollback method and system after multi partition storage device dismount failure under a kind of linux system
US11178180B2 (en) Risk analysis and access activity categorization across multiple data structures for use in network security mechanisms
Vobugari et al. A roadmap on improved performance-centric cloud storage estimation approach for database system deployment in cloud environment
CN106888244A (en) A kind of method for processing business and device
CN112291241A (en) Firewall wall opening method, firewall wall opening device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant