CN113946592B - Configuration management database updating method, device, equipment, medium and program product - Google Patents

Configuration management database updating method, device, equipment, medium and program product Download PDF

Info

Publication number
CN113946592B
CN113946592B CN202111566970.4A CN202111566970A CN113946592B CN 113946592 B CN113946592 B CN 113946592B CN 202111566970 A CN202111566970 A CN 202111566970A CN 113946592 B CN113946592 B CN 113946592B
Authority
CN
China
Prior art keywords
configuration
scanning
identification
management database
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111566970.4A
Other languages
Chinese (zh)
Other versions
CN113946592A (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.)
Tianyun Software Technology Co ltd
Original Assignee
Hunan Tianyun Software 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 Hunan Tianyun Software Technology Co ltd filed Critical Hunan Tianyun Software Technology Co ltd
Priority to CN202111566970.4A priority Critical patent/CN113946592B/en
Publication of CN113946592A publication Critical patent/CN113946592A/en
Application granted granted Critical
Publication of CN113946592B publication Critical patent/CN113946592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases

Abstract

The application discloses a method, a device, equipment, a medium and a program product for updating a configuration management database. The method comprises the following steps: scanning all nodes in the current network architecture according to at least two scanning protocols, and acquiring identification marks and configuration attribute information corresponding to configuration items connected to the current network architecture based on different scanning protocols; comparing the identification marks obtained by different types of scanning protocols, and comparing the configuration attribute information obtained by different types of scanning protocols to obtain difference information; performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data; the configuration management database is updated according to the reconciliation data. According to the embodiment of the application, the configuration management database can be automatically updated, the updating efficiency is high, and the updating information is comprehensive.

Description

