Network device configuration management methods, devices, electronic equipment and storage media
By performing fuzzy matching and semantic analysis on network device configuration files, obtaining differential configuration information, and performing targeted parameter detection, the problem of time-consuming and unstable network device configuration file updates is solved, and fast and stable configuration file switching management is achieved.
Patent Information
- Application Number
- CN202511565071.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-30
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2045-10-30
AI Technical Summary
In existing technologies, updating network device configuration files is time-consuming and unstable. In particular, due to the large differences in configuration syntax among different manufacturers, automated tools are difficult to handle uniformly, which increases maintenance costs and may lead to service interruptions due to configuration failures.
By performing fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file, the difference configuration information is obtained. Based on the difference configuration information, targeted parameter detection is performed to determine the difference operating status of the network device, and the configuration file is switched and managed according to the difference operating status.
It enables fast and stable updates of network device configuration files, reduces the time spent obtaining different configuration information, avoids instability caused by configuration file replacement, and is suitable for network devices from different manufacturers and operating system platforms.
Smart Images

Figure CN121037218B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network device configuration technology, and more specifically to a management method, apparatus, electronic device, and storage medium for network device configuration. Background Technology
[0002] Network device configuration file management is one of the core pillars of network operation and maintenance. Its importance cannot be overstated, as it directly relates to the stability, security, efficiency, and compliance of the network.
[0003] However, the significant differences in configuration syntax among different vendors make it difficult for automation tools to handle them uniformly. For example, Cisco, Huawei, and H3C have different configuration styles, requiring tools to be constantly updated to adapt to different configuration style requirements, increasing complexity and maintenance costs. Furthermore, users may encounter service interruptions due to incomplete configuration during rollbacks after failed changes, leading to a loss of trust in automation tools.
[0004] Therefore, in the process of configuring and managing network devices, there are problems such as the long time consumption and instability of updating network device configuration files. Summary of the Invention
[0005] This invention provides a method, apparatus, electronic device, and storage medium for managing network device configurations, aiming to solve the problem of long processing time and instability in updating network device configuration files during the configuration management process.
[0006] To address the aforementioned technical problems, the embodiments of the present invention provide the following technical solutions:
[0007] A method for managing network device configuration, comprising:
[0008] Obtain the configuration file to be replaced and the target configuration file of the network device;
[0009] Fuzzy matching and semantic analysis are performed on the configuration file to be replaced and the target configuration file to obtain the difference configuration information;
[0010] Based on the differential configuration information, targeted parameter detection is performed on the network device to determine the differential operating status of the network device;
[0011] The configuration files of the network devices are switched and managed according to the differences in their operating states.
[0012] Optionally, the difference configuration information includes syntactic difference information and semantic deviation information; the step of performing fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain the difference configuration information includes:
[0013] The syntactic difference information is obtained by performing structural analysis on the configuration file to be replaced and the target configuration file using a preset text comparison algorithm.
[0014] The semantic deviation information is obtained by performing semantic analysis on the configuration file to be replaced and the target configuration file using a preset semantic similarity algorithm.
[0015] Optionally, the configuration file includes the network device's operating rules and operating parameters, wherein the operating rules, operating parameters, configuration file syntax, and configuration file semantics exist in groups; the differential operating status includes differential operating rule status and differential operating parameter status; the step of performing targeted parameter detection on the network device based on the differential configuration information to determine the differential operating status of the network device includes:
[0016] Based on the relationship between the grouped existence of running rules, running parameters, syntax and semantics, the differential running rules and differential running parameters corresponding to the syntax difference information and the semantic deviation information in the target configuration file are obtained;
[0017] The first real-time data generated when the network device executes the differential operation rule is detected, and the differential operation rule status of the network device is determined based on the first real-time data and the data threshold range corresponding to the first real-time data.
[0018] The system detects second real-time data that is directly related to the differential operating parameters of the network device, and determines the differential operating parameter status of the network device based on the second real-time data and the data threshold range corresponding to the second real-time data.
[0019] Optionally, the step of switching and managing the configuration files of the network devices based on the different operating states includes:
[0020] When the difference in operating status exceeds the preset operating status threshold range, the configuration file of the network device is switched from the target configuration file to the configuration file to be replaced.
[0021] Optionally, after switching and managing the configuration files of the network devices according to the different operating states, the method further includes:
[0022] Based on the historical failure frequency, idle time, and importance of the services carried by the network devices, the optimal timing for delivery is predicted.
[0023] Based on the optimal delivery timing, the configuration file of the network device is switched to the target configuration file.
[0024] Optionally, after switching the network device's configuration file to the target configuration file, the method further includes:
[0025] The target configuration file is revised in batches based on a preset template to obtain a set of target configuration files, which are logically identical to the target configuration file.
[0026] Select the target configuration files of the same network devices from the target configuration file set;
[0027] The configuration requirements of the network devices in the same network family are similar to those of the network devices in question.
[0028] Optionally, obtaining the network device's configuration file to be replaced includes:
[0029] Obtain the current network environment load of the network device;
[0030] The configuration file with the highest compatibility with the current network load in the preset configuration file library is identified as the configuration file to be replaced.
[0031] A network device configuration management device, comprising:
[0032] The configuration file acquisition module is used to acquire the configuration file to be replaced and the target configuration file of the network device;
[0033] The differential configuration information determination module is used to perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain differential configuration information.
[0034] The differential operating status detection module is used to perform targeted parameter detection on the network device based on the differential configuration information to determine the differential operating status of the network device.
[0035] The configuration file management module is used to switch and manage the configuration files of the network devices according to the differences in their operating states.
[0036] An electronic device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps:
[0037] Obtain the configuration file to be replaced and the target configuration file of the network device;
[0038] Fuzzy matching and semantic analysis are performed on the configuration file to be replaced and the target configuration file to obtain the difference configuration information;
[0039] Based on the differential configuration information, targeted parameter detection is performed on the network device to determine the differential operating status of the network device;
[0040] The configuration files of the network devices are switched and managed according to the differences in their operating states.
[0041] A computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the network device configuration management method described above.
[0042] In this embodiment of the invention, fuzzy matching and semantic analysis are performed on the configuration file to be replaced and the target configuration file. Since the analysis is based on text and semantics, configuration files from different manufacturers can be parsed simultaneously, reducing the time spent obtaining differential configuration information. By identifying the changed parts of the configuration file to be replaced by the differential configuration information, the operating status of the network device in the changed parts can be analyzed in a targeted manner to determine the differential operating status of the network device and quickly identify possible abnormal situations of the network device. Furthermore, during the management of network device configuration, a complete configuration file to be replaced is obtained, and the configuration file to be replaced is a configuration file that has been running stably and reliably in the network device's history. Therefore, when running the configuration file to be replaced, there is no need to consider the statement order and device status. Thus, by adaptively switching the network device's configuration file to the configuration file to be replaced according to the differential operating status, the problem of network device instability caused by changing the configuration file can be avoided. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 A schematic diagram of a scenario of an embodiment of the network device configuration management system provided in this invention;
[0045] Figure 2 A schematic diagram of another embodiment of the network device configuration management system provided in this invention;
[0046] Figure 3 A flowchart illustrating an embodiment of the network device configuration management method provided in this invention;
[0047] Figure 4 An architecture design diagram of an embodiment of a network device configuration management system provided in this invention;
[0048] Figure 5 A flowchart illustrating an embodiment of the network device configuration management method provided in this invention.
[0049] Figure 6 A schematic diagram of a network device configuration management device according to an embodiment of the present invention;
[0050] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0052] In the following description, specific embodiments of the invention will be illustrated with reference to steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be referred to several times as being performed by a computer, and computer execution as referred to herein includes operations by a computer processing unit representing electronic signals of data in a structured format. This operation transforms the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the invention described above are not intended to be limiting, and those skilled in the art will understand that many of the steps and operations described below can also be implemented in hardware.
[0053] The terms "module" or "unit" as used herein can be considered as software objects executing on the computing system. The different components, modules, engines, and services described herein can be considered as implementation objects on the computing system. The apparatus and methods described herein are preferably implemented in software, but can also be implemented in hardware, both of which are within the scope of this invention.
[0054] This invention provides a method, apparatus, electronic device, and storage medium for managing network device configuration.
[0055] Please see Figure 1 , Figure 1This is a schematic diagram illustrating a scenario of an embodiment of the network device configuration management system provided in this invention. The management system may include a client 100 and a server 200, which are connected via a network. The server 200 integrates a network device configuration management device. The server 200 may be a work platform server (i.e., a server loaded with a work platform), such as... Figure 1 In this embodiment of the invention, server 200 is mainly used to obtain the configuration file to be replaced and the target configuration file of the network device; perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain the difference configuration information; perform targeted parameter detection on the network device based on the difference configuration information to determine the difference operating status of the network device; and manage the switching of the configuration file of the network device according to the difference operating status.
[0056] In this embodiment of the invention, the server 200 can be a standalone server, a server network, or a server cluster. For example, the server 200 described in this embodiment includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing. In this embodiment of the invention, communication between the server and the client can be achieved through any communication method, including but not limited to, mobile communication based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), and Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP / IP Protocol Suite (TCP / IP) and User Datagram Protocol (UDP).
[0057] It is understood that the client 100 used in this embodiment of the invention can be understood as a client device. A client device includes both receiving and transmitting hardware, that is, a device with receiving and transmitting hardware capable of performing bidirectional communication on a bidirectional communication link. Such a client device may include cellular or other communication devices, having a single-line display, a multi-line display, or a cellular or other communication device without a multi-line display. Specifically, the client 100 may be a desktop terminal or a mobile terminal, specifically a mobile phone, tablet computer, laptop computer, etc.
[0058] Those skilled in the art will understand that Figure 1 The application environment shown is merely one application scenario of the solution in this application and does not constitute a limitation on the application scenario of the solution in this application. Other application environments may include those that are more specific to this application. Figure 1 The number of more or fewer servers shown, or the server network connectivity relationships, for example... Figure 1 Only one server and two clients are shown in the diagram. It is understood that the management system configured for this network device may also include one or more other servers, and / or one or more clients connected to the server network, which is not limited here.
[0059] In some embodiments of the present invention, the working platform may be an enterprise office platform, such as WeChat for Business. Taking server 200 as an example, it may further include an enterprise office platform contact server, an enterprise office platform configuration management server, and a web management server. Enterprise users or developers can access the web management server using a web browser terminal to configure the field configuration information on the enterprise office platform configuration management server, and set and store the enterprise user information of enterprise employees of the enterprise office platform on the enterprise office platform contact server.
[0060] In addition, such as Figure 2 As shown, Figure 2 This is a schematic diagram of another embodiment of the network device configuration management system provided in this invention. The network device configuration management system may further include a storage terminal 300 for storing data, such as a storage object database. The object database stores object data, which may include application templates (such as approval templates, attendance templates, and other application templates), file data (such as Word files, Excel files, or PPT files, and other files in various formats), image data (such as images in various formats such as JPG, PNG, and BMP), and other types of data. Correspondingly, the object database may also be divided into multiple types of data, such as an application database, a file database, or an image database.
[0061] It should be noted that, Figure 1-2 The schematic diagram of the network device configuration management system shown is merely an example. The network device configuration management system and scenarios described in the embodiments of the present invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. As those skilled in the art will know, with the evolution of the network device configuration management system and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0062] The following detailed description is based on specific embodiments.
[0063] In this embodiment, the description will be from the perspective of a network device configuration management device, which can be integrated into the server 200.
[0064] This invention provides a method for managing network device configurations; please refer to [link / reference]. Figure 3 , Figure 3 A flowchart illustrating an embodiment of the network device configuration management method provided in this invention includes:
[0065] S301: Obtain the network device's configuration file to be replaced and target configuration file;
[0066] In one specific embodiment, a network device is dedicated hardware for building and managing computer networks, undertaking core functions such as data connection, transmission, routing, and security.
[0067] In this application embodiment, the network device can be of the following types:
[0068] I. Core Connectivity Equipment (Enabling Basic Network Interconnection)
[0069] 1. Router: Forwards data between different networks (such as connecting a local area network and the Internet), selects the best transmission path based on IP address, and supports routing protocols such as OSPF and BGP.
[0070] 2. Switch: Within a local area network (LAN), a switch efficiently forwards data frames based on MAC addresses, reducing broadcast storms and improving communication efficiency. Switches are categorized as unmanaged, intelligent, and fully managed.
[0071] II. Access and Expansion Equipment (Connecting Terminals and Extending Network Boundaries)
[0072] 1. Network Interface Card (NIC): An essential piece of hardware for computers, servers, and other terminals to connect to a network, providing a physical interface (such as an Ethernet port or a fiber optic port).
[0073] 2. Modem and Optical Transceiver (ONT): These convert digital signals to analog signals (Modem) or fiber optic signals to electrical signals (Optical Transceiver) for broadband access.
[0074] 3. Wireless Access Point (WAP): Extends wireless network coverage and is often used in conjunction with a router to build a Wi-Fi network.
[0075] III. Network security equipment (ensuring data security and access control)
[0076] 1. Firewall: A hardware-level firewall is integrated into a dedicated chip. It filters traffic through policies and rules to protect the internal network from attacks and is the core of network perimeter security.
[0077] 2. VPN server: Establishes an encrypted tunnel to enable secure remote access to intranet resources.
[0078] IV. Traditional and Auxiliary Equipment (Special Application Scenarios)
[0079] 1. Bridge: Connects two local area network segments at the data link layer, filters and forwards frames based on MAC address, and is suitable for segmenting collision domains.
[0080] 2. Repeater: A physical layer device that amplifies signals to extend transmission distance and solves the problem of signal attenuation.
[0081] 3. Gateways enable the conversion between networks with different protocols (such as IPv4 and IPv6) and operate at the transport or application layer.
[0082] In this embodiment of the application, the network device can be any of the above-mentioned types, and no limitation is made herein.
[0083] Network device configuration files are the core instruction set for device operation, defining key parameters such as network connections, security policies, and routing rules. In essence, configuration files are the "DNA" of a network system—they determine how network devices interact, how data flows, and how security is ensured. Configuration files contain many crucial parameters, such as routing tables, routing protocols, priorities, port states, port VLANs, port link types (trunk / access), port link aggregation modes, and SNMP protocol configurations. By configuring these parameters, network administrators can flexibly adjust switch routing policies, ensuring that data packets are forwarded along predetermined paths. The capabilities of source routing configuration files enable network administrators to better control and manage network traffic, improving network performance and reliability. Therefore, standardized management of network device configuration files is necessary to ensure stable network operation.
[0084] The configuration file to be replaced refers to the configuration file currently running on the network device. It may have some issues that need to be fixed, but it can still meet the operational requirements. It is a configuration file with high reliability and still running in the current state.
[0085] The target configuration file refers to the modified configuration file proposed based on the issues that need to be fixed in the configuration file to be replaced. Network devices need to switch the running configuration file to the target configuration file in order to avoid those issues from occurring.
[0086] S302: Perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain the difference configuration information;
[0087] In one specific embodiment, fuzzy matching and semantic analysis refers to comparing the contents of the configuration file to be replaced and the target configuration file, identifying the differences between them, and then performing semantic parsing on the differences to obtain specific content information about the differences between the configuration file to be replaced and the target configuration file, i.e., the difference configuration information.
[0088] It should be noted that differential configuration information can accurately reflect the actual changes in the configuration file and directly pinpoint the configuration parameters that truly affect the function of network devices (such as changes in routing policies, adjustments to security rules, and modifications to interface parameters). Therefore, by specifically analyzing differential configuration information, the management system can be driven to focus only on the impact of these changes.
[0089] S303: Based on the differential configuration information, perform targeted parameter detection on network devices to determine the differential operating status of network devices;
[0090] In one specific embodiment, targeted parameter detection refers to performing targeted detection on the data corresponding to the parameters involved in the differential configuration information, thereby evaluating the changes in the operating status of the network device based on the data corresponding to these parameters, in order to determine the possible changes in the operating status of the network device caused by the changes in the configuration file, i.e., the differential operating status.
[0091] It should be noted that the difference in operating status refers to the change in the operating status of a network device caused by changes in the configuration file. That is, the difference between the state of the network device when running the configuration file to be replaced and the state of the network device when running the target configuration file.
[0092] S304: Manage the switching of network device configuration files based on differences in operating status.
[0093] In one specific embodiment, when a network device switches from running a configuration file to be replaced to a target configuration file, fluctuations in its operating state are inevitable. In order to ensure the stability of the network device, it is necessary to detect the differences in operating state to determine whether the network device can stably run the target configuration file.
[0094] It should be noted that managing the switching of network device configuration files means switching the network device's configuration file back to the configuration file to be replaced when it is determined that the network device cannot stably run the target configuration file.
[0095] Because the rollback mechanism of network devices relies on factors such as statement order and device status, there may be issues with incomplete rollback success. However, in this embodiment, during the management of network device configuration, a complete configuration file to be replaced is obtained. Furthermore, this configuration file is one that the network device has historically proven to be stable and reliable. Therefore, when running the configuration file to be replaced, statement order and device status do not need to be considered. Thus, if the network device cannot stably run the target configuration file, switching the network device's configuration file back to the configuration file to be replaced still ensures that the network device can operate stably for a certain period.
[0096] In this embodiment of the invention, fuzzy matching and semantic analysis are performed on the configuration file to be replaced and the target configuration file. Since the analysis is based on text and semantics, configuration files from different manufacturers can be parsed simultaneously, reducing the time spent obtaining differential configuration information. By identifying the changed parts of the configuration file to be replaced by the differential configuration information, the operating status of the network device in the changed parts can be analyzed in a targeted manner to determine the differential operating status of the network device and quickly identify possible abnormal situations of the network device. Furthermore, during the management of network device configuration, a complete configuration file to be replaced is obtained, and the configuration file to be replaced is a configuration file that has been running stably and reliably in the network device's history. Therefore, when running the configuration file to be replaced, there is no need to consider the statement order and device status. Thus, by adaptively switching the network device's configuration file to the configuration file to be replaced according to the differential operating status, the problem of network device instability caused by changing the configuration file can be avoided.
[0097] It should be noted that, regarding the issue of managing multi-vendor devices that users may encounter, the configuration syntax of different vendors varies greatly, making it difficult for automation tools to handle them uniformly. The above-described network device configuration management method is not only applicable to a specific type of network device, but also to different types of network devices, i.e., network devices from different manufacturers or operating system platforms. Assuming that the network device in the above embodiment is a network device from a first vendor or a first operating system platform, the method is also applicable to another network device from another vendor or another operating system platform. The specific method steps include:
[0098] The process involves: acquiring the configuration file to be replaced and the target configuration file of another network device; performing fuzzy matching and semantic analysis on the configuration files to be replaced and the target configuration file to obtain differential configuration information; performing targeted parameter detection on the other network device based on the differential configuration information to determine the differential operating status of the other network device; and managing the switching of the configuration file of the other network device according to the differential operating status, wherein the other network device and... Figure 3The network devices in the illustrated embodiments are network devices from different manufacturers or operating system platforms.
[0099] In this embodiment, by managing the configuration files of network devices based on syntax and semantics, unified and automated management of configuration files with similar syntax is fundamentally achieved, avoiding the tedious and complex configuration work caused by constantly updating configuration styles. Furthermore, since the above-mentioned network device configuration management method can be applied to different network devices, the configuration files can be automatically updated for network devices from different manufacturers, greatly reducing the time spent on network device configuration updates.
[0100] In one specific embodiment, in S301, during the process of obtaining the configuration file to be replaced for the network device, the configuration file to be replaced is generally the latest version of the configuration file currently running on the network device. However, since a configuration file switching operation is required, in order to ensure the stability of the switching process, it is necessary to perform adaptive screening on the configuration file to be replaced. Specifically, in order to obtain the configuration file to be replaced for the network device, firstly, the current network environment load of the network device is obtained; then, the configuration file with the highest adaptability to the current network environment load in the preset configuration file library is determined as the configuration file to be replaced.
[0101] It should be noted that the preset configuration file library generally refers to the sum of all configuration files that the network device has run, and it is also necessary to ensure that the network device can still stably run the configuration file.
[0102] In this embodiment, based on the current network environment load of the network device, the current network environment load (such as traffic peak, number of connections, CPU / memory utilization, etc.) of the network device is perceived in real time, and historical information is fully utilized to adaptively filter the configuration file of the network device, so as to obtain the historical configuration file that can run more smoothly under the current network environment load as the configuration file to be replaced.
[0103] On the other hand, when a network device switches from running a configuration file to a target configuration file, and the network device's operating environment or other hardware configuration changes significantly, potentially leading to unstable operation of the configuration file to be replaced, in order to ensure the stable operation of the network device, it is necessary to first obtain a replaceable configuration file that matches the changed network device as the first target configuration file. Then, after ensuring that the network device can run stably based on the first target configuration file, a second target configuration file that specifically fixes the problems of the configuration file to be replaced is used as the target configuration file, while the first target configuration file is used as the configuration file to be replaced for configuration file management.
[0104] In this embodiment, in the event of significant changes in the operating environment or other hardware configuration of the network device, in order to ensure that the network device can stably run the configuration file at all times, the configuration file of the network device is switched twice, with a replaceable configuration file as a transition.
[0105] In one specific embodiment, in S302, the difference configuration information includes syntactic difference information and semantic deviation information; in order to perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain the difference configuration information, the following steps are taken: performing structural analysis on the configuration file to be replaced and the target configuration file using a preset text comparison algorithm to obtain syntactic difference information; and performing semantic analysis on the configuration file to be replaced and the target configuration file using a preset semantic similarity algorithm to obtain semantic deviation information.
[0106] In one specific embodiment, syntactic differences refer to information reflecting the differences between two configuration files in terms of surface syntax structure and text layout. These generally include: differences in line count (addition, deletion, modification); different indentation methods (spaces vs. tabs); different positions, numbers, or contents of comments; different spellings or capitalizations of keywords (such as XML tag names, JSON key names, INI block names, etc.); different file / configuration item order; differences in the use of delimiters, quotation marks, and parentheses (e.g., 'value' vs. "value"); different numbers of whitespace characters (spaces, blank lines); and whether the configuration files use consistent syntax structures (e.g., whether they both conform to valid JSON, XML, YAML, etc.).
[0107] Semantic deviation information refers to information reflecting the differences between two configuration files in terms of their expressed function, configuration intent, or meaning, and the resulting expected gap in effects. It generally focuses on: logically or functionally meaningful changes in the values of configuration items with the same name (even if the types are the same); different meanings or scopes represented by the configuration items themselves (e.g., configurations with the same name in different subsystems); changes in the logical relationships or dependencies between configuration items (e.g., if one configuration is enabled, another must be modified); configuration items with the same function using different paths or combinations; and changes in the expected effects or behaviors of the configurations.
[0108] In one specific embodiment, a text comparison algorithm is a computational method for comparing the differences between two or more text files. Its core purpose is to identify the added, deleted, or modified portions in the content of the configuration file to be replaced and the target configuration file. Text comparison algorithms include at least one of the following: Myers Diff Algorithm, Hunt-McIlroy Algorithm, Patience Diff Algorithm, and Token / AST-Based Diffing.
[0109] In one specific embodiment, semantic similarity algorithms are natural language processing (NLP) techniques used to evaluate the semantic similarity between two texts. Semantic similarity algorithms not only focus on the literal expression of the text but also attempt to understand the meaning behind it. Common semantic similarity algorithms include BERT embedding vectors combined with cosine similarity calculation.
[0110] Specifically, when performing structural analysis on the configuration file to be replaced and the target configuration file, a line-level comparison algorithm (such as optimized Myers or Patience Diff) is first applied to quickly locate the approximate difference area. Then, a deep comparison algorithm based on Token / AST is applied to the difference area or the entire configuration to perform a true "structural analysis" and accurately report the syntax difference information (block addition, deletion, movement, parameter change, command name change, etc.).
[0111] When performing semantic analysis on the configuration file to be replaced and the target configuration file, the text of both is converted into high-dimensional vectors to capture their semantic information. For example, although `ip address 192.168.1.1 255.255.255.0` and `ip addr 192.168.1.1 / 24` are literally different, they may be considered semantically equivalent. Specifically, the semantic similarity between the two texts is evaluated by calculating the distance or angle between the vectors (such as cosine similarity), thus obtaining semantic deviation information.
[0112] Furthermore, after obtaining the difference configuration information, in order to facilitate users to quickly identify the difference configuration information, it is necessary to use color-coded visual markers to mark the syntactic difference information and semantic deviation information.
[0113] In this embodiment, by using different colors or color attributes (such as hue, saturation, and brightness) to distinguish and encode differential configuration information, the differential areas can be quickly located, facilitating user analysis and decision-making.
[0114] In one specific embodiment, in S303, the configuration file includes the network device's operating rules and network device's operating parameters, wherein the operating rules, operating parameters, configuration file syntax, and configuration file semantics exist as a group.
[0115] Operating rules refer to the constraints, limitations, and behavioral guidelines that a system or program must follow when it runs, defining the boundaries and logic of system operation.
[0116] Runtime parameters are variables or switches that can be adjusted when a program starts or the system is initialized, and they directly affect the specific behavior details of the program.
[0117] The syntax of a configuration file refers to the formatting rules that must be followed when writing a configuration file; it defines the structure of the configuration. For example, JSON files use curly braces {} to represent objects, and key-value pairs are separated by colons :; YAML files use indentation to indicate hierarchy.
[0118] Configuration file semantics refers to the actual meaning or function of each key-value pair and its structure in the configuration file. It defines what the configuration content represents. For example, in the configuration file, {"max_threads": 8} means that the program can use a maximum of 8 threads to execute tasks; {"log_level": "warn"} means that the log level is set to warning.
[0119] In other words, the execution rules, execution parameters, configuration file syntax, and configuration file semantics form an inseparable whole; they must maintain a strong correlation and consistency. Specifically:
[0120] In the process of running rules to drive configuration requirements, in order to implement a certain running rule (such as "limit the maximum number of connections"), there must be corresponding running parameters or it must be reflected in the configuration file (such as max_connections).
[0121] When a configuration file needs to meet a specific syntax, the specific configuration parameters (such as max_connections) need to be correctly written into the configuration file according to the specified syntax.
[0122] In the process where the configuration file needs to have explicit semantics, each element in the configuration file (such as the key max_connections, value 100) must have clear, unambiguous semantics that can be understood by the system (i.e., "the maximum number of connections is limited to 100").
[0123] During the process of defining runtime parameters by configuration, the runtime parameters specified by the command line or startup script must have a meaning (max_connections=100) that is completely consistent with the semantics (maximum number of connections) of the parameters in the corresponding configuration file, and both must operate within the framework of satisfying the system's operating rules (the rule of limiting the number of connections).
[0124] In this embodiment, the requirements for running rules, running parameters, and configuration file syntax are all centrally reflected in the semantics of the configuration files and command-line parameters, rather than being scattered in documents, code comments, or human memory. This makes finding, modifying, and understanding configurations more efficient, and when any data is obtained, other information for that group can be accurately retrieved.
[0125] Furthermore, the differential operating status includes the differential operating rule status and the differential operating parameter status. To determine potential problems that may arise during the conversion of the network device from the configuration file to the target configuration file, targeted parameter detection of the network device is required based on the differential configuration information to determine the differential operating status of the network device. Specifically, this includes: obtaining the differential operating rules and differential operating parameters corresponding to the syntactic difference information and semantic deviation information in the target configuration file based on the grouped relationship between operating rules, operating parameters, syntax, and semantics; detecting the first real-time data generated when the network device executes the differential operating rules, and determining the differential operating rule status of the network device based on the first real-time data and the corresponding data threshold range; detecting the second real-time data directly related to the differential operating parameters of the network device, and determining the differential operating parameter status of the network device based on the second real-time data and the corresponding data threshold range.
[0126] It should be noted that differential operation rules refer to the "new or modified operation rules" contained in the differential configuration information; differential operation rule status refers to the status of the network device when executing the "new or modified operation rules" contained in the differential configuration information.
[0127] Differential operating parameters refer to the "new or modified operating parameters" contained in the differential configuration information; differential operating parameter status refers to the operating status of key operating indicators in network devices that are directly related to the "new or modified operating parameters" contained in the differential configuration information.
[0128] In this embodiment, to accurately pinpoint whether the problem caused by configuration changes (differential configuration information) when the network device is running the target configuration file is a rule behavior issue or a parameter value influence issue, firstly, the first real-time data generated when the network device executes the different operation rules is detected, and the status of the network device's different operation rules is determined based on the first real-time data and the corresponding data threshold range. Since the first real-time data is for rule behavior, by detecting the first real-time data (rule execution result) and comparing it with the threshold range, the execution of a specific different rule is directly evaluated to determine whether it is normal, efficient, and safe (in a healthy, performance-degraded, or faulty state). Then, the second real-time data directly related to the network device's different operation parameters is detected, and the status of the network device's different operation parameters is determined based on the second real-time data and the corresponding data threshold range. Since the second real-time data is for parameter-related indicators, by detecting the second real-time data (parameter-related indicators) and comparing it with the threshold, the setting of key different parameters is dynamically evaluated to determine whether it is reasonable and whether it is in the optimal / critical / dangerous range (such as bandwidth utilization, number of connections, latency, etc.).
[0129] Because the process of determining the different operating states of network devices focuses on how the differences (rules and parameters) affect actual operation, it can accurately determine the impact of the differences in configuration information, realize fine-grained detection and closed-loop verification of the differences in configuration information of network devices in the operating state, and dynamically determine the performance of the differences in configuration information in the real operating environment.
[0130] In one specific embodiment, in S304, the differential operating state includes the differential operating rule state and the differential operating parameter state. Since the network device will inevitably experience sudden state changes during the process of changing the configuration file, a preset operating state threshold range needs to be set specifically for the differential operating state. The preset operating state threshold range can be the threshold range of the number of parameters of the differential operating state, or it can be a pre-set key performance indicator.
[0131] Specifically, key performance indicators may include one or more of the following: CPU utilization (%), memory utilization (%), interface bandwidth utilization (%), packet loss rate (%), firewall session table utilization, routing convergence time, and hardware health indicators such as device temperature and fan speed, without limitation.
[0132] When determining whether the difference in operating status exceeds the preset operating status threshold range, each key performance indicator is set with a corresponding operating status threshold range that does not affect the operation of the network device. It can be determined that the network device can no longer operate normally when a certain key performance indicator exceeds the preset operating status threshold range, or it can be determined that the network device can no longer operate normally only when more than a preset number of key performance indicators exceed the preset operating status threshold range. That is, the conditions for determining that the network device cannot operate normally can be adaptively adjusted as needed, and no restrictions are imposed here.
[0133] When the difference in the operating status exceeds the preset operating status threshold range, it indicates that the abnormality of the network device's operating status has exceeded the control range. It may be in an unhealthy, high-risk, or service quality degraded state, such as performance bottleneck, near congestion, excessively high error rate, or resource exhaustion. Continuing to run the target configuration file may cause the network device's operating status to crash. Therefore, the network device must stop running the target configuration file. However, in order to avoid other problems caused by the network device's shutdown, it is necessary to switch the network device's configuration file from the target configuration file to the configuration file to be replaced.
[0134] In this embodiment, by monitoring the "difference in operating status" (i.e., the deviation between the current state and the target state of the network device), and automatically switching the network device's configuration file from the "target configuration file" (currently active configuration) to the "configuration file to be replaced" (backup or repair configuration) when the difference exceeds the operating status threshold range, a second-level switching is achieved when the device status is abnormal, minimizing downtime, preventing minor deviations from evolving into serious faults (such as network congestion or security vulnerabilities), and ensuring the stable operation of the network device.
[0135] Furthermore, after switching the network device's configuration file from the target configuration file to the replacement configuration file, in order to ensure the efficient operation of the network device and respond quickly to faults, it is also necessary to analyze the network device's differential operating status information to determine the parameters affecting the network device's operation. Since the number of differential operating status information is relatively small, and the probability that network device malfunctions are related to differential operating status information is relatively high, directly determining the parameters affecting the network device's operation based on the differential operating status information can quickly and accurately identify the parameters affecting the network device's operation, thereby achieving precise, proactive, and efficient network device operation and maintenance, and ultimately ensuring the stability and reliability of the network device.
[0136] Furthermore, after managing the switching of network device configuration files based on their different operating states, it is still necessary to switch the network device configuration files to the target configuration files due to the operational and developmental needs of the network devices. Therefore, in order to determine the switching timing, the optimal timing for distribution is predicted based on the network device's historical failure frequency, idle time, and the importance of the services it carries. Based on the optimal timing for distribution, the network device configuration files are switched to the target configuration files.
[0137] Specifically, historical failure frequency reflects the inherent stability and reliability of network devices. For network devices with high failure frequencies, it usually means that there are potential risks in the device's hardware, firmware, configuration, or the network environment in which it operates, and that it has poor tolerance for changes. Therefore, the optimal deployment time should be chosen when the network device is performing most stably and "robustly." Typically, the optimal deployment time is chosen after the network device has experienced a relatively long period of stable, fault-free operation (compared to historical records).
[0138] Idle time or low-load periods directly reflect the current resource utilization and performance pressure of network devices. Obviously, the optimal time to send out data should be set during the period when the network device has the lowest load, the least pressure, and the most abundant resources.
[0139] The importance of the carried services (risk tolerance for change) measures the scope and severity of the impact on network equipment services that might result from a failed configuration file switch or a brief interruption during the switch. Clearly, the loss of core services is unacceptable, while secondary services may be more tolerable. Therefore, the optimal timing for distribution should be set when network equipment is running secondary services or when it is not running any services.
[0140] In this embodiment, by using historical failure frequency, idle time, and business importance as core indicators to predict the optimal deployment time, the system can accurately capture and balance the three key factors that determine the success or failure of operation and maintenance: device status, system pressure, and business risk. By scientifically selecting the time point with the least network disturbance, the lowest risk of operation failure, and the weakest impact on core business to switch to the target configuration file, the system significantly reduces operation and maintenance risks, greatly ensures business continuity, improves operation and maintenance efficiency and intelligence, and forms a virtuous cycle network operation model. Under the premise of ensuring the highest network reliability and business continuity, the system improves the success rate of configuration file switching and change operations. In addition, since the optimal deployment time is determined automatically, it solves the key pain point in traditional configuration management regarding "when is it safest and most effective to switch to the target configuration file".
[0141] Furthermore, to more clearly describe the implementation process of the network device configuration management method, please refer to [link to relevant documentation]. Figure 4 , Figure 4This is an architecture diagram of an embodiment of the network device configuration management system provided by the present invention. Specifically, the architecture of the network device configuration management system mainly includes a client, a management terminal, and a service provider. The client includes a configuration center, a detection center, and an operation center. The management terminal includes network device configuration, backup measurement configuration, data collection and analysis, intelligent data matching, and intelligent distribution strategies in the platform processing layer. The service provider includes entities that need to apply the above-mentioned network device configuration management method, which is not limited here.
[0142] In this embodiment, the architecture design diagram shows the main components of the system in detail, and also determines the interaction methods and data flow paths between different modules, which helps to ensure the efficient and stable operation of the system.
[0143] Furthermore, for a clearer description of the specific implementation process of network device configuration management methods, please refer to [link to relevant documentation]. Figure 5 , Figure 5 A flowchart illustrating an embodiment of the network device configuration management method provided in this invention includes:
[0144] 1. Users can access the system management interface to view network device type asset information.
[0145] 2. Configure asset information for network device types, including name, IP, port, brand, model, SNMP protocol parameters, and SSH parameters. You can query specified parameters and perform operations such as adding, modifying, and deleting information.
[0146] 3. The system collects device data according to the default detection strategy and presents it in the form of charts.
[0147] 4. Configure backup policy plans in this system. You can choose to start immediately, daily, weekly, monthly, quarterly, or other periodic points to configure the policy.
[0148] 5. Configure backup policy plans to associate network device objects and perform periodic backups of configuration files for the associated device objects.
[0149] 6. This system uses the TFTP file transfer protocol combined with the SSH remote login protocol. When the policy is executed, it remotely logs into the target device via SSH and configures the server using the command `tftp 192.168.2.2 put startup.cfg`. 192.168.2.2 can be understood as the IP address of the service where this system is located.
[0150] 7. Users can view device configuration file information, such as backup time, content, and status, from the backup policy plan or device asset details through the management interface.
[0151] 8. Users can select configuration files from different time periods to view the differences. By using a text comparison algorithm combined with semantic similarity to perform "fuzzy matching," the color differences between configurations can be viewed, allowing administrators to quickly find the cause.
[0152] 9. Based on the system detection strategy, scan the equipment status and collect indicator data. When an abnormality is detected, such as a fault that requires shutdown for handling, such as a problem with the status, power supply, or fan, the system will detect it.
[0153] 10. The system will automatically search for and match the device configuration file, and actively connect to the device to distribute the configuration file when the device starts up after the device is repaired, so that the device can be effectively utilized as soon as the device awareness policy is online.
[0154] 11. The system then uses the TFTP file transfer protocol combined with the SSH remote login protocol to transfer the relevant configuration files to the specified file directory on the specified device for the update to take effect.
[0155] 12. This system supports batch distribution strategies for configuration files. Batch distribution strategies can be configured through the management interface, similar to backup plan strategies, to meet distribution strategies for different periods.
[0156] 13. When the system starts the batch distribution strategy, the system performs intelligent monitoring based on the associated devices, including fault points, port traffic, resource load, etc.
[0157] 14. Analyze historical data to determine whether to issue the data, taking into account factors such as the device's idle time, the importance of the device's business, and the duration of the failure. If not, store the data in the pending issuance queue and wait for the best opportunity to issue it again.
[0158] 15. Based on the feedback obtained from the above batch distribution analysis, the distribution process will be executed.
[0159] 16. Notify users when issuing the action, and provide status information to users synchronously after the action is completed.
[0160] In this embodiment, by providing a detailed explanation of the specific implementation process of the network device configuration management method, the main entities involved in each step and the sequential relationship between different steps are accurately determined, which can effectively ensure the stability and reliability of the operation status of each step.
[0161] To facilitate better implementation of the network device configuration management method provided in the embodiments of the present invention, the present invention also provides an apparatus based on the above-described network device configuration management method. The meanings of the terms used are the same as in the network device configuration management method described above, and specific implementation details can be found in the descriptions in the method embodiments.
[0162] Please see Figure 6 , Figure 6 A schematic diagram of a network device configuration management device according to an embodiment of the present invention, wherein the network device configuration management device 600 may include:
[0163] The configuration file acquisition module 601 is used to acquire the configuration file to be replaced and the target configuration file of the network device;
[0164] The differential configuration information determination module 602 is used to perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain differential configuration information.
[0165] The differential operating status detection module 603 is used to perform targeted parameter detection on network devices based on differential configuration information to determine the differential operating status of network devices;
[0166] The configuration file management module 604 is used to switch and manage the configuration files of network devices based on their different operating states.
[0167] This invention also provides an electronic device, such as... Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, specifically:
[0168] The electronic device may include components such as a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, a power supply 703, and an input unit 704. Those skilled in the art will understand that... Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0169] The processor 701 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 702, and by calling data stored in the memory 702, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operation of the storage medium, user interface, and application programs, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 701.
[0170] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area. The program storage area may store application programs required for operating the storage medium and at least one function (such as sound playback function, image playback function, etc.); the data storage area may store data created according to the use of the electronic device. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0171] The electronic device also includes a power supply 703 that supplies power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 via a power management storage medium, thereby enabling functions such as charging, discharging, and power consumption management through the power management storage medium. The power supply 703 may also include one or more DC or AC power supplies, recharge storage media, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0172] The electronic device may also include an input unit 704, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0173] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 701 in the electronic device loads the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 runs the application programs stored in the memory 702 to realize various functions, as follows:
[0174] Obtain the configuration file to be replaced and the target configuration file of the network device; perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain the difference configuration information; perform targeted parameter detection on the network device based on the difference configuration information to determine the difference operating status of the network device; and manage the switching of the configuration file of the network device according to the difference operating status.
[0175] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0176] To this end, embodiments of the present invention provide a computer-readable storage medium storing a computer program thereon, the computer program being loaded by a processor to execute the steps in any of the network device configuration management methods provided in the embodiments of the present invention. For example, the computer program, when loaded by a processor, can execute the following steps:
[0177] Obtain the configuration file to be replaced and the target configuration file of the network device; perform fuzzy matching and semantic analysis on the configuration file to be replaced and the target configuration file to obtain the difference configuration information; perform targeted parameter detection on the network device based on the difference configuration information to determine the difference operating status of the network device; and manage the switching of the configuration file of the network device according to the difference operating status.
[0178] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0179] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0180] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the network device configuration management methods provided in the embodiments of the present invention, the beneficial effects that any of the network device configuration management methods provided in the embodiments of the present invention can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0181] The foregoing has provided a detailed description of a network device configuration management method, apparatus, electronic device, and storage medium provided by embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method of managing configuration of a network device, characterized by, The method comprises the following steps: obtaining a to-be-replaced configuration file and a target configuration file of a network device; performing fuzzy matching and semantic analysis on the to-be-replaced configuration file and the target configuration file to obtain difference configuration information; performing targeted parameter detection on the network device based on the difference configuration information to determine a difference running state of the network device; switching management of the configuration file of the network device according to the difference running state; wherein the difference running state comprises a difference running rule state and a difference running parameter state; the targeted parameter detection on the network device based on the difference configuration information to determine the difference running state of the network device specifically comprises: detecting first real-time data generated when the network device executes the difference running rule, and determining the difference running rule state of the network device according to the first real-time data and a data threshold range corresponding to the first real-time data; detecting second real-time data directly related to the difference running parameter of the network device, and determining the difference running parameter state of the network device based on the second real-time data and a data threshold range corresponding to the second real-time data; the switching management of the configuration file of the network device according to the difference running state specifically comprises: when the difference running state exceeds a preset running state threshold range, switching the configuration file of the network device from the target configuration file to the to-be-replaced configuration file.
2. The method of claim 1, wherein, The difference configuration information comprises syntax difference information and semantic deviation information; the fuzzy matching and semantic analysis on the to-be-replaced configuration file and the target configuration file to obtain the difference configuration information comprises: performing structural analysis on the to-be-replaced configuration file and the target configuration file through a preset text comparison algorithm to obtain the syntax difference information; performing semantic analysis on the to-be-replaced configuration file and the target configuration file through a preset semantic similarity algorithm to obtain the semantic deviation information.
3. The method of claim 2, wherein, The configuration file comprises a running rule of a network device and a running parameter of the network device, wherein the running rule, the running parameter, the syntax of the configuration file, and the semantics of the configuration file exist in groups; the targeted parameter detection on the network device based on the difference configuration information to determine the difference running state of the network device comprises: based on the grouped existence relationship of the running rule, the running parameter, the syntax, and the semantics, obtaining difference running rules and difference running parameters corresponding to the syntax difference information and the semantic deviation information in the target configuration file.
4. The method of claim 1, wherein, After the switching management of the configuration file of the network device according to the difference running state, the method further comprises: predicting an optimal delivery opportunity according to a historical fault frequency, an idle time, and an importance of a bearing service of the network device; switching the configuration file of the network device to the target configuration file based on the optimal delivery opportunity.
5. The method of claim 4, wherein, After switching the configuration file of the network device to the target configuration file, the method further comprises: Batch revising the target configuration file based on a preset template to obtain a target configuration file set, the target configuration file set being completely consistent with the target configuration file in logic; Selecting a homologous target configuration file of a homologous network device in the target configuration file set; The homologous network device is similar to the network device in configuration requirement.
6. The method of claim 1, wherein, The method further includes: Obtaining a current network environment load of the network device; Determining a configuration file in a preset configuration file library with a highest adaptation degree to the current network environment load as the to-be-replaced configuration file.
7. A management apparatus of a network device configuration, characterized by, The method further includes: A configuration file obtaining module is configured to obtain a to-be-replaced configuration file and a target configuration file of a network device; A difference configuration information determining module is configured to perform fuzzy matching and semantic analysis on the to-be-replaced configuration file and the target configuration file to obtain difference configuration information; A difference running state detecting module is configured to perform targeted parameter detection on the network device based on the difference configuration information to determine a difference running state of the network device; A configuration file managing module is configured to perform switching management on the configuration file of the network device according to the difference running state; The difference running state includes a difference running rule state and a difference running parameter state; the targeted parameter detection on the network device based on the difference configuration information to determine the difference running state of the network device specifically includes: detecting first real-time data generated when the network device executes the difference running rule, and determining the difference running rule state of the network device according to the first real-time data and a data threshold range corresponding to the first real-time data; detecting second real-time data directly related to the difference running parameter of the network device, and determining the difference running parameter state of the network device based on the second real-time data and a data threshold range corresponding to the second real-time data; The switching management on the configuration file of the network device according to the difference running state specifically includes: when the difference running state exceeds a preset running state threshold range, switching the configuration file of the network device from the target configuration file to the to-be-replaced configuration file.
8. An electronic device, comprising: The method further includes: A computer program stored in a memory and executed by a processor, so that the processor performs the following steps: Obtaining a to-be-replaced configuration file and a target configuration file of a network device; Performing fuzzy matching and semantic analysis on the to-be-replaced configuration file and the target configuration file to obtain difference configuration information; Performing targeted parameter detection on the network device based on the difference configuration information to determine a difference running state of the network device; Performing switching management on the configuration file of the network device according to the difference running state; Performing switching management on the configuration file of the network device according to the difference running state; The difference operation state includes a difference operation rule state and a difference operation parameter state; the specific parameter detection of the network device based on the difference configuration information to determine the difference operation state of the network device includes: detecting first real-time data generated when the network device executes the difference operation rule, and determining the difference operation rule state of the network device according to the first real-time data and a data threshold range corresponding to the first real-time data; detecting second real-time data directly related to the difference operation parameter of the network device, and determining the difference operation parameter state of the network device based on the second real-time data and a data threshold range corresponding to the second real-time data; The switching management of the configuration file of the network device according to the difference operation state specifically includes: when the difference operation state exceeds a preset operation state threshold range, switching the configuration file of the network device from the target configuration file to the to-be-replaced configuration file.
9. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the management method of the network device configuration in any one of claims 1 to 6.
Citation Information
Patent Citations
Configuration file processing method, device, system and equipment and readable storage medium
CN115878225A
Self-adaptive configuration method and system for credential and credential platform
CN119201275A