Configuration file management method, electronic device, computer storage medium and product

By comparing differences and automatically updating configuration files, the inefficiency problem caused by multiple device anomalies in network device management is solved, and device anomalies can be quickly located and repaired, thereby improving management efficiency.

CN119728422BActive Publication Date: 2025-10-10BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411832067.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-10-10
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

In network device management, when multiple devices malfunction, existing technologies require checking configuration files one by one, resulting in low management efficiency and a large amount of manpower consumption.

Method used

By obtaining the current configuration files of multiple network devices, using difference comparison technology to find the difference information of abnormal devices, and updating their configuration files, combined with historical or other device configuration files as a baseline, abnormal devices can be automatically managed and repaired.

Benefits of technology

Improves the efficiency of network equipment management, reduces manual intervention, quickly locates and repairs equipment anomalies, and ensures normal operation of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728422B_ABST
    Figure CN119728422B_ABST
Patent Text Reader

Abstract

The application provides a configuration file management method, electronic equipment, computer storage medium and computer program product. The method comprises the following steps: obtaining current configuration files of a plurality of network devices; if it is detected that any network device is abnormal, comparing the current configuration file of the abnormal network device with a target configuration file to obtain difference information; and updating the current configuration content in the current configuration file of the abnormal network device based on the difference information, so as to quickly track the cause of the abnormality of the network device, without the user checking each configuration content in the configuration file one by one, thereby improving the management efficiency of the network device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of file management, and specifically relates to a configuration file management method, electronic equipment, computer storage medium and computer program product. Background Art

[0002] Currently, while a network device is being configured and running, administrators can view the device's configuration file at any time to determine whether the current configuration baseline meets the device's operational requirements. However, if a network device experiences an anomaly, administrators can only troubleshoot it individually based on the configuration details in the device's current configuration file. However, if multiple network devices are configured within a system and all are experiencing anomalies, managing and troubleshooting these issues can be time-consuming and labor-intensive, not only wasting manpower but also reducing the efficiency of managing individual network devices. Summary of the Invention

[0003] In view of this, the purpose of this application is to provide a configuration file management method, electronic device, computer storage medium and computer program product to improve the problem of low management efficiency of various network devices.

[0004] The embodiment of the present application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a configuration file management method, the method comprising: obtaining current configuration files of multiple network devices, wherein the current configuration files include at least the current configuration content of the network devices; if any network device is detected to be operating abnormally, comparing the current configuration file of the abnormal network device with a target configuration file to obtain difference information, wherein the target configuration file is a historical configuration file of the abnormal network device or a current configuration file of other network devices; based on the difference information, updating the current configuration content in the current configuration file of the abnormal network device.

[0006] In an embodiment of the present application, configuration files of multiple network devices are obtained, and when an abnormality occurs in a network device, a difference comparison is performed to quickly track the cause of the abnormality in the network device and obtain difference information. This eliminates the need for the user to check each configuration content in the configuration file one by one, thereby improving the management efficiency of the network device.

[0007] In an optional embodiment, obtaining the current configuration files of multiple network devices includes: sending a file synchronization request to each of the network devices in response to a preset trigger instruction, wherein the trigger instruction is an external trigger instruction or a clock trigger instruction; receiving a response message and at least one data packet respectively fed back by each of the network devices based on the file synchronization request, wherein the response message includes the basic file information of the configuration file to be obtained; for each of the network devices, obtaining the current configuration file from the data packet fed back by the network device based on the basic file information in the response message fed back by the network device.

[0008] In an embodiment of the present application, after receiving a trigger instruction, a file synchronization request is sent to each network device, so that the network device feeds back a response message and a data packet according to the request, so as to obtain the configuration file from the data packet based on the basic file information in the response message, thereby realizing centralized management of the configuration files of each network device and improving the management efficiency of the network device.

[0009] In an optional embodiment, the data packet is an encoded data packet, and the file basic information includes the file encoding format set by the network device; wherein, the method of obtaining the current configuration file from the data packet fed back by the network device based on the file basic information in the response message fed back by the network device includes: obtaining the corresponding file encoding format from the file basic information; obtaining a decoding method corresponding to the file encoding format; and applying the decoding method to decode the data packet fed back by the network device to obtain the current configuration file of the network device.

[0010] In an embodiment of the present application, the network device encodes the data packet before sending it back. When sending back a response message, the network device records the file encoding format used to encode the data packet in the file basic information. After receiving the data packet, the network device decodes the data packet according to the decoding method corresponding to the file encoding format. By encoding and decoding the data packet, the security of the data packet during transmission is guaranteed.

[0011] In an optional embodiment, the decoding method is applied to decode the data packet fed back by the network device to obtain the current configuration file of the network device, including: applying the decoding method to decode the data packet fed back by the network device to obtain the target file and file identification information contained in the decoded data packet; based on the file identification information, determining whether the network device has finished sending the data packet; if the network device has not finished sending the data packet, waiting for the network device to continue to feed back the data packet, and applying the decoding method to decode the data packet sent by the network device each time until the file identification information in the currently decoded data packet indicates that the network device has finished sending the data packet, and then synthesizing each target file in each data packet sent by the network device into the current configuration file of the network device.

[0012] In an embodiment of the present application, before sending a configuration file, the network device can divide the configuration file into multiple target files and generate a data packet corresponding to each target file. Each data packet carries a file identification information. The file identification information is used to prompt the network device whether to finish sending the data packet, so as to determine whether the network device has finished sending the data packet based on the file identification information, thereby avoiding missing data packets and causing the obtained configuration file to be incomplete.

[0013] In an optional embodiment, synthesizing the target files in the data packets sent by the network device into the current configuration file of the network device includes: obtaining the serial number of each data packet sent by the network device; and synthesizing the target files in the data packets sent by the network device into the current configuration file of the network device in the order corresponding to the serial numbers.

