Synchronous configuration method and device for configuration management data, equipment and storage medium
By synchronizing the configuration and verification of the data center's configuration management data and the configuration management database, the data inconsistency problem between data centers is solved, and data consistency and management standardization between the data center and the database are achieved.
Patent Information
- Application Number
- CN202510748986.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-06-05
AI Technical Summary
The management platforms of various data centers have problems such as inconsistent data, chaotic management, and missing data, which leads to inconsistent data when the data centers are aggregated to the data center infrastructure management platform.
By synchronizing the configuration management data of each data center with the information in the configuration management database, including the synchronization of the model library and the asset library, and then performing mutual verification processing, we ensure bidirectional linkage between the fields of the model and the asset, and achieve data consistency.
The unified consistency of configuration management data of each data center in the configuration management database is achieved, which improves data integrity and management standardization.
Smart Images

Figure CN120768908A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of distributed computing technology, and in particular to a method, apparatus, device, and storage medium for synchronous configuration of configuration management data. Background Art
[0002] With the development of distributed computing technology, data centers under the data center infrastructure management platform are often scattered in multiple regions. Each data center uses its own management platform as support for daily operation and maintenance. In order to improve resource utilization and management standards, the data center infrastructure management platform can be used to centrally manage and track the resources of each data center.
[0003] However, the management platforms corresponding to each data center often have problems such as inconsistent data, chaotic management, and missing data, which may lead to inconsistencies in the data aggregated from each data center to the data center infrastructure management platform. Summary of the Invention
[0004] Based on this, it is necessary to provide a synchronization configuration method, device, equipment and storage medium for configuration management data that can standardize the consistency of data aggregated from various data centers to the data center infrastructure management platform to address the above technical problems.
[0005] In a first aspect, the present application provides a method for synchronously configuring configuration management data, comprising:
[0006] For each data center, synchronize configuration management data based on the configuration management data of the data center and the configuration management data of the configuration management database; the configuration management data includes a model library and an asset library;
[0007] According to the configured model library and the configured asset library, a mutual verification process is performed on the configured model library and the configured asset library to obtain a synchronously configured target model library and target resource library.
[0008] In one embodiment, for each data center, performing synchronization configuration of configuration management data based on information about the configuration management data of the data center and information about the configuration management data in the configuration management database includes:
[0009] Synchronize the model library according to the information of the model library of the data center and the information of the model library of the configuration management database to obtain the configured model library; the information of the model library includes the name, fields and association relationship of the model;
[0010] The asset library is synchronously configured according to the information of the asset library of the data center and the information of the asset library of the configuration management database to obtain the configured asset library; the information of the asset library includes the identification, fields and association relationships of the assets.
[0011] In one embodiment, performing synchronous configuration of the model library based on the information of the model library of the data center and the information of the model library of the configuration management database to obtain the configured model library includes:
[0012] Comparing the model names in the model library of the data center with the model names in the model library of the configuration management database, merging models with the same name in the model library of the data center, and / or creating a new model with a target name; the target name is the name of a model that exists in the model library of the configuration management database but does not exist in the model library of the data center;
[0013] Traversing the fields of the model in the model library of the data center, merging the fields with the same name and data type in the model library of the data center, and creating a new target field; the target field is a field in the model library of the data center that has a different name or data type from that in the model library of the configuration management database;
[0014] Traverse the association relationships of the models in the model library of the data center, and establish corresponding association relationships in the configuration management database.
[0015] In one embodiment, the method further comprises:
[0016] If the peer model corresponding to the association relationship of the model in the model library of the data center does not exist in the data center, the association relationship will be discarded during this establishment process, and the association relationship will be established in the configuration management database after the peer model is established in the data center.
[0017] In one embodiment, performing synchronous configuration of the asset library based on the information of the asset library of the data center and the information of the asset library of the configuration management database to obtain the configured asset library includes:
[0018] According to the asset identifier in the asset library of the data center, query the asset library of the configuration management database for the corresponding asset;
[0019] If the current asset does not exist in the asset library of the configuration management database, then adding the fields and association relationships of the current asset to the asset library of the configuration management database;
[0020] If the current asset exists in the asset library of the configuration management database, the fields and association relationships corresponding to the current asset in the data center are used to overwrite the fields and association relationships of the current asset in the asset library of the configuration management database, and the reason for overwriting, the data before overwriting, and the data after overwriting are recorded.
[0021] In one embodiment, the mutual verification process of the configured model library and the configured asset library according to the configured model library and the configured asset library includes at least one of the following processes:
[0022] If fields are added to the configured model library, corresponding fields are added to the configured asset library;
[0023] If a field is updated in the configured model library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts.
[0024] If a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library;
[0025] If the asset library after configuration adds fields that do not already exist in the model, then the corresponding fields will be added to the model library after configuration;
[0026] If the configured asset library modifies the field data type, the corresponding field will be added to the configured model library;
[0027] If you delete a field in the configured asset library, the corresponding field in the configured model library remains unchanged.
[0028] In a second aspect, the present application further provides a device for synchronously configuring configuration management data, comprising:
[0029] A first configuration module is configured to synchronize configuration management data for each data center based on information about the configuration management data of the data center and information about the configuration management data in the configuration management database; the configuration management data includes a model library and an asset library;
[0030] The second configuration module is used to perform mutual verification processing on the configured model library and the configured asset library according to the configured model library and the configured asset library, so as to obtain a synchronously configured target model library and target resource library.
[0031] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0032] According to the configuration management data information of the data center and the configuration management data information of the configuration management database, synchronization configuration of the configuration management data is performed for each data center; the configuration management data includes a model library and an asset library;
[0033] According to the configured model library and the configured asset library, mutual verification processing is performed on the configured model library and the configured asset library to obtain a target model library and a target resource library after synchronization configuration.
[0034] In a fourth aspect, the present application also provides a computer readable storage medium, having a computer program stored thereon, the computer program being executed by a processor to implement the following steps:
[0035] According to the configuration management data information of the data center and the configuration management data information of the configuration management database, synchronization configuration of the configuration management data is performed for each data center; the configuration management data includes a model library and an asset library;
[0036] According to the configured model library and the configured asset library, mutual verification processing is performed on the configured model library and the configured asset library to obtain a target model library and a target resource library after synchronization configuration.
[0037] In a fifth aspect, the present application also provides a computer program product, comprising a computer program, the computer program being executed by a processor to implement the following steps:
[0038] According to the configuration management data information of the data center and the configuration management data information of the configuration management database, synchronization configuration of the configuration management data is performed for each data center; the configuration management data includes a model library and an asset library;
[0039] According to the configured model library and the configured asset library, mutual verification processing is performed on the configured model library and the configured asset library to obtain a target model library and a target resource library after synchronization configuration.
[0040] The synchronization configuration method, device, equipment and storage medium of the configuration management data can first perform synchronization configuration of the model library and the asset library of the data center and the configuration management database according to the configuration management data information of the data center and the configuration management data information of the configuration management database, to obtain a configured model library and a configured asset library, and then perform mutual verification processing on the configured model library and the configured asset library according to the configured model library and the configured asset library, support field bidirectional linkage between the model and the asset, and make the target model library and the target resource library after synchronization configuration consistent with the configuration management data of the configuration management database. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A schematic diagram of the relationship between a configuration management database and a single data center in one embodiment;
[0043] Figure 2 A flowchart of a method for synchronously configuring configuration management data in one embodiment is shown;
[0044] Figure 3 A schematic flow chart of a method for synchronously configuring configuration management data in another embodiment;
[0045] Figure 4 A schematic flow chart of a method for synchronously configuring configuration management data in another embodiment;
[0046] Figure 5 A flowchart of a method for synchronously configuring a model library in one embodiment;
[0047] Figure 6 A schematic flow chart of a method for synchronously configuring configuration management data in another embodiment;
[0048] Figure 7 A flowchart of a method for synchronously configuring an asset library in one embodiment;
[0049] Figure 8 A schematic diagram of mutual verification between a configured model library and a configured asset library in one embodiment;
[0050] Figure 9 This is an architectural diagram of a method for synchronous configuration of configuration management data in one embodiment;
[0051] Figure 10 A structural block diagram of a device for synchronously configuring configuration management data in one embodiment;
[0052] Figure 11 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0053] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.
[0054] The configuration management data synchronization configuration method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . Figure 1 A schematic diagram of the relationship between a configuration management database and a single data center is shown. Each data center can include a power environment monitoring system and a cluster operation and maintenance monitoring system as shown in Figure 1 . The power environment monitoring system is responsible for monitoring cluster auxiliary equipment such as power supply, heat dissipation, security, access control, temperature and humidity monitoring for data center operation. The cluster operation and maintenance monitoring system is responsible for the management and monitoring of core business resources (machine room, cabinet, switch, server, load balancing, bastion host, intrusion detection) of the data center. The configuration management database can include a monitoring platform, an alarm platform, a message platform, a configuration management module, a large screen display, a report platform and a visualization platform as shown in Figure 1 . The configuration management data of the configuration management database and the data center can be synchronized by the configuration management module in the configuration management database.
[0055] In an exemplary embodiment, as shown in Figure 2 , a configuration management data synchronization configuration method is provided. Taking the computer device where the configuration management database in Figure 1 is located as an example, the method includes the following S201 to S202. Wherein:
[0056] S201, for each data center, according to the information of the configuration management data of the data center and the information of the configuration management data of the configuration management database, the configuration management data is synchronized. The configuration management data includes a model library and an asset library.
[0057] Wherein, each different data center can be distributed in different distributed computer devices, and the computer device where the configuration management database is located can interact with the computer device where each data center is located.
[0058] Exemplarily, the configuration management data in the embodiments of the present application can include a model library composed of models and an asset library composed of assets, wherein the general attribute information of each device in the data center can be defined as a model, and the specific attribute value set of each device can be defined as an asset, that is, the model is a general attribute set and does not involve specific values, such as servers, switches, etc. The asset has specific values of each attribute, such as a specific server.
[0059] In this embodiment, for each data center, the information of the configuration management data of the data center can be compared with the information of the configuration management data of the configuration management database, and the configuration management data of the data center and the configuration management data of the configuration management database can be configured based on the comparison results so that the configuration management data of the two are synchronized. That is, the model library can be synchronously configured based on the information of the model library of the data center and the information of the model library of the configuration management database to obtain the configured model library; the asset library can be synchronously configured based on the information of the asset library of the data center and the information of the asset library of the configuration management database to obtain the configured asset library.
[0060] S202 : performing mutual verification processing on the configured model library and the configured asset library according to the configured model library and the configured asset library to obtain a synchronously configured target model library and target resource library.
[0061] In this embodiment, when a model undergoes a corresponding operation, the asset corresponding to the model is synchronously affected. Furthermore, when an asset undergoes certain operations, the corresponding model is synchronously affected. Therefore, in this embodiment, the configured model library and the configured asset library can be cross-verified to eliminate data conflicts and discrepancies between the two libraries, resulting in a synchronized target model library and target resource library. Furthermore, in this embodiment, by performing cross-verification between the configured model library and the configured asset library, bidirectional linkage between fields in the model and assets is supported, which helps improve data integrity.
[0062] In the above-mentioned method for synchronous configuration of configuration management data, first, for each data center, based on the information of the configuration management data of the data center and the information of the configuration management data of the configuration management database, the model library and the asset library of the data center and the configuration management database can be synchronously configured to obtain the configured model library and the configured asset library. Then, based on the configured model library and the configured asset library, the configured model library and the configured asset library are mutually verified to support two-way linkage of fields between models and assets, so that the consistency of the configuration management data summarized by each data center to the configuration management database can be unified through the obtained synchronized target model library and target resource library.
[0063] In an exemplary embodiment, Figure 3 As shown, the above S201 includes S301 to S302. Among them:
[0064] S301, according to the information of the model library of the data center and the information of the model library of the configuration management database, the model library is synchronously configured to obtain the configured model library; the information of the model library includes the name, fields and association relationship of the model.
[0065] In this embodiment, the model library information may include the model name, fields, and association relationships. For example, if the model is a server, the server association relationship may be the association relationship between the server and the cabinet. Each association relationship may include elements such as model A, model B, association type name, and mapping type. Common association types include "located in," "composed of," and "associated." Mapping types include "1-1," "1-N," "N-1," and "NN."
[0066] Optionally, in this embodiment, the model library of the data center and the model library of the configuration management database can be synchronously configured based on the comparison results of the names, fields and association relationships of the models in the model library of the data center and the names, fields and association relationships of the models in the model library of the configuration management database, so that the configuration information of the two is consistent, and the configured model library is obtained.
[0067] S302 , performing synchronous configuration of the asset library based on the information of the asset library of the data center and the information of the asset library of the configuration management database to obtain a configured asset library; the asset library information includes the identification, fields and association relationships of the assets.
[0068] Optionally, in this embodiment, the identification, fields and association relationships of the assets in the asset library of the data center can be compared with the identification, fields and association relationships of the assets in the resource library of the configuration management database, and the resources existing in the resource library of the configuration management database can be added to the asset library of the data center, and the resources that do not exist in the resource library of the configuration management database can be deleted, and / or, the resources existing in the asset library of the data center can be added to the resource library of the configuration management database, and the resources that do not exist in the asset library of the data center can be deleted, etc.
[0069] In this embodiment, the model library is synchronously configured based on the information of the model library of the data center and the information of the model library of the configuration management database, which can make the configured model library of the data center and the configuration management database consistent. The asset library is synchronously configured based on the information of the asset library of the data center and the information of the asset library of the configuration management database, which can make the configured asset library of the data center and the configuration management database consistent. The consistency of the model library and asset library of the data center and the configuration management database can be normatively adjusted and synchronized.
[0070] In an exemplary embodiment, Figure 4 As shown, the above S301 includes S401 to S403.
[0071] S401, compare the model names in the model library of the data center with the model names in the model library of the configuration management database, merge the models with the same name in the model library of the data center, and / or create a new model with a target name; the target name is the name of the model that exists in the model library of the configuration management database but does not exist in the model library of the data center.
[0072] S402, traverse the fields of the model in the model library of the data center, merge the fields with the same name and data type in the model library of the data center, and create a new target field; the target field is a field in the model library of the data center that has a different name or data type from that in the model library of the configuration management database.
[0073] S403, traversing the association relationships of the models in the model library of the data center, and establishing corresponding association relationships in the configuration management database.
[0074] In this embodiment, as an example, please refer to Figure 5 , Figure 5 A flow chart of a method for synchronously configuring a model library is shown. First, the model names in the model library of the data center can be compared with the model names in the model library of the configuration management database, and the models with the same name in the model library of the data center can be merged. And / or, if a model exists in the module library of the configuration management database, but the name of the model does not exist in the model library of the data center, then a new name of the model can be created in the model library of the data center, that is, a new model with the target name. Then, the fields of the model in the model library of the data center are traversed, and the fields with the same name and data type in the model library of the data center are merged. If there is a target field in the model library of the configuration management database with a different name or data type from that in the model library of the data center, a new corresponding field is created to meet different asset scenarios (that is, the model in the configuration management database supports multiple fields with the same name but different data types). After the field aggregation is completed, the list of association relationships of the models in the model library of the data center is traversed, and the corresponding association relationship is established on the unified platform according to each association relationship of the current model. In addition, if the peer model corresponding to the association relationship of the model in the model library of the data center does not currently exist in the data center, it will be skipped, that is, the association relationship will be discarded during this establishment process, and the association relationship will be established in the configuration management database after the peer model is established in the data center. For example, the corresponding association relationship can be supplemented during the second traversal of the model list.
[0075] In this embodiment, the model libraries of the data center and the configuration management database are synchronously configured based on the model names, fields and association relationships in the model library of the data center and the model names, fields and association relationships in the model library of the configuration management database. This can support field fusion (i.e., support the existence of multiple attributes with the same name but different data types in the model) and association relationship fusion (i.e., support the existence of multiple association relationships with the same name but different directions or different mapping relationships between two models) of models between different configuration management systems. For multi-data center scenarios, a common model library compatible with multiple scenarios can be formed.
[0076] In an exemplary embodiment, Figure 6 As shown, the above S402 includes S501 to S503.
[0077] S501 , according to the asset identifier in the asset library of the data center, query the corresponding asset in the asset library of the configuration management database.
[0078] S502: If the current asset does not exist in the asset library of the configuration management database, the fields and association relationships of the current asset are added to the asset library of the configuration management database.
[0079] S503: If the current asset exists in the asset library of the configuration management database, the fields and associations corresponding to the current asset in the data center are used to overwrite the fields and associations of the current asset in the asset library of the configuration management database, and the reason for overwriting, the data before overwriting, and the data after overwriting are recorded.
[0080] As an example, see Figure 7 , Figure 7 A flowchart of a method for synchronously configuring an asset library is shown. Optionally, in this embodiment, for each data center, a list of all assets can be obtained, and a corresponding aggregation process can be performed on each asset.
[0081] First, obtain the unique identifier of the asset, which is used as a field to determine duplicate assets, such as a serial number, which usually does not change. Then, based on the asset identifier in the asset library of the data center, query the corresponding asset in the asset library of the configuration management database. If the current asset does not exist in the asset library of the configuration management database, directly add the fields and association relationships of the current asset to the asset library of the configuration management database. If the asset with the same unique identifier already exists in the asset library of the configuration management database, that is, the current asset already exists in the asset library of the configuration management database, then compare the field list and association relationship list of the asset item by item, and use the fields and association relationships corresponding to the current asset in the data center to overwrite the fields and association relationships of the current asset in the asset library of the configuration management database, and record the reason for the overwriting, the data before the overwriting, and the data after the overwriting.
[0082] In this embodiment, based on the identification, fields and association relationships of the assets in the asset library of the data center and the identification, fields and association relationships of the assets in the asset library of the configuration management database, the asset library of the data center and the asset library of the configuration management database can be uniformly configured, and the consistency of the assets of the data center and the configuration management database can be normatively adjusted and synchronized.
[0083] In an exemplary embodiment, the above S202 includes any one of the following processes: if a field is added to the configured model library, a corresponding field is added to the configured asset library; if a field is updated in the configured model library, the asset properties are updated in the configured asset library according to the updated field content, and prompt information is given for data conflicts; if a field is deleted from the model in the configured model library, the corresponding field is deleted from the configured asset library; if a field that does not already exist in the model is added to the configured asset library, a corresponding field is added to the configured model library; if the field data type is modified in the configured asset library, a corresponding field is added to the configured model library; if a field in the configured asset library is deleted, the corresponding field in the configured model library remains unchanged.
[0084] As an example, see Figure 8 , Figure 8 A schematic diagram of mutual verification of a configured model library and a configured asset library is shown. In this embodiment, on the one hand, when a corresponding operation occurs in the model, the assets corresponding to the model will be synchronously affected. Therefore, if a field is added to the configured module library, the corresponding field will be added to the configured asset library; if a field is updated in the configured module library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts; if a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library. On the other hand, when some operations occur on the assets, the corresponding model will be synchronously affected. If the configured asset library adds a field that does not already belong to the model, the corresponding field will be added to the configured model library; if the configured asset library modifies the field data type, the corresponding field will be added to the configured model library. If the field already exists, no change will be made. If a field in the configured asset library is deleted, the corresponding field in the configured model library remains unchanged. When a field is deleted from the asset, it will not affect the field in the model.
[0085] In this embodiment, the mutual verification processing of the configured model library and the configured asset library can eliminate data conflicts and differences between the model library and the asset library, support two-way linkage of fields between the model and the asset, and help improve data integrity.
[0086] In order to facilitate the understanding of those skilled in the art, the following Figure 9The synchronization configuration method of the configuration management data provided by this application is introduced in detail:
[0087] in, Figure 9 Cluster A, Cluster B, Cluster C, and Cluster D represent different data centers. Each data center's operations and maintenance platform has corresponding configuration management data (i.e., model and asset repositories). The upper-level unified platform (configuration management database) aggregates the configuration management data (i.e., model and asset repositories) for all data centers. During the synchronization of configuration management data, there are three key components: the model engine, the asset engine, and the model update. The model engine is responsible for synchronizing the data center's model repository with the model repository in the configuration management database, resulting in the configured model repository. The asset engine is responsible for synchronizing the data center's asset repository with the asset repository in the configuration management database, resulting in the configured asset repository. The model update is responsible for cross-verifying the configured model repository and asset repository, resulting in the synchronized target model repository and target resource repository.
[0088] It should be noted that for the above description, reference may be made to the relevant description in the above embodiment, and the effects are similar, so this embodiment will not be repeated here.
[0089] It should be understood that, although the various steps in the flowcharts involved in the above embodiments are displayed in sequence according to the instructions of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps. It is understandable that the various steps in different embodiments can be freely combined as needed, and the various non-contradictory schemes formed by the combination all fall within the scope of protection of this application.
[0090] Based on the same inventive concept, embodiments of the present application also provide a device for synchronizing configuration data for implementing the aforementioned method for synchronizing configuration data. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the device for synchronizing configuration data provided below can be found in the aforementioned method for synchronizing configuration data, and will not be further elaborated here.
[0091] In an exemplary embodiment, Figure 10As shown, a synchronous configuration device for configuration management data is provided, comprising: a first configuration module and a second configuration module, wherein:
[0092] The first configuration module is used to synchronize configuration management data for each data center based on the configuration management data of the data center and the configuration management data of the configuration management database; the configuration management data includes a model library and an asset library.
[0093] The second configuration module is used to perform mutual verification processing on the configured model library and the configured asset library according to the configured model library and the configured asset library to obtain the synchronously configured target model library and target resource library.
[0094] The synchronous configuration device for configuration management data provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0095] In one embodiment, the first configuration module includes: a first configuration unit and a second configuration unit, wherein:
[0096] The first configuration unit is used to synchronize the model library configuration based on the information of the model library in the data center and the information of the model library in the configuration management database to obtain the configured model library; the information of the model library includes the name, fields and association relationships of the model.
[0097] The second configuration unit is used to synchronize the asset library with the asset library information of the data center and the configuration management database to obtain the configured asset library; the asset library information includes the asset identification, fields and association relationships.
[0098] The synchronous configuration device for configuration management data provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0099] In one embodiment, the above-mentioned first configuration unit is used to compare the model names in the model library of the data center with the model names in the model library of the configuration management database, merge the models with the same name in the model library of the data center, and / or create a new model with a target name; the target name is the name of the model that exists in the model library of the configuration management database but does not exist in the model library of the data center; traverse the fields of the model in the model library of the data center, merge the fields with the same name and data type in the model library of the data center, and create a new target field; the target field is a field in the model library of the data center that has a different name or data type from that in the model library of the configuration management database; traverse the association relationship of the models in the model library of the data center, and establish a corresponding association relationship in the configuration management database.
[0100] The synchronous configuration device for configuration management data provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0101] In one embodiment, the above-mentioned first configuration unit is also used to discard the association relationship during the establishment process if the peer model corresponding to the association relationship of the model in the model library of the data center does not exist in the data center, and establish the association relationship in the configuration management database after the peer model is established in the data center.
[0102] The synchronous configuration device for configuration management data provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0103] In one embodiment, the above-mentioned second configuration unit is used to query the corresponding asset in the asset library of the configuration management database based on the asset identifier in the asset library of the data center; if the current asset does not exist in the asset library of the configuration management database, the fields and association relationships of the current asset are added to the asset library of the configuration management database; if the current asset exists in the asset library of the configuration management database, the fields and association relationships corresponding to the current asset in the data center are used to overwrite the fields and association relationships of the current asset in the asset library of the configuration management database, and the reason for the overwriting, the data before the overwriting, and the data after the overwriting are recorded.
[0104] The synchronous configuration device for configuration management data provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0105] In one embodiment, the second configuration module is specifically configured to perform at least one of the following processes:
[0106] If fields are added to the configured model library, corresponding fields are added to the configured asset library;
[0107] If a field is updated in the configured model library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts.
[0108] If a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library;
[0109] If the asset library after configuration adds fields that do not already exist in the model, then the corresponding fields will be added to the model library after configuration;
[0110] If the configured asset library modifies the field data type, the corresponding field will be added to the configured model library;
[0111] If you delete a field in the configured asset library, the corresponding field in the configured model library remains unchanged.
[0112] The synchronous configuration device for configuration management data provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0113] Each module in the aforementioned device for synchronizing configuration management data may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0114] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store configuration management data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for synchronous configuration of configuration management data is implemented.
[0115] Those skilled in the art will understand that Figure 11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0116] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0117] For each data center, synchronize the configuration management data based on the configuration management data of the data center and the configuration management data of the configuration management database; the configuration management data includes the model library and the asset library;
[0118] According to the configured model library and the configured asset library, mutual verification processing is performed on the configured model library and the configured asset library to obtain a synchronously configured target model library and target resource library.
[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0120] Based on the information of the model library in the data center and the information of the model library in the configuration management database, the model library is synchronously configured to obtain the configured model library; the information of the model library includes the name, fields and association relationships of the model;
[0121] Based on the information of the asset library of the data center and the information of the asset library of the configuration management database, the asset library is synchronously configured to obtain the configured asset library; the information of the asset library includes the identification, fields and association relationships of the assets.
[0122] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0123] Comparing the model names in the model library of the data center with the model names in the model library of the configuration management database, merging models with the same name in the model library of the data center, and / or creating a new model with a target name; the target name is the name of the model that exists in the model library of the configuration management database but does not exist in the model library of the data center;
[0124] Traverse the fields of the model in the data center's model library, merge the fields with the same name and data type in the data center's model library, and create a new target field; the target field is a field in the data center's model library that has a different name or data type from that in the configuration management database's model library;
[0125] Traverse the association relationships of models in the model library of the data center and establish corresponding association relationships in the configuration management database.
[0126] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0127] If the peer model corresponding to the association relationship of the model in the data center's model library does not exist in the data center, the association relationship will be discarded during this establishment process, and the association relationship will be established in the configuration management database after the peer model is established in the data center.
[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0129] According to the asset identifier in the asset library of the data center, the corresponding asset is searched in the asset library of the configuration management database;
[0130] If the current asset does not exist in the asset library of the configuration management database, then the fields and association relationships of the current asset are added to the asset library of the configuration management database;
[0131] If the current asset exists in the asset library of the configuration management database, the fields and associations corresponding to the current asset in the data center are used to overwrite the fields and associations of the current asset in the asset library of the configuration management database, and the reason for overwriting, the data before overwriting, and the data after overwriting are recorded.
[0132] In one embodiment, when the processor executes the computer program, it further implements at least one of the following steps:
[0133] If fields are added to the configured model library, corresponding fields are added to the configured asset library;
[0134] If a field is updated in the configured model library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts.
[0135] If a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library;
[0136] If the asset library after configuration adds fields that do not already exist in the model, then the corresponding fields will be added to the model library after configuration;
[0137] If the configured asset library modifies the field data type, the corresponding field will be added to the configured model library;
[0138] If you delete a field in the configured asset library, the corresponding field in the configured model library remains unchanged.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0140] For each data center, synchronize the configuration management data based on the configuration management data of the data center and the configuration management data of the configuration management database; the configuration management data includes the model library and the asset library;
[0141] According to the configured model library and the configured asset library, mutual verification processing is performed on the configured model library and the configured asset library to obtain a synchronously configured target model library and target resource library.
[0142] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0143] Based on the information of the model library in the data center and the information of the model library in the configuration management database, the model library is synchronously configured to obtain the configured model library; the information of the model library includes the name, fields and association relationships of the model;
[0144] Based on the information of the asset library of the data center and the information of the asset library of the configuration management database, the asset library is synchronously configured to obtain the configured asset library; the information of the asset library includes the identification, fields and association relationships of the assets.
[0145] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0146] Comparing the model names in the model library of the data center with the model names in the model library of the configuration management database, merging models with the same name in the model library of the data center, and / or creating a new model with a target name; the target name is the name of the model that exists in the model library of the configuration management database but does not exist in the model library of the data center;
[0147] Traverse the fields of the model in the data center's model library, merge the fields with the same name and data type in the data center's model library, and create a new target field; the target field is a field in the data center's model library that has a different name or data type from that in the configuration management database's model library;
[0148] Traverse the association relationships of models in the model library of the data center and establish corresponding association relationships in the configuration management database.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0150] If the peer model corresponding to the association relationship of the model in the data center's model library does not exist in the data center, the association relationship will be discarded during this establishment process, and the association relationship will be established in the configuration management database after the peer model is established in the data center.
[0151] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0152] According to the asset identifier in the asset library of the data center, the corresponding asset is searched in the asset library of the configuration management database;
[0153] If the current asset does not exist in the asset library of the configuration management database, then the fields and association relationships of the current asset are added to the asset library of the configuration management database;
[0154] If the current asset exists in the asset library of the configuration management database, the fields and associations corresponding to the current asset in the data center are used to overwrite the fields and associations of the current asset in the asset library of the configuration management database, and the reason for overwriting, the data before overwriting, and the data after overwriting are recorded.
[0155] In one embodiment, when the computer program is executed by a processor, at least one of the following steps is further implemented:
[0156] If fields are added to the configured model library, corresponding fields are added to the configured asset library;
[0157] If a field is updated in the configured model library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts.
[0158] If a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library;
[0159] If the asset library after configuration adds fields that do not already exist in the model, then the corresponding fields will be added to the model library after configuration;
[0160] If the configured asset library modifies the field data type, the corresponding field will be added to the configured model library;
[0161] If you delete a field in the configured asset library, the corresponding field in the configured model library remains unchanged.
[0162] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0163] For each data center, synchronize the configuration management data based on the configuration management data of the data center and the configuration management data of the configuration management database; the configuration management data includes the model library and the asset library;
[0164] According to the configured model library and the configured asset library, mutual verification processing is performed on the configured model library and the configured asset library to obtain a synchronously configured target model library and target resource library.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0166] Based on the information of the model library in the data center and the information of the model library in the configuration management database, the model library is synchronously configured to obtain the configured model library; the information of the model library includes the name, fields and association relationships of the model;
[0167] According to information of the asset library of the data center and information of the asset library of the configuration management database, a synchronized configuration of the asset library is performed to obtain a configured asset library; the information of the asset library includes an asset identifier, a field and a correlation.
[0168] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0169] The model names in the model library of the data center are compared with the model names in the model library of the configuration management database, the same-named models in the model library of the data center are merged, and / or the models with target names are newly created; the target names are the names of the models that exist in the model library of the configuration management database but do not exist in the model library of the data center;
[0170] The fields of the models in the model library of the data center are traversed, the same-named fields with the same data types in the model library of the data center are merged, and the target fields are newly created; the target fields are the fields that have different names or different data types in the model library of the data center from those in the model library of the configuration management database;
[0171] The correlation relationships of the models in the model library of the data center are traversed, and the corresponding correlation relationships are established in the configuration management database.
[0172] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0173] If the counterpart model corresponding to the correlation relationship of the model in the model library of the data center does not exist in the data center, the correlation relationship is discarded in this establishment process, and the correlation relationship is established in the configuration management database after the counterpart model is established in the data center.
[0174] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0175] According to the asset identifier in the asset library of the data center, the corresponding asset is queried in the asset library of the configuration management database;
[0176] If the current asset does not exist in the asset library of the configuration management database, the field and the correlation relationship of the current asset are added to the asset library of the configuration management database;
[0177] If the current asset exists in the asset library of the configuration management database, the field and the correlation relationship of the current asset in the asset library of the configuration management database are covered by the field and the correlation relationship of the current asset in the data center, and the covering reason, the data before covering and the data after covering are recorded.
[0178] In one embodiment, the computer program, when executed by the processor, further implements at least one of the following steps:
[0179] If fields are added to the configured model library, corresponding fields are added to the configured asset library;
[0180] If a field is updated in the configured model library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts.
[0181] If a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library;
[0182] If the asset library after configuration adds fields that do not already exist in the model, then the corresponding fields will be added to the model library after configuration;
[0183] If the configured asset library modifies the field data type, the corresponding field will be added to the configured model library;
[0184] If you delete a field in the configured asset library, the corresponding field in the configured model library remains unchanged.
[0185] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.
[0186] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0187] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for synchronous configuration of configuration management data, characterized in that: The method comprises: For each data center, synchronize configuration management data based on the configuration management data of the data center and the configuration management data of the configuration management database; the configuration management data includes a model library and an asset library; According to the configured model library and the configured asset library, a mutual verification process is performed on the configured model library and the configured asset library to obtain a synchronously configured target model library and target resource library.
2. The method according to claim 1, characterized in that For each data center, performing synchronous configuration of configuration management data according to information of the configuration management data of the data center and information of the configuration management data in the configuration management database includes: Synchronize the model library according to the information of the model library of the data center and the information of the model library of the configuration management database to obtain the configured model library; the information of the model library includes the name, fields and association relationship of the model; The asset library is synchronously configured according to the information of the asset library of the data center and the information of the asset library of the configuration management database to obtain the configured asset library; the information of the asset library includes the identification, fields and association relationships of the assets.
3. The method according to claim 2, characterized in that The step of performing synchronous configuration of the model library according to the information of the model library of the data center and the information of the model library of the configuration management database to obtain the configured model library includes: Comparing the model names in the model library of the data center with the model names in the model library of the configuration management database, merging models with the same name in the model library of the data center, and / or creating a new model with a target name; the target name is the name of a model that exists in the model library of the configuration management database but does not exist in the model library of the data center; Traversing the fields of the model in the model library of the data center, merging the fields with the same name and data type in the model library of the data center, and creating a new target field; the target field is a field in the model library of the data center that has a different name or data type from that in the model library of the configuration management database; Traverse the association relationships of the models in the model library of the data center, and establish corresponding association relationships in the configuration management database.
4. The method according to claim 3, characterized in that The method further comprises: If the peer model corresponding to the association relationship of the model in the model library of the data center does not exist in the data center, the association relationship will be discarded during this establishment process, and the association relationship will be established in the configuration management database after the peer model is established in the data center.
5. The method according to claim 2, characterized in that Synchronously configuring the asset library according to the information of the asset library of the data center and the information of the asset library of the configuration management database to obtain the configured asset library includes: According to the asset identifier in the asset library of the data center, query the asset library of the configuration management database for the corresponding asset; If the current asset does not exist in the asset library of the configuration management database, then adding the fields and association relationships of the current asset to the asset library of the configuration management database; If the current asset exists in the asset library of the configuration management database, the fields and association relationships corresponding to the current asset in the data center are used to overwrite the fields and association relationships of the current asset in the asset library of the configuration management database, and the reason for overwriting, the data before overwriting, and the data after overwriting are recorded.
6. The method according to any one of claims 1 to 5, characterized in that The mutual verification process of the configured model library and the configured asset library according to the configured model library and the configured asset library includes at least one of the following processes: If fields are added to the configured model library, corresponding fields are added to the configured asset library; If a field is updated in the configured model library, the asset attributes will be updated in the configured asset library according to the updated field content, and prompt information will be given for data conflicts. If a field is deleted from the model in the configured model library, the corresponding field will be deleted from the configured asset library; If the asset library after configuration adds fields that do not already exist in the model, then the corresponding fields will be added to the model library after configuration; If the configured asset library modifies the field data type, the corresponding field will be added to the configured model library; If you delete a field in the configured asset library, the corresponding field in the configured model library remains unchanged.
7. A synchronous configuration device for configuration management data, characterized in that: The device comprises: A first configuration module is configured to synchronize configuration management data for each data center based on information about the configuration management data of the data center and information about the configuration management data in the configuration management database; the configuration management data includes a model library and an asset library; The second configuration module is used to perform mutual verification processing on the configured model library and the configured asset library according to the configured model library and the configured asset library, so as to obtain a synchronously configured target model library and target resource library.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Asset data processing method and device, computer system and storage medium
CN111325456A
Asset management method and device for cloud platform, equipment and storage medium
CN112115203A
Data asset processing method and device
CN112965952A
Database configuration method and device, computer equipment and readable storage medium
CN113760863A
Universal and simple network management and network element configuration synchronization method and system
CN113938381A
Cited By
Ultrasonic equipment configuration synchronization method and system, ultrasonic equipment and cloud platform
CN121056324A