Network equipment configuration method and device, electronic equipment and storage medium
By automating the processing of network device configurations, obtaining operation and maintenance configuration description information, and generating executable files, the high complexity of operation and maintenance configurations and the large consumption of human resources in existing technologies are solved, achieving an efficient and simplified configuration process.
Patent Information
- Application Number
- CN202510871484.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-10-28
AI Technical Summary
In existing technologies, the process of creating network device operation and maintenance configuration files is cumbersome, requiring complex manual operations and a large amount of human resources, and operators need to have extensive programming experience.
By acquiring the operation and maintenance configuration description information, the system automatically extracts the target operation and maintenance configuration tasks and parameter values, generates an operation and maintenance configuration execution file, and configures network devices based on this file. It also uses a generative language model for intent understanding and parameter extraction, simplifying user operations.
It reduces the complexity and manpower cost of operation and maintenance configuration, increases the speed of configuration file creation, reduces the possibility of human error, and lowers the technical requirements for users.
Smart Images

Figure CN120856567A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to a network device configuration method, apparatus, electronic device, and storage medium. Background Technology
[0002] In related technologies, the creation of operation and maintenance configuration executable files typically requires a user interface. These interfaces often contain numerous options, settings, and interactive elements, making the process cumbersome for operators. This not only increases the difficulty of use but can also lead to low efficiency in creating operation and maintenance configuration executable files. Furthermore, in addition to interface operations, operators must also write complex scripts or configuration files, which undoubtedly requires extensive programming experience. This results in the high complexity and significant human resource consumption associated with creating operation and maintenance configuration executable files. Summary of the Invention
[0003] In view of this, embodiments of this application propose a network device configuration method, apparatus, electronic device, and storage medium, which can automatically create operation and maintenance configuration execution files, greatly reducing the problems of complex manual operations and the consumption of a large amount of human resources required in related technologies.
[0004] In a first aspect, embodiments of this application provide a network device configuration method, the method comprising: obtaining operation and maintenance configuration description information; extracting tasks from the operation and maintenance configuration description information to obtain a target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information; obtaining parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task; generating an operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task, the operation and maintenance configuration execution file including an executable script or a configuration file; performing operation and maintenance configuration on the network device based on the operation and maintenance configuration execution file, and generating a configuration result.
[0005] Secondly, embodiments of this application provide a network device configuration method, the method comprising: displaying a dialogue interface for human-computer interaction; receiving a task instruction input by a user through the dialogue interface; displaying task understanding response information generated by intent understanding of the task instruction in the dialogue interface, the task understanding response information including operation and maintenance configuration description information, the operation and maintenance configuration description information including operation and maintenance configuration objectives and operation and maintenance configuration actions; if a confirmation instruction input by a user based on the dialogue interface is received, performing operation and maintenance configuration on the network device based on the operation and maintenance configuration objectives and operation and maintenance configuration actions, and displaying the configuration result generated by the operation and maintenance configuration in the dialogue interface.
[0006] Thirdly, embodiments of this application provide a network device configuration apparatus, the apparatus comprising: an information acquisition module for acquiring operation and maintenance configuration description information; a task extraction module for extracting tasks from the operation and maintenance configuration description information to obtain a target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information; a parameter extraction module for obtaining parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task; an execution file generation module for generating an operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information according to the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task, the operation and maintenance configuration execution file including an executable script or a configuration file; and an operation and maintenance configuration module for performing operation and maintenance configuration on the network device based on the operation and maintenance configuration execution file and generating configuration results.
[0007] In one possible implementation, the operation and maintenance configuration execution file includes an executable script, and the execution file generation module includes a first prompt information generation submodule and a script generation submodule. The first prompt information generation submodule is used to generate a first prompt information indicating the generation of an executable script based on the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list corresponding to the target operation and maintenance configuration task; the script generation submodule is used to generate an executable script corresponding to the operation and maintenance configuration description information based on the first prompt information using a generative language model.
[0008] In one possible implementation, a network device configuration apparatus further includes an information generation module and a verification module; the information generation module is used to generate a second prompt message based on the executable script to indicate the verification of the executable script; the verification module is used to verify the executable script based on the second prompt message using a generative language model to obtain a verified executable script.
[0009] In one possible implementation, the operation and maintenance configuration execution file includes a configuration file, and the execution file generation module further includes a template acquisition submodule and a parameter configuration submodule; the template acquisition submodule is used to acquire a target configuration template corresponding to the target operation and maintenance configuration task from a plurality of preset configuration templates; the parameter configuration submodule is used to configure the target configuration template according to the parameter list corresponding to the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list, to obtain the configuration file corresponding to the operation and maintenance configuration description information.
[0010] In one possible implementation, a network device configuration apparatus further includes a prompt information sending module, configured to send a file deployment prompt information to a wireless controller, instructing the wireless controller to deploy the operation and maintenance configuration executable file, so that the wireless controller displays the file deployment prompt information, and upon receiving file deployment information in response to the file deployment prompt information, deploys the operation and maintenance configuration executable file to the wireless controller according to the file deployment information.
[0011] In one possible implementation, the task extraction module includes an intent recognition submodule and a task extraction submodule; the intent recognition submodule is used to perform intent recognition on the operation and maintenance configuration description information to obtain an intent recognition result; the task extraction submodule is used to obtain a target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information from multiple tasks based on the intent recognition result and the operation and maintenance configuration description information.
[0012] In one possible implementation, the task extraction submodule is further configured to perform feature extraction on the operation and maintenance configuration description information to obtain information features; obtain candidate task features from the task feature list that have a similarity greater than a preset similarity threshold with the information features, wherein the task feature list stores task features corresponding to multiple tasks respectively; generate third prompt information based on the intent recognition result, the candidate task features and their corresponding tasks, indicating that the task with the highest relevance to the operation and maintenance configuration description information should be selected from the tasks corresponding to the candidate task features; and use a generative language model based on the third prompt information to obtain the target operation and maintenance configuration task with the highest relevance to the operation and maintenance configuration description information from the tasks corresponding to the multiple candidate task features.
[0013] In one possible implementation, the parameter extraction module includes a third prompt information generation submodule and a parameter extraction submodule. The third prompt information generation submodule is used to generate parameter extraction prompt information based on the target operation and maintenance configuration task and its corresponding parameter list. The parameter extraction prompt information is used to instruct the extraction of parameter values corresponding to each parameter configuration item in the parameter list corresponding to the target operation and maintenance configuration task from the operation and maintenance configuration description information. The parameter extraction submodule is used to extract the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information using a generative language model based on the parameter extraction prompt information.
[0014] Fourthly, embodiments of this application provide a network device configuration apparatus, the apparatus comprising: an interface display module for displaying a dialog interface for human-computer interaction; an instruction receiving module for receiving a task instruction input by a user through the dialog interface; an information display module for displaying task understanding response information generated by intent understanding of the task instruction in the dialog interface, the task understanding response information including operation and maintenance configuration description information, the operation and maintenance configuration description information including operation and maintenance configuration objectives and operation and maintenance configuration actions; and an operation and maintenance configuration module, upon receiving a confirmation instruction input by a user based on the dialog interface, performing operation and maintenance configuration on the network device based on the operation and maintenance configuration objectives and operation and maintenance configuration actions, and displaying the configuration result generated by the operation and maintenance configuration in the dialog interface.
[0015] In one possible implementation, the operation and maintenance configuration module is further configured to generate an operation and maintenance configuration execution file based on the operation and maintenance configuration goals and operation and maintenance configuration actions. The operation and maintenance configuration execution file includes an executable script or a configuration file. The operation and maintenance configuration execution file is then deployed to the target environment and executed to perform operation and maintenance configuration on the network devices.
[0016] In one possible implementation, the operation and maintenance configuration module is further configured to display the operation and maintenance configuration execution file in the dialog interface; if a configuration confirmation instruction for the operation and maintenance configuration execution file is received from the user in the dialog interface, the operation and maintenance configuration execution file is deployed to the target environment and executed to perform operation and maintenance configuration on the network device.
[0017] In one possible implementation, the operation and maintenance configuration module is further configured to display the operation and maintenance configuration execution file in the dialog interface; if a configuration confirmation instruction for the operation and maintenance configuration execution file is received from the user in the dialog interface, the operation and maintenance configuration execution file is deployed to the target environment and executed to perform operation and maintenance configuration on the network device.
[0018] In one possible implementation, the information display module is further configured to send the task instruction to a large language model deployed on a cloud server for intent understanding to obtain task understanding response information; receive the task understanding response information returned by the cloud server, and display the task understanding response information in the dialogue interface.
[0019] Fifthly, embodiments of this application provide an electronic device, including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above-described method.
[0020] Sixthly, embodiments of this application provide a computer-readable storage medium storing program code, wherein the above-described method is executed when the program code is run by a processor.
[0021] In a seventh aspect, embodiments of this application provide a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device retrieves the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method described above.
[0022] This application provides a network device configuration method, apparatus, electronic device, and storage medium. The method includes: obtaining operation and maintenance configuration description information; extracting tasks from the operation and maintenance configuration description information to obtain a target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information; obtaining parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task; generating an operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task, and configuring it. By adopting the above method, users only need to input operation and maintenance configuration description information in natural language. Subsequently, the system automatically identifies tasks, extracts parameters, and generates operation and maintenance configuration execution files based on the identified target operation and maintenance configuration tasks and extracted parameters. The automated process can improve the speed of creating operation and maintenance configuration execution files while reducing the possibility of human error. In addition, since the operation and maintenance configuration can be automatically completed by only requiring users to input operation and maintenance configuration description information, users do not need to have programming or complex interface operation knowledge, which reduces the technical requirements for users and thus reduces labor costs. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application, 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 this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 A flowchart illustrating a network device configuration method provided in an embodiment of this application is shown.
[0025] Figure 2 This illustration shows a schematic diagram of obtaining operation and maintenance configuration description information according to an embodiment of this application;
[0026] Figure 3 It shows Figure 1 A flowchart illustrating step S120;
[0027] Figure 4 This paper illustrates another flowchart of a network device configuration method provided in an embodiment of this application.
[0028] Figure 5 This illustration shows another flowchart of a network device configuration method provided in an embodiment of this application;
[0029] Figure 6 A timing flowchart of a network device configuration method provided in an embodiment of this application is shown;
[0030] Figure 7 A flowchart illustrating a network device configuration method according to another embodiment of this application is shown;
[0031] Figure 8 A schematic diagram of the interactive interface of a network device configuration method provided in an embodiment of this application is shown;
[0032] Figure 9 This illustration shows another interactive interface diagram of a network device configuration method provided in an embodiment of this application;
[0033] Figure 10 This illustration shows another interactive interface diagram of a network device configuration method provided in an embodiment of this application;
[0034] Figure 11 This paper shows a connection block diagram of a network device configuration apparatus according to an embodiment of this application;
[0035] Figure 12 A connection block diagram of a network device configuration apparatus according to another embodiment of this application is shown;
[0036] Figure 13A structural block diagram of an electronic device for performing the methods of embodiments of this application is shown. Detailed Implementation
[0037] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0038] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0039] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microprocessor devices.
[0040] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0041] It should be noted that "multiple" in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0042] It should also be noted that in this embodiment of the application, the collection, use, processing and storage of application information are all subject to the user's permission and must comply with the regulations of the region.
[0043] This application provides a network device configuration method, which can be applied to electronic devices, such as servers, terminal devices, or a combination of the above.
[0044] In some embodiments, the server may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0045] Terminal devices can be smartphones, tablets, laptops, desktop computers, smart voice interaction devices, smart home appliances, in-vehicle terminals, etc., but are not limited to these.
[0046] Figure 1 This application specifically illustrates a network device configuration method, which can be applied to electronic devices, such as cloud servers. The method includes:
[0047] Step S110: Obtain operation and maintenance configuration description information.
[0048] The operation and maintenance configuration description information refers to the information a user wants to express about the task they want to accomplish or the problem they want to solve. It can include a detailed description of the task the user intends to perform. Specifically, the operation and maintenance configuration description information can include the results or objectives the user hopes to achieve, the objects to be operated on, and the parameters and constraints.
[0049] In one possible implementation of this application, the operation and maintenance configuration description information may be network configuration-related requirement information (such as SSID management (Service Set Identifier), wireless network partitioning, etc.), device update-related requirement information (such as when an enterprise needs to update the firmware of a wireless access point), and security policy implementation-related requirement information (such as dynamic access control based on user behavior, intrusion detection and prevention system (IDPS) configuration, etc.), etc.
[0050] For example, the operation and maintenance configuration description information could be something like "Add a new SSID to the wireless controller and set it to be accessible only to enterprise employees" or "Set user A as a key user".
[0051] The above-mentioned operation and maintenance configuration description information can be entered by the user, or it can be obtained by processing the operation and maintenance configuration requirements entered by the user using natural language processing technology. It can be set according to the actual needs.
[0052] In one possible implementation, if the electronic device is a server, the above steps may include receiving maintenance configuration description information obtained by the WAC (Wireless Access Controller) in response to the user's request information input operation.
[0053] Specifically, such as Figure 2 As shown, users can interact through the interactive interface provided by WAC (e.g., a chat page), which allows users to input operation and maintenance configuration description information in a chat-like manner. When WAC receives the user's operation and maintenance configuration description information, it can use natural language processing technology to expand or process the information, obtaining and displaying the processed description. If a confirmation message is received from the user, the acquisition of the operation and maintenance configuration description information is complete. Afterwards, session initialization can be performed, and the operation and maintenance configuration description information and the user's information are encapsulated into a user request and sent to the server. The server has a session management server, where the session management module is responsible for managing and tracking the interaction process of each user. When the server receives a new user request, the session management module checks whether a corresponding session already exists. If not, a new session instance is created to track the user's interaction.
[0054] Step S120: Extract tasks from the operation and maintenance configuration description information to obtain the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information.
[0055] The target operation and maintenance configuration task refers to the specific task or operation determined by parsing and identifying the operation and maintenance configuration description information provided by the user. It is a concrete expression of the action or goal that the user wants to perform, and it can correspond to one or more tasks in a predefined task list in the server.
[0056] Each task can correspond to a task description, task characteristics, a parameter list, and an execution method. The task description is a textual explanation of the task's specific content and purpose. Task characteristics are key attributes or tags describing the task's features, used to more accurately identify and match tasks; task characteristics may include the object of operation, action type, and involved technologies or protocols. The parameter list refers to the input variables or settings required to complete a specific task; these parameters may include specific numerical values, strings, or other types of values, used to customize the task's behavior or results. The execution method refers to the mechanism or method by which the task is actually executed, which may include generating scripts, making API calls, modifying configuration files, etc.
[0057] In one possible implementation, please refer to Figure 3 The above step S120 includes:
[0058] Step S122: Perform intent recognition on the operation and maintenance configuration description information to obtain intent recognition results.
[0059] Natural language processing technology can be used to expand the operation and maintenance configuration description information to obtain the expanded operation and maintenance configuration description information. Then, feature extraction is performed on the expanded operation and maintenance configuration description information to obtain information features. Finally, an intent classification model is used to classify the information features.
[0060] Specifically, when expanding the operation and maintenance configuration description information using natural language processing (NLP) technology, NLP technology can be used to parse the operation and maintenance configuration description information and its context information to understand the core meaning and theme of the operation and maintenance configuration description information, thereby extracting the key information of the operation and maintenance configuration description information. Then, the operation and maintenance configuration description information is expanded based on the extracted key information, and the expanded operation and maintenance configuration description information is checked and corrected to obtain the expanded operation and maintenance configuration description information. When extracting features from the expanded operation and maintenance configuration description information, Natural Language Processing (NLP) techniques can be used to identify keywords in the text, such as the operation object (wireless controller), actions (add, modify), parameters (SSID name, access permissions), etc. Then, each keyword is mapped to a vector in a high-dimensional space, and a pre-trained language model (such as BERT, Word2Vec) is used to capture the semantic relationships between words. Subsequently, recurrent neural networks (RNN), long short-term memory networks (LSTM), or transformers are used to encode the entire sentence, generating a vector that represents the overall meaning of the sentence. This vector is the information feature of the expanded operation and maintenance configuration description information.
[0061] Step S124: Based on the intent recognition result and the operation and maintenance configuration description information, obtain the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information from multiple tasks.
[0062] In one possible implementation, step S124 includes: extracting features from the operation and maintenance configuration description information to obtain information features; obtaining candidate task features from a task feature list whose similarity to the information features is greater than a preset similarity threshold, wherein the task feature list stores task features corresponding to multiple tasks respectively; generating third prompt information based on the intent recognition result and the tasks corresponding to the candidate task features to indicate the selection of the task with the highest relevance to the operation and maintenance configuration description information from the tasks corresponding to the candidate task features; and using a generative language model based on the third prompt information to obtain the target operation and maintenance configuration task with the highest relevance to the operation and maintenance configuration description information from the tasks corresponding to the multiple candidate task features.
[0063] The task feature list stores the task features corresponding to multiple tasks. The task features corresponding to each task include one or more of the following: operation and maintenance configuration features, function configuration features, and system configuration features.
[0064] The process of feature extraction for the demand information can be referred to in the specific implementation of step S122 above, and will not be elaborated here. Specifically, the method for obtaining candidate task features from the task feature list whose similarity to the information features is greater than a preset similarity threshold can be as follows: Calculate the similarity between each task feature in the task feature list and the information features (e.g., cosine similarity or Hatton distance similarity), obtain the similarity value corresponding to each task feature, and determine the task features with similarity values greater than the preset similarity threshold as candidate task features. Through the above implementation method, the efficient processing power and adaptability of the generative language model can be used to select the target operation and maintenance configuration task with the highest relevance to the operation and maintenance configuration description information from multiple candidate tasks, thereby obtaining the target operation and maintenance configuration task with the highest relevance to the operation and maintenance configuration description information.
[0065] Generative language models can include, but are not limited to, GPT (Generative Pre-Trained Transformer), Bloom (a Transformer language model with only a decoder), Llama (Large Language Model Meta AI, an open and efficient large-scale basic language model), and GLM (General Language Model Pretraining with Autoregressive Blank Infilling). Generative language models can generate coherent and meaningful text based on given prompts and are suitable for various natural language processing tasks, such as question answering, translation, and summarization. In this embodiment, the third prompt information is used to select the target operation and maintenance configuration task with the highest relevance to the operation and maintenance configuration description information from tasks corresponding to multiple candidate task features.
[0066] In one possible implementation, step S120 may be: using a task identification model to identify the operation and maintenance configuration description information to obtain the target operation and maintenance configuration task.
[0067] The task identification model is a pre-built machine learning or deep learning model trained on a large amount of labeled data, capable of identifying tasks corresponding to different operation and maintenance configuration descriptions. The training data includes sample operation and maintenance configuration descriptions and their corresponding task labels, etc.
[0068] When training the task recognition model, the feature extraction network of the task recognition model can be used to extract features of sample management information, and the classification network can be used to perform classification prediction based on the extracted features to obtain the predicted task type. The loss is calculated based on the predicted task type and task label to obtain the model loss, and the model parameters of the task recognition model are adjusted based on the model loss until the iteration termination condition is reached to complete the training of the task recognition model. After that, the trained task recognition model can be used to identify network management information to obtain the target operation and maintenance configuration task.
[0069] Step S130: Obtain the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task.
[0070] The parameter list includes the parameter description and parameter value type for each of the multiple parameter configuration items.
[0071] In one possible implementation, step S130 includes: generating parameter extraction prompt information based on the target operation and maintenance configuration task and its corresponding parameter list, wherein the parameter extraction prompt information is used to indicate the extraction of parameter values corresponding to each parameter configuration item in the parameter list corresponding to the target operation and maintenance configuration task from the operation and maintenance configuration description information; and using a generative language model to extract the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information based on the parameter extraction prompt information.
[0072] The parameter list corresponding to the target operation and maintenance configuration task can include one or more parameter configuration items. The parameter extraction prompts can include information indicating the parameters to be extracted for each parameter configuration item. Through this implementation method, the powerful text generation and contextual understanding capabilities of generative language models can be utilized to effectively extract the parameter values corresponding to each parameter configuration item in the parameter list corresponding to the target operation and maintenance configuration task from the operation and maintenance configuration description information, thereby improving the accuracy and efficiency of parameter extraction.
[0073] For example, if the user's operation and maintenance configuration description is: "I need to add a new SSID named ABC XXX on the wireless controller, with protocol type D, a maximum number of connected devices of 50, and set it to be accessible only to enterprise employees," the corresponding task is "Create SSID." The parameter list includes parameters such as name, protocol type, maximum number of connections, and access permissions. In this case, the parameter extraction prompt includes the aforementioned operation and maintenance configuration description, the aforementioned parameter list, and a prompt indicating to extract the parameter values corresponding to each parameter configuration item from the parameter list. The parameter values corresponding to each parameter configuration item extracted from the operation and maintenance configuration description based on the parameter extraction prompt using a generative language model are specifically: SSID name: ABC XXX; Security protocol: D protocol (default or inferred from context); Maximum number of connections: 50 (default or inferred from context); Access permissions: Enterprise employees only.
[0074] Step S140: Generate the operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task.
[0075] The operation and maintenance configuration execution file includes an executable script or a configuration file.
[0076] In this context, the operation and maintenance configuration execution file refers to a specific operation guide or instruction set generated based on the user's operation and maintenance configuration description information and the target operation and maintenance configuration task. It is used to guide the system or device to perform specific tasks. The aforementioned operation and maintenance configuration execution file can be an executable script, a configuration file, or other form of instruction set, depending on the nature of the task and the technical implementation method.
[0077] An executable script is a series of commands executed sequentially, typically used to automate tasks. It can contain logical control statements such as conditional statements and loop structures to implement complex operational processes. A configuration file is a file used to set parameter values for an application or system, usually in a structured format (such as JSON, XML, YAML, INI, etc.).
[0078] In one possible implementation, please refer to Figure 4 The operation and maintenance configuration execution file includes an executable script, and step S140 above includes:
[0079] Step S142: Based on the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list corresponding to the target operation and maintenance configuration task, generate a first prompt message to indicate the generation of an executable script.
[0080] Step S144: Generate an executable script corresponding to the operation and maintenance configuration description information based on the first prompt information using a generative language model.
[0081] The first prompt message instructs the generation of an executable script based on the target operation and maintenance configuration task and the parameters corresponding to each configuration item in the parameter list. This generated first prompt message can then be provided as input to the generative language model, along with the user's operation and maintenance configuration description for reference. The generative language model generates and outputs a complete executable script based on the first prompt message. This executable script contains all the necessary commands and logical control statements for executing the target operation and maintenance configuration task. This setup ensures that the generative language model can accurately understand the target operation and maintenance configuration task and parameter values, thereby generating the correct executable script.
[0082] In this implementation, after executing step S144, the method further includes:
[0083] Based on the executable script, a second prompt message is generated to indicate the verification of the executable script; the executable script is then verified using a generative language model based on the second prompt message to obtain the verified executable script.
[0084] In this process, when validating executable scripts, the generative language model provides the second prompt information and the executable script as input, along with an operational configuration description. This allows the generative language model to understand the script's purpose and expected functionality by analyzing the operational configuration description. Subsequently, the following validation processes can be performed: checking for syntax errors and spelling issues to ensure correct script execution; detecting logical errors and potential problems, such as infinite loops and uninitialized variables; and performing performance optimization (e.g., identifying performance bottlenecks, optimizing algorithms and logic to improve execution efficiency, and considering parallel processing and caching techniques to improve script performance); performing security checks (checking for potential risks such as injection vulnerabilities to ensure script security and preventing the granting of excessive privileges); and performing standardization (e.g., adjusting the structure to improve code readability, implementing unified naming conventions, code indentation, and comments).
[0085] By utilizing the second prompt information to validate the executable script, the quality of the validated executable script is further improved, reducing the risk of execution failure due to syntax errors or inconsistent parameters. The automated generation and validation process greatly simplifies user operations and improves task execution efficiency and success rate.
[0086] In one possible implementation, please refer to Figure 5 The operation and maintenance configuration execution file includes a configuration file, and step S140 above includes:
[0087] Step S146: Obtain the target configuration template corresponding to the target operation and maintenance configuration task from multiple preset configuration templates.
[0088] Specifically, a mapping table is maintained in the electronic device to record each task and its corresponding task identifier (such as task name, ID, etc.), as well as the corresponding preset configuration template path or identifier. The target configuration template can be found in the mapping table by the task identifier corresponding to the target operation and maintenance configuration task.
[0089] Step S148: Configure the target configuration template according to the parameter list corresponding to the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list to obtain the configuration file corresponding to the operation and maintenance configuration description information.
[0090] Specifically, the configuration template can be parsed to identify the parameter placeholders. Then, the parameter values extracted from the parameter list can be used to replace the placeholders to obtain the configuration file corresponding to the operation and maintenance configuration description information.
[0091] By adopting the above settings, it is possible to accurately obtain the target configuration template corresponding to the target operation and maintenance configuration task from multiple preset configuration templates, and then configure it in detail based on the parameter list, ultimately generating a configuration file that meets the user's needs. This method not only improves the automation of the configuration process, but also enhances the accuracy and reliability of the configuration file, simplifies the user's operation process, and improves the user experience.
[0092] Step S150: Perform operation and maintenance configuration on the network device based on the operation and maintenance configuration execution file, and generate the configuration results.
[0093] Specifically, the operation and maintenance configuration executable file can be distributed to network devices so that the network devices can execute the executable file to achieve operation and maintenance configuration. The above-mentioned operation and maintenance configuration result is used to indicate whether the configuration of the network device is completed, that is, whether the configuration is successful. By adopting the network device configuration method of this application, the user only needs to input operation and maintenance configuration description information in natural language form. Subsequently, the system automatically identifies the task, extracts parameters, and generates an operation and maintenance configuration executable file based on the identified target operation and maintenance configuration task and the extracted parameters. The system then performs operation and maintenance configuration on the network device based on the operation and maintenance configuration file. The automated processing can improve the speed of creating the operation and maintenance configuration executable file while reducing the possibility of human error. In addition, since the process of generating the operation and maintenance configuration executable file only requires the user to input the operation and maintenance configuration description information, the user does not need to have programming or complex interface operation knowledge, which reduces the technical requirements for the user and thus reduces labor costs.
[0094] In one possible implementation, after performing step S140, the method further includes: sending a file deployment prompt message to the wireless controller instructing the wireless controller to deploy the operation and maintenance configuration execution file, so that the wireless controller displays the file deployment prompt message, and upon receiving file deployment information in response to the file deployment prompt message, deploying the operation and maintenance configuration execution file to the wireless controller according to the file deployment information.
[0095] A wireless controller is a device used to manage and control multiple wireless access points (APs) in an enterprise or large environment. It can uniformly configure and manage all connected wireless access points, including setting SSID, security protocols, frequency band selection, etc. It can also centrally authenticate and control access permissions for wireless network users to ensure that only authorized users can access specific network resources; and perform unified firmware updates and maintenance for connected wireless access points to ensure system stability and security.
[0096] Specifically, before sending a file deployment prompt message instructing the wireless controller to deploy the operation and maintenance configuration executable file, the method further includes: sending the operation and maintenance configuration executable file to a target client (wherein, the target client may specifically be the wireless controller), so that the target client can display the executable file for user browsing and review. The user can adjust the executable file through the target client as needed. The user can also send a deployment command to the target client through the target client, so that when the electronic device receives the deployment command sent by the target client, it provides a deployment configuration interface. This deployment configuration interface provides multiple deployment time options, as well as multiple deployment environment options, etc. The user can select deployment options through the deployment configuration interface displayed on the target client, and when receiving the deployment confirmation operation, send a deployment confirmation command to the electronic device. This deployment confirmation command may carry the target deployment time and target deployment environment, etc. The electronic device can respond to the deployment confirmation command by sending a file deployment prompt message instructing the wireless controller to deploy the operation and maintenance configuration executable file, so that the wireless controller can perform deployment according to the file deployment prompt message. The file deployment information may carry the target deployment time and target deployment environment, that is, deployment can be performed according to the target deployment time and target deployment environment.
[0097] For example, such as Figure 6As shown, when a user inputs maintenance configuration description information through the interactive page displayed on the wireless controller's screen, the wireless controller can send the maintenance configuration description information to an electronic device (such as a cloud or backend server). The electronic device is equipped with a session management module and a generative language model. After receiving the maintenance configuration description information sent by the wireless controller, the electronic device first performs session identification to determine whether it is a new session or a continuation of an existing session. If it is a new session, the session management module will initialize a new session record; if it is a continuation of an existing session, the session management module will restore the context information of that session. Subsequently, the session management module can also extract tasks from the maintenance configuration description information to obtain the target maintenance configuration task corresponding to the maintenance configuration description information. Afterward, the session management module can also call the generative language model to execute the aforementioned step S130 to analyze the maintenance configuration description information, identify the user's intent, and extract key parameters from the maintenance configuration description information, such as SSID name and security protocol. Subsequently, the session management module is also used to perform the aforementioned step S140, which generates the corresponding operation and maintenance configuration execution file based on the identified intent and extracted parameters using a generative language model; and sends the operation and maintenance configuration execution file to the wireless management controller. After receiving the operation and maintenance configuration execution file, the wireless controller can display the operation and maintenance configuration execution file, and when it receives the deployment confirmation instruction input by the user through the interactive page, it deploys the operation and maintenance configuration execution file according to the deployment confirmation instruction.
[0098] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0099] Please see Figure 7 Another embodiment of this application provides a network device configuration method, which can be applied to an electronic device, wherein the electronic device can be a terminal (such as a mobile phone, computer, or tablet computer) or the aforementioned wireless controller, and the method includes:
[0100] Step S210: Display the dialogue interface for human-computer interaction.
[0101] The aforementioned dialog interface allows users to input task commands (such as text input, button clicks, drop-down menus, etc.) via natural language or graphical controls. This dialog interface provides two-way communication capabilities, not only receiving user input but also dynamically providing feedback on the system's processing results.
[0102] Step S220: Receive the task instruction input by the user through the dialog interface.
[0103] When users input task commands through the dialog interface, they can do so via voice or text input. Task commands refer to the user's expression of their needs for network device maintenance operations. These commands can be in natural language (such as Chinese sentences) or structured commands or selections. Examples include commands for maintenance configuration such as "Set port 3 of switch S1 to VLAN 10," "Increase the OSPF routing protocol parameters of router R2," and "Turn off the wireless signal transmission of AP3."
[0104] Step S230: Display the task understanding response information generated by understanding the intent of the task instruction in the dialog interface. The task understanding response information includes operation and maintenance configuration description information, which includes operation and maintenance configuration objectives and operation and maintenance configuration actions.
[0105] The electronic device is associated with a server. After receiving a task instruction, the electronic device can send the task instruction to the server, so that the server can call a natural language processing model or an intent recognition model to perform intent recognition and semantic parsing on the task instruction, generate corresponding task understanding response information, and feed back the task understanding response information to the electronic device and display it in the dialogue interface.
[0106] Step S240: If a confirmation command is received from the user based on the dialog interface, the network device is configured for operation and maintenance based on the operation and maintenance configuration goals and operation and maintenance configuration actions, and the configuration results generated by the operation and maintenance configuration are displayed in the dialog interface.
[0107] By employing steps S230 and S240 above, a confirmation step is provided before executing the configuration operation, allowing the user to review the system's understanding and intended operation. The user can send confirmation commands through this interface, such as "Confirmed" or "Continue Configuration," to indicate that the system understands and confirms the accuracy of the response information before proceeding with subsequent configuration operations. The process of configuring network devices based on maintenance configuration goals and actions can be found in the detailed descriptions of steps S110-S150 in the aforementioned embodiments, and will not be repeated here.
[0108] In one possible implementation, step S240 includes: generating an operation and maintenance configuration execution file based on the operation and maintenance configuration target and the operation and maintenance configuration action, wherein the operation and maintenance configuration execution file includes an executable script or a configuration file; deploying the operation and maintenance configuration execution file to the target environment and executing it to perform operation and maintenance configuration on the network device.
[0109] In one possible implementation, step S240 includes: displaying the operation and maintenance configuration execution file in the dialog interface; if a configuration confirmation instruction for the operation and maintenance configuration execution file is received from the user in the dialog interface, deploying the operation and maintenance configuration execution file to the target environment and executing it to perform operation and maintenance configuration on the network device.
[0110] By adopting the above-described network device configuration method, users only need to input operation and maintenance configuration description information in natural language. Subsequently, the system automatically identifies tasks, extracts parameters from the operation and maintenance configuration description information, and generates an operation and maintenance configuration execution file based on the identified target operation and maintenance configuration task and the extracted parameters. The system then performs operation and maintenance configuration on the network device based on the operation and maintenance configuration file. The automated process can improve the speed of creating the operation and maintenance configuration execution file while reducing the possibility of human error. In addition, since only the user needs to input the operation and maintenance configuration description information during the generation of the operation and maintenance configuration execution file, the user does not need to have programming or complex interface operation knowledge, which reduces the technical requirements for the user and thus reduces labor costs.
[0111] Operation and maintenance configuration can involve multiple aspects, such as the configuration of key users in panoramic operation and maintenance, the on / off / threshold configuration of inspection items in the inspection center, the on / off configuration of events in the event center, and gateway configuration, etc.
[0112] For example, such as Figure 8 As shown, taking the setting of key users in panoramic operations and maintenance as an example, panoramic operations and maintenance is a system that calculates scores across various dimensions. These dimensions include connection dimension, terminal dimension, and access point (AP) dimension. The connection dimension refers to the WAC collecting various data from a terminal's connection to and from the point of connection to the Wi-Fi connection, and calculating the terminal's score for this connection using an algorithm. The terminal dimension refers to calculating the terminal's score based on the scores of all connections made by a single terminal. The AP dimension refers to calculating the AP's score based on the scores of all terminals connected to an AP. "Key users" refers to users whose data is only counted when the WAC's panoramic operations and maintenance data reaches a threshold. Specifically, the interface for configuring user A as a key user through the dialog box is shown in the image below. Figure X As shown in X.
[0113] like Figure 9As shown, taking the setting of the on / off switch / threshold for inspection items in the inspection center as an example, the inspection center is a system that periodically checks and collects WAC device metrics, which include, but are not limited to: whether the device has restarted, whether the cloud manager is offline, and SMS visitor occupancy rate, etc. Figure 9 The table only shows the threshold for adjusting the SMS visitor occupancy rate of the inspection center.
[0114] like Figure 10 As shown, taking the setting of the event switch in the time center as an example, the event center is a system that generates alarm events. Events include, but are not limited to: group user authentication failure: such as when more than 5 terminals fail to authenticate within a short period of time, this event is generated; CPU temperature too high: such as when the CPU temperature exceeds 75℃, this event is generated. Figure 10 Only the threshold for adjusting excessively high CPU temperatures is shown.
[0115] Please see Figure 11 Another embodiment of this application provides a network device configuration apparatus 300, including: an information acquisition module 310, used to acquire operation and maintenance configuration description information; a task extraction module 320, used to extract tasks from the operation and maintenance configuration description information to obtain a target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information; a parameter extraction module 330, used to obtain parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task; an execution file generation module 340, used to generate an operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information according to the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task; and an operation and maintenance configuration module 350, used to perform operation and maintenance configuration on the network device based on the operation and maintenance configuration execution file and generate configuration results.
[0116] In one possible implementation, the operation and maintenance configuration execution file includes an executable script, and the execution file generation module 340 includes a first prompt information generation submodule and a script generation submodule. The first prompt information generation submodule is used to generate first prompt information indicating the generation of an executable script based on the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list corresponding to the target operation and maintenance configuration task; the script generation submodule is used to generate an executable script corresponding to the operation and maintenance configuration description information based on the first prompt information using a generative language model.
[0117] In one possible implementation, a network device configuration apparatus 300 further includes an information generation module and a verification module; the information generation module is used to generate a second prompt message based on the executable script to indicate the verification of the executable script; the verification module is used to verify the executable script based on the second prompt message using a generative language model to obtain a verified executable script.
[0118] In one possible implementation, the operation and maintenance configuration execution file includes a configuration file, and the execution file generation module 340 further includes a template acquisition submodule and a parameter configuration submodule; the template acquisition submodule is used to acquire a target configuration template corresponding to the target operation and maintenance configuration task from a plurality of preset configuration templates; the parameter configuration submodule is used to configure the target configuration template according to the parameter list corresponding to the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list, to obtain the configuration file corresponding to the operation and maintenance configuration description information.
[0119] In one possible implementation, a network device configuration apparatus 300 further includes a prompt information sending module, configured to send a file deployment prompt information to a wireless controller, instructing the wireless controller to deploy the operation and maintenance configuration executable file, so that the wireless controller displays the file deployment prompt information, and upon receiving file deployment information in response to the file deployment prompt information, deploys the operation and maintenance configuration executable file to the wireless controller according to the file deployment information.
[0120] In one possible implementation, the task extraction module 320 includes an intent recognition submodule and a task extraction submodule; the intent recognition submodule is used to perform intent recognition on the operation and maintenance configuration description information to obtain an intent recognition result; the task extraction submodule is used to obtain a target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information from multiple tasks based on the intent recognition result and the operation and maintenance configuration description information.
[0121] In one possible implementation, the task extraction submodule is further configured to perform feature extraction on the operation and maintenance configuration description information to obtain information features; obtain candidate task features from the task feature list that have a similarity greater than a preset similarity threshold with the information features, wherein the task feature list stores task features corresponding to multiple tasks respectively; generate third prompt information based on the intent recognition result, the candidate task features and their corresponding tasks, indicating that the task with the highest relevance to the operation and maintenance configuration description information should be selected from the tasks corresponding to the candidate task features; and use a generative language model based on the third prompt information to obtain the target operation and maintenance configuration task with the highest relevance to the operation and maintenance configuration description information from the tasks corresponding to the multiple candidate task features.
[0122] In one possible implementation, the parameter extraction module 330 includes a third prompt information generation submodule and a parameter extraction submodule; the third prompt information generation submodule is used to generate parameter extraction prompt information based on the target operation and maintenance configuration task and its corresponding parameter list, the parameter extraction prompt information being used to instruct the extraction of parameter values corresponding to each parameter configuration item in the parameter list corresponding to the target operation and maintenance configuration task from the operation and maintenance configuration description information; the parameter extraction submodule is used to extract the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information using a generative language model based on the parameter extraction prompt information.
[0123] Please see Figure 12 As shown in the figure, this application embodiment provides a network device configuration device 400, applied to an electronic device. The network device configuration device 400 includes: an interface display module 410 for displaying a dialogue interface for human-computer interaction; an instruction receiving module 420 for receiving task instructions input by a user through the dialogue interface; an information display module 430 for displaying task understanding response information generated by understanding the intent of the task instructions in the dialogue interface, wherein the task understanding response information includes operation and maintenance configuration description information, which includes operation and maintenance configuration objectives and operation and maintenance configuration actions; and an operation and maintenance configuration module 440, which, upon receiving a confirmation instruction input by a user based on the dialogue interface, performs operation and maintenance configuration on the network device based on the operation and maintenance configuration objectives and operation and maintenance configuration actions, and displays the configuration results generated by the operation and maintenance configuration in the dialogue interface.
[0124] In one possible implementation, the operation and maintenance configuration module 440 is further configured to display the operation and maintenance configuration execution file in the dialog interface; if a configuration confirmation instruction for the operation and maintenance configuration execution file is received from the user in the dialog interface, the operation and maintenance configuration execution file is deployed to the target environment and executed to perform operation and maintenance configuration on the network device.
[0125] In one possible implementation, the information display module 430 is further configured to send the task instruction to a large language model deployed on a cloud server for intent understanding to obtain task understanding response information; receive the task understanding response information returned by the cloud server; and display the task understanding response information in the dialogue interface.
[0126] Each module in the above-described device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module. It should be noted that the device embodiments in this application correspond to the foregoing method embodiments. The specific principles of the device embodiments can be found in the foregoing method embodiments, and will not be repeated here.
[0127] The following will combine Figure 13 This application describes an electronic device.
[0128] Please see Figure 13 Based on the network device configuration method provided in the above embodiments, this application embodiment also provides another electronic device 100 including a processor 102 capable of executing the aforementioned method. The electronic device 100 can be a server or a terminal device, and the terminal device can be a smartphone, tablet computer, computer or portable computer, etc.
[0129] The electronic device 100 also includes a memory 104. The memory 104 stores a program that can execute the contents of the foregoing embodiments, and the processor 102 can execute the program stored in the memory 104.
[0130] The processor 102 may include one or more cores for data processing and message matrix units. The processor 102 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and by calling data stored in the memory 104. Optionally, the processor 102 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 102 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 102 and may be implemented separately using a communication chip.
[0131] The memory 104 may include random access memory (RAM) or read-only memory (ROM). The memory 104 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 104 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described below, etc. The data storage area may also store data acquired by the electronic device 100 during use (e.g., application information or skin images).
[0132] The electronic device 100 may also include a network module and a screen. The network module is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals, thereby enabling communication with communication networks or other devices, such as audio playback devices. The network module may include various existing circuit elements used to perform these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, SIM cards, memory, etc. The network module can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices via wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The screen can display interface content and perform data interaction, such as displaying the aforementioned interface and triggering operations through the screen.
[0133] This application also provides a structural block diagram of a computer-readable storage medium. The computer-readable medium stores program code, which can be called by a processor to execute the methods described in the above method embodiments.
[0134] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0135] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods described in the various optional implementations above.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A network device configuration method, characterized in that, The method comprises: Obtain operation and maintenance configuration description information; Task extraction is performed on the operation and maintenance configuration description information to obtain the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information; Based on the parameter list corresponding to the target operation and maintenance configuration task, obtain the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information; Based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task, an operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information is generated. The operation and maintenance configuration execution file includes an executable script or a configuration file. The network devices are configured based on the operation and maintenance configuration execution file, and the configuration results are generated.
2. The method according to claim 1, characterized in that, The operation and maintenance configuration execution file includes an executable script. The step of generating the operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task includes: Based on the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list corresponding to the target operation and maintenance configuration task, a first prompt message is generated to indicate the generation of an executable script. An executable script corresponding to the operation and maintenance configuration description information is generated based on the first prompt information using a generative language model.
3. The method according to claim 2, characterized in that, After generating an executable script corresponding to the operation and maintenance configuration description information based on the prompt information using a generative language model, the method further includes: Based on the executable script, a second prompt message is generated to indicate the verification of the executable script; The executable script is validated using a generative language model based on the second prompt information to obtain a validated executable script.
4. The method according to claim 1, characterized in that, The operation and maintenance configuration execution file includes a configuration file. The step of generating the operation and maintenance configuration execution file corresponding to the operation and maintenance configuration description information based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task includes: Obtain the target configuration template corresponding to the target operation and maintenance configuration task from multiple preset configuration templates; Configure the target configuration template according to the parameter list corresponding to the target operation and maintenance configuration task and the parameter values corresponding to each configuration item in the parameter list to obtain the configuration file corresponding to the operation and maintenance configuration description information.
5. The method according to any one of claims 1-4, characterized in that, The process of configuring network devices based on the operation and maintenance configuration execution file and generating configuration results includes: A file deployment prompt message is sent to the wireless controller, instructing the wireless controller to deploy the operation and maintenance configuration executable file, so that the wireless controller displays the file deployment prompt message. Upon receiving a file deployment confirmation message in response to the file deployment prompt message, the operation and maintenance configuration executable file is deployed to the target environment and executed according to the file deployment confirmation message to perform operation and maintenance configuration on the network device and generate configuration results.
6. The method according to any one of claims 1-4, characterized in that, The step of extracting tasks from the operation and maintenance configuration description information to obtain the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information includes: The intent recognition results are obtained by performing intent recognition on the operation and maintenance configuration description information; Based on the intent recognition result and the operation and maintenance configuration description information, the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information is obtained from multiple tasks.
7. The method according to claim 6, characterized in that, The step of obtaining the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information from multiple tasks based on the intent recognition result and the operation and maintenance configuration description information includes: Feature extraction is performed on the operation and maintenance configuration description information to obtain information features; Candidate task features with a similarity greater than a preset similarity threshold are obtained from the task feature list. The task feature list stores task features corresponding to multiple tasks. Based on the intent recognition result, candidate task features and their corresponding tasks, a third prompt message is generated to indicate which task with the highest relevance to the operation and maintenance configuration description information is selected from the tasks corresponding to the candidate task features. Using a generative language model, the task with the highest relevance to the operation and maintenance configuration description information is selected from the tasks corresponding to multiple candidate task features based on the third prompt information, and then used as the target operation and maintenance configuration task.
8. The method according to any one of claims 1-4, characterized in that, The step of obtaining the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task includes: Based on the target operation and maintenance configuration task and its corresponding parameter list, a parameter extraction prompt message is generated. The parameter extraction prompt message is used to indicate the extraction of parameter values corresponding to each parameter configuration item in the parameter list corresponding to the target operation and maintenance configuration task from the operation and maintenance configuration description information. Using a generative language model, the parameter values corresponding to each parameter configuration item in the parameter list are extracted from the operation and maintenance configuration description information based on the parameter extraction prompt information.
9. A network device configuration method, characterized in that, The method includes: Displays a dialog interface for human-computer interaction; Receive task instructions input by the user through the dialog interface; The dialog interface displays task understanding response information generated by understanding the intent of the task instruction. The task understanding response information includes operation and maintenance configuration description information, which includes operation and maintenance configuration objectives and operation and maintenance configuration actions. If a confirmation command is received from the user based on the dialog interface, the network device is configured for operation and maintenance based on the operation and maintenance configuration goals and actions, and the configuration results generated by the operation and maintenance configuration are displayed in the dialog interface.
10. The method according to claim 9, characterized in that, The operation and maintenance configuration of network devices based on operation and maintenance configuration goals and actions includes: Based on the operation and maintenance configuration goals and operation and maintenance configuration actions, an operation and maintenance configuration execution file is generated. The operation and maintenance configuration execution file includes an executable script or a configuration file. Deploy the operation and maintenance configuration executable file to the target environment and execute it to perform operation and maintenance configuration on network devices.
11. The method according to claim 10, characterized in that, The step of deploying the operation and maintenance configuration executable file to the target environment and executing it to perform operation and maintenance configuration on network devices includes: The operation and maintenance configuration execution file is displayed in the dialog interface; If a configuration confirmation command for the operation and maintenance configuration execution file is received from the user in the dialog interface, the operation and maintenance configuration execution file is deployed to the target environment and executed to perform operation and maintenance configuration on the network device.
12. The method according to claim 9, characterized in that, The step of displaying task understanding response information generated from intent understanding of the task instruction in the dialogue interface includes: The task instructions are sent to a large language model deployed on a cloud server for intent understanding to obtain task understanding response information; Receive the task understanding response information returned by the cloud server and display the task understanding response information in the dialog interface.
13. A network device configuration apparatus, characterized in that, The device comprises: The information acquisition module is used to acquire operation and maintenance configuration description information; The task extraction module is used to extract tasks from the operation and maintenance configuration description information to obtain the target operation and maintenance configuration task corresponding to the operation and maintenance configuration description information. The parameter extraction module is used to obtain the parameter values corresponding to each parameter configuration item in the parameter list from the operation and maintenance configuration description information according to the parameter list corresponding to the target operation and maintenance configuration task. The executable file generation module is used to generate an operation and maintenance configuration executable file corresponding to the operation and maintenance configuration description information based on the parameter values corresponding to each parameter configuration item in the parameter list and the target operation and maintenance configuration task. The operation and maintenance configuration executable file includes an executable script or a configuration file. The operation and maintenance configuration module is used to perform operation and maintenance configuration on network devices based on the operation and maintenance configuration execution file and generate configuration results.
14. A network device configuration apparatus, characterized in that, The device comprises: The interface display module is used to display the dialogue interface for human-computer interaction; The instruction receiving module is used to receive task instructions input by the user through the dialog interface; The information display module is used to display task understanding response information generated by understanding the intent of the task instruction in the dialogue interface. The task understanding response information includes operation and maintenance configuration description information, which includes operation and maintenance configuration objectives and operation and maintenance configuration actions. When the operation and maintenance configuration module receives a confirmation command input by the user through the dialog interface, it performs operation and maintenance configuration on the network device based on the operation and maintenance configuration goals and actions, and displays the configuration results generated by the operation and maintenance configuration in the dialog interface.
15. An electronic device, characterized in that, include: processor; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the one or more programs being configured to perform the method as described in any one of claims 1-8 or 9-12.