[0014] In an embodiment of the present application, the network device sets a corresponding serial number for each data packet and sends each data packet in the order corresponding to the serial number, so as to synthesize the target files in each data packet according to the serial number, thereby avoiding the disorder of the order during the synthesis process, resulting in incoherent context content of the configuration file finally obtained.

[0015] In an optional embodiment, the file basic information also includes the total file length of the configuration file to be received; the method also includes: after obtaining the current configuration file of the network device, verifying the current configuration file of the network device based on the total file length in the file basic information that has been fed back by the network device.

[0016] In an embodiment of the present application, the configuration file is verified by the total file length to determine whether the total file length of the obtained configuration file is consistent with the total file length of the configuration file sent by the network device, and further determine the integrity of the received file.

[0017] In an optional implementation manner, the method further includes: setting a version number corresponding to each of the current configuration files, and saving each of the current configuration files with the set version number to a preset database.

[0018] In an embodiment of the present application, a version number is set for each configuration file and the configuration file is saved in a database so that when the administrator subsequently queries the configuration file, the configuration file can be queried by version number, which facilitates the subsequent management of the configuration file and improves the management efficiency of the network device.

[0019] In an optional embodiment, after obtaining current configuration files of multiple network devices, the method further includes: determining, in each of the current configuration files, a configuration file that best matches each of the network devices; for each of the network devices, if the best-matching configuration file is not the current configuration file of the network device, changing the current configuration content of the current configuration file of the network device according to the current configuration content of the best-matching configuration file.

[0020] In the embodiments of the present application, if the configuration file of the current configuration version of the network device is not the most suitable configuration file for the network device, if there is a configuration file of another network device that is more suitable for the current network device, the configuration file of the other network device can be used as the configuration baseline to modify the current configuration content in the current configuration file of the current network device. By selecting the configuration file that is most suitable for the network device, not only can the operating performance of the network device be improved, but also new configuration files can be eliminated from the need to re-set new configuration files for each network device, thereby improving the management efficiency of the network device.

[0021] In an optional embodiment, determining the configuration file that best matches each of the network devices includes: for each of the network devices, obtaining the application scenario corresponding to each of the network devices; identifying the degree of adaptation of each of the application scenarios to the current configuration content in each of the current configuration files; and selecting the current configuration file with the highest degree of adaptation from all degrees of adaptation as the best matching configuration file.

[0022] In an embodiment of the present application, during the application process of a network device, its corresponding application scenario may change. If the administrator does not set a new configuration file for the network device whose application scenario has changed, the application scenario of other network devices may be consistent with the application scenario of the network device. Therefore, based on the current application scenario of the network device, it can be determined whether the current configuration files of other network devices are more suitable for the application scenario of the network device. If so, the current configuration files of the other network devices can be used as the configuration baseline to change the current configuration content of the current configuration file of the network device, thereby improving the management efficiency of the network device.

[0023] In an optional embodiment, determining the target configuration file that best matches each of the network devices in each of the configuration files includes: displaying the current configuration content of each of the current configuration files on a preset display interface; and when detecting a user selection operation performed on the current configuration file in the display interface, determining that the current configuration file pointed to by the selection operation is the configuration file that best matches the network device.

[0024] In an embodiment of the present application, the user (i.e., administrator) can compare the differences between various configuration files through the display interface, and select a configuration file that is more suitable for a certain network device as the configuration baseline from multiple configuration files. There is no need to re-set a new configuration file for the network device, thereby improving the management efficiency of the network device.

[0025] In an optional embodiment, after displaying the configuration content of each of the current configuration files through a preset display interface, it also includes: when it is detected that a user performs a content adjustment operation on the current configuration file in the display interface, based on the operation content of the content adjustment operation, adjusting the current configuration content of the current configuration file pointed to by the adjustment operation, the adjustment content includes at least one of adding content, deleting content and modifying content.

[0026] In the embodiment of the present application, the user can simultaneously add, delete, and modify any configuration files without having to operate different network devices separately on different devices, thereby improving the management efficiency of the network devices.

[0027] In a second aspect, the present application provides an electronic device comprising: a processor, a memory and a bus; the processor and the memory communicate with each other via the bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the above-mentioned configuration file management method.

[0028] In a third aspect, the present application provides a computer storage medium having computer program instructions stored thereon. When the computer program instructions are read and executed by a computer, the above-mentioned configuration file management method is executed.

[0029] In a fourth aspect, the present application provides a computer program product, comprising computer program instructions, characterized in that the computer program implements the above-mentioned configuration file management method when executed by a processor.

[0030] Other features and advantages of the present application will be described in the following description. The purpose and other advantages of the present application can be realized and obtained through the structures specifically pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the accompanying drawings needed in the embodiments will be briefly introduced as follows. Obviously, the accompanying drawings in the following description only represent some of the embodiments of the present application, and can not fully represent the technical solutions of the present application. Those skilled in the art can also obtain other drawings from these drawings. Through the drawings, the above and other purposes, features and advantages of the present application will be more clearly illustrated.

[0032] Figure 1 A flowchart of a configuration file management method provided by an embodiment of the present application is shown;

[0033] Figure 2 A flowchart of obtaining a current configuration file provided by an embodiment of the present application is shown;

[0034] Figure 3 A flowchart of data packet decoding provided by an embodiment of the present application is shown;

[0035] Figure 4 A schematic diagram of a file transmission process provided by an embodiment of the present application is shown;

[0036] Figure 5 A flowchart of another configuration file management method provided by an embodiment of the present application is shown;

[0037] Figure 6 A structural diagram of a centralized management platform provided by an embodiment of the present application is shown;

[0038] Figure 7 A structural diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0039] The technical solutions of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. The following embodiments can be used as examples to more clearly illustrate the technical solutions of the present application, and cannot be used to limit the protection scope of the present application. Those skilled in the art can understand that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0040] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined or explained in subsequent figures. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0041] Furthermore, the term "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0042] In the description of the embodiments of the present application, unless otherwise clearly specified or limited, the technical term "connection" may refer to a direct connection or an indirect connection through an intermediate medium.

