Automatic pushing method and device for cloud network configuration

Through the cloud network configuration automatic push method, the problems of traditional network device configuration errors and inconsistencies are solved, the automated process is realized, the configuration efficiency and accuracy are improved, the operation and maintenance costs are reduced, and the intelligent level of network management is improved.

CN118784475APending Publication Date: 2024-10-15CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410934102.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Configuration errors or configuration inconsistencies are prone to occur during traditional network device configuration. As the network scale and the number of devices increase, manual updates cannot meet the needs for efficient and accurate network management.

Method used

An automated push method for cloud network configuration is proposed. By establishing an automated network device configuration environment, parsing network device attribute information, obtaining configuration files and login information, activating interactive terminals, and configuring the internal configuration file of the seed machine to Network equipment generates echo result files to implement automated processes.

Benefits of technology

It improves the efficiency and accuracy of network equipment configuration, reduces operation and maintenance costs, and improves the intelligence level of network management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784475A_ABST
    Figure CN118784475A_ABST
Patent Text Reader

Abstract

The invention relates to a cloud network configuration automatic pushing method and device, and belongs to the technical field of computer networks, and the method comprises the steps: building an automatic network equipment configuration environment under the condition that a cloud network configuration automatic pushing request is received; determining one or more network devices in the current environment, and analyzing the network devices to obtain attribute information of the network devices; and activating the interactive terminal under the condition that the configuration file corresponding to the network equipment and the login information corresponding to the network equipment are successfully obtained: configuring an internal configuration file of the seed machine to the network equipment based on the interactive terminal under the condition that the seed machine receives a switch configuration command and under a target network protocol, and generating an echo result file of the network equipment based on the configuration result. According to the method, the efficiency and accuracy of network equipment configuration are improved through an automatic process, the operation and maintenance cost is reduced, and the intelligent level of network management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer network technology, and in particular relates to a method and device for automatically pushing cloud network configuration. Background Art

[0002] In the related art, network configuration push refers to automatically sending the configuration information of network devices to the specified target device to achieve configuration updates. In the traditional network device configuration process, staff usually need to manually update the configuration of each device, during which configuration errors or inconsistent configurations are likely to occur. With the continuous expansion of network scale and the increasing number of devices, manual updates can no longer meet the needs of efficient and accurate network management. Therefore, how to better configure network devices has become an urgent problem to be solved. Summary of the invention

[0003] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a method and device for automatically pushing cloud network configuration, which improves the efficiency and accuracy of network equipment configuration, reduces operation and maintenance costs, and improves the intelligence level of network management.

[0004] According to the first aspect of the present invention, a method for automatically pushing cloud network configuration is proposed, comprising: S1, upon receiving a request for automatically pushing cloud network configuration, establishing an automated network device configuration environment; S2, determining the network devices in the current environment, and parsing the network devices to obtain attribute information of the network devices, wherein the network devices are one or more; S3, upon successfully obtaining the configuration file corresponding to the network device and the login information corresponding to the network device, activating the interactive terminal; S4, upon receiving the switch configuration command, the seed machine configures the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol, and generates an echo result file of the network device based on the configuration result.

[0005] Furthermore, an automated network device configuration environment is established, including: creating the seed machine based on a network configuration toolkit, wherein the network configuration toolkit includes a configuration file for each of the network devices and a CSV file of the network device information; and establishing the automated network device configuration environment when the ZTP server in the seed machine is started.

[0006] Furthermore, when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained, the interactive terminal is activated, including: obtaining the configuration file corresponding to the network device from the configuration file based on the name of the network device; when the configuration file corresponding to the network device is successfully obtained, obtaining the login information corresponding to the network device from the CSV file based on the name of the network device; when the login information corresponding to the network device is successfully obtained, the interactive terminal is activated.

[0007] Furthermore, the login information includes a login IP, a login account and a password, wherein, when the login information corresponding to the network device is successfully obtained, the interactive terminal is activated, including: the seed machine logs in based on the login IP, the login account and the password; when the login is successful, the interactive terminal is activated.

[0008] Furthermore, the method also includes: if the configuration file corresponding to the network device is not successfully obtained or the login information corresponding to the network device is not successfully obtained, recording the network device in a failure list.