Configuration management database updating method, device, equipment, medium and program product
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for updating a configuration management database.
Background
A Configuration Management Database (CMDB) is used to store and manage various configuration information of devices in the enterprise network architecture, which is closely associated with all service support and service delivery processes. In practical applications, configuration information in a network architecture may change continuously due to online and offline of devices and services, and needs to be synchronized into a database in time. However, the configuration information of the existing CMDB is manually entered in the form of a form, and this manual entry method is not only inefficient, but also causes waste of resources of manpower and material resources, and cannot ensure the accuracy of the configuration information and the real-time property of the configuration information change.
Therefore, in the existing enterprise network architecture, the technical problems of low efficiency and inaccurate information exist in the input of the configuration information.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment, a storage medium and a program product for updating a configuration management database, which can solve the technical problems of low efficiency and inaccurate information in the input of configuration information in the existing network architecture.
In a first aspect, an embodiment of the present application provides a method for updating a configuration management database, where the method includes:
scanning all nodes in the current network architecture according to at least two scanning protocols, and acquiring identification marks and configuration attribute information corresponding to configuration items connected to the current network architecture based on different scanning protocols;
comparing the identification marks obtained by different types of scanning protocols, and comparing the configuration attribute information obtained by different types of scanning protocols to obtain difference information;
performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data;
the configuration management database is updated according to the reconciliation data.
In some embodiments, the obtaining the difference information by comparing the identification obtained by comparing different types of scanning protocols with the configuration attribute information obtained by comparing different types of scanning protocols includes:
determining an identification mark obtained by scanning according to a basic scanning protocol as first identification information;
determining an identification mark which is obtained by scanning according to a supplementary scanning protocol and is the same as the first identification information as second identification information;
comparing the configuration attribute information corresponding to the second identification information with the configuration attribute information corresponding to the first identification information to obtain difference information;
the reconciliation processing of the identification marks and the configuration attribute information obtained by different scanning protocols according to the difference information to obtain the reconciliation data comprises the following steps:
and setting the first identification information, the configuration attribute information corresponding to the first identification information and the difference information as harmonic data.
In some embodiments, the preset reconciliation rule comprises preset scanning protocol priorities corresponding to different configuration item classes; the comparing the identification marks obtained by different types of scanning protocols and the configuration attribute information obtained by different types of scanning protocols to obtain the difference information comprises:
determining an optimal scanning protocol corresponding to each configuration item type in the current scanning protocol according to the preset scanning protocol priority;
determining an identification mark obtained by scanning the optimal scanning protocol corresponding to the configuration item category as third identification information corresponding to the configuration item category;
determining the identification mark which is obtained by scanning the non-optimal scanning protocol and is the same as the first identification information as fourth identification information;
comparing the configuration attribute information corresponding to the fourth identification information with the configuration attribute information corresponding to the third identification information to obtain difference information;
the reconciliation processing of the identification marks and the configuration attribute information obtained by different scanning protocols according to the difference information to obtain the reconciliation data comprises the following steps:
and setting the third identification information, the configuration attribute information corresponding to the third identification information and the difference information as harmonic data.
In some embodiments, the step of updating the configuration management database according to the reconciliation data comprises:
and when the identification mark in the reconciliation data is not stored in the configuration management database, adding the identification mark and the configuration attribute information corresponding to the identification mark into the configuration management database.
In some embodiments, the step of updating the configuration management database according to the reconciliation data comprises:
when the identification mark in the reconciliation data is stored in the configuration management database, and the reconciliation data and the configuration management database are inconsistent with each other and the configuration attribute information corresponding to the identification mark is stored in the configuration management database, judging whether the identification mark is associated with the baseline field;
if the identification mark is associated with the baseline field, generating alarm information according to the identification mark and the corresponding configuration attribute information;
and if the identification mark is not associated with the baseline field, updating the configuration item corresponding to the identification mark in the configuration management database according to the configuration attribute information corresponding to the identification mark.
In some embodiments, the step of updating the configuration management database according to the reconciliation data comprises:
and in the case that the identification mark in the configuration management database does not exist in the reconciliation data, associating the identification mark with the mark to be confirmed.
The scanning protocol is any one of a simple network management protocol, an intelligent platform management interface and network mapping sniffing.
In a second aspect, an embodiment of the present application provides a device for updating a configuration management database, where the device includes:
the scanning module is used for scanning all nodes in the current network architecture according to at least two scanning protocols and acquiring identification marks and configuration attribute information corresponding to configuration items connected to the current network architecture based on different scanning protocols;
the reconciliation module is used for comparing the identification marks obtained by different types of scanning protocols and the configuration attribute information obtained by different types of scanning protocols to obtain difference information; performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data;
and the updating module is used for updating the configuration management database according to the reconciliation data.
In a third aspect, an embodiment of the present application provides a device for updating a configuration management database, where the device includes: a processor and a memory storing computer program instructions;
the configuration management database update method described above is implemented by a processor executing computer program instructions.
In a fourth aspect, embodiments of the present application provide a computer storage medium having computer program instructions stored thereon, where the computer program instructions, when executed by a processor, implement the above configuration management database updating method.
In a fifth aspect, the present application provides a computer program product, which includes computer program instructions, and when the computer program instructions are executed by a processor, the method for updating a configuration management database as above is implemented.
According to the configuration management database updating method, device, equipment, storage medium and program product provided by the embodiment of the application, the current network architecture is scanned through at least two scanning protocols, so that incomplete data scanned by a single scanning protocol can be avoided, the configuration management database can be prevented from being updated incompletely, and the breadth and depth of the obtained identification mark and configuration attribute information can be improved through multiple scanning protocols; the scanned identification marks and the scanned configuration attribute information are subjected to reconciliation processing through a preset reconciliation rule, so that the configuration items input into the configuration management database are not repeated, and the configuration attribute information corresponding to each configuration item is complete; by the updating method, the configuration management database can be automatically updated, and the information entry efficiency and accuracy of each configuration item are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a configuration management database updating method according to an embodiment of the present application;
FIG. 2 is a partial detailed flowchart of a configuration management database update method according to another embodiment of the present application;
FIG. 3 is a partial detailed flowchart of a configuration management database update method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a detailed configuration management database updating method according to a further embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for updating a configuration management database according to an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of a configuration management database updating apparatus according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative only and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The embodiments will be described in detail below with reference to the accompanying drawings.
Currently, an enterprise stores and manages various Configuration information of devices in an enterprise network architecture through a Configuration Management Database (CMDB), and since the Configuration information in the network architecture is continuously changed due to the online and offline of the devices and services, the Configuration information needs to be synchronized into the Database in time. However, the configuration information of the existing CMDB is manually entered in the form of a form, and this manual entry method is not only inefficient, but also causes waste of resources of manpower and material resources, and cannot ensure the accuracy of the configuration information and the real-time property of the configuration information change.
In order to solve the problems in the prior art, embodiments of the present application provide a method, an apparatus, a device, a storage medium, and a program product for updating a configuration management database. First, a method for updating a configuration management database provided in an embodiment of the present application is described below.
Fig. 1 is a flowchart illustrating a configuration management database update method according to an embodiment of the present application. The method comprises the following steps:
s100, scanning all nodes in the current network architecture according to at least two scanning protocols, and acquiring identification marks and configuration attribute information corresponding to configuration items connected to the current network architecture based on different scanning protocols;
s200, comparing identification marks obtained by different types of scanning protocols, and comparing configuration attribute information obtained by different types of scanning protocols to obtain difference information;
s300, performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data;
and S400, updating the configuration management database according to the reconciliation data.
The network architecture is provided with a plurality of configuration items, and the configuration items can be hardware assets or virtual assets. Hardware assets include servers, switches, firewalls, and the like. Virtual assets include virtual machines, containers, and the like. Each configuration item corresponds to an identification mark and configuration attribute information, the identification mark is information which can distinguish each configuration item, and the identification mark can be an IP address, an MAC address and the like, and can also be a user-defined name which is associated with each configuration item in advance by a user. The configuration attribute information includes the number of CPUs, the size of a memory, the size of a hard disk, current limiting information and the like corresponding to each configuration item, and a user can know the mapping relationship between the configuration items, the operation capability of each configuration item and the like through the configuration attribute information corresponding to each configuration item.
A preset time may be preset, and step S100 is automatically executed every preset time to ensure that the data in the configuration management database is updated in time. In step S100, the scanning Protocol may be any one of Simple Network Management Protocol (SNMP), Intelligent Platform Management Interface (IPMI), Network map sniffing (Network Mapper, NMAP), VSCAN, and vssphere. It may also be Link Layer Discovery Protocol (LLDP), ssh (secure shell), wmic (Windows Management instrumentation), and WINRM (Windows Remote Management) protocols. As can be understood by those skilled in the art, the more scanning protocols are used to scan each node in the current network architecture, the more configuration item corresponding information is obtained, so that the more complete the data in the configuration management database is, and the convenience is brought to management by a manager.
Since the raw data collected in step S100 are obtained through different scanning protocols, before step S200 is executed, format conversion may be performed on the raw data collected in step S100 to obtain standard format data that can be recognized by the configuration management database.
The preset reconciliation rule is an operation rule preset by a person skilled in the art to process the acquired original data to obtain reconciliation data for updating the configuration management database. The collected original data is obtained based on different scanning protocols, so that a plurality of same identification marks may exist in the original data, the same identification marks obtained based on different scanning protocols respectively correspond to a plurality of configuration attribute information, and new corresponding values of the configuration attributes may be the same or different. The identification marks obtained by comparing different types of scanning protocols are compared, the configuration attribute information obtained by comparing different types of scanning protocols can obtain difference information, and the identification marks and the configuration attribute information obtained by scanning are subjected to reconciliation processing according to the difference information, so that the condition that a plurality of identification marks correspond to one configuration item does not exist in the obtained reconciliation data, or the condition that one configuration attribute information of one configuration item corresponds to a plurality of numerical values does not exist. And then, updating processing of adding configuration items, deleting configuration items and modifying configuration attribute information is carried out on the configuration management database according to the reconciliation data.
According to the configuration management database updating method, device, equipment, storage medium and program product provided by the embodiment of the application, the current network architecture is scanned through at least two scanning protocols, so that incomplete data scanned by a single scanning protocol can be avoided, the configuration management database can be prevented from being updated incompletely, and the breadth and depth of the obtained identification mark and configuration attribute information can be improved through multiple scanning protocols; the scanned identification marks and the scanned configuration attribute information are subjected to reconciliation processing through a preset reconciliation rule, so that the configuration items input into the configuration management database are not repeated, and the configuration attribute information corresponding to each configuration item is complete; by the updating method, the configuration management database can be automatically updated, and the information entry efficiency and accuracy of each configuration item are improved.
As an alternative embodiment, the scanning protocol comprises a base scanning protocol and a supplemental scanning protocol; referring to fig. 2, the step S200 may include:
s210, determining an identification mark obtained by scanning according to a basic scanning protocol as first identification information;
s220, determining the identification identifier which is obtained by scanning according to the supplementary scanning protocol and is the same as the first identification information as second identification information;
s230, comparing the configuration attribute information corresponding to the first identification information with the configuration attribute information corresponding to the second identification information to obtain difference information;
step S300 includes:
s240, setting the first identification information, the configuration attribute information corresponding to the first identification information and the difference information as harmonic data.
The technical personnel in the field can classify the existing scanning protocols into a basic scanning protocol and a supplementary scanning protocol according to actual needs, the basic scanning protocol is a protocol with high accuracy of scanning results and large influence on a network architecture, and the results obtained by the scanning of the protocols are directly used for updating a configuration management database. The scanning result obtained based on the supplementary scanning protocol is only used for updating the configuration attribute information of each configuration item in the configuration management database.
The difference information includes the following two cases: in the first case, a certain type of configuration attribute information corresponding to the first identifier is the same as a certain type of configuration attribute information corresponding to the second identifier, but the two types of configuration attribute information are different in value, and a user sets whether to add the configuration attribute information corresponding to the first identifier to the harmonic data or to add the configuration attribute information corresponding to the second identifier to the harmonic data as required; in the second case, some kind of configuration attribute information corresponding to the second identifier does not exist in the multiple kinds of configuration attribute information corresponding to the first identifier, and the configuration attribute information corresponding to the second identifier is directly added to the reconciliation data.
For example, in an embodiment, scanning is performed based on Nmap and Snmp, Nmap is set as a basic scanning protocol, Snmp is set as a supplementary scanning protocol, identification identifiers such as an IP address, a mac address, and a hostmane obtained by Nmap scanning are set as first identification information, and configuration item port information, a version number, and the like obtained by Nmap scanning are configuration attribute information corresponding to the first identification information. And setting identification marks, such as an IP address, a mac address and a hostmane, obtained by Snmp scanning, which are the same as the first identification information as second identification information, comparing configuration attribute information, such as a version number, equipment performance and resource utilization rate, obtained by Snmp scanning, with the configuration attribute information obtained by Nmap scanning, and taking the configuration attribute information, such as equipment performance and resource utilization rate, which cannot be obtained by Nmap scanning, as difference information, wherein the difference information is used for supplementing the configuration attribute information corresponding to the first identification information.
Through steps S210 to S240, the scanning result of the basic scanning protocol is automatically entered into the configuration management database, and the scanning result of the supplementary scanning protocol perfects the attributes of each configuration item in the configuration management database in a completion manner. Repeated comparison of scanning results of all scanning protocols is avoided, the speed of inputting configuration items into the configuration management database is increased, and meanwhile the integrity of configuration attribute information corresponding to each configuration item is guaranteed.
As an alternative embodiment, the preset reconciliation rule comprises preset scanning protocol priorities corresponding to different configuration item classes; referring to fig. 3, the step S200 may include:
s250, determining the optimal scanning protocol corresponding to each configuration item type in the current scanning protocol according to the preset scanning protocol priority;
s260, determining an identification mark obtained by scanning the optimal scanning protocol corresponding to the configuration item class as third identification information corresponding to the configuration item class;
s270, determining the identification identifier which is obtained by scanning the non-optimal scanning protocol and is the same as the first identification information as fourth identification information;
s280, comparing the configuration attribute information corresponding to the third identification information with the configuration attribute information corresponding to the fourth identification information to obtain difference information;
step S300 includes:
and S290, setting the third identification information, the configuration attribute information corresponding to the third identification information and the difference information as harmonic data.
In this embodiment, the configuration item category is preset to classify the configuration items by the configuration item category, and the configuration items can be classified into a virtual category and a hardware category; the storage class, the application class and the like, set the optimal scanning protocol for different configuration item classes, and only use the identification obtained by scanning the optimal scanning protocol for adding or deleting the configuration item corresponding to the configuration item class in the configuration management database. The identification mark obtained by scanning the non-optimal scanning protocol does not participate in updating the configuration management database, and the configuration attribute information obtained by scanning the non-optimal scanning protocol participates in updating the configuration management database.
As an alternative embodiment, referring to fig. 4, the step S400 may include:
s410, under the condition that the identification mark in the reconciliation data is not stored in the configuration management database, adding the identification mark and the configuration attribute information corresponding to the identification mark into the configuration management database;
when the identification mark in the reconciliation data is stored in the configuration management database, the configuration attribute information corresponding to the identification mark in the configuration management database can be directly updated according to the configuration attribute information corresponding to the identification mark.
When the identification mark is not found in the configuration management database, the configuration item corresponding to the identification mark is represented as newly added in the network architecture, and the identification mark and the corresponding configuration attribute information are added into the configuration management database together, so that the automatic asset entry of the configuration management database is realized. When the identification is found in the configuration management database, it means that the configuration item corresponding to the identification has been added to the configuration management database, and at this time, only the configuration attribute information corresponding to the identification needs to be updated in the configuration management database.
As an alternative embodiment, the S400 may further include:
s420, judging whether the identification mark is associated with the baseline field or not under the condition that the identification mark in the reconciliation data is stored in the configuration management database, and the reconciliation data is inconsistent with the configuration attribute information corresponding to the identification mark in the configuration management database;
if the identification mark is associated with the baseline field, executing S430, and generating alarm information according to the identification mark and the corresponding configuration attribute information;
if the id does not associate with the baseline field, S440 is executed, and the configuration item corresponding to the id in the configuration management database is updated according to the configuration attribute information corresponding to the id.
The baseline field is preset by a person skilled in the art according to needs, and the identification associated with the baseline field indicates that the configuration item corresponding to the identification is an important item and cannot be easily changed. Therefore, when the configuration attribute information corresponding to the configuration item associated with the baseline field changes, the alarm information is generated, so that the user can quickly find that the configuration item changes, and check the configuration item in time. The configuration attribute information corresponding to the configuration items of the unassociated baseline fields can be directly updated according to the harmonic data.
As an alternative embodiment, the S400 may further include:
and S450, associating the identification mark with the mark to be confirmed under the condition that the identification mark in the configuration management database does not exist in the reconciliation data.
Further manual confirmation can be performed according to the identification mark associated with the mark to be confirmed so as to confirm whether the configuration item is offline or abandoned. The configuration items associated with the to-be-confirmed identifier and the configuration items not associated with the to-be-confirmed identifier can be displayed in a differentiated manner, so that a user can quickly see the configuration items associated with the to-be-confirmed identifier, and further confirm whether the configuration items and the configuration attribute information are deleted or not.
Based on the configuration management database updating method provided by the above embodiment, correspondingly, the application further provides a specific implementation manner of the configuration management database updating device. Please see the examples below.
Referring first to fig. 5, a configuration management database updating apparatus 900 provided in an embodiment of the present application includes the following modules:
a scanning module 901, configured to scan all nodes in a current network architecture according to at least two scanning protocols, and obtain, based on different scanning protocols, an identification identifier and configuration attribute information corresponding to a configuration item connected to the current network architecture;
a reconciliation module 902, configured to compare identification identifiers obtained by different types of scanning protocols, and compare configuration attribute information obtained by different types of scanning protocols to obtain difference information; performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data;
and an updating module 903, configured to update the configuration management database according to the reconciliation data.
The current network architecture is scanned through at least two scanning protocols, so that incomplete data scanned by a single scanning protocol can be avoided, incomplete updating of a configuration management database can be avoided, and the breadth and depth of the obtained identification mark and configuration attribute information can be improved through multiple scanning protocols; the scanned identification marks and the scanned configuration attribute information are subjected to reconciliation processing through a preset reconciliation rule, so that the configuration items input into the configuration management database are not repeated, and the configuration attribute information corresponding to each configuration item is complete; by the updating method, the configuration management database can be automatically updated, and the information entry efficiency and accuracy of each configuration item are improved.
As an implementation of the present application, the scanning protocol includes a basic scanning protocol and a supplementary scanning protocol; the reconciliation module 902 may include:
the basic scanning unit is used for determining the identification mark obtained by scanning according to the basic scanning protocol as first identification information;
the supplementary scanning unit is used for determining the identification identifier which is obtained by scanning according to a supplementary scanning protocol and is the same as the first identification information as second identification information;
the difference comparison unit is used for comparing the configuration attribute information corresponding to the second identification information with the configuration attribute information corresponding to the first identification information to obtain difference information;
and the data generation unit is used for setting the first identification information, the configuration attribute information corresponding to the first identification information and the difference information as harmonic data.
As an implementation of the present application, the preset reconciliation rule includes preset scanning protocol priorities corresponding to different configuration item categories; in order to implement splitting of the general ledger data source, the aforementioned reconciliation module 902 may further include:
the priority scanning unit is used for determining the optimal scanning protocol corresponding to each configuration item type in the current scanning protocol according to the preset scanning protocol priority;
the scanning module is further configured to determine an identification mark obtained by scanning the optimal scanning protocol corresponding to the configuration item category as third identification information corresponding to the configuration item category;
the non-priority scanning unit is used for determining the identification identifier which is obtained by scanning the non-optimal scanning protocol and is the same as the first identification information as fourth identification information;
the difference comparison unit is used for comparing the configuration attribute information corresponding to the fourth identification information with the configuration attribute information corresponding to the third identification information to obtain difference information;
and the data generation unit is used for setting the third identification information, the configuration attribute information corresponding to the third identification information and the difference information as harmonic data.
As an implementation manner of the present application, the update module 903 may include:
and adding a configuration item unit, which is used for adding the identification mark and the configuration attribute information corresponding to the identification mark into the configuration management database under the condition that the identification mark in the reconciliation data is not stored in the configuration management database.
As an implementation manner of the present application, the update module 903 may include:
the judging unit is used for judging whether the identification mark is associated with the baseline field or not under the condition that the identification mark in the reconciliation data is stored in the configuration management database, and the reconciliation data is inconsistent with the configuration attribute information corresponding to the identification mark in the configuration management database;
the alarm unit is used for generating alarm information according to the identification identifier and the corresponding configuration attribute information if the identification identifier is associated with the baseline field;
and the attribute updating unit is used for updating the configuration item corresponding to the identification mark in the configuration management database according to the configuration attribute information corresponding to the identification mark if the identification mark is not associated with the baseline field.
As an implementation manner of the present application, the update module 903 may include:
and the association unit is used for associating the identification mark with the mark to be confirmed under the condition that the identification mark in the configuration management database does not exist in the reconciliation data.
As an implementation manner of the present application, the scanning protocol is any one of a simple network management protocol, an intelligent platform management interface, and a network mapping sniffing.
The configuration management database updating apparatus provided in the embodiment of the present application can implement each step in the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
Fig. 6 shows a hardware structure diagram of a configuration management database updating device according to an embodiment of the present application.
The configuration management database update apparatus may comprise a processor 1001 and a memory 1002 in which computer program instructions are stored.
Specifically, the processor 1001 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 1002 may include mass storage for data or instructions. By way of example, and not limitation, memory 1002 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, magnetic tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 1002 may include removable or non-removable (or fixed) media, where appropriate. The memory 1002 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 1002 is non-volatile solid-state memory.
The memory may include Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform operations described with reference to the methods according to an aspect of the present disclosure.
The processor 1001 realizes any one of the configuration management database update methods in the above embodiments by reading and executing computer program instructions stored in the memory 1002.
In one example, the configuration management database update apparatus may further include a communication interface 1003 and a bus 1010. As shown in fig. 6, the processor 1001, the memory 1002, and the communication interface 1003 are connected to each other via a bus 1010 to complete communication therebetween.
The communication interface 1003 is mainly used for implementing communication between modules, apparatuses, units and/or devices in this embodiment.
The bus 1010 includes hardware, software, or both to couple the components of the configuration management database update apparatus to one another. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 1010 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The configuration management database updating device may be based on the above embodiments, so as to implement the configuration management database updating method and apparatus described in conjunction with fig. 1 to 5.
In addition, in combination with the configuration management database updating method in the foregoing embodiment, the embodiment of the present application may provide a computer storage medium to implement. The computer storage medium having computer program instructions stored thereon; when executed by a processor, the computer program instructions implement any one of the configuration management database updating methods in the embodiments described above, and can achieve the same technical effect, and are not described herein again to avoid repetition. The computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, which is not limited herein.
In addition, the present application also provides a computer program product, which includes computer program instructions, and when the computer program instructions are executed by a processor, the steps and the corresponding contents of the foregoing method embodiments can be implemented.
It is to be understood that the present application is not limited to the particular arrangements and instrumentality described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
The functional blocks shown in the above structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As will be apparent to those skilled in the art, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.