[0043] The present application provides a configuration file management method, which can be applied to processors of various system platforms, computer terminals or various mobile devices. The method flow chart of the method is as follows: Figure 1 As shown, the method may include the following steps:

[0044] S101: Obtain current configuration files of multiple network devices.

[0045] The current configuration file at least includes the current configuration content of the network device.

[0046] In the embodiments of the present application, the receiving end that obtains each current configuration file can be a centralized management platform. The centralized management platform can be application software installed on a client or an operating terminal connected to each network device. Each network device can be connected to the centralized management platform via wireless or wired connections. Each network device is configured with a configuration baseline of a configuration version. When the configuration baseline of each network device is required, the current configuration file of each network device is obtained in file form.

[0047] S102: If any network device is detected to be operating abnormally, the current configuration file of the abnormal network device is compared with the target configuration file to obtain difference information.

[0048] The target configuration file is a historical configuration file of the abnormal network device or a current configuration file of other network devices.

[0049] In an embodiment of the present application, a method for determining whether a network device is operating abnormally may include: when an abnormality occurs in the network device, it automatically reports an abnormality message to determine that the network device is operating abnormally based on the abnormality message, or, sending a detection signal to the network device according to a preset time period, and determining whether the network device is operating abnormally based on a feedback signal of the detection signal, or, a user obtains operating data of the network device by requesting, and the user determines whether the network device is operating abnormally based on the operating data.

[0050] After obtaining each current configuration file, it is saved in a pre-set database. When a network device experiences an anomaly, the target configuration file can be retrieved from the database. In addition to storing each network device's current configuration file, the database also stores each device's historical configuration file. Each historical configuration file serves as a configuration baseline for the device's previous configuration version.

[0051] When a network device experiences an anomaly, it may be because the application scenario has changed, causing the current configuration baseline to no longer meet the current operating conditions. Alternatively, after the network device has updated its configuration version, the new configuration baseline no longer meets the current operating conditions. Therefore, when a network device experiences an anomaly, it is recommended to obtain the current configuration files of other network devices or compare them with the historical configuration files of the network device to identify any discrepancies.

[0052] Among them, the method of selecting the target configuration file can be: if the application scenario of the network device changes, then from the current configuration files of multiple network devices that are not running abnormally, select the current configuration file of the application scenario and the application scenario of the abnormal network device as the target configuration file. The method of selecting the target configuration file can also be: if the network device updates the configuration version, the configuration baseline of the new version does not meet the current operating conditions, then the most recent historical configuration file can be obtained from multiple historical configuration files as the target configuration file. In addition, the user can also select the target configuration file from multiple current configuration files and multiple historical configuration files; for example: the user can compare and view the differences between the configuration contents of different configuration versions, so as to track the history of configuration content changes of the network device. When the current network service operation is abnormal, the configuration comparison can be used to analyze whether it is caused by configuration changes. The user can view the same configuration, different configuration, version newly added configuration, version modified configuration, version deleted configuration between two configuration baseline versions, and track the change details of multiple different versions.

[0053] S103: Based on the difference information, update the current configuration content in the current configuration file of the abnormal network device.

[0054] After updating the current configuration content in the current configuration file of the abnormal network device, the generated new configuration file is used as the configuration baseline of the network device. The network device is deployed according to the configuration baseline, so that the abnormal network device can resume normal operation based on the updated configuration content.

[0055] In the embodiment of the present application, the difference information records the difference positions of the newly added content and / or deleted content and / or modified content of the current configuration file relative to the target configuration file.

[0056] For example, if you need to compare two configuration files, each corresponding to a different configuration version, the lower version configuration file (FileVerLow) is used as the comparison object by default. The higher version configuration file (FileVerHigh) is compared with the lower version configuration file. The two text files are compared in lines to find the differences between the two files. The specific comparison methods include the following implementation scenarios:

[0057] In the first implementation scenario, if every line of the file FileVerLow is identical to every line of the file FileVerHigh, then the contents of the two compared files are identical;

[0058] In the second implementation scenario, line x of the file FileVerLow, FileVerLow_Line_X, is different from line x of the file FileVerHigh, FileVerHigh_Line_X. In this case, the following possible changes may occur:

[0059] 1) New: If FileVerLow_Line_X and FileVerHigh_Line_X+1 are the same, then FileVerHigh_Line_X is a new line. A blank line can be inserted above FileVerLow_Line_X to keep the number of lines in the two files the same. The position of the blank line in FileVerLow can be used to determine whether FileVerHigh has new content relative to FileVerLow.

[0060] 2) Delete: If FileVerLow_Line_X+1 and FileVerHigh_Line_X are the same, then a line has been deleted from FileVerHigh. The processing program inserts a blank line above FileVerHigh_Line_X to keep the number of lines in the two files the same. The position of the blank line in FileVerHigh can be used to determine whether the content of FileVerHigh has been deleted relative to FileVerLow.

[0061] 3) Modification: if FileVerLow_Line_X and FileVerHigh_Line_X parts are same, it is FileVerHigh that the content of this line is modified, and can be marked in FileVerLow_Line_X and FileVerHigh_Line_X; through the marked position, it is determined that the file FileVerHigh modifies the content relative to the file FileVerLow.

[0062] In updating the configuration content in the current configuration file of the abnormal network device based on the difference information, if the difference information records that the current configuration file adds content relative to the target configuration file, the added content can be deleted; if the difference information records that the current configuration file deletes content relative to the target configuration file, the deleted content can be supplemented in the corresponding position; if the difference information records that the current configuration file modifies content relative to the target configuration file, the modified content can be restored to the original content. In addition, the difference information can also be displayed on the preset display interface, and the user can change the current configuration content in the current configuration file according to the difference information.