[0009] Furthermore, the internal configuration file of the seed machine is configured to the network device based on the interactive terminal, and an echo result file of the network device is generated based on the configuration result, including: determining whether an error is reported in the process of configuring the internal configuration file of the seed machine to the network device; if it is determined that no error is reported, generating a standard output file; if it is determined that an error is reported, generating a standard error file; based on the standard output file and the standard error file, generating an echo result file of the network device.

[0010] Furthermore, after generating the echo result file of the network device, the method further includes: resetting the configuration of the seed machine, and waiting to receive the cloud network configuration automatic push request again.

[0011] According to a second aspect of the present invention, a cloud network configuration automatic push device is proposed, comprising: an establishment module, used to establish an automated network device configuration environment when a cloud network configuration automatic push request is received; an acquisition module, used to determine the network device in the current environment, and parse the network device to obtain the attribute information of the network device, wherein the network device is one or more; an activation module, used to activate the interactive terminal when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained: a configuration module, used for the seed machine to configure the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol when the seed machine receives the switch configuration command, and generate an echo result file of the network device based on the configuration result.

[0012] According to a third aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described in the first aspect of the present invention.

[0013] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to the first aspect of the present invention.

[0014] The beneficial effects of the present invention are as follows:

[0015] The cloud network configuration automatic push method and device described in the present invention, when receiving the cloud network configuration automatic push request, establishes an automated network device configuration environment; determines the network devices in the current environment, and parses the network devices to obtain the attribute information of the network devices, and the network devices are one or more; when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained, the interactive terminal is activated: when the seed machine receives the switch configuration command, under the target network protocol, the seed machine configures the internal configuration file of the seed machine to the network device based on the interactive terminal, and generates the echo result file of the network device based on the configuration result. This method improves the efficiency and accuracy of network device configuration through an automated process, reduces operation and maintenance costs, and improves the intelligent level of network management. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0017] Figure 1 is a flow chart of a method for automatically pushing cloud network configuration according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of a method for automatically pushing cloud network configuration according to a specific embodiment of the present invention;

[0019] Figure 3 is a structural block diagram of a cloud network configuration automatic push device according to an embodiment of the present invention;

[0020] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0022] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0025] Pushing network configuration refers to automatically sending the configuration information of network devices to the specified target device to update the configuration. In the traditional network device configuration process, staff usually need to manually update the configuration of each device, during which it is easy to have configuration errors or inconsistent configurations. With the continuous expansion of network scale and the increasing number of devices, manual updates can no longer meet the needs of efficient and accurate network management. In order to solve these problems, ZTP technology has emerged. In addition, it is suitable for large-scale network deployment and can configure network devices in batches, improving the efficiency and consistency of network configuration. However, traditional network architecture not only requires high costs to purchase and maintain hardware equipment, but also takes time and effort to expand and adjust network topology. These disadvantages have promoted the development of cloud networks and met the needs of modern users for efficient and reliable access to the network. Therefore, it is necessary to automatically push network configuration in cloud networks, and to achieve centralized management and configuration updates of network devices through cloud platforms, further improving the flexibility and security of the network.

[0026] To this end, the present invention proposes a cloud network configuration automatic push method, device and related equipment. Specifically, the cloud network configuration automatic push method, device and related equipment of an embodiment of the present invention are described below with reference to the accompanying drawings.

[0027] Figure 1 1 is a flow chart of a method for automatically pushing cloud network configuration according to an embodiment of the present invention. It should be noted that the method for automatically pushing cloud network configuration according to an embodiment of the present invention can be applied to the device for automatically pushing cloud network configuration according to an embodiment of the present invention. The device for automatically pushing cloud network configuration can be configured on an electronic device or in a server. This embodiment of the present application does not limit this.

[0028] like Figure 1 As shown, the cloud network configuration automatic push method includes:

[0029] S110: upon receiving a cloud network configuration automation push request, establish an automated network device configuration environment.

[0030] In an embodiment of the present invention, a seed machine is created based on a network configuration toolkit, which includes a configuration file for each network device and a CSV file of network device information; when the ZTP server in the seed machine is started, an automated network device configuration environment is established.

[0031] That is to say, when it is determined that there is a need for automated push of cloud network configuration, the network configuration toolkit can be exported from the platform. In order to take advantage of the convenience of on-site management node devices connecting all switches, a seed machine can be deployed in the management node, that is, a seed machine can be created. The seed machine has a built-in ZTP server service. Starting the seed machine, that is, pulling up this service, completes the establishment of the automated network device configuration environment.