Claims (10)

1. A method for updating a configuration management database, the method comprising:
scanning all nodes in the current network architecture according to at least two scanning protocols, and acquiring identification marks and configuration attribute information corresponding to configuration items connected to the current network architecture based on different scanning protocols;
comparing the identification marks obtained by different types of scanning protocols, and comparing the configuration attribute information obtained by different types of scanning protocols to obtain difference information;
performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data;
updating a configuration management database according to the reconciliation data;
wherein the scanning protocol comprises a base scanning protocol and a supplemental scanning protocol; the comparing the identification marks obtained by different types of scanning protocols and the configuration attribute information obtained by different types of scanning protocols to obtain the difference information comprises:
determining an identification mark obtained by scanning according to a basic scanning protocol as first identification information;
determining an identification mark which is obtained by scanning according to a supplementary scanning protocol and is the same as the first identification information as second identification information;
comparing the configuration attribute information corresponding to the second identification information with the configuration attribute information corresponding to the first identification information to obtain difference information;
the reconciliation processing of the identification marks and the configuration attribute information obtained by different scanning protocols according to the difference information to obtain the reconciliation data comprises the following steps:
and setting the first identification information, the configuration attribute information corresponding to the first identification information and the difference information as harmonic data.
2. The configuration management database update method according to claim 1, wherein the preset reconciliation rule comprises preset scanning protocol priorities corresponding to different configuration item classes; the comparing the identification marks obtained by different types of scanning protocols and the configuration attribute information obtained by different types of scanning protocols to obtain the difference information comprises:
determining an optimal scanning protocol corresponding to each configuration item type in the current scanning protocol according to the preset scanning protocol priority;
determining an identification mark obtained by scanning the optimal scanning protocol corresponding to the configuration item category as third identification information corresponding to the configuration item category;
determining the identification mark which is obtained by scanning the non-optimal scanning protocol and is the same as the first identification information as fourth identification information;
comparing the configuration attribute information corresponding to the fourth identification information with the configuration attribute information corresponding to the third identification information to obtain difference information;
the reconciliation processing of the identification marks and the configuration attribute information obtained by different scanning protocols according to the difference information to obtain the reconciliation data comprises the following steps:
and setting the third identification information, the configuration attribute information corresponding to the third identification information and the difference information as harmonic data.
3. The configuration management database updating method according to claim 1, wherein said updating the configuration management database according to the reconciliation data comprises:
and when the identification mark in the reconciliation data is not stored in the configuration management database, adding the identification mark and the configuration attribute information corresponding to the identification mark into the configuration management database.
4. The configuration management database updating method according to claim 1, wherein said updating the configuration management database according to the reconciliation data comprises:
when the identification mark in the reconciliation data is stored in the configuration management database, and the reconciliation data and the configuration management database are inconsistent with each other and the configuration attribute information corresponding to the identification mark is in the inconsistent state, judging whether the identification mark is associated with the baseline field;
if the identification mark is associated with the baseline field, generating alarm information according to the identification mark and the corresponding configuration attribute information;
and if the identification mark is not associated with the baseline field, updating the configuration item corresponding to the identification mark in the configuration management database according to the configuration attribute information corresponding to the identification mark.
5. The configuration management database updating method according to claim 1, wherein said updating the configuration management database according to the reconciliation data comprises:
and in the case that the identification mark in the configuration management database does not exist in the reconciliation data, associating the identification mark with the mark to be confirmed.
6. The configuration management database update method according to any one of claims 1 to 5, wherein the scanning protocol is any one of a simple network management protocol, an intelligent platform management interface, and a network mapping sniff.
7. A configuration management database update apparatus, comprising:
the scanning module is used for scanning all nodes in the current network architecture according to at least two scanning protocols and acquiring identification marks and configuration attribute information corresponding to configuration items connected to the current network architecture based on different scanning protocols;
the reconciliation module is used for comparing the identification marks obtained by different types of scanning protocols and the configuration attribute information obtained by different types of scanning protocols to obtain difference information; performing reconciliation processing on the identification marks and the configuration attribute information acquired by different scanning protocols according to the difference information to obtain reconciliation data;
the updating module is used for updating the configuration management database according to the harmonic data;
wherein the scanning protocol comprises a base scanning protocol and a supplemental scanning protocol; the reconciliation module comprises:
the basic scanning unit is used for determining the identification mark obtained by scanning according to the basic scanning protocol as first identification information;
the supplementary scanning unit is used for determining the identification identifier which is obtained by scanning according to a supplementary scanning protocol and is the same as the first identification information as second identification information;
the difference comparison unit is used for comparing the configuration attribute information corresponding to the second identification information with the configuration attribute information corresponding to the first identification information to obtain difference information;
and the data generation unit is used for setting the first identification information, the configuration attribute information corresponding to the first identification information and the difference information as harmonic data.
8. A configuration management database update apparatus characterized by comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the configuration management database update method of any of claims 1-6.
9. A computer storage medium having computer program instructions stored thereon which, when executed by a processor, implement the configuration management database update method of any one of claims 1-6.
10. A computer program product comprising computer program instructions which, when executed by a processor, implement the configuration management database update method of any of claims 1 to 6.
CN202111566970.4A 2021-12-21 2021-12-21 Configuration management database updating method, device, equipment, medium and program product Active CN113946592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111566970.4A CN113946592B (en) 2021-12-21 2021-12-21 Configuration management database updating method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111566970.4A CN113946592B (en) 2021-12-21 2021-12-21 Configuration management database updating method, device, equipment, medium and program product

