Equipment configuration information management method and device, equipment and medium

By setting a control lock to obtain device configuration information and generating task scripts, the problems of error-prone and low efficiency of traditional manual configuration changes are solved, and the efficiency and reliability of configuration changes are improved.

CN119577732APending Publication Date: 2025-03-07AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411652500.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

Traditional manual account input, static + dynamic password login to network equipment, manual configuration input, and configuration changes have problems such as error-prone and low efficiency.

Method used

By setting the first control lock and the second control lock, the device configuration information is obtained and the task script is determined to prevent repeated issuance, and the device configuration information is finally distributed to the device to be configured in the form of a script.

Benefits of technology

It comprehensively improves the efficiency and reliability of configuration changes, prevents the repeated issuance of equipment configuration information, and improves work efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119577732A_ABST
    Figure CN119577732A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration information management method and device, equipment and a medium. The method comprises the steps that if it is determined that the current state of a first control lock is an open state, equipment configuration information and the current state of a second control lock are acquired according to a preset time period; wherein the first control lock is used for controlling starting and stopping of the management process of the equipment configuration information, and the second control lock is used for controlling the management process of the equipment configuration information; if it is determined that the current state of the second control lock is an open state, determining a task script according to the equipment configuration information; wherein the task script is a statement in a preset format, and the task script comprises equipment configuration information; and issuing the task script to the target equipment, and updating the equipment configuration information of the target equipment. The method can comprehensively improve the efficiency and reliability of configuration change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of configuration data distribution of network devices, and in particular to a method, apparatus, device and medium for managing device configuration information. Background Art

[0002] The internal networks of large and medium-sized enterprises are complex, with numerous network devices. In addition, the device login process requires two-factor authentication, namely static + dynamic passwords. Network configuration changes caused by business iterations are becoming more and more frequent.

[0003] The traditional manual entry of personal accounts, static and dynamic passwords to log in to network devices, manual input of configurations, and configuration changes have the disadvantages of being prone to errors and low efficiency.

[0004] Therefore, a method for automating configuration changes is needed to improve the many shortcomings of manual configuration changes and comprehensively improve the efficiency and reliability of configuration changes. Summary of the Invention

[0005] Embodiments of the present application provide a method, apparatus, device, and medium for managing device configuration information to improve the efficiency and reliability of configuration changes.

[0006] In a first aspect, an embodiment of the present application provides a method for managing device configuration information, including:

[0007] If it is determined that the current state of the first control lock is the open state, then obtaining the device configuration information and the current state of the second control lock according to a preset time period; wherein the first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process;

[0008] If it is determined that the current state of the second control lock is the open state, a task script is determined according to the device configuration information; wherein the task script is a statement in a preset format, and the task script includes the device configuration information;

[0009] The task script is sent to the target device, and the device configuration information of the target device is updated.

[0010] In a second aspect, an embodiment of the present application provides a device configuration information management apparatus, including:

[0011] A first determining module is configured to, if it is determined that the current state of the first control lock is open, obtain device configuration information and the current state of the second control lock according to a preset time period; wherein the first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process;

[0012] A second determining module is configured to determine a task script according to the device configuration information if it is determined that the current state of the second control lock is the open state; wherein the task script is a statement in a preset format, and the task script includes the device configuration information;

[0013] The sending module is used to send the task script to the target device and update the device configuration information of the target device.

[0014] In a third aspect, an embodiment of the present application provides a device for managing device configuration information, including: a memory, a processor;

[0015] The memory stores computer-executable instructions;

[0016] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementation methods of the first aspect.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0019] An embodiment of the present application provides a method for managing device configuration information. First, the state of a first control lock is determined. If the current state of the first control lock is determined to be an open state, the device configuration information and the current state of the second control lock are obtained according to a preset time period. The first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process. Secondly, the state of the second control lock is determined. If the current state of the second control lock is determined to be an open state, a task script is determined based on the device configuration information. The task script is a statement in a preset format, and the task script includes device configuration information. The task script is sent to a target device, and the device configuration information of the target device is updated. This method prevents repeated sending of device configuration information by setting the first control lock and the second control lock, and ultimately sends the device configuration information to the device to be configured in the form of a script, thereby comprehensively improving the efficiency and reliability of configuration changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0021] Figure 1 A flowchart of a method for managing device configuration information provided in this application;

[0022] Figure 2 A flowchart of a method for managing device configuration information provided in this application;

[0023] Figure 3 A complete flowchart of a method for managing device configuration information provided in this application;

[0024] Figure 4 A schematic diagram of the structure of a device configuration information management device provided in this application;

[0025] Figure 5 A schematic diagram of the structure of a device configuration information management device provided in this application;

[0026] Figure 6 A schematic diagram of the structure of a device configuration information management device provided in this application.

[0027] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0029] First, let’s explain the terms involved in this application:

[0030] Network equipment: switches, firewalls, routers, etc.

[0031] Two-factor authentication: A password consisting of a static string and a dynamic token string.

[0032] Configuration change: add, delete, or modify device configuration.

[0033] Automated implementation: Configuration changes to devices are made by automated programs.

[0034] Delivery queue: Configuration changes are required.

[0035] Based on the description of data transmission methods in the background technology, it can be seen that the traditional manual entry of personal account numbers, static and dynamic passwords to log into network devices, manually enter configurations, and perform configuration changes is prone to errors and inefficiency. These errors are mainly reflected in manually logging into the wrong device, manually entering incorrect configuration content, multiple people making configuration changes simultaneously causing content conflicts, and multiple people making changes simultaneously causing device configurations to be locked. The inefficiency is mainly reflected in the need to use the network security protocol (English: Secure Shell, abbreviated: SSH) software, manually search and enter the device IP address, manually enter personal account numbers, and manually enter personal two-factor authentication passwords.

[0036] Therefore, a method for automating configuration changes is needed to improve the many shortcomings of manual configuration changes and comprehensively enhance the efficiency and reliability of configuration changes.

[0037] The present application provides a method for managing device configuration information, which relates to the field of configuration data distribution of network devices, and in particular to a method, apparatus, device and medium for managing device configuration information, aiming to solve the above technical problems of the prior art.

[0038] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0039] Figure 1 A flow chart of a method for managing device configuration information provided in this application, such as Figure 1 As shown, the method includes:

[0040] S101. If it is determined that the current state of the first control lock is the open state, then according to a preset time period, obtain the device configuration information and the current state of the second control lock; wherein the first control lock is used to control the start and stop of the management process of the device configuration information, and the second control lock is used to control the management process of the device configuration information.

[0041] Exemplarily, device configuration information includes multiple types. For example, when configuring a router, the device configuration information includes the router's protocol configuration, port configuration information, etc. When configuring a firewall, the device configuration information includes the firewall's policy configuration information, etc. The first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process. The first control lock has two states, namely, on and off. When the first control lock is on, it indicates that the switch is on and the sending program can be run, wherein the sending program is used to execute the sending process for the device configuration information. When the first control lock is off, it indicates that the sending program is prohibited from running. For example, when the first control lock in the system is on, it indicates that the sending program can be executed. The system has a preset information database, and the system can obtain the device configuration information from the database. At this time, based on the sending program, the system obtains the device configuration information from the preset information database according to a preset time period and obtains the current state of the second control lock.

[0042] The beneficial effect of such a setting is that the system is controlled by using the first control lock and the second control lock, which facilitates the management and control of the system and improves work efficiency.

[0043] In this embodiment, device configuration information is obtained according to a preset time period, including: obtaining the task status of the device configuration information from a preset information database; wherein the task status indicates whether the device configuration information is allowed to be updated to the target device; if the task status of the device configuration information is a preset first state, the device configuration information is obtained into a preset task queue; wherein the task queue is used to store multiple pieces of device configuration information to be updated.

[0044] Exemplarily, the device configuration information includes multiple types of information. For example, when configuring a router, the device configuration information includes the router's protocol configuration, port configuration information, etc. When configuring a firewall, the device configuration information includes the firewall's policy configuration information, etc. The task status indicates whether the device configuration information is allowed to be updated to the target device. The target device indicates the device for which the device configuration information is to be updated. The task queue is used to store multiple device configuration information to be updated. An information database is preset in the system, and the information database stores the device configuration information. The device configuration information includes multiple task states, such as unjoined state, joined state, issued state, abolished state, etc. Among them, the unjoined state indicates that the device configuration information is not allowed to be updated to the target device, the joined state indicates that the device configuration information is allowed to be updated to the target device, the issued state indicates that the device configuration information has been updated to the target device, and the abolished state indicates that the device configuration information has been abolished and is no longer used. For example, when the first control lock state is turned on, the current task state of the configuration information is obtained from the preset information database. If the task state of the device configuration information is the preset first state, the device configuration information is obtained into the preset task queue; if the state of the device configuration information is not the first state, it is not obtained, wherein the preset first state can be the added state.

[0045] The beneficial effect of such a setting is that different task states are set for the device configuration information in the information database, which facilitates the classified management of different configuration information and improves management efficiency and accuracy.

[0046] S102: If it is determined that the current state of the second control lock is the open state, determine a task script according to the device configuration information; wherein the task script is a statement in a preset format, and the task script includes the device configuration information.

[0047] Exemplarily, the second control lock is used to control the management process of the device configuration information, wherein the second control lock has two states, namely, open and closed. The system is preset with an information database. When obtaining device configuration information in the preset information database, the number of device configuration information obtained can be multiple, wherein the device configuration information is pre-set in the information database by the staff. For example, when multiple device configuration information is obtained, when the second control lock is in the closed state, it indicates that a distribution program has been issued at this time to perform distribution processing on a certain device configuration information based on a preset time period, for example, the first device configuration information and the second device configuration information are obtained. , currently processing the first device configuration information, then wait in the task queue for the completion of the program execution before executing the second device configuration information, wherein the task queue is used to store multiple device configuration information to be updated; if the second control lock is in the open state, the currently acquired device configuration information can be issued. During the execution process, the task script is determined according to the device configuration information, wherein the task script is generated in real time during the program execution process, and the task script includes the device configuration information. Finally, the device configuration information is sent to the target device in the form of a script, wherein the target device represents the device whose device configuration information is to be updated.

[0048] The beneficial effect of such a setting is that, in the process of sending device configuration information, a task script is generated in real time, and the device configuration information is sent through the task script, thereby improving work efficiency.

[0049] S103: Send the task script to the target device and update the device configuration information of the target device.

[0050] Exemplarily, the task script is a statement in a preset format, the task script includes device configuration information, and the target device is the device whose configuration information is to be updated. For example, when it is determined that both the first control lock and the second control lock are turned on, the device configuration information in the information database is obtained according to the task status of the preset device configuration information, wherein the task status indicates whether the device configuration information is allowed to be updated to the target device, and the task script is determined based on the device configuration information. The device configuration information is sent in batches to the device to be updated in the form of a task script through the network security protocol (Secure Shell, abbreviated as SSH), thereby updating the configuration information of the target device. The target device can identify the device configuration information from the task script, and update the original device configuration information according to the identified device configuration information, thereby completing the update process.

[0051] The beneficial effect of such a setting is that the device configuration information is sent to the target device in the form of a script, which facilitates viewing of the device configuration information and improves work efficiency.

[0052] An embodiment of the present application provides a method for managing device configuration information. First, the state of a first control lock is determined. If the current state of the first control lock is determined to be an open state, the device configuration information and the current state of the second control lock are obtained according to a preset time period. The first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process. Secondly, the state of the second control lock is determined. If the current state of the second control lock is determined to be an open state, a task script is determined based on the device configuration information. The task script is a statement in a preset format, and the task script includes device configuration information. The task script is sent to a target device, and the device configuration information of the target device is updated. This method prevents repeated sending of device configuration information by setting the first control lock and the second control lock, and ultimately sends the device configuration information to the device to be configured in the form of a script, thereby comprehensively improving the efficiency and reliability of configuration changes.

[0053] Figure 2 A flow chart of a method for managing device configuration information provided in this application, such as Figure 2 As shown, the method specifically includes the following steps:

[0054] S201. If it is determined that the current state of the first control lock is the open state, the device configuration information and the current state of the second control lock are obtained according to a preset time period; wherein the first control lock is used to control the start and stop of the management process of the device configuration information, and the second control lock is used to control the management process of the device configuration information.

[0055] This step can refer to the above step S101 and will not be described in detail.

[0056] S202: If it is determined that the current state of the second control lock is the open state, determine the target configuration information according to the order in which the information in the task queue is arranged.

[0057] Exemplarily, the second control lock is used to control the management process of device configuration information, and the task queue is used to store multiple pieces of device configuration information to be updated. The system is pre-set with an information database, and when the information database retrieves device configuration information, multiple pieces of device configuration information can be retrieved. For example, when three pieces of device configuration information are retrieved, if the second control lock is determined to be in the open state, this indicates that no distribution program is currently executing distribution processing on the device configuration information. Therefore, based on the retrieved device configuration information data, the first piece of device configuration information is determined as the target configuration information. After the distribution processing of the first piece of device configuration information is completed, the second and third pieces of device configuration information are processed in sequence.

[0058] The beneficial effect of such a setting is that the device configuration information is sent and processed in sequence according to the order in which the information is arranged in the task queue, thereby improving the working efficiency of the system.

[0059] S203: Determine the task script according to the target configuration information.

[0060] Exemplarily, the task script is a statement in a preset format, which includes device configuration information. There may be multiple device configuration information obtained from the information database. When the first control lock and the second control lock are both in the open state, the multiple device configuration information obtained from the information database will be processed in sequence according to the order of information arrangement in the task queue. For example, the first device configuration information and the second device configuration information are obtained, the first device configuration information is determined as the target configuration information, and the device configuration information is sent down for processing. During the execution and sending process, the system generates a task script in real time according to the device configuration information, wherein the task script includes the device configuration information. Finally, the device configuration information is sent in batches to the device whose device configuration information is to be updated, i.e., the target device, through the network security protocol (Secure Shell in English, abbreviated as: SSH) in the form of a task script.

[0061] The beneficial effect of such a setting is that the device configuration information is sent to the target device in the form of a script, which is conducive to improving the reliability of the configuration information change.

[0062] An embodiment of the present application provides a method for managing device configuration information. First, the state of a first control lock is determined. If the current state of the first control lock is determined to be an open state, the device configuration information and the current state of the second control lock are obtained according to a preset time period. The first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process. Secondly, the state of the second control lock is determined. If the current state of the second control lock is determined to be an open state, a task script is determined based on the device configuration information. The task script is a statement in a preset format, and the task script includes device configuration information. The task script is sent to a target device, and the device configuration information of the target device is updated. This method prevents repeated sending of device configuration information by setting the first control lock and the second control lock, and ultimately sends the device configuration information to the device to be configured in the form of a script, thereby comprehensively improving the efficiency and reliability of configuration changes.

[0063] In this embodiment, if it is determined that the current state of the second control lock is the open state, after determining the task script according to the device configuration information, the method further includes: setting the current state of the second control lock to the closed state.

[0064] Exemplarily, the second control lock is used to control the management process of device configuration information. The task script is a statement in a preset format that includes device configuration information. For example, when both the first control lock and the second control lock are in the open state, the device configuration information is retrieved from the information database and distributed according to the task status of the device configuration information, and the task script is generated in real time. The task status indicates whether the device configuration information is allowed to be updated to the target device. The target device represents the device for which the device configuration information is to be updated. The device configuration information includes multiple task states, such as unjoined, joined, distributed, and abolished. The unjoined state indicates that the device configuration information is not allowed to be updated to the target device, the joined state indicates that the device configuration information is allowed to be updated to the target device, the distributed state indicates that the device configuration information has been updated to the target device, and the abolished state indicates that the device configuration information has been abolished and is no longer used. Simultaneously, the state of the second control lock is set to the closed state until the ongoing device configuration information distribution process is completed, at which point the second control lock is turned back on.

[0065] The beneficial effect of this setting is that it is easy to prevent the repeated running of the issued program and improve the system working efficiency.

[0066] In this embodiment, it also includes: if it is determined that the current state of the second control lock is closed, then determining the target configuration information currently being updated in the task queue; if it is determined that the update of the target configuration information currently being updated is completed, then setting the current state of the second control lock to open.

[0067] Exemplarily, the second control lock is used to control the management process of device configuration information, and the task queue is used to store multiple device configuration information to be updated. The device configuration information is stored in a preset information database, wherein the device configuration information is pre-set by the staff in the information database. For example, when the second control lock is in the closed state, it indicates that the existing device configuration information is being issued according to the preset time period, and the device configuration information being issued is determined to be the target configuration information. If the target configuration information is not processed within the current time period, the target configuration information will continue to be processed within the next time period. At this time, the second control lock is still in the closed state until the target device configuration information is issued. At this time, the second control lock becomes open, indicating that there is no device configuration information to be issued and processed, and the next device configuration information can be processed.

[0068] The beneficial effect of such a setting is that the device configuration information is processed according to the state of the second control lock, which is convenient for preventing repeated processing of the device configuration information and improving the working efficiency of the system.

[0069] In this embodiment, the further step includes: if it is determined that the device configuration information has been completely updated in the target device, updating the task status of the device configuration information in the preset information database to a preset second status.

[0070] For example, the task status indicates whether the device configuration information is allowed to be updated to the target device. The system is preset with an information database. The device configuration information in the information database includes multiple task states, such as the unjoined state, the joined state, the issued state, and the abolished state. Among them, the unjoined state indicates that the device configuration information is not allowed to be updated to the target device, the joined state indicates that the device configuration information is allowed to be updated to the target device, the issued state indicates that the device configuration information has been updated to the target device, and the abolished state indicates that the device configuration information has been abolished and is no longer used. For example, according to the task status of the device configuration information, after the device configuration information is obtained from the information database and the issuance process of the device configuration information is completed, the status of the device configuration information will change from the joined state to the issued state, that is, the preset second state. This state indicates that the device configuration information has been issued. At this time, the device configuration information will be stored in the preset information database in the issued state and will not be obtained again.

[0071] The beneficial effect of this setting is that different task states are set for device configuration information, which facilitates the classification of device configuration information, prevents device configuration information from being repeatedly issued, and improves system work efficiency.

[0072] This embodiment further includes: if it is determined that the device configuration information fails to be updated in the target device, generating update prompt information and sending the update prompt information to the user; wherein the update prompt information includes the device configuration information and the task script.

[0073] Exemplarily, the update prompt information includes device configuration information and a task script. The task script is a statement in a preset format. The task script contains device configuration information. The target device is the device whose device configuration information is to be updated. For example, after obtaining the device configuration information from the information database according to the task status of the device configuration information, when the status of the first control lock and the second control lock are both on, the device configuration information is sent down for processing. If the device configuration information is finally updated in the target device, the system sends a prompt message that the update is successful. If the device configuration information ultimately fails to be updated in the target device, the system sends a prompt message that the update failed, and sends the generated update information to the staff via SMS or email. The update information includes the device configuration information and the task script, and the update information is sent to the staff in the form of a dispatch queue list, as shown in Table 1.

[0074] Table 1 is a distribution queue table of a device configuration information management method provided by this application. As shown in Table 1, the device configuration information includes the source system, task type, change number, service directory, queue joining status, distribution result description, distribution result details, script to be distributed, distribution record, creator, creation date, updater, update date, etc. Among them, the source system represents the source system of the configuration change task; the task type includes multiple types, such as standard change, normal change, and emergency change; the change number represents the change number; the service catalog represents the device and purpose category of the change; the queue joining status represents joined, not joined, abolished, issued, etc.; the issuance result description represents the execution result of the configuration change task; the issuance result detailed information represents the specific reason when the execution result of the configuration change task is failure; the script to be issued represents the devices and corresponding scripts included in the configuration change, including but not limited to the device name, device IP, and script content; the issuance record represents the process record of the configuration change issuance, including but not limited to the device name, device IP, echo content, issuance time, success, and error information. The information in the issuance queue table comes from the device configuration information of the preset information database, wherein the device configuration information is created in the information database in advance by the staff, and the staff can update the device configuration information. In addition, after the device configuration information is issued, a control lock table will be generated in the system to record the status of the control lock. Table 2 is a control lock table of a device configuration information management method provided by this application. As shown in Table 2, the name of the control lock can be customized. True indicates that the control lock is in the open state, and False indicates that the control lock is in the closed state.

[0075] Table 1 Sending queue table

[0076]

[0077] Table 2 Control lock table

[0078] Field Name type Field meaning Example 1 Example 2 lockname String Lock Name queuelock runlock value Boolean / String Lock Name True False

[0079] The beneficial effect of this arrangement is that the process of issuing device configuration information is recorded, which facilitates error checking of the system and improves work efficiency.

[0080] Figure 3 A complete flow chart of a device configuration information management method provided in this application is shown as follows: Figure 5 As shown, the specific steps include:

[0081] S301, C minutes, execute the issuing procedure.

[0082] S302: Acquire a first control lock state.

[0083] Exemplarily, the first control lock is used to control the start and stop of the management process of the device configuration information. The on and off states of the first control lock need to be manually processed. If the state of the first control lock is on, it means that the queue switch has been turned on and the distribution program can be run to distribute the acquired device configuration information according to the preset time period C minutes. If the state of the first control lock is off, it means that the queue switch has been turned off, and the distribution program is prohibited from running, and the process ends.

[0084] The beneficial effect of this setting is that it is easy to control the start status of the distributed program.

[0085] S303: Acquire the second control lock status.

[0086] Exemplarily, the second control lock is used to control the management process of device configuration information. The second control lock has two states, namely, open and closed. When the second control lock state is closed, it indicates that a program is being issued at this time, so the issuance of the current device configuration information is terminated and the execution of the current program is waited for to be completed; when the second control lock state is open, it indicates that no program is being issued at the current moment, so the first device configuration information in the task queue is started to be processed, wherein the task queue is used to store multiple device configuration information to be updated, and at the same time the second control lock state is changed to closed.

[0087] The beneficial effect of such a setting is that the second control lock is provided to prevent repeated execution of the issued program, thereby improving the working efficiency and accuracy of the system.

[0088] S304: The second control lock is closed.

[0089] S305: Obtain configuration information of all devices that have joined the queue.

[0090] S306: Device configuration information to be processed.

[0091] Exemplarily, the task queue is used to store multiple device configuration information to be updated. The system can obtain multiple device configuration information at the same time, store the obtained multiple device configuration information in the task queue, and issue and process the device configuration information in order. After a certain device configuration information is issued, check all the obtained device configuration information that has been added to the task queue. If there is device configuration information to be processed, continue to issue and process the next task in order. If there is no device configuration information to be processed, end the process.

[0092] The beneficial effect of such a setting is that it facilitates the inspection of tasks to be processed, avoids omissions, and improves the working efficiency of the system.

[0093] S307: Process and configure device configuration information and issue it.

[0094] S308. Automatically fill in and update the task record, and send a reminder.

[0095] For example, when the device configuration information is being distributed, a distribution queue table is generated in real time. The distribution queue table contains a variety of information, including: source system, task type, change number, service catalog, queue status, distribution result description, distribution result details, script to be distributed, distribution record, creator, creation date, updater, update date, etc. If the distribution is successful, a prompt message is sent to the staff to inform them of the successful update. If the distribution fails, the distribution result and distribution result details of the current task are automatically summarized based on the distribution result and error message, and filled into the corresponding fields to form a distribution queue table, as shown in Table 1. A prompt message is also sent via SMS or email to remind the staff to check the configuration change results.

[0096] The beneficial effect of such a setting is that the issuing process is formed into an issuing pair list, which is convenient for staff to review, eliminate erroneous information, and improve work efficiency.

[0097] S309: The second control lock is opened.

[0098] For example, after obtaining multiple device configuration information from a preset information database, the multiple device configuration information is stored in a task queue, wherein the task queue is used to store multiple device configuration information to be updated, and the device configuration information in the task queue is processed in turn. When a certain device configuration information is processed, the state of the second control lock is set to the open state.

[0099] The beneficial effect of such a setting is that setting the second control lock to control the task execution process is conducive to preventing repeated execution of the issued program, causing system errors, and improving the work efficiency of the system.

[0100] S310, end.

[0101] Figure 4 This is a schematic diagram of a device configuration information management device provided by this application, such as Figure 4 As shown, the present embodiment provides a device configuration information management apparatus 400 including:

[0102] A first determining module 401 is configured to, if it is determined that the current state of the first control lock is open, obtain device configuration information and the current state of the second control lock according to a preset time period; wherein the first control lock is used to control the start and stop of the device configuration information management process, and the second control lock is used to control the device configuration information management process;

[0103] The second determining module 402 is configured to determine a task script according to the device configuration information if it is determined that the current state of the second control lock is the open state; wherein the task script is a statement in a preset format and includes the device configuration information;

[0104] The sending module 403 is used to send the task script to the target device and update the device configuration information of the target device.

[0105] Figure 5 This is a schematic diagram of a device configuration information management device provided by this application, such as Figure 5 As shown, a device configuration information management device 500 provided in this embodiment includes: a first determination module 501, a second determination module 502, and a sending module 503, wherein the first determination module 501 includes a first acquisition unit 5011 and a second acquisition unit 5012, and the second determination module 502 includes a first determination unit 5021 and a second determination unit 5022.

[0106] In one example, the first determining module 501 includes:

[0107] The first acquisition unit 5011 is configured to acquire the task status of the device configuration information from a preset information database; wherein the task status indicates whether the device configuration information is allowed to be updated to the target device;

[0108] The second acquiring unit 5012 is configured to acquire the device configuration information into a preset task queue if the task status of the device configuration information is a preset first status; wherein the task queue is used to store a plurality of device configuration information to be updated.

[0109] In one example, the second determining module 502 includes:

[0110] The first determining unit 5021 is configured to determine target configuration information according to the order of information in the task queue if it is determined that the current state of the second control lock is the open state;

[0111] The second determining unit 5022 is configured to determine a task script according to the target configuration information.

[0112] In one example, the second determining unit 5022 further includes:

[0113] The closing subunit is used to set the current state of the second control lock to a closed state.

[0114] In one embodiment, the closing subunit is specifically used to:

[0115] If it is determined that the current state of the second control lock is the closed state, determining the target configuration information currently being updated in the task queue;

[0116] If it is determined that the target configuration information currently being updated is updated completely, the current state of the second control lock is set to an open state.

[0117] In one example, it also includes:

[0118] The third determining module is configured to update the task status of the device configuration information in the preset information database to a preset second status if it is determined that the device configuration information has been completely updated in the target device.

[0119] In one example, it also includes:

[0120] The sending module is used to generate update prompt information if it is determined that the device configuration information fails to be updated in the target device, and send the update prompt information to the user; wherein the update prompt information includes the device configuration information and the task script.

[0121] This embodiment provides a device for managing device configuration information, which can execute the method provided in the above method embodiment. Its implementation principle and technical effects are similar, and are not described in detail in this embodiment.

[0122] Figure 6 This is a schematic diagram of the structure of a device configuration information management device provided by this application. Figure 6 As shown, the electronic device 600 provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the device 600 further includes a communication component 603. The processor 601, the memory 602 and the communication component 603 are connected via a bus 604.

[0123] During the specific implementation process, at least one processor 601 executes the computer-executable instructions stored in the memory 602, so that the at least one processor 601 performs the above method.

[0124] The specific implementation process of the processor 601 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0125] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0126] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory.

[0127] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified into address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0128] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0129] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0130] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0131] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0132] The division of units is merely a logical functional division; actual implementations may employ alternative divisions, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, any direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units, either through an interface, electrical, mechanical, or other means.

[0133] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0134] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0135] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.

[0136] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0137] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.

Claims

1. A method for managing device configuration information, characterized in that: include: If it is determined that the current state of the first control lock is the open state, then according to a preset time period, the device configuration information and the current state of the second control lock are obtained; wherein the first control lock is used to control the start and stop of the management process of the device configuration information, and the second control lock is used to control the management process of the device configuration information; If it is determined that the current state of the second control lock is the open state, a task script is determined according to the device configuration information; wherein the task script is a statement in a preset format, and the task script includes the device configuration information; The task script is sent to the target device, and the device configuration information of the target device is updated.

2. The method according to claim 1, characterized in that According to the preset time period, obtain device configuration information, including: Acquiring a task status of device configuration information from a preset information database; wherein the task status indicates whether the device configuration information is allowed to be updated to the target device; If the task state of the device configuration information is a preset first state, the device configuration information is acquired into a preset task queue; wherein the task queue is used to store a plurality of device configuration information to be updated.

3. The method according to claim 1, characterized in that If it is determined that the current state of the second control lock is the open state, then determining the task script according to the device configuration information includes: If it is determined that the current state of the second control lock is an open state, determining the target configuration information according to the order in which the information in the task queue is arranged; A task script is determined according to the target configuration information.

4. The method according to claim 3, characterized in that If it is determined that the current state of the second control lock is the open state, after determining the task script according to the device configuration information, the method further includes: The current state of the second control lock is set to a closed state.

5. The method according to claim 4, characterized in that Also includes: If it is determined that the current state of the second control lock is the closed state, determining the target configuration information currently being updated in the task queue; If it is determined that the target configuration information currently being updated is updated completely, the current state of the second control lock is set to an open state.

6. The method according to claim 1, characterized in that Also includes: If it is determined that the device configuration information has been completely updated in the target device, the task state of the device configuration information in the preset information database is updated to a preset second state.

7. The method according to claim 1, characterized in that Also includes: If it is determined that the device configuration information fails to be updated in the target device, update prompt information is generated and sent to the user; wherein the update prompt information includes the device configuration information and the task script.

8. A device for managing device configuration information, characterized in that: include: A first determination module, for obtaining device configuration information and a current state of a second control lock according to a preset time period if it is determined that the current state of the first control lock is an open state; wherein the first control lock is used to control the start and stop of the management process of the device configuration information, and the second control lock is used to control the management process of the device configuration information; A second determination module is used to determine a task script according to the device configuration information if it is determined that the current state of the second control lock is an open state; wherein the task script is a statement in a preset format, and the task script includes the device configuration information; The sending module is used to send the task script to the target device and update the device configuration information of the target device.

9. A device for managing device configuration information, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.