[0032] S120, determining the network devices in the current environment, and analyzing the network devices to obtain attribute information of the network devices, where there are one or more network devices.

[0033] In one embodiment of the present invention, the network devices in the current environment are determined, and each network device is parsed to obtain attribute information of each network device, wherein the attribute information includes but is not limited to device name, IP address, MAC address, device type, etc.

[0034] S130: activating the interactive terminal when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully acquired.

[0035] In an embodiment of the present invention, a configuration file corresponding to the network device is obtained from a configuration file based on the name of the network device; if the configuration file corresponding to the network device is successfully obtained, login information corresponding to the network device is obtained from a CSV file based on the name of the network device; if the login information corresponding to the network device is successfully obtained, the interactive terminal is activated. For specific implementation methods, please refer to the subsequent embodiments.

[0036] S140, when the seed machine receives the switch configuration command, it configures the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol, and generates an echo result file of the network device based on the configuration result.

[0037] In the embodiment of the present invention, when the seed machine receives the switch configuration command, it determines the protocol type of the network device, and determines the network protocol (i.e., the target network protocol) that should be used in the current environment based on the protocol type of the network device, and then configures the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol, and generates the echo result file of the network device based on the configuration result. The specific implementation method can refer to the subsequent embodiments.

[0038] The target network protocol includes the SSH protocol or the Teinet protocol.

[0039] According to the cloud network configuration automatic push method of the embodiment of the present invention, when receiving the cloud network configuration automatic push request, an automated network device configuration environment is established; the network devices in the current environment are determined, and the network devices are parsed to obtain the attribute information of the network devices, and the network devices are one or more; when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained, the interactive terminal is activated: when the seed machine receives the switch configuration command, under the target network protocol, the seed machine configures the internal configuration file of the seed machine to the network device based on the interactive terminal, and generates an echo result file of the network device based on the configuration result. This method improves the efficiency and accuracy of network device configuration through an automated process, reduces operation and maintenance costs, and improves the intelligence level of network management.

[0040] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 A method for automatically pushing cloud network configuration according to a specific embodiment of the present invention is as follows. Figure 2 As shown, the cloud network configuration automatic push method includes:

[0041] S210: When receiving a cloud network configuration automation push request, create a seed machine based on a network configuration toolkit.

[0042] The network configuration toolkit includes a configuration file for each network device and a CSV file of network device information.

[0043] In an embodiment of the present invention, when it is determined that there is a demand for automated push of cloud network configuration, a network configuration toolkit can be exported from the platform. In order to utilize the convenience of on-site management node devices connecting all switches, a seed machine can be deployed in the management node, that is, a seed machine is created.

[0044] Among them, the seed machine is deployed in the management node, that is, the seed machine of the management node can reside in the cloud network environment in a dormant state, and can be reactivated in subsequent expansion projects to achieve rapid delivery of expansion projects.

[0045] S220, when the ZTP server in the seed machine is started, an automated network device configuration environment is established.

[0046] S230, determining the network devices in the current environment, and analyzing the network devices to obtain attribute information of the network devices, where there are one or more network devices.

[0047] In other words, the network devices in the current environment can be determined, that is, the network devices that need to be configured in the current environment can be determined, and then the network devices can be parsed to obtain the attribute information of the network devices.

[0048] For example, the ZTP server in the seed machine can automatically discover newly connected devices in the network and obtain their attribute information. Attribute information includes but is not limited to device name, IP address, MAC address, device type, etc.

[0049] S240: Obtain a configuration file corresponding to the network device from the configuration file based on the name of the network device.

[0050] In the embodiment of the present invention, when a network device is determined, a configuration file corresponding to the network device may be obtained from a configuration file based on the attribute information of the network device, that is, the name of the network device.

[0051] The configuration files in the network configuration toolkit are saved in text format, and include specific configuration files for each network device. For example, each text format is named after the name of the network device.

[0052] S250, when the configuration file corresponding to the network device is successfully obtained, the login information corresponding to the network device is obtained from the CSV file based on the name of the network device.

[0053] In an embodiment of the present invention, when a configuration file corresponding to a network device is successfully obtained from a configuration file based on the name of the network device, the login information corresponding to the network device can be obtained from a CSV file based on the name of the network device, wherein the login information includes a login IP, a login account, and a password.