Publications (2)

Publication Number Publication Date
CN113946592A CN113946592A (en) 2022-01-18
CN113946592B true CN113946592B (en) 2022-03-22

Family

ID=79339461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111566970.4A Active CN113946592B (en) 2021-12-21 2021-12-21 Configuration management database updating method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN113946592B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116264009B (en) * 2022-06-21 2023-10-27 中兴通讯股份有限公司 Data processing method, data processing terminal and storage medium of photovoltaic system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325170A (en) * 2011-08-24 2012-01-18 无锡中科方德软件有限公司 Data extraction and integration method and system thereof
CN102801559A (en) * 2012-08-03 2012-11-28 南京富士通南大软件技术有限公司 Intelligent local area network data collecting method
CN106095837A (en) * 2016-06-01 2016-11-09 杭州中奥科技有限公司 It is applicable to data system and the data processing method of industrial and commercial all kinds of business
CN106549781A (en) * 2015-09-18 2017-03-29 北京国双科技有限公司 server monitoring list updating method and device
CN111682963A (en) * 2020-05-22 2020-09-18 北京思特奇信息技术股份有限公司 CMDB-based resource configuration management system and management method
CN112800408A (en) * 2021-04-15 2021-05-14 工业信息安全(四川)创新中心有限公司 Industrial control equipment fingerprint extraction and identification method based on active detection
CN113672203A (en) * 2021-08-26 2021-11-19 优维科技(深圳)有限公司 Model inheritance method for CMDB configuration management

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7552111B2 (en) * 2006-09-08 2009-06-23 Ricoh Co., Ltd. System, method, and computer program product for identification of vendor and model name of a remote device among multiple network protocols
US20080126306A1 (en) * 2006-11-28 2008-05-29 Fatima Corona System and method for automatic configuration of network devices
US8302088B2 (en) * 2008-10-15 2012-10-30 International Business Machines Corporation Analysis of effects of a software maintenance patch on configuration items of a CMDB
CN103377061A (en) * 2012-04-27 2013-10-30 鸿富锦精密工业(深圳)有限公司 Firmware updating management system and method
FR3011706B1 (en) * 2013-10-07 2017-03-03 Schneider Electric Ind Sas ETHERNET EQUIPMENT CONFIGURATION DEVICE AND ETHERNET EQUIPMENT CONFIGURATION METHOD USING SUCH A DEVICE
CN106951261A (en) * 2017-03-27 2017-07-14 武汉斗鱼网络科技有限公司 Data managing method and device
CN110443560B (en) * 2019-06-14 2024-04-02 平安科技(深圳)有限公司 Protocol data management method, device, computer equipment and storage medium
US11188553B2 (en) * 2019-12-31 2021-11-30 Servicenow, Inc. System and method for importation of configuration item (CI) data into a configuration management database (CMDB)
CN111431753A (en) * 2020-04-02 2020-07-17 深信服科技股份有限公司 Asset information updating method, device, equipment and storage medium
CN112764874B (en) * 2020-12-28 2024-03-12 中国人寿保险股份有限公司上海数据中心 Virtual machine server information acquisition method based on CMDB configuration management system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325170A (en) * 2011-08-24 2012-01-18 无锡中科方德软件有限公司 Data extraction and integration method and system thereof
CN102801559A (en) * 2012-08-03 2012-11-28 南京富士通南大软件技术有限公司 Intelligent local area network data collecting method
CN106549781A (en) * 2015-09-18 2017-03-29 北京国双科技有限公司 server monitoring list updating method and device
CN106095837A (en) * 2016-06-01 2016-11-09 杭州中奥科技有限公司 It is applicable to data system and the data processing method of industrial and commercial all kinds of business
CN111682963A (en) * 2020-05-22 2020-09-18 北京思特奇信息技术股份有限公司 CMDB-based resource configuration management system and management method
CN112800408A (en) * 2021-04-15 2021-05-14 工业信息安全(四川)创新中心有限公司 Industrial control equipment fingerprint extraction and identification method based on active detection
CN113672203A (en) * 2021-08-26 2021-11-19 优维科技(深圳)有限公司 Model inheritance method for CMDB configuration management