[0063] Optionally, after obtaining the difference information, the specific manner of updating the current configuration content in the current configuration file of the abnormal network device based on the difference information is: based on the difference information, marking out the difference position in the current configuration content of the current configuration file, which has difference with the target configuration content of the target configuration file; according to the target configuration content, changing the content of the difference position, so as to update the current configuration content in the current configuration file of the abnormal network device.

[0064] The difference position can be highlighted to prompt that the content of the difference position is inconsistent with the target configuration content; or the difference position can be marked by adding a blank line in the difference position.

[0065] After updating the current configuration content according to the difference information, the updated configuration content does not contain a blank line, so as to avoid affecting the result when the updated configuration content is compared again in the subsequent.

[0066] After updating the current configuration file, the updated configuration file is taken as a new configuration baseline, and the network device can update the configuration version according to the new configuration baseline.

[0067] This application can centrally obtain the current configuration files of multiple network devices and centrally manage each network device. When a network device operates abnormally, the difference information between the abnormal network device and other network devices or historical configuration versions can be determined through the various configuration files that have been obtained. The difference information can be used to determine the difference between the abnormal network device and other network devices or historical configuration versions when the device is running with the current configuration version, and then determine the cause of the abnormal operation of the network device. The current configuration content of the abnormal network device is updated based on the difference information to ensure that the abnormal network device returns to normal based on the updated configuration content. There is no need for the user to perform abnormality detection and repair on each network device separately, thereby improving the management efficiency of each network device.

[0068] After obtaining the current configuration files of each network device, the version number corresponding to each current configuration file may be set, and each current configuration file with the set version number may be saved to the database.

[0069] The database stores multiple configuration files. For each network device, each time a configuration file is obtained, a corresponding version number is set. This version number can include the device name and the corresponding sequence number. For example, if the version number set after the configuration file for network device A obtained last was device A1.0, then the version number set after the configuration file for network device A obtained currently is device A2.0. Similarly, each subsequent configuration file obtained for network device A will be set to device A3.0, device A4.0, and so on, in order.

[0070] Optionally, if the configuration file obtained last time is consistent with the currently obtained configuration file, it indicates that the configuration content in the last configuration file has not changed. Therefore, the version number corresponding to the currently obtained configuration file is consistent with the version number of the configuration file obtained last time. At this time, the currently obtained configuration file does not need to be saved.

[0071] In an optional embodiment, when any network device operates abnormally, the current configuration file and target file of the abnormal network device can be directly obtained from the database to execute the processes corresponding to the above S101-S103, which will not be repeated here; or, when any network device operates abnormally, each network device is requested to obtain a new current configuration file again, and the current configuration file of the abnormal network device is obtained from each new current configuration file, and after obtaining the target configuration file from the database, the processes corresponding to the above S101-S103 are executed, which will not be repeated here.

[0072] This application can obtain configuration files of multiple network devices at the same time, and can uniformly process the configuration files of one or more network devices to achieve centralized management of multiple network devices and improve the management efficiency of each network device.

[0073] As an optional implementation, the current configuration files of each network device can be obtained according to a preset trigger instruction. Figure 2 As shown in the flowchart, the process of obtaining the current configuration file of each network device may include the following steps:

[0074] S201: In response to a preset trigger instruction, a file synchronization request is sent to each network device.

[0075] The trigger instruction is an external trigger instruction or a clock trigger instruction.

[0076] In the embodiments of the present application, an external trigger instruction is a instruction sent by a user through an external device, or a instruction sent by a user through a human-computer interaction component (e.g., a display screen or operation button corresponding to a display interface). A clock trigger instruction is a trigger instruction set according to a preset time period (e.g., every 30 minutes as a time period). When the clock reaches the preset time period, the process of requesting the network device to obtain the configuration file is triggered.

[0077] Through the file synchronization request, multiple network devices can be asked to send configuration files according to the request at one time, so that the return message of each device can be processed separately after the file synchronization request is sent.

[0078] S202: Receive a response message and at least one data packet respectively fed back by each network device based on the file synchronization request.

[0079] The response message includes basic file information of the configuration file to be obtained.

[0080] In an embodiment of the present application, after receiving a file synchronization request, the network device returns a response message based on the file synchronization request and, after successfully sending the response message, returns at least one data packet. The response message indicates that the configuration file is ready to be received and includes basic file information for the configuration file to be obtained. This basic file information may include the file encoding format set by the network device and field information related to the configuration file to be obtained, such as the total file length of the configuration file to be obtained.

[0081] S203: For each network device, based on the basic file information in the response message fed back by the network device, obtain the current configuration file from the data packet fed back by the network device.

[0082] In an embodiment of the present application, when the network device feeds back a configuration file according to a file synchronization request, the network device may divide the current configuration file into multiple files for transmission, and encapsulate each file into a data packet before transmission.

[0083] In one embodiment, after receiving the response messages and data packets fed back by each network device, for each network device, based on the file basic information in the response message fed back by the network device, the specific process of obtaining the current configuration file from the data packet fed back by the network device can be: obtaining the corresponding file encoding format from the file basic information; obtaining the decoding method corresponding to the file encoding format; applying the decoding method to decode the data packet fed back by the network device to obtain the current configuration file of the network device.

[0084] In an embodiment of the present application, when a network device sends back a configuration file, it simultaneously sends a file synchronization request to multiple network devices. During the process of receiving the configuration files fed back by each network device, the configuration files of some network devices may be leaked or tampered with by an unauthorized user. This may result in the configuration file received by the receiving end not being the current configuration file of the network device, and thus the cause of the abnormal operation of the network device cannot be determined when the network device is operating abnormally. Therefore, when the network device sends back a configuration file, it pre-sends back a response message based on the file synchronization request, so that the receiving end knows that the network device has received the file synchronization request and is prompted to wait for the data packet fed back by the network device. After receiving the data packet, the receiving end obtains the corresponding decoding method according to the file encoding format in the file basic information in the response message and decodes the data packet.

[0085] The response message and data packet fed back by the network device are obtained in a certain order. After obtaining the response message, the corresponding decoding method can be obtained in advance according to the file encoding format in the file basic information of the response message, and then the data packet fed back by the network device can be received; or, after obtaining the response message, the data packet can be obtained, and finally the corresponding decoding method can be obtained according to the file encoding format in the file basic information of the response message.

[0086] Different network devices may use different file encoding formats or the same file encoding format.

[0087] Before the network device sends back the current configuration file, if the file size of the current configuration file exceeds a first threshold or the file length exceeds a second threshold, the current configuration file takes a long time to send, affecting the efficiency of processing the current configuration file. Therefore, when sending the current configuration file, the network device can divide the current configuration file into multiple sub-files, each sub-file corresponding to a data packet.

[0088] Based on the method of the above embodiment, in the process of applying the decoding method to decode the data packet fed back by the network device in the embodiment S202 of the present application, more than one data packet fed back by the network device may be decoded. Figure 3 The flowchart shown in the figure decodes the data packet fed back by the network device to obtain the current configuration file of the network device, which may include the following steps:

[0089] S301: Apply a decoding method to decode the data packet fed back by the network device to obtain the target file and file identification information contained in the decoded data packet.

[0090] In the embodiment of the present application, the target file is a partial or complete file (i.e., a subfile) of the current configuration file that the network device needs to feedback, and the file identification information is used to indicate whether the network device has finished sending the data packet. The file identification information can be represented by a combination of numbers, characters, and / or symbols.

[0091] S302: Determine whether the network device has finished sending the data packet based on the file identification information.

[0092] For example: if the network device has not finished sending data packets, when the network device currently sends a data packet, the data packet carries the file identification information of the first file identifier (such as: 000 represents the first file identifier); if the network device wants to finish sending data packets, when sending the last data packet, the data packet carries the file identification information of the second file identifier (such as: 111 represents the second file identifier).

[0093] Specifically, if the network device has not finished sending the data packet, S303 is executed; if the network device has finished sending the data packet, S304 is executed.

[0094] S303: Wait for the network device to continue feeding back data packets, and return to S301 after receiving a new data packet fed back by the network device.

[0095] In an embodiment of the present application, if the network device has not finished sending the data packet, the process waits for the network device to continue feeding back the data packet, and applies a decoding method to decode the data packet sent by the network device each time.

[0096] The file encoding format used by the network device for each data packet may be the same.

[0097] S304: Synthesize each target file in each data packet sent by the network device into a current configuration file of the network device.

[0098] In an embodiment of the present application, if the network device has not finished sending data packets, the process waits for the network device to continue to feed back data packets, and applies a decoding method to decode each data packet sent by the network device until the file identification information in the currently decoded data packet indicates that the network device has finished sending data packets, and then synthesizes each target file in each data packet sent by the network device into the current configuration file of the network device.

[0099] In the process of sending a file synchronization request to a network device and receiving a response message and data packet fed back by the network device according to the file synchronization request, the configuration file can be transmitted between the receiving end and each network device through a normal data stream based on the File Transfer Protocol (FTP) or other transmission channels.

[0100] After dividing the current configuration file into multiple target files, the network device can also mark each data packet with a sequence number to ensure consistent reception of the received files. When sending data packets, some may be transmitted more efficiently than others. If the receiving end synthesizes the target files in the order they were received, the resulting configuration file may contain inconsistent configuration context.

[0101] To address the aforementioned issue, the network device pre-sets a sequence number for each data packet. After receiving the target files in each data packet sent by the network device, the receiving end synthesizes the target files in each data packet into the network device's current configuration file. The specific process can include: obtaining the sequence number of each data packet sent by the network device; and synthesizing the target files in each data packet sent by the network device into the network device's current configuration file in the order corresponding to the sequence numbers. Therefore, the target files in each data packet are synthesized in the order of the sequence numbers, avoiding inconsistencies in the current configuration content context within the obtained current configuration file.

[0102] In one implementation, each field information included in the basic file information may further include field information related to the total file length of the configuration file.

[0103] Optionally, the receiving end of the configuration file may verify the file based on the total file length or record the file transfer progress. That is, after obtaining the current configuration file of the network device, the current configuration file of the network device is verified based on the total file length in the basic file information fed back by the network device.

[0104] Optionally, the data packet sent back by the network device may include, in addition to the data packet sequence number, the data length of the data packet and the actual contents of the target file. The data length represents the length of the target file content contained in this data packet transmission. The receiving end can calculate the actual total length of the current configuration file based on this length and verify the current configuration file based on the actual total length obtained and the total length originally provided in the response message.

[0105] Based on the method provided in the above embodiment, the process of file transmission between the receiving end and the network device is as follows: Figure 4 As shown. Figure 4 In the present invention, the receiving end first sends a file synchronization request to the network device. After receiving the file synchronization request, the network device first feeds back a response message carrying the total length of the file and the file encoding format. The receiving end can verify the received data packet or record the file transfer progress based on the total length of the file, and prompt the receiving end to decode the data packet according to the file encoding format. After feeding back the response message, the network device then feeds back at least one data packet, each of which contains a target file and file identification information. After receiving each data packet, the receiving end decodes the data packet according to the decoding method obtained according to the file encoding format, and obtains the target file, file identification information and serial number in the data packet. If the file identification information in the data packet currently received by the receiving end indicates that the network device has finished sending the data packet, the obtained target files can be synthesized into the current configuration file in the order of the serial numbers.

[0106] According to the file transmission process of this embodiment, the file encoding format can be used to ensure that the file content is not leaked or tampered with during the transmission process, while ensuring the consistency of the current configuration content context in the final synthesized current configuration file.

[0107] In an optional manner of the embodiment of the present application, after obtaining the current configuration files of each network device, if there is no network device with abnormal operation, or there is a network device with abnormal operation, and while executing the above S102-S103, the configuration files of the network devices with normal operation can also be managed to achieve the management of the network devices with normal operation. Specifically, refer to Figure 5 The flowchart shown in FIG. 1 may further include the following process after executing the above-mentioned S101:

[0108] S104: Determine, among the current configuration files, a configuration file that best matches each network device.

[0109] In the embodiment of the present application, when the application environment of a network device is updated or the current configuration content of other network devices is optimized, the current configuration content of the current configuration files of the other network devices becomes more suitable for the service operation of the network device. Therefore, after obtaining the current configuration files of multiple network devices, each current configuration file can be matched with each network device to determine the configuration file that best matches each network device.

[0110] In an optional embodiment, the method for determining the configuration file that best matches each network device can be: for each network device, obtaining the application scenario corresponding to each network device; identifying the degree of adaptation of the application scenario to the current configuration content in each current configuration file; and selecting the current configuration file with the highest degree of adaptation from all adaptation degrees as the best matching configuration file.

[0111] If the application scenario of a network device changes and other network devices have updated their configurations based on the new application scenario, the current configurations in the current configuration files of the other network devices may be more suitable for the network device's service operations. Therefore, to improve the service operation efficiency of the network device, the current configuration file that best matches the application scenario can be selected from multiple current configuration files based on the network device's application scenario as the most suitable configuration file.

[0112] In another optional embodiment, the method for determining the configuration file that best matches each network device can be: displaying the current configuration content of each current configuration file on a preset display interface; when detecting that the user performs a selection operation on the current configuration file in the display interface, determining that the current configuration file pointed to by the selection operation is the configuration file that best matches the network device.

[0113] The preset display interface is the management interface, which supports users to view and compare the configuration files corresponding to any configuration version. Users can also determine the changes in the configuration of each network device by viewing the configuration files. Therefore, when it is necessary to select the configuration file that best matches the network device, the current configuration content of each current configuration file can be displayed on the display interface. Users can select the most matching configuration file from multiple configuration files based on experience.

[0114] When displaying the configuration file on the display interface, you can convert the configuration contents in the configuration file into text-based command lines to enable users to view the configuration contents more intuitively. For example:

[0115] ips engine xxx xxx xxx;

[0116] network interface xxx xxx xxx.

[0117] The command line can be used to visually display the configuration contents and compare the differences between the configuration contents.

[0118] In an embodiment of the present application, in addition to being able to select the most matching configuration file in the display interface, the user can also add, delete, and modify any configuration file. Since there are regularities in the configuration files of each configuration version of the network device, there are also regularities when saving the configuration files of each configuration version. Configuration files of the same type are saved in adjacent file locations. For the required configuration content, the command lines saved in the configuration file are also sequential. The configuration file of the network device can store command line configurations, and each complete command can be a line of text. At the same time, for each line of text in the configuration file, in order to simplify subsequent processing, all blank lines in the configuration file can be deleted in advance. At this time, the user can select the configuration baselines of any two configuration versions for comparison, and can use the lower version configuration baseline as the comparison object to compare the changes of the higher version configuration baseline relative to the lower version configuration baseline.

[0119] During the comparison process, users can choose to adjust the configuration content of any configuration file. For example, if a user performs a content adjustment operation on a current configuration file displayed on the display interface, the current configuration content of the current configuration file targeted by the adjustment operation is adjusted based on the content of the content adjustment operation. The adjustment content includes at least one of adding content, deleting content, and modifying content.

[0120] Among them, after the user adjusts the current configuration content, the configuration file generated by the final configuration content can be a configuration file of a historical configuration version or a configuration file of a new configuration version. For example, if the configuration content after the content adjustment is consistent with the configuration content of a previous configuration version, it means that the configuration version of the network device is rolled back to the previous configuration version; if the configuration content after the content adjustment is inconsistent with the historical configuration content, the configuration file generated by the final configuration content is deployed to the network device as the configuration baseline, and the network device performs business operations according to the configuration baseline. Among them, the essence of using the configuration file as the configuration baseline is to mark the configuration file with key identification information. The key identification information includes: baseline version number, baseline identification ID, device type and baseline generation time, etc.

[0121] S105: For each network device, if the best matching configuration file is not the current configuration file of the network device, change the current configuration content of the current configuration file of the network device according to the current configuration content of the best matching configuration file.

[0122] If the configuration file that best matches the network device is the current configuration file of the network device, the current configuration content of the current configuration file of the network device may not be changed.

[0123] In an optional embodiment, after the current configuration content of the network device's current configuration file is modified according to the current configuration content of the most closely matching configuration file, a new configuration file is generated as the configuration baseline for the network device, and this configuration baseline is deployed to the network device for service operation. If the network device operates abnormally according to the new configuration baseline, it is necessary to re-obtain the new configuration file as the current configuration file for the network device and execute the same steps S102-S103 as in the above embodiment, which will not be repeated here.

[0124] Optionally, in the embodiments of the present application, after any configuration content is adjusted, to avoid errors introduced by the modification, the user's modified and saved content will be verified. The verification can be completed automatically using a command line verification tool. The basic principles of verification include two aspects: 1) keyword verification, which does not allow undefined command keywords to appear; and 2) command rule verification, which requires that the command line must meet the grammatical rules of the command to avoid operational anomalies when the network device performs services according to the configuration baseline.

[0125] Optionally, you can use the configuration file of any network device as a configuration template. By adjusting the configuration template, you can generate a new configuration file that can be applied to other network devices. As more and more network devices are added to the network, the number of configuration templates will also increase. By continuously monitoring changes to configuration templates, you can automatically find configuration changes. When creating new configuration templates, you can automatically recommend the appropriate baseline template to the user based on the device type and deployment scenario, thereby improving the management efficiency of each network device.

[0126] Based on the same inventive concept, the present application also provides a centralized management platform. Figure 6 , Figure 6 This is a structural block diagram of a centralized management platform provided in an embodiment of the present application. The centralized management platform 600 includes: a device configuration synchronization module 601, a baseline configuration version difference comparison module 602 and a configuration baseline management module 603.

[0127] The device configuration synchronization module 601 is used to obtain the current configuration files of each network device.

[0128] The baseline configuration version difference comparison module 602 is used to compare the current configuration file of the abnormal network device with the target configuration file to obtain difference information if any network device is detected to be operating abnormally. The target configuration file is a historical configuration file of the network device or a current configuration file of other network devices.

[0129] The configuration baseline management module 603 is configured to update the current configuration content of the current configuration file of the abnormal network device based on the difference information.

[0130] In an optional embodiment, the centralized management platform further includes: a Web front end 604 and a database 605; the Web front end 604 includes a display interface, the display interface is used to display each of the current configuration files and receive user operations performed on each of the current configuration files; the database 605 is used to save the current configuration files of each of the network devices.

[0131] Specifically, the device configuration synchronization module 601 obtains the current configuration file of each network device, and is specifically used to: send a file synchronization request to each of the network devices in response to a preset trigger instruction, wherein the trigger instruction is an external trigger instruction or a clock trigger instruction; receive a response message and at least one data packet respectively fed back by each of the network devices based on the file synchronization request, wherein the response message contains the basic file information of the configuration file to be obtained; for each of the network devices, obtain the current configuration file from the data packet fed back by the network device based on the basic file information in the response message fed back by the network device.

[0132] In which, the data packet is an encoded data packet, and the file basic information includes the file encoding format set by the network device; in which, the device configuration synchronization module 601 obtains the current configuration file from the data packet fed back by the network device based on the file basic information in the response message fed back by the network device, and is specifically used to: obtain the corresponding file encoding format from the file basic information; obtain the decoding method corresponding to the file encoding format; apply the decoding method to decode the data packet fed back by the network device to obtain the current configuration file of the network device.

[0133] The device configuration synchronization module 601 applies the decoding method to decode the data packet fed back by the network device to obtain the current configuration file of the network device, and is specifically used to: apply the decoding method to decode the data packet fed back by the network device to obtain the target file and file identification information contained in the decoded data packet; based on the file identification information, determine whether the network device has finished sending the data packet; if the network device has not finished sending the data packet, wait for the network device to continue to feed back the data packet, and apply the decoding method to decode the data packet sent by the network device each time until the file identification information in the currently decoded data packet indicates that the network device has finished sending the data packet, and then synthesize the various target files in the various data packets sent by the network device into the current configuration file of the network device.

[0134] The device configuration synchronization module 601 synthesizes the target files in the data packets sent by the network device into the current configuration file of the network device, and is specifically used to: obtain the serial number of each data packet sent by the network device; and synthesize the target files in the data packets sent by the network device into the current configuration file of the network device in the order corresponding to each serial number.

[0135] Among them, the file basic information also includes the total file length of the configuration file to be received; the device configuration synchronization module 601 is also used to: after obtaining the current configuration file of the network device, verify the current configuration file of the network device based on the total file length in the file basic information that has been fed back by the network device.

[0136] The baseline configuration version difference comparison module 602 is further configured to set a version number corresponding to each of the current configuration files, and save each of the current configuration files with the set version number to a preset database.

[0137] The baseline configuration version difference comparison module 602 is also used to: determine the configuration file that best matches each of the network devices in each of the current configuration files; the configuration baseline management module 603 is also used to: for each of the network devices, if the best-matching configuration file is not the current configuration file of the network device, change the current configuration content of the current configuration file of the network device according to the current configuration content of the best-matching configuration file.

[0138] The configuration baseline management module 602 determines the configuration file that best matches each of the network devices in each of the configuration files, and is specifically used to: obtain the application scenario corresponding to each of the network devices for each of the network devices; identify the degree of adaptation of the application scenario to the current configuration content in each of the current configuration files; and select the current configuration file with the highest degree of adaptation from all the degrees of adaptation as the best matching configuration file.

[0139] The configuration baseline management module 602 determines, among the various configuration files, the configuration file that best matches each of the network devices, and is further specifically configured to: display the current configuration content of each of the current configuration files on a preset display interface; and upon detecting a user selection operation on the current configuration file in the display interface, determine that the current configuration file pointed to by the selection operation is the configuration file that best matches the network device.

[0140] The display interface is also used to: when it is detected that a user performs a content adjustment operation on the current configuration file in the display interface pair, adjust the current configuration content of the current configuration file pointed to by the adjustment operation based on the operation content of the content adjustment operation, and the adjustment content includes at least one of adding content, deleting content and modifying content.

[0141] The centralized management platform 600 provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the centralized management platform embodiment, reference may be made to the corresponding content in the aforementioned method embodiment.

[0142] like Figure 7 As shown, Figure 7 The block diagram of an electronic device 700 provided in an embodiment of the present application is shown. The electronic device 700 includes a transceiver 701, a memory 702, a communication bus 703, and a processor 704. In some possible implementations, the electronic device 700 may be the aforementioned centralized management platform 600, or include the aforementioned centralized management platform 600.

[0143] The transceiver 701, the memory 702, and the processor 704 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 703 or signal lines. The transceiver 701 is used to send and receive data. The memory 702 is used to store computer programs, such as Figure 6 The software functional modules shown in the figure are the centralized management platform 600. The centralized management platform 600 includes at least one software functional module that can be stored in the memory 702 in the form of software or firmware or solidified in the operating system (OS) of the electronic device 700. The processor 704 is used to execute the executable modules stored in the memory 702, such as the software functional modules or computer programs included in the centralized management platform 600. For example, the processor 704 is used to execute the configuration file management method provided in the above embodiment.

[0144] Among them, the memory 702 can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0145] The processor 704 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), an accelerated processing unit (Accelerated Processing Unit), a multimedia application processor (MAP), a microprocessor, etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. Alternatively, the processor 704 may also be any conventional processor, etc.

[0146] The electronic device 700 mentioned above includes but is not limited to mobile terminals such as mobile phones, laptop computers, tablet computers, etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0147] An embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter referred to as storage medium), on which a computer program is stored. When the computer program is run by a computer such as the electronic device 700 described above, the configuration file management method as shown above is executed.

[0148] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other.

[0149] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0150] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0151] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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 computer-readable storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a laptop, a server, or an electronic device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0152] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A configuration file management method, characterized in that: The method comprises: Obtaining current configuration files of a plurality of network devices, wherein the current configuration files at least include current configuration content of the network devices; If any network device is detected to be operating abnormally, the current configuration file of the abnormal network device is compared with the target configuration file to obtain difference information, wherein the target configuration file is a historical configuration file of the abnormal network device or a current configuration file of other network devices; Updating the current configuration content in the current configuration file of the abnormal network device based on the difference information includes: marking a difference position in the current configuration content of the current configuration file that is different from the target configuration content of the target configuration file based on the difference information; and modifying the content of the difference position according to the target configuration content to update the current configuration content in the current configuration file of the abnormal network device; Among them, the method of determining whether the network device is operating abnormally includes: when an abnormality occurs in the network device, it automatically reports an abnormality message to determine that the network device is operating abnormally based on the abnormality message, or, sending a detection signal to the network device according to a preset time period, and determining whether the network device is operating abnormally based on the feedback signal of the detection signal, or, the user obtains the operating data of the network device through a request, and the user determines whether the network device is operating abnormally based on the operating data.

2. The method according to claim 1, characterized in that The obtaining of current configuration files of the plurality of network devices includes: In response to a preset trigger instruction, sending a file synchronization request to each of the network devices, wherein the trigger instruction is an external trigger instruction or a clock trigger instruction; receiving a response message and at least one data packet respectively fed back by each of the network devices based on the file synchronization request, wherein the response message includes basic file information of the configuration file to be obtained; For each of the network devices, based on the basic file information in the response message fed back by the network device, a current configuration file is obtained from the data packet fed back by the network device.

3. The method according to claim 2, characterized in that The data packet is an encoded data packet, and the basic file information includes the file encoding format set by the network device; The obtaining of the current configuration file from the data packet fed back by the network device based on the basic file information in the response message fed back by the network device includes: Obtaining the corresponding file encoding format from the file basic information; Obtaining a decoding method corresponding to the file encoding format; The decoding method is applied to decode the data packet fed back by the network device to obtain the current configuration file of the network device.

4. The method according to claim 3, characterized in that The applying the decoding method to decode the data packet fed back by the network device to obtain the current configuration file of the network device includes: Applying the decoding method to decode the data packet fed back by the network device to obtain the target file and file identification information contained in the decoded data packet; determining, based on the file identification information, whether the network device has finished sending the data packet; If the network device has not finished sending data packets, wait for the network device to continue to feed back data packets, and apply the decoding method to decode the data packets sent by the network device each time until the file identification information in the currently decoded data packet indicates that the network device has finished sending data packets, and then synthesize the various target files in the various data packets sent by the network device into the current configuration file of the network device.

5. The method according to claim 4, characterized in that The step of synthesizing the target files in the data packets sent by the network device into a current configuration file of the network device includes: Obtaining a sequence number of each data packet sent by the network device; In accordance with the order corresponding to the serial numbers, each target file in each data packet sent by the network device is synthesized into a current configuration file of the network device.

6. The method according to claim 4, characterized in that The basic file information also includes the total length of the configuration file to be received; The method further comprises: After obtaining the current configuration file of the network device, the current configuration file of the network device is verified based on the total length of the file in the basic file information fed back by the network device.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: A version number corresponding to each of the current configuration files is set, and each of the current configuration files with the set version number is saved to a preset database.

8. The method according to claim 1, characterized in that After obtaining current configuration files of the plurality of network devices, the method further includes: Determine, among the current configuration files, a configuration file that best matches each of the network devices; For each of the network devices, if the best matching configuration file is not the current configuration file of the network device, the current configuration content of the current configuration file of the network device is changed according to the current configuration content of the best matching configuration file.

9. The method according to claim 8, characterized in that Determining, among the configuration files, a configuration file that best matches each of the network devices includes: For each of the network devices, obtaining an application scenario corresponding to each of the network devices; Identifying the degree of compatibility between the application scenarios and the current configuration contents in each of the current configuration files; The current configuration file with the highest degree of adaptation is selected from all degrees of adaptation as the best matching configuration file.

10. The method according to claim 8, characterized in that Determining the target configuration file that best matches each of the network devices among the configuration files includes: Displaying the current configuration content of each of the current configuration files on a preset display interface; In a case where a selection operation performed by a user on a current configuration file in the display interface is detected, the current configuration file pointed to by the selection operation is determined to be a configuration file that best matches the network device.

11. The method according to claim 10, characterized in that After displaying the configuration contents of each current configuration file through a preset display interface, the method further includes: When it is detected that a user performs a content adjustment operation on the current configuration file in the display interface pair, the current configuration content of the current configuration file pointed to by the adjustment operation is adjusted based on the operation content of the content adjustment operation, and the adjusted content includes at least one of adding content, deleting content and modifying content.

12. An electronic device, characterized in that: include: processor, memory, and bus; The processor and the memory communicate with each other via the bus; The memory stores program instructions that can be executed by the processor, and the processor can execute the method according to any one of claims 1 to 11 by calling the program instructions.

13. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, and when the computer program instructions are read and executed by a computer, the method according to any one of claims 1 to 11 is executed.

14. A computer program product comprising computer program instructions, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Management method for network equipment configuration files, and network controller

    CN104104547A

  • Network device configuration method and apparatus

    CN109639509A