[0054] Among them, the CSV file includes information such as the device name, the login IP corresponding to the device name, the login account and password, the manufacturer and device software version.

[0055] S260: Activate the interactive terminal when the login information corresponding to the network device is successfully obtained.

[0056] In an embodiment of the present invention, when the login information corresponding to the network device is successfully obtained, the seed machine logs in based on the login IP, login account and password; when the login is successful, the interactive terminal is activated.

[0057] S270, when the seed machine receives the switch configuration command, it configures the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol, and generates an echo result file of the network device based on the configuration result.

[0058] In an embodiment of the present invention, it is determined whether an error occurs during the process of configuring the internal configuration file of the seed machine to the network device; if it is determined that no error occurs, a standard output file is generated; if it is determined that an error occurs, a standard error file is generated; based on the standard output file and the standard error file, an echo result file of the network device is generated.

[0059] The name of the network device is used as the name of the echo result file of the network device.

[0060] S280, after generating the echo result file of the network device, reset the configuration of the seed machine, and wait again for receiving the cloud network configuration automatic push request.

[0061] S290, when the configuration file corresponding to the network device is not successfully obtained or the login information corresponding to the network device is not successfully obtained, the network device is recorded in a failure list.

[0062] According to the method for automatically pushing cloud network configuration according to the embodiment of the present invention, operations such as exporting the network configuration toolkit from the platform, creating a seed machine, and activating the interactive terminal can all be completed automatically, reducing the cost of manual intervention; by automatically pushing the network configuration toolkit, creating a seed machine and deploying it in the management node, rapid delivery of the expansion project is achieved. At the same time, the ZTP server in the seed machine can automatically discover the newly connected device and obtain its attribute information, further improving the configuration efficiency; based on the name of the network device, the corresponding configuration file and login information are obtained from the configuration file and CSV file to ensure the accuracy of the configuration. At the same time, standard output files and standard error files are generated during the configuration process to facilitate problem troubleshooting and fault location; one or more network devices can be parsed and configured, supporting batch configuration functions; and the login information is stored in the CSV file, avoiding the risk of plain text transmission and storage. At the same time, the interactive terminal is activated after the login is successful, which improves the security of the system. It effectively reduces the workload of network administrators, reduces or eliminates the risk of errors, and reduces the time of network interruption.

[0063] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0064] According to one aspect of an embodiment of the present invention, a cloud network configuration automatic push device is also provided. Figure 3 is a structural block diagram of a cloud network configuration automatic push device according to an embodiment of the present invention; Figure 3 As shown, including:

[0065] Establishing module 310, for establishing an automated network device configuration environment upon receiving a cloud network configuration automation push request;

[0066] The obtaining module 320 is used to determine the network devices in the current environment and parse the network devices to obtain the attribute information of the network devices, where the network devices are one or more;

[0067] The activation module 330 is used to activate the interactive terminal when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained:

[0068] The configuration module 340 is used for the seed machine to configure the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol when receiving the switch configuration command, and to generate an echo result file of the network device based on the configuration result.

[0069] According to the cloud network configuration automatic push device of the embodiment of the present invention, upon receiving the cloud network configuration automatic push request, an automatic network device configuration environment is established; the network devices in the current environment are determined, and the network devices are parsed to obtain the attribute information of the network devices, and the network devices are one or more; upon successfully obtaining the configuration file corresponding to the network device and the login information corresponding to the network device, the interactive terminal is activated: upon receiving the switch configuration command, the seed machine configures the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol, and generates an echo result file of the network device based on the configuration result. Thus, the efficiency and accuracy of network device configuration are improved through the automated process, the operation and maintenance costs are reduced, and the intelligent level of network management is improved.

[0070] Optionally, a module 310 is established, which is specifically used to create the seed machine based on a network configuration toolkit, wherein the network configuration toolkit includes a configuration file for each network device and a CSV file of the network device information; when the ZTP server in the seed machine is started, the automated network device configuration environment is established.

[0071] Optionally, the activation module 330 is specifically used to obtain a configuration file corresponding to the network device from the configuration file based on the name of the network device; when the configuration file corresponding to the network device is successfully obtained, obtain login information corresponding to the network device from the CSV file based on the name of the network device; when the login information corresponding to the network device is successfully obtained, activate the interactive terminal.