Also Published As

Publication number Publication date
CN113946592A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN108200111B (en) Resource configuration information updating method and device and resource interface equipment
CN113946592B (en) Configuration management database updating method, device, equipment, medium and program product
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN111038906A (en) Order sorting method and device
CN111581502A (en) Information notification method and device
CN110674231A (en) Data lake-oriented user ID integration method and system
CN110990350B (en) Log analysis method and device
CN113472574A (en) Method, device, medium and electronic equipment for monitoring user equipment based on 5G private network
CN113572630A (en) Method and device for generating network configuration information, electronic equipment and medium
CN115905145A (en) File processing method, device, equipment and computer storage medium
CN112204527A (en) Method and system for processing engineering data in a multi-engineering system environment
CN115242839A (en) Internet of things cascading data transmission method and device, electronic equipment and storage medium
CN112860811B (en) Method and device for determining data blood relationship, electronic equipment and storage medium
CN114071448B (en) Data transmission method, related network node and storage medium
TW202236136A (en) Data storage method, apparatus, and device, and storage medium
CN111193805B (en) Resource discovery method and device
CN115167351A (en) Controller function updating method and system, vehicle and server
CN112417259B (en) Media resource processing method, device, equipment and storage medium
CN110909288B (en) Service data processing method, device, platform, service end, system and medium
CN113535830A (en) Automatic interface expansion method, device, equipment and storage medium
CN110929500B (en) File comparison method and related device
CN115640290A (en) Data layering method, device and equipment and computer storage medium
CN111966641B (en) Universal log normalization model configuration method and device
CN113901431B (en) Method and device for extracting characteristic information of authenticated user

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
CP01 Change in the name or title of a patent holder

Address after: 410000 Room 301, R&D Headquarters, Central South University Science Park, Yuelu Street, Yuelu District, Changsha City, Hunan Province

Patentee after: Tianyun Software Technology Co.,Ltd.

Address before: 410000 Room 301, R&D Headquarters, Central South University Science Park, Yuelu Street, Yuelu District, Changsha City, Hunan Province

Patentee before: Hunan Tianyun Software Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder