Configuration information processing method and device, electronic equipment and storage medium

By generating the target configuration item collection process and utilizing the cross-platform compilation capabilities of Go language, configuration information is automatically collected and sent, and the cumbersome configuration information processing in the existing technology is solved, and efficient and accurate configuration information management is achieved.

CN120540935APending Publication Date: 2025-08-26太保科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510623605.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

In the prior art, the configuration information processing relies on manual operations, which leads to cumbersome processing processes and is not conducive to subsequent operation and maintenance management.

Method used

By obtaining the configuration item registration file of the target device and a set of predefined acquisition indicator interfaces, the target configuration item acquisition process is generated, and automatically collected and sent to the configuration management database. The cross-platform compilation capabilities of the Go language are used to build configuration item variables that are adapted to different operating environments, and dynamically update them through the observer mode monitoring operation strategy.

Benefits of technology

It realizes automatic collection of configuration information, improves processing efficiency and accuracy, enhances environmental adaptability, reduces development work, and improves collection efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120540935A_ABST
    Figure CN120540935A_ABST
Patent Text Reader

Abstract

The invention provides a configuration information processing method and device, electronic equipment and a storage medium. The method comprises the steps that a configuration item registration file of target equipment is obtained, the configuration item registration file comprises multiple configuration items corresponding to the target equipment and a collection index interface set associated with the multiple configuration items, and each collection index interface in the collection index interface set is used for achieving predefined collection logic of one configuration item; according to the configuration item registration file and a predefined acquisition program template, generating a target configuration item acquisition process for the target equipment; in response to a starting instruction for a target configuration item acquisition process, scheduling each acquisition index interface in the acquisition index interface set to obtain target configuration information of the target equipment; and sending the target configuration information of the target equipment to a configuration management database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application mainly relates to the field of information technology, and in particular to a configuration information processing method, device, electronic device and storage medium. Background Art

[0002] Large-scale information systems often require timely review and organization of device configuration information (such as operating system versions) to ensure that services meet operational requirements. Currently, much of this configuration information processing relies on manual operations by operations and maintenance personnel. For example, they must manually log in to different servers, check operating system versions and other information, and then manually organize it into a configuration management database. This process is cumbersome and hinders subsequent operational management. Summary of the Invention

[0003] The purpose of this application is to provide a configuration information processing method, device, electronic device and storage medium to solve the above technical problems.

[0004] In a first aspect, a configuration information processing method is provided, comprising:

[0005] Obtaining a configuration item registration file for a target device, the configuration item registration file including multiple configuration items corresponding to the target device and a collection indicator interface set associated with the multiple configuration items, each collection indicator interface in the collection indicator interface set being used to implement predefined collection logic for one of the configuration items;

[0006] Generate a target configuration item collection process for the target device according to the configuration item registration file and the predefined collection program template;

[0007] In response to a start instruction for the target configuration item acquisition process, scheduling each acquisition indicator interface in the acquisition indicator interface set to obtain target configuration information of the target device;

[0008] The target configuration information of the target device is sent to a configuration management database.

[0009] In some embodiments, before obtaining the configuration item registration file of the target device, the method further includes:

[0010] sending a configuration item registration request for the target device to a registrar, so that the registrar determines and records the plurality of configuration items based on the configuration item registration request;

[0011] For the multiple configuration items, a collection indicator interface set associated with the multiple configuration items is determined according to a predefined association relationship between the configuration items and the collection indicator interface.

[0012] In some embodiments, before obtaining the configuration item registration file of the target device, the method further includes:

[0013] determining a plurality of configuration item variables corresponding to each of the plurality of configuration items; and

[0014] For each of the multiple configuration items, multiple Go language tags are constructed according to the corresponding multiple configuration item variables, and each Go language tag in the multiple Go language tags is used to generate an executable file applicable to one of the configuration item variables.

[0015] In some embodiments, the scheduling the collection indicator interface set in the configuration item registration file to obtain target configuration information of the target device includes:

[0016] Determining a target collection strategy for the plurality of configuration items, the target collection strategy including a collection order among the plurality of configuration items;

[0017] According to the acquisition order, each acquisition indicator interface in the acquisition indicator interface set is scheduled in turn to obtain the target configuration information of the target device.

[0018] In some embodiments, it further includes:

[0019] In response to an automatic detection instruction for a specified configuration item, determining a target software corresponding to the specified configuration item, and determining a configuration file location of the target software according to a predefined configuration path rule;

[0020] Obtain the configuration file content corresponding to the configuration file location;

[0021] Extract key configuration parameters and running status information of the target software of the specified configuration item from the configuration file content.

[0022] In some embodiments, determining the target software corresponding to the specified configuration item includes:

[0023] Searching the target process corresponding to the specified configuration item by scanning the operating system process list of the target device; and

[0024] The target software is determined according to the target process.

[0025] In some embodiments, it further includes:

[0026] Based on the observer mode, monitor whether the operation policy for the specified configuration item has changed, wherein the operation policy is used to indicate the autonomous collection task for the specified configuration item;

[0027] When a change in the operating strategy is detected, a hot reload event is initiated for the specified configuration item to start a new autonomous collection task for the specified configuration item. The hot reload event is used to indicate the changed operating strategy.

[0028] In a second aspect, a configuration information processing apparatus is provided, comprising:

[0029] an acquisition module, configured to acquire a configuration item registration file of a target device, the configuration item registration file including multiple configuration items corresponding to the target device and a collection indicator interface set associated with the multiple configuration items, each collection indicator interface in the collection indicator interface set being configured to implement predefined collection logic for one of the configuration items;

[0030] A generating module, configured to generate a target configuration item collection process for the target device according to the configuration item registration file and a predefined collection program template;

[0031] a scheduling module, configured to, in response to a start instruction for the target configuration item acquisition process, schedule each acquisition indicator interface in the acquisition indicator interface set to obtain target configuration information of the target device;

[0032] The transmission module is used to send the target configuration information of the target device to the configuration management database.

[0033] In a third aspect, an electronic device is provided. The electronic device includes: one or more processors; and one or more memories coupled to the one or more processors and storing instructions thereon. When the one or more processors execute the instructions individually or collectively, the network device executes the configuration information processing method described above.

[0034] In a fourth aspect, a non-transitory computer-readable storage medium storing machine-executable instructions is provided. The machine-executable instructions, when executed by one or more processors of a machine, cause the machine to perform any one of the above methods.

[0035] Compared with the related art, the present application can achieve the following beneficial effects:

[0036] 1) In one embodiment of the present application, by defining different types of configuration items and collection indicator interfaces, general resources required for configuration information collection are provided. For a target device in the information system, a target configuration item collection process for the target device can be generated based on its configuration item registration file and predefined collection program template, thereby realizing automatic collection of target configuration information and improving the processing efficiency and accuracy of configuration information.

[0037] 2) In another embodiment of the present application, multiple Go language tags are constructed according to multiple configuration item variables corresponding to each configuration item, and the cross-platform compilation capability of the Go language is utilized to improve the environmental adaptability of the information system, reduce the development work required for different configuration item variables, and improve the efficiency of configuration item development.

[0038] 3) In another embodiment of the present application, the information system can automatically collect configuration file information of specified configuration items from the configuration file content without manual intervention, further improving the automation level and collection efficiency of configuration information collection.

[0039] 4) In another embodiment of the present application, the autonomous collection task of a specified configuration item can be dynamically updated through a hot reload event, thereby improving the flexibility of the automatic collection task for a single configuration item.

[0040] It should be understood that the invention summary is not intended to identify the key or essential features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are included to provide a further understanding of the present application. They are incorporated into and constitute a part of this application. The accompanying drawings illustrate embodiments of the present application and, together with this specification, serve to explain the principles of the present application. In the accompanying drawings:

[0042] Figure 1 A flowchart of a configuration information processing method is exemplarily shown;

[0043] Figure 2 The following is a schematic diagram showing an exemplary association relationship between target device A and multiple configuration items;

[0044] Figure 3 The diagram exemplarily shows the association relationship between the registrar and multiple configuration items;

[0045] Figure 4 A schematic diagram illustrating a configuration information processing device is shown;

[0046] Figure 5 A schematic diagram of an electronic device is shown as an example. DETAILED DESCRIPTION

[0047] The principle of the present disclosure will now be described with reference to some embodiments. It should be understood that the description of these embodiments is merely for illustrative purposes and helps those skilled in the art to understand and implement the present disclosure without placing any restriction on the scope of the present disclosure. The disclosure described herein can be implemented in a manner different from that described below.

[0048] In the following description and claims, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs.

[0049] References in this disclosure to "one embodiment," "an embodiment," "an exemplary embodiment," etc., indicate that the described embodiment may include a particular feature, structure, or characteristic, but not every embodiment necessarily includes the particular feature, structure, or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment. In addition, when a particular feature, structure, or characteristic is described in conjunction with an exemplary embodiment, whether or not explicitly described, those skilled in the art will recognize that such feature, structure, or characteristic may be combined with other embodiments.

[0050] The terms used herein are intended only to describe specific embodiments and are not intended to limit exemplary embodiments. As used herein, the singular forms "a," "an," and "the" also include the plural forms, unless the context clearly indicates otherwise. As used herein, "a group of elements" or "a set of elements" is intended to include one or more elements. It should also be understood that the terms "comprise," "include," "have," "have," "include," and / or "comprising," when used herein, specify the presence of the features, elements, and / or components, but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof.

[0051] The present application provides a configuration information processing method, device, electronic device and storage medium for overcoming the problem that the configuration information processing process in the related art is too cumbersome. Among them, the method can be applied to an information system, which may include equipment and software from the same or different manufacturers. It should be understood that when the operation and maintenance personnel need to implement configuration information processing, they can directly collect the target configuration information by logging into the target device and send it to the configuration management database, or they can control the target device by logging into a specific server that is connected to the communication between the target device to collect the corresponding target configuration information and send it to the configuration management database. There is no restriction on this.

[0052] refer to Figure 1 , which exemplarily shows a flow chart 100 of a configuration information processing method. Figure 1 ,include:

[0053] S101, obtaining a configuration item registration file of a target device, wherein the configuration item registration file includes multiple configuration items corresponding to the target device and a collection indicator interface set associated with the multiple configuration items, each collection indicator interface in the collection indicator interface set is used to implement a predefined collection logic of one of the configuration items.

[0054] A configuration item (CI) is any service component, infrastructure element, or other item that must be managed to ensure successful service delivery. To ensure the integrity and scalability of the target configuration information being collected, operations personnel can map the target device's basic device information (serial number, IP address, MAC address, hardware configuration), operating system information, and software information (middleware, database, etc.) to the target device's CI when performing configuration information processing.

[0055] For example, take target device A: "a host with Nginx software installed" as an example, please refer to Figure 2 , which exemplarily shows a schematic diagram 200 of the association relationship between target device A and multiple configuration items. Figure 2 , target device A includes at least the following configuration items:

[0056] Operating system configuration item: used to map the target device A's operating system type, version, kernel information, and other operating system information. For example, "Linux CentOS 7.x, Kernel 3.10.0".

[0057] Account configuration items: used to map user accounts that can log in to the host, permission settings, and other account information, including but not limited to: root users, ordinary users, and their corresponding permission levels.

[0058] Mount volume configuration item: used to map the mount volume information describing the storage mounting status of target device A, including but not limited to: mount point, file system type, storage capacity, etc.

[0059] Process configuration item: used to map process information that describes the details of the process running on target device A, including but not limited to the process ID, name, status, etc.

[0060] Nginx configuration items: used to map Nginx information, including but not limited to Nginx version, configuration file path, listening port, etc.

[0061] Furthermore, the embodiment of the present application develops a collection indicator interface (Hook) to implement the predefined collection logic of each configuration item. The collection indicator interface design is flexible enough to adapt to the collection requirements of different types of configuration items and follows a unified data format. When operation and maintenance personnel need to implement configuration information processing, the configuration items and collection indicator interfaces in the information system can be standardized, that is, they can be used for all devices and software in the information system to improve the scalability and development efficiency of the information system.

[0062] In some embodiments, before obtaining the configuration item registration file of the target device, the method further includes:

[0063] Sending a configuration item registration request for the target device to the registrar, so that the registrar determines and records multiple configuration items corresponding to the target device based on the configuration item registration request;

[0064] For multiple configuration items, a collection indicator interface set associated with the multiple configuration items is determined based on the predefined association relationship between the configuration items and the collection indicator interface.

[0065] In other words, before the formal collection, the above configuration items are registered with the registrar so that the registrar can record relevant information to facilitate the unified and standardized use of configuration items. Figure 3 , which exemplarily shows a schematic diagram 300 of the association relationship between a registrar and multiple configuration items. Figure 3 During the registration phase, Nginx configuration items and other information are registered with the registrar, which records each configuration item's name, type, and collection period. After registration, a collection indicator interface set is determined based on the predefined associations between configuration items and collection indicator interfaces. Subsequently, during the collection phase, this collection indicator interface set is dispatched based on the information recorded in the registrar to obtain the target configuration information.

[0066] In some embodiments, before obtaining the configuration item registration file of the target device, the method further includes:

[0067] determining a plurality of configuration item variables corresponding to each of the plurality of configuration items; and,

[0068] For each of the multiple configuration items, multiple Go language tags are constructed according to the corresponding multiple configuration item variables, and each Go language tag in the multiple Go language tags is used to generate an executable file applicable to one of the configuration item variables.

[0069] In modern IT environments, information systems may need to run in different operating environments (e.g., running on different operating systems and hardware architectures, including but not limited to Windows, Linux, and UOS operating systems, and different CPU architectures such as AMD and ARM). To ensure that configuration items can run properly in these different operating environments, the cross-platform compilation capabilities of the Go language can be used to build Go language tags for different configuration item variables for a single configuration item to improve its adaptability.

[0070] For example, if Nginx needs to be run on both Linux and Windows operating systems, add the respective Go language tags to the code. For example, the Linux tag is " / / go:buildlinux" and the Windows tag is " / / go:buildwindows".

[0071] For some specific scenarios, additional customized tags may be required. In this case, the abstract syntax tree (AST) can be used to increase the recognition of tags to meet more complex construction requirements.

[0072] S102: Generate a target configuration item collection process for a target device according to the configuration item registration file and the predefined collection program template.

[0073] The predefined collection program template is used to standardize the registration stage and collection stage mentioned above to achieve standardization and flexible expansion of the collection logic.

[0074] S103 , in response to a start instruction for a target configuration item collection process, scheduling each collection indicator interface in the collection indicator interface set to obtain target configuration information of the target device.

[0075] In some embodiments, the collection indicator interface set in the scheduling configuration item registration file is used to obtain target configuration information of the target device, including:

[0076] Determine the target collection strategy for multiple configuration items, including the collection order between the multiple configuration items;

[0077] According to the collection order, each collection indicator interface in the collection indicator interface set is scheduled in turn to obtain the target configuration information of the target device.

[0078] In other words, during the collection phase, the scheduling mode of each collection indicator interface is determined according to the set target collection strategy, for example, each interface is scheduled one by one according to a predetermined collection order to obtain target configuration information.

[0079] S104: Send the target configuration information of the target device to the configuration management database.

[0080] When the target configuration item collection process is completed, the target configuration information is sent to the configuration management database (CMDB). The configuration management database receives and stores the target configuration information and updates the internal configuration data, thereby realizing the automated processing of configuration information.

[0081] In some embodiments, the above method further comprises:

[0082] In response to the automatic detection instruction for the specified configuration item, the target software corresponding to the specified configuration item is determined, and the configuration file location of the target software is determined according to a predefined configuration path rule.

[0083] Get the configuration file content corresponding to the configuration file location.

[0084] Extract the key configuration parameters and running status information of the specified configuration items from the configuration file content.

[0085] The embodiments of the present application allow for intelligent collection of specified configuration items in an information system. Taking Nginx configuration items as an example, the system first determines whether the target software is running in the target device's operating system. If the target software is running, the system then locates the configuration file at " / etc / nginx / nginx.conf" based on predefined configuration path rules, obtains the configuration file content corresponding to the configuration file location, and then extracts the required key configuration parameters and operating status information from the configuration file content.

[0086] In some embodiments, the step of determining the target software can be achieved by scanning the operating system process list of the target device. For example, for the Nginx configuration item, if there is an Nginx process in the operating system of the target device, then it is determined that the target software is running based on the Nginx process.

[0087] Key configuration parameters include but are not limited to: the target software's listening port, operating account, etc. Operational status information includes but is not limited to: the current number of connections, request processing status, etc.

[0088] In some embodiments, it further includes:

[0089] Based on the observer mode, monitor whether the operation strategy for the specified configuration item has changed. The operation strategy is used to indicate the autonomous collection task for the specified configuration item;

[0090] When a change in the operating strategy is monitored, a hot reload event is initiated for the specified configuration item to start a new autonomous collection task for the specified configuration item. The hot reload event is used to indicate the changed operating strategy.

[0091] Embodiments of the present application allow for setting an operational policy for a specified configuration item in an information system. The operational policy can be in the form of a file, for example, a file containing parameters such as the acquisition frequency and reporting channel. When an observer for a specified configuration item detects a change in the file, a hot reload event is immediately sent, eliminating the need to restart the acquisition probe and ensuring the continuity and stability of the automated acquisition task.

[0092] Taking the Nginx configuration item as an example, suppose the collection frequency is changed from 12 hours to 6 hours in the Nginx configuration item's operation policy file. Then, when the observer monitors that the operation policy has been changed, it initiates a hot reload event to suspend the current automatic collection task for the Nginx configuration item and start a new automatic collection task for the Nginx configuration item. The collection frequency of the new automatic collection task is adjusted to 6 hours.

[0093] Figure 4 FIG4 is a schematic diagram 400 of an exemplary configuration information processing device of the present application. Figure 4 , including an acquisition module 401, a generation module 402, a scheduling module 403 and a transmission module 404.

[0094] An acquisition module 401 is configured to acquire a configuration item registration file of a target device, wherein the configuration item registration file includes multiple configuration items corresponding to the target device and a collection indicator interface set associated with the multiple configuration items, wherein each collection indicator interface in the collection indicator interface set is configured to implement predefined collection logic for one of the configuration items;

[0095] A generating module 402 is configured to generate a target configuration item collection process for the target device based on the configuration item registration file and a predefined collection program template;

[0096] The scheduling module 403 is configured to schedule each collection indicator interface in the collection indicator interface set in response to a start instruction for the target configuration item collection process to obtain target configuration information of the target device;

[0097] The transmission module 404 is configured to send the target configuration information of the target device to a configuration management database.

[0098] In some embodiments, before obtaining the configuration item registration file of the target device, the generating module 401 is further configured to:

[0099] Sending a configuration item registration request for the target device to the registrar, so that the registrar determines and records the plurality of configuration items based on the configuration item registration request;

[0100] For multiple configuration items, a collection indicator interface set associated with the multiple configuration items is determined based on the predefined association relationship between the configuration items and the collection indicator interface.

[0101] In some embodiments, before obtaining the configuration item registration file of the target device, the generating module 401 is further configured to:

[0102] determining a plurality of configuration item variables corresponding to each of the plurality of configuration items; and,

[0103] For each of the multiple configuration items, multiple Go language tags are constructed according to the corresponding multiple configuration item variables, and each Go language tag in the multiple Go language tags is used to generate an executable file applicable to one of the configuration item variables.

[0104] In some embodiments, the collection indicator interface set in the scheduling configuration item registration file is used to obtain target configuration information of the target device, and the scheduling module is used to:

[0105] Determine the target collection strategy for multiple configuration items, including the collection order between the multiple configuration items;

[0106] According to the collection order, each collection indicator interface in the collection indicator interface set is scheduled in turn to obtain the target configuration information of the target device.

[0107] In some embodiments, the scheduling module is further configured to:

[0108] In response to an automatic detection instruction for a specified configuration item, determining the target software corresponding to the specified configuration item, and determining the location of the configuration file of the target software according to a predefined configuration path rule;

[0109] Get the configuration file content corresponding to the configuration file location;

[0110] Extract the key configuration parameters and running status information of the target software of the specified configuration item from the configuration file content.

[0111] In some embodiments, to determine the target software corresponding to the specified configuration item, the scheduling module is configured to:

[0112] Scan the target device's operating system process list to find the target process corresponding to the specified configuration item; and

[0113] Determine the target software based on the target process.

[0114] In some embodiments, the scheduling module is further configured to:

[0115] Based on the observer mode, monitor whether the operation strategy for the specified configuration item has changed. The operation strategy is used to indicate the autonomous collection task for the specified configuration item;

[0116] When a change in the operating strategy is detected, a hot reload event is initiated for the specified configuration item to start a new autonomous collection task for the specified configuration item. The hot reload event is used to indicate the changed operating strategy.

[0117] Further, if Figure 5 , which exemplarily shows a schematic diagram 500 of an electronic device, including one or more memories 501 and one or more processors 502, wherein the one or more memories 501 are coupled to the one or more processors 502 and store instructions thereon, and the instructions can be executed by the one or more processors 502 individually or collectively, so that the electronic device performs any method as described in the first aspect.

[0118] It should be understood that the processor mentioned in the embodiments of the present application may be a CPU, or may be other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0119] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously linked dynamic random access memory, and direct memory bus random access memory.

[0120] The present application also provides a non-transitory computer-readable storage medium storing machine-executable instructions, wherein the computer-executable instructions can be executed by one or more processors of a machine. The machine may include the electronic device mentioned above, etc. When the computer-executable instructions are executed by the one or more processors, the machine performs any of the methods mentioned above.

[0121] A computer-readable storage medium may include a propagated data signal embodying computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination thereof. The computer-readable storage medium may be connected to an instruction execution system, device, or apparatus to communicate, propagate, or transmit the program for use. The program code on the computer-readable storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above.

[0122] The basic concepts have been described above. It will be apparent to those skilled in the art that the above disclosures are merely illustrative and do not constitute limitations on this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and amendments to this application. Such modifications, improvements, and amendments are suggested in this application and remain within the spirit and scope of the exemplary embodiments of this application.

[0123] At the same time, this application uses specific terms to describe the embodiments of this application. For example, "one embodiment," "an embodiment," and / or "some embodiments" refer to a certain feature, structure, or characteristic related to at least one embodiment of this application. Therefore, it should be emphasized and noted that "one embodiment," "an embodiment," or "an alternative embodiment" mentioned twice or multiple times in different locations in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures, or characteristics in one or more embodiments of this application may be appropriately combined.

[0124] Some aspects of the present application can be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software can be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor can be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program code. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs...), smart cards, and flash memory devices (e.g., cards, sticks, key drives...).

[0125] A computer-readable medium may include a propagated data signal embodying computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination thereof. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium that can be connected to an instruction execution system, apparatus, or device to communicate, propagate, or transmit the program for use. The program code on the computer-readable medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above.

[0126] Similarly, it should be noted that, in order to simplify the presentation of this application and thus facilitate understanding of one or more embodiments of the invention, the foregoing descriptions of the embodiments of this application sometimes combine multiple features into a single embodiment, figure, or description thereof. However, this disclosure method does not mean that the subject matter of this application requires more features than those recited in the claims. In fact, an embodiment may have fewer features than all of the features of a single embodiment disclosed above.

[0127] In some embodiments, numbers are used to describe the quantity of components and attributes. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise stated, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the description and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the settings of such numerical values ​​are as accurate as possible within the feasible range.

[0128] Although the present application has been described with reference to the current specific embodiments, ordinary technicians in this technical field should recognize that the above embodiments are only used to illustrate the present application, and various equivalent changes or substitutions can be made without departing from the spirit of the present application. Therefore, as long as the changes and modifications to the above embodiments are within the scope of the essential spirit of the present application, they will fall within the scope of the claims of the present application.

Claims

1. A configuration information processing method, characterized in that: include: Obtaining a configuration item registration file for a target device, the configuration item registration file including multiple configuration items corresponding to the target device and a collection indicator interface set associated with the multiple configuration items, each collection indicator interface in the collection indicator interface set being used to implement predefined collection logic for one of the configuration items; Generate a target configuration item collection process for the target device according to the configuration item registration file and the predefined collection program template; In response to a start instruction for the target configuration item acquisition process, scheduling each acquisition indicator interface in the acquisition indicator interface set to obtain target configuration information of the target device; The target configuration information of the target device is sent to a configuration management database.

2. The method according to claim 1, wherein Before obtaining the configuration item registration file of the target device, the method further includes: sending a configuration item registration request for the target device to a registrar, so that the registrar determines and records the plurality of configuration items based on the configuration item registration request; For the multiple configuration items, a collection indicator interface set associated with the multiple configuration items is determined according to a predefined association relationship between the configuration items and the collection indicator interface.

3. The method according to claim 2, wherein Before obtaining the configuration item registration file of the target device, the method further includes: determining a plurality of configuration item variables corresponding to each of the plurality of configuration items; and For each of the multiple configuration items, multiple Go language tags are constructed according to the corresponding multiple configuration item variables, and each Go language tag in the multiple Go language tags is used to generate an executable file applicable to one of the configuration item variables.

4. The method according to any one of claims 1 to 3, characterized in that: The scheduling of the collection indicator interface set in the configuration item registration file to obtain target configuration information of the target device includes: Determining a target collection strategy for the plurality of configuration items, the target collection strategy including a collection order among the plurality of configuration items; According to the acquisition order, each acquisition indicator interface in the acquisition indicator interface set is scheduled in turn to obtain the target configuration information of the target device.

5. The method according to any one of claims 1 to 3, characterized in that: Also includes: In response to an automatic detection instruction for a specified configuration item, determining a target software corresponding to the specified configuration item, and determining a configuration file location of the target software according to a predefined configuration path rule; Obtain the configuration file content corresponding to the configuration file location; Extract key configuration parameters and running status information of the target software of the specified configuration item from the configuration file content.

6. The method according to claim 5, wherein Determining the target software corresponding to the specified configuration item includes: Searching the target process corresponding to the specified configuration item by scanning the operating system process list of the target device; and The target software is determined according to the target process.

7. The method according to any one of claims 1 to 3, characterized in that: Also includes: Based on the observer mode, monitor whether the operation policy for the specified configuration item has changed, wherein the operation policy is used to indicate the autonomous collection task for the specified configuration item; When a change in the operating strategy is detected, a hot reload event is initiated for the specified configuration item to start a new autonomous collection task for the specified configuration item. The hot reload event is used to indicate the changed operating strategy.

8. A configuration information processing device, characterized in that: include: an acquisition module, configured to acquire a configuration item registration file of a target device, the configuration item registration file including multiple configuration items corresponding to the target device and a collection indicator interface set associated with the multiple configuration items, each collection indicator interface in the collection indicator interface set being configured to implement predefined collection logic for one of the configuration items; A generating module, configured to generate a target configuration item collection process for the target device according to the configuration item registration file and a predefined collection program template; a scheduling module, configured to, in response to a start instruction for the target configuration item acquisition process, schedule each acquisition indicator interface in the acquisition indicator interface set to obtain target configuration information of the target device; The transmission module is used to send the target configuration information of the target device to the configuration management database.

9. An electronic device, characterized in that: include: one or more processors; as well as One or more memories coupled to the one or more processors and storing thereon instructions, which, when executed individually or collectively by the one or more processors, cause the electronic device to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing machine-executable instructions, characterized in that: The machine-executable instructions, when executed by one or more processors of a machine, cause the machine to perform the method of any one of claims 1-7.