[0072] Optionally, the login information includes a login IP, a login account and a password, wherein the activation module 330 is specifically used for the seed machine to log in based on the login IP, the login account and the password; if the login is successful, the interactive terminal is activated.

[0073] Optionally, the apparatus further comprises: a recording module, wherein the recording module is configured to record the network device into a failure list if a configuration file corresponding to the network device or login information corresponding to the network device is not successfully obtained.

[0074] Optionally, the configuration module 340 is specifically used to determine whether an error occurs during the process of configuring the internal configuration file of the seed machine to the network device; if it is determined that no error occurs, a standard output file is generated; if it is determined that an error occurs, a standard error file is generated; based on the standard output file and the standard error file, an echo result file of the network device is generated.

[0075] Optionally, after generating the echo result file of the network device, the apparatus further includes: a reset module, the reset module being used to reset the configuration of the seed machine and wait again to receive the cloud network configuration automatic push request.

[0076] According to one aspect of an embodiment of the present invention, an electronic device is provided.

[0077] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 4 More or fewer components as shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 A different configuration with more features is shown.

[0078] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the automatic push of cloud network configuration in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0079] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0080] The present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute a cloud network configuration automatic push method.

[0081] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0082] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0083] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for automatically pushing cloud network configuration, It is characterized in that include: S1, upon receiving a cloud network configuration automation push request, establish an automated network device configuration environment; S2, determining a network device in the current environment, and parsing the network device to obtain attribute information of the network device, wherein the network device is one or more; S3, activating the interactive terminal when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained: S4, when the seed machine receives the switch configuration command, it configures the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol, and generates an echo result file of the network device based on the configuration result.

2. The method for automatically pushing cloud network configuration according to claim 1, It is characterized in that Establish an automated network device configuration environment, including: Creating the seed machine based on a network configuration toolkit, wherein the network configuration toolkit includes a configuration file for each of the network devices and a CSV file of the network device information; When the ZTP server in the seed machine is started, the automated network device configuration environment is established.

3. The method for automatically pushing cloud network configuration according to claim 2, It is characterized in that In the case where the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained, activating the interactive terminal includes: Obtaining a configuration file corresponding to the network device from the configuration file based on the name of the network device; In the case where the configuration file corresponding to the network device is successfully obtained, obtaining the login information corresponding to the network device from the CSV file based on the name of the network device; When the login information corresponding to the network device is successfully acquired, the interactive terminal is activated.

4. The method for automatically pushing cloud network configuration according to claim 3, It is characterized in that The login information includes a login IP, a login account and a password, wherein, when the login information corresponding to the network device is successfully obtained, activating the interactive terminal includes: The seed machine logs in based on the login IP, the login account and the password; In case of successful login, the interactive terminal is activated.

5. The method for automatically pushing cloud network configuration according to claim 1, It is characterized in that The method further comprises: In the case where the configuration file corresponding to the network device is not successfully obtained or the login information corresponding to the network device is not successfully obtained, the network device is recorded in the failure list.

6. The method for automatically pushing cloud network configuration according to claim 1, It is characterized in that The method includes configuring the internal configuration file of the seed machine to the network device based on the interactive terminal, and generating an echo result file of the network device based on the configuration result, including: Determining whether an error is reported during the process of configuring the internal configuration file of the seed machine to the network device; If no error is reported, a standard output file is generated; In the case of an error, a standard error file is generated; An echo result file of the network device is generated based on the standard output file and the standard error file.

7. The method for automatically pushing cloud network configuration according to claim 1, It is characterized in that After generating the echo result file of the network device, the method further includes: The configuration of the seed machine is reset, and the automatic push request for the cloud network configuration is received again.

8. A cloud network configuration automatic push device, It is characterized in that include: A building module is used to build an automated network device configuration environment when receiving a cloud network configuration automation push request; An obtaining module is used to determine a network device in the current environment, and parse the network device to obtain attribute information of the network device, where the network device is one or more; An activation module is used to activate the interactive terminal when the configuration file corresponding to the network device and the login information corresponding to the network device are successfully obtained: The configuration module is used for the seed machine to configure the internal configuration file of the seed machine to the network device based on the interactive terminal under the target network protocol when receiving the switch configuration command, and to generate an echo result file of the network device based on the configuration result.

9. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Collection method, device and equipment of switch configuration information and medium

    CN119854126A