OLT equipment configuration method, device, equipment and readable storage medium
By determining the target pre-deployment tasks and common configuration templates of OLT equipment from the network management database, automatically generating and applying configuration files, it solves the problem of tedious and time-consuming OLT equipment configuration, realizes an automated and efficient configuration process, and reduces the risk of configuration errors. .
Patent Information
- Application Number
- CN202210877553.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-07-25
AI Technical Summary
In the existing technology, when opening OLT equipment, manual on-site configuration is required. The process is cumbersome, time-consuming and labor-intensive, and the problem of missing or mismatched configurations is prone to occur.
By determining the target pre-deployment task of the OLT device to be configured from the network management database, determining the target general configuration template based on the target pre-deployment task, obtaining and modifying the target configuration file, generating a new configuration file and sending it to the server, automatically configuring the OLT device, achieving Automated configuration without manual on-site operations.
It realizes the automatic, efficient and intelligent deployment and activation of OLT equipment, reduces the risk of configuration errors and improves work efficiency.
Smart Images

Figure CN115065897B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an OLT equipment configuration method, device, equipment and a readable storage medium. Background Art
[0002] OLT is an optical line terminal, a terminal device used to connect to the optical fiber trunk line. Its functions are: to send Ethernet data to ONU (optical network unit) in broadcast mode; to initiate and control the ranging process and record the ranging information; to allocate bandwidth to ONU, that is, to control the start time and sending window size of ONU data.
[0003] At present, when opening the OLT, the construction team needs to install the equipment, power it on, and adjust the upstream fiber line. The user needs to plan the OLT's management IP, mask and gateway information, management VLAN, service VLAN, OLT name, and OLT upstream port information. The soft adjustment engineer needs to go down to the site command line to open it, open the management channel, add the OLT device to the network management, configure the OLT name and service VLAN, etc., and configure various service templates and other information according to the needs of the actual project. Every time an OLT is opened, it needs to be manually configured on site, and the configuration process is cumbersome and time-consuming. It is prone to omissions and mismatches. In addition, the soft adjustment engineer needs to go to the site for on-site debugging and opening after the construction is completed, which is time-consuming and labor-intensive. Summary of the invention
[0004] The main purpose of the present invention is to provide an OLT equipment configuration method, device, equipment and readable storage medium, aiming to solve the problem that manual on-site configuration is required when opening the OLT, which is cumbersome, time-consuming and labor-intensive, and prone to mismatching.
[0005] In a first aspect, the present invention provides an OLT device configuration method, which is applied to a network management system, and the OLT device configuration method includes:
[0006] Determine the target pre-deployment task of the OLT device to be configured from the network management database;
[0007] Determine a target common configuration template based on the target pre-deployment task;
[0008] Get the target configuration file based on the target common configuration template;
[0009] Modify the target configuration file according to the task parameters corresponding to the target pre-deployment task, generate a new target configuration file and send it to the server;
[0010] The OLT device to be configured is configured based on the new target configuration file.
[0011] Optionally, before the step of determining the target pre-deployment task of the OLT device to be configured from the network management database, the step includes:
[0012] The configuration files corresponding to each OLT device type to be configured are stored in the server;
[0013] Based on the storage information of each configuration file, a corresponding general configuration template is created, and a name is set for each general configuration template, multiple general configuration templates are obtained and stored in the network management database, wherein the names of different general configuration templates are different, and the storage information of each configuration file includes the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
[0014] A corresponding pre-deployment task is created for each OLT device to be configured and stored in the network management database, wherein the task parameters of each pre-deployment task include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group.
[0015] Optionally, before the step of determining the target pre-deployment task of the OLT device to be configured from the network management database, the step includes:
[0016] The OLT device to be configured is initialized according to the configuration management VLAN, temporary management IP, static routing and network management IP address read from the USB flash drive;
[0017] The initialized OLT device to be configured sends an SNMP TRAP data packet to the network manager based on a temporary management channel established according to the configuration management VLAN, temporary management IP, static routing and network manager IP address.
[0018] Optionally, the step of determining the target pre-deployment task of the OLT device to be configured from the network management database includes:
[0019] Parse the SNMP TRAP data packet sent by the OLT device to be configured to obtain the electronic serial number of the OLT device to be configured;
[0020] The target pre-deployment task of the OLT device to be configured is determined from the network management database according to the electronic serial number of the OLT device to be configured.
[0021] Optionally, the step of determining a target general configuration template based on a target pre-deployment task includes:
[0022] The task parameters corresponding to the target pre-deployment task are obtained, and the target general configuration template is determined from the network management database according to the general configuration template name in the task parameters.
[0023] Optionally, the step of acquiring a target configuration file based on the target general configuration template includes:
[0024] Obtain storage information of the configuration file corresponding to the target general configuration template;
[0025] Get the target configuration file based on the storage information of the configuration file.
[0026] Optionally, the step of configuring the OLT device to be configured based on the new target configuration file includes:
[0027] The information of the server and the name of the new target configuration file are sent to the OLT device to be configured through the temporary management IP, so that the OLT device to be configured can obtain a new target configuration file corresponding to the name of the new target configuration file from the server according to the information of the server and configure it, wherein the name of the new target configuration file includes the electronic serial number of the OLT device to be configured.
[0028] In a second aspect, the present invention further provides an OLT device configuration device, the OLT device configuration device comprising:
[0029] A first determination module is used to determine a target pre-deployment task of the OLT device to be configured from a network management database;
[0030] A second determination module is used to determine a target general configuration template based on a target pre-deployment task;
[0031] An acquisition module, used to acquire a target configuration file based on a target common configuration template;
[0032] A modification module is used to modify the target configuration file according to the task parameters corresponding to the target pre-deployment task, generate a new target configuration file and send it to the server;
[0033] A configuration module is used to configure the OLT device to be configured based on the new target configuration file.
[0034] In a third aspect, the present invention further provides an OLT device configuration device, comprising a processor, a memory, and an OLT device configuration program stored in the memory and executable by the processor, wherein when the OLT device configuration program is executed by the processor, the steps of the OLT device configuration method as described above are implemented.
[0035] In a fourth aspect, the present invention further provides a readable storage medium, on which an OLT device configuration program is stored, wherein when the OLT device configuration program is executed by a processor, the steps of the OLT device configuration method as described above are implemented.
[0036] In the present invention, the target pre-deployment task of the OLT device to be configured is determined from the network management database; the target general configuration template is determined based on the target pre-deployment task; the target configuration file is obtained based on the target general configuration template; the target configuration file is modified according to the task parameters corresponding to the target pre-deployment task, a new target configuration file is generated and sent to the server; the OLT device to be configured is configured based on the new target configuration file. Through the present invention, when the OLT device needs to be opened, the target pre-deployment task and the target general configuration template of the OLT device to be configured are determined from the network management database, the target configuration file is obtained based on the target general configuration template, the target configuration file is modified according to the task parameters corresponding to the target pre-deployment task, a new target configuration file is generated, and the OLT device to be configured can be configured based on the new target configuration file. In this way, the hardware engineer only needs to complete the hardware-related operations without having the soft adjustment skills. The soft adjustment engineer does not need to go to the site, nor does he need to manually configure the data of the newly built device remotely in the network center, so as to realize the automatic, efficient and intelligent OLT deployment and opening, and solves the problem that the manual on-site configuration is required when opening the OLT in the prior art, which is cumbersome, time-consuming and labor-intensive, and prone to mismatching. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the hardware structure of an OLT device configuration device involved in an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a flow chart of a first embodiment of an OLT device configuration method of the present invention;
[0039] Figure 3 for Figure 2 A detailed flow chart of step S10;
[0040] Figure 4 A schematic diagram of a flow chart of a second embodiment of an OLT device configuration method of the present invention;
[0041] Figure 5 A schematic diagram of functional modules of an embodiment of an OLT device configuration apparatus of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] In a first aspect, an embodiment of the present invention provides an OLT device configuration device, which may be a device having a data processing function, such as a personal computer (PC), a notebook computer, or a server.
[0045] Reference Figure 1 , Figure 1 The hardware structure diagram of the OLT device configuration device involved in the embodiment of the present invention is shown in FIG. 1 . In the embodiment of the present invention, the OLT device configuration device may include a processor 1001 (e.g., a central processing unit (CPU)), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. It will be understood by those skilled in the art that Figure 1 The hardware structure shown in the figure does not constitute a limitation of the present invention, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0046] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an OLT device configuration program. The processor 1001 may call the OLT device configuration program stored in the memory 1005 and execute the OLT device configuration method provided in the embodiment of the present invention.
[0047] In a second aspect, an embodiment of the present invention provides an OLT device configuration method.
[0048] In one embodiment, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of the first embodiment of the OLT device configuration method of the present invention. Figure 2 As shown, the OLT device configuration method includes:
[0049] Step S10, determining the target pre-deployment task of the OLT device to be configured from the network management database;
[0050] In this embodiment, each OLT device to be configured has a corresponding pre-deployment task in the network management database. Because the task parameters of the pre-deployment task include the electronic serial number of the OLT to be configured, after obtaining the electronic serial number of the OLT device to be configured, the target pre-deployment task corresponding to the OLT device to be configured can be determined from the network management database according to the electronic serial number of the OLT to be configured.
[0051] Further, in one embodiment, referring to Figure 3 , Figure 3 for Figure 2 Detailed flow chart of step S10 in FIG. Figure 3 As shown, step S10 includes:
[0052] Step S101, parsing the SNMPTRAP data packet sent by the OLT device to be configured to obtain the electronic serial number of the OLT device to be configured;
[0053] Step S102: determining a target pre-deployment task of the OLT device to be configured from a network management database according to the electronic serial number of the OLT device to be configured.
[0054] In this embodiment, the SNMP TRAP data packet sent by the OLT to be configured is parsed to obtain the electronic serial number (ESN) of the OLT device to be configured, and a match is performed in the network management database based on the obtained electronic serial number of the OLT device to be configured. The pre-deployment task in the network management database to which the electronic serial number identical to the obtained electronic serial number of the OLT device to be configured belongs is the target pre-deployment task of the OLT device to be configured.
[0055] Step S20, determining a target general configuration template based on the target pre-deployment task;
[0056] In this embodiment, after the target pre-deployment task of the OLT device to be configured is determined, a general configuration template can be determined from the network management database according to the task parameters corresponding to the target pre-deployment task.
[0057] Furthermore, in one embodiment, step S20 includes:
[0058] The task parameters corresponding to the target pre-deployment task are obtained, and the target general configuration template is determined from the network management database according to the general configuration template name in the task parameters.
[0059] In this embodiment, the task parameters corresponding to the target pre-deployment task are obtained, and the general configuration template corresponding to the general configuration template name in the task parameters is searched in the network management database according to the general configuration template name in the task parameters. The general configuration template corresponding to the general configuration template name in the task parameters corresponding to the target pre-deployment task in the network management database is the target general configuration template.
[0060] Step S30, obtaining a target configuration file based on a target general configuration template;
[0061] In this embodiment, when creating a general configuration template, a corresponding general configuration template is created based on the storage information of each configuration file. Therefore, the target configuration file can be obtained based on the target general configuration template.
[0062] Furthermore, in one embodiment, step S30 includes:
[0063] Obtain storage information of the configuration file corresponding to the target general configuration template;
[0064] Get the target configuration file based on the storage information of the configuration file.
[0065] In this embodiment, after determining the target universal configuration template, the storage information of the configuration file corresponding to the target universal configuration template is obtained, and the target configuration file corresponding to the name of the target configuration file is obtained from the server corresponding to the IP address of the server according to the storage information of the configuration file.
[0066] Step S40, modifying the target configuration file according to the task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending it to the server;
[0067] In this embodiment, taking the server as an ftp server as an example, the target configuration file is modified according to the task parameters corresponding to the target pre-deployment task, and a new target configuration file is generated, so that the parameters of the new target configuration file are the same as the task parameters corresponding to the target pre-deployment task. Among them, the task parameters include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group. After the new target configuration file is generated, the new target configuration file is sent to the ftp server for storage. It is easy to think that the server can also be other computers that provide file storage and access services on the Internet, and the following continues to explain the server as an ftp server.
[0068] Step S50: configuring the OLT device to be configured based on the new target configuration file.
[0069] In this embodiment, the OLT device to be configured can be configured based on the new target configuration file.
[0070] Furthermore, in one embodiment, step S50 includes:
[0071] The information of the server and the name of the new target configuration file are sent to the OLT device to be configured through the temporary management IP, so that the OLT device to be configured can obtain a new target configuration file corresponding to the name of the new target configuration file from the server according to the information of the server and configure it, wherein the name of the new target configuration file includes the electronic serial number of the OLT device to be configured.
[0072] In this embodiment, the SNMPTRAP data packet sent by the OLT device to be configured is parsed to obtain the temporary management IP of the OLT device to be configured. The information of the ftp server storing the new target configuration file and the name of the new target configuration file are sent to the OLT device to be configured through the temporary management IP of the OLT device to be configured, so that the OLT device to be configured can obtain the new target configuration file corresponding to the name of the new target configuration file from the ftp server storing the new target configuration file according to the information of the ftp server storing the new target configuration file and configure it. Because the name of the new target configuration file includes the electronic serial number of the OLT device to be configured, the new target configuration file corresponding to the name of the new target configuration file obtained by the OLT device to be configured from the ftp server storing the new target configuration file is the configuration file of the OLT device to be configured, so the OLT device to be configured can be configured based on the new target configuration file. Among them, the information of the ftp server storing the new target configuration file includes the IP address, user name and password of the ftp server.
[0073] Furthermore, after the configuration of the OLT device is completed, the device is restarted so that the configured management IP takes effect, that is, the management IP in the task parameters takes effect. The network management parses the SNMPTRAP data packet sent by the OLT device to be configured, obtains the device type of the OLT device to be configured, creates the OLT device to be configured according to the device type of the OLT device to be configured, and modifies the temporary management IP of the created OLT device to be configured to the management IP in the task parameters, and simultaneously obtains the configuration data corresponding to the OLT device after the configuration is completed, so that the configuration data corresponding to the OLT device to be configured created in the network management is the same as the configuration data corresponding to the OLT device after the configuration is completed, wherein the configuration data includes single disk configuration data and service configuration data.
[0074] In this embodiment, the target pre-deployment task of the OLT device to be configured is determined from the network management database; the target general configuration template is determined based on the target pre-deployment task; the target configuration file is obtained based on the target general configuration template; the target configuration file is modified according to the task parameters corresponding to the target pre-deployment task, a new target configuration file is generated and sent to the server; the OLT device to be configured is configured based on the new target configuration file. Through this embodiment, when the OLT device needs to be opened, the target pre-deployment task and the target general configuration template of the OLT device to be configured are determined from the network management database, the target configuration file is obtained based on the target general configuration template, the target configuration file is modified according to the task parameters corresponding to the target pre-deployment task, a new target configuration file is generated, and the OLT device to be configured can be configured based on the new target configuration file. In this way, the hardware engineer only needs to complete the hardware-related operations without having the software adjustment skills. The software adjustment engineer does not need to go to the site, nor does he need to manually configure the data of the newly built device remotely in the network center, so as to realize the automatic, efficient and intelligent OLT deployment and opening, and solves the problem that the manual on-site configuration is required when opening the OLT in the prior art, which is cumbersome, time-consuming and labor-intensive, and prone to mismatching.
[0075] Furthermore, in one embodiment, before step S10, the following steps are included:
[0076] The configuration files corresponding to each OLT device type to be configured are stored in the server;
[0077] Based on the storage information of each configuration file, a corresponding general configuration template is created, and a name is set for each general configuration template, multiple general configuration templates are obtained and stored in the network management database, wherein the names of different general configuration templates are different, and the storage information of each configuration file includes the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
[0078] A corresponding pre-deployment task is created for each OLT device to be configured and stored in the network management database, wherein the task parameters of each pre-deployment task include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group.
[0079] In this embodiment, a configuration file corresponding to each type of OLT device to be configured is created, and the configuration file corresponding to each type of OLT device to be configured is stored in the ftp server. Specifically, if there are OLT devices A, B, C, D, and E to be configured, and the OLT devices A and B to be configured are of the same three types, the OLT device C to be configured is of one type, and the OLT devices D and E to be configured are of another type, then there are a total of three types of OLT devices to be configured, and configuration files corresponding to the three types of OLT devices to be configured are created respectively, and the configuration files corresponding to the three types of OLT devices to be configured are stored in the ftp server.
[0080] A corresponding general configuration template is created based on the storage information of each configuration file, and a name is set for each general configuration template, and multiple general configuration templates are obtained and stored in the network management database. Among them, the names of different general configuration templates are different, and the configuration files of different general configuration templates are also different. The storage information of each configuration file includes the name of the configuration file corresponding to each configuration file and the IP address of the ftp server storing each configuration file. Specifically, a corresponding general configuration template is created based on the storage information of the configuration files corresponding to the three types of OLT devices to be configured, and different names are set for the three general configuration templates, respectively, to obtain three general configuration templates and store them in the network management database.
[0081] A corresponding pre-deployment task is created for each OLT device to be configured and stored in the network management database, wherein the task parameters of each pre-deployment task include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group.
[0082] Furthermore, the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, and customized configuration parameters of the OLT device to be configured corresponding to the pre-deployment task are set according to user needs, and the task parameters of each pre-deployment task include the name of the general configuration template for the OLT device to be configured corresponding to the pre-deployment task, which is the name set for the general configuration template and created based on the storage information of the configuration file corresponding to the type of OLT device to be configured.
[0083] Furthermore, in one embodiment, before step S10, the following steps are included:
[0084] Step S001, the OLT device to be configured is initialized according to the configuration management VLAN, temporary management IP, static routing and network management IP address read from the USB flash drive;
[0085] Step S002, the initialized OLT device to be configured sends an SNMP TRAP data packet to the network manager based on a temporary management channel established according to the configuration management VLAN, temporary management IP, static routing and network manager IP address.
[0086] In this embodiment, refer to Figure 4 , Figure 4 FIG. 2 is a flow chart of the second embodiment of the OLT device configuration method of the present invention. Figure 4 As shown, after the OLT device to be configured reads the configuration management VLAN, temporary management IP, static route and network management IP address in the U disk, it is initialized according to the configuration management VLAN, temporary management IP, static route and network management IP address read in the U disk.
[0087] The initialized OLT device to be configured sends an SNMP TRAP packet to the network manager based on the temporary management channel established according to the configuration management VLAN, temporary management IP, static routing and network manager IP address for executing step S101. The SNMP TRAP packet includes the type of the OLT device, the electronic serial number and the temporary management IP.
[0088] In a third aspect, an embodiment of the present invention further provides an OLT equipment configuration device.
[0089] In one embodiment, referring to Figure 5 , Figure 5 Schematic diagram of functional modules of an embodiment of an OLT device configuration device of the present invention. Figure 5 As shown, the OLT equipment configuration device includes:
[0090] A first determination module 10 is used to determine a target pre-deployment task of the OLT device to be configured from a network management database;
[0091] A second determination module 20, configured to determine a target general configuration template based on a target pre-deployment task;
[0092] An acquisition module 30, configured to acquire a target configuration file based on a target general configuration template;
[0093] A modification module 40 is used to modify the target configuration file according to the task parameters corresponding to the target pre-deployment task, generate a new target configuration file and send it to the server;
[0094] The configuration module 50 is used to configure the OLT device to be configured based on the new target configuration file.
[0095] Furthermore, in one embodiment, the OLT device configuration apparatus further includes a creation module, which is used to:
[0096] The configuration files corresponding to each OLT device type to be configured are stored in the server;
[0097] Based on the storage information of each configuration file, a corresponding general configuration template is created, and a name is set for each general configuration template, multiple general configuration templates are obtained and stored in the network management database, wherein the names of different general configuration templates are different, and the storage information of each configuration file includes the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
[0098] A corresponding pre-deployment task is created for each OLT device to be configured and stored in the network management database, wherein the task parameters of each pre-deployment task include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group.
[0099] Furthermore, in one embodiment, the OLT device configuration apparatus further includes an initialization module, which is used to:
[0100] The OLT device to be configured is initialized according to the configuration management VLAN, temporary management IP, static routing and network management IP address read from the USB flash drive;
[0101] The building module is used for: the initialized OLT device to be configured sends SNMP TRAP data packets to the network manager based on the temporary management channel built according to the configuration management VLAN, temporary management IP, static routing and network manager IP address.
[0102] Furthermore, in one embodiment, the first determining module 10 is configured to:
[0103] Parse the SNMP TRAP data packet sent by the OLT device to be configured to obtain the electronic serial number of the OLT device to be configured;
[0104] The target pre-deployment task of the OLT device to be configured is determined from the network management database according to the electronic serial number of the OLT device to be configured.
[0105] Furthermore, in one embodiment, the second determining module 20 is configured to:
[0106] The task parameters corresponding to the target pre-deployment task are obtained, and the target general configuration template is determined from the network management database according to the general configuration template name in the task parameters.
[0107] Furthermore, in one embodiment, the acquisition module 30 is used to:
[0108] Obtain storage information of the configuration file corresponding to the target general configuration template;
[0109] Get the target configuration file based on the storage information of the configuration file.
[0110] Furthermore, in one embodiment, the configuration module 50 is used to:
[0111] The information of the server and the name of the new target configuration file are sent to the OLT device to be configured through the temporary management IP, so that the OLT device to be configured can obtain a new target configuration file corresponding to the name of the new target configuration file from the server according to the information of the server and configure it, wherein the name of the new target configuration file includes the electronic serial number of the OLT device to be configured.
[0112] Among them, the functional implementation of each module in the above-mentioned OLT equipment configuration device corresponds to each step in the above-mentioned OLT equipment configuration method embodiment, and its functions and implementation processes are no longer repeated here.
[0113] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium.
[0114] The readable storage medium of the present invention stores an OLT device configuration program, wherein when the OLT device configuration program is executed by a processor, the steps of the above-mentioned OLT device configuration method are implemented.
[0115] The method implemented when the OLT device configuration program is executed can refer to the various embodiments of the OLT device configuration method of the present invention, and will not be described in detail here.
[0116] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods 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 invention is essentially 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) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present invention.
[0119] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An OLT device configuration method, characterized in that: The OLT device configuration method is applied to network management, and the OLT device configuration method includes: Determine the target pre-deployment task of the OLT device to be configured from the network management database; Determine a target common configuration template based on the target pre-deployment task; Get the target configuration file based on the target common configuration template; Modify the target configuration file according to the task parameters corresponding to the target pre-deployment task, generate a new target configuration file and send it to the server; Configuring the OLT device to be configured based on the new target configuration file; Before the step of determining the target pre-deployment task of the OLT device to be configured from the network management database, the method includes: The configuration files corresponding to each OLT device type to be configured are stored in the server; Based on the storage information of each configuration file, a corresponding general configuration template is created, and a name is set for each general configuration template, multiple general configuration templates are obtained and stored in the network management database, wherein the names of different general configuration templates are different, and the storage information of each configuration file includes the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file; A corresponding pre-deployment task is created for each OLT device to be configured, and stored in the network management database, wherein the task parameters of each pre-deployment task include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group; Before the step of determining the target pre-deployment task of the OLT device to be configured from the network management database, the method includes: The OLT device to be configured is initialized according to the configuration management VLAN, temporary management IP, static routing and network management IP address read from the USB flash drive; After initialization, the OLT device to be configured sends SNMP TRAP data packets to the network management based on the temporary management channel established according to the configuration management VLAN, temporary management IP, static routing and network management IP address; The step of determining the target pre-deployment task of the OLT device to be configured from the network management database includes: Parse the SNMP TRAP data packet sent by the OLT device to be configured to obtain the electronic serial number of the OLT device to be configured; The target pre-deployment task of the OLT device to be configured is determined from the network management database according to the electronic serial number of the OLT device to be configured.
2. The OLT device configuration method according to claim 1, characterized in that: The step of determining the target universal configuration template based on the target pre-deployment task includes: The task parameters corresponding to the target pre-deployment task are obtained, and the target general configuration template is determined from the network management database according to the general configuration template name in the task parameters.
3. The OLT device configuration method according to claim 1, characterized in that: The step of obtaining a target configuration file based on the target general configuration template includes: Obtain storage information of the configuration file corresponding to the target general configuration template; Get the target configuration file based on the storage information of the configuration file.
4. The OLT device configuration method according to claim 1, characterized in that: The step of configuring the OLT device to be configured based on the new target configuration file includes: The information of the server and the name of the new target configuration file are sent to the OLT device to be configured through the temporary management IP, so that the OLT device to be configured can obtain a new target configuration file corresponding to the name of the new target configuration file from the server according to the information of the server and configure it, wherein the name of the new target configuration file includes the electronic serial number of the OLT device to be configured.
5. An OLT equipment configuration device, characterized in that: The OLT equipment configuration device comprises: A first determination module is used to determine a target pre-deployment task of the OLT device to be configured from a network management database; A second determination module is used to determine a target general configuration template based on a target pre-deployment task; An acquisition module, used to acquire a target configuration file based on a target common configuration template; A modification module is used to modify the target configuration file according to the task parameters corresponding to the target pre-deployment task, generate a new target configuration file and send it to the server; A configuration module, configured to configure the OLT device to be configured based on the new target configuration file; The OLT equipment configuration device further includes a creation module, which is used to: The configuration files corresponding to each OLT device type to be configured are stored in the server; Based on the storage information of each configuration file, a corresponding general configuration template is created, and a name is set for each general configuration template, multiple general configuration templates are obtained and stored in the network management database, wherein the names of different general configuration templates are different, and the storage information of each configuration file includes the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file; A corresponding pre-deployment task is created for each OLT device to be configured, and stored in the network management database, wherein the task parameters of each pre-deployment task include the type, name, management IP, mask, gateway, management VLAN, electronic serial number, SNMP parameters, customized configuration parameters and general configuration template name of the OLT device to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters include the host name, service VLAN, OLT uplink port and OLT uplink port aggregation group; The OLT equipment configuration device further includes an initialization module, which is used to: The OLT device to be configured is initialized according to the configuration management VLAN, temporary management IP, static routing and network management IP address read from the USB flash drive; A building module is used for: the initialized OLT device to be configured sends SNMP TRAP data packets to the network manager based on the temporary management channel built according to the configuration management VLAN, temporary management IP, static routing and network manager IP address; The first determining module is further used for: Parse the SNMP TRAP data packet sent by the OLT device to be configured to obtain the electronic serial number of the OLT device to be configured; The target pre-deployment task of the OLT device to be configured is determined from the network management database according to the electronic serial number of the OLT device to be configured.
6. An OLT device configuration device, characterized in that: The OLT device configuration device comprises a processor, a memory, and an OLT device configuration program stored in the memory and executable by the processor, wherein when the OLT device configuration program is executed by the processor, the steps of the OLT device configuration method according to any one of claims 1 to 4 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores an OLT device configuration program, wherein when the OLT device configuration program is executed by a processor, the steps of the OLT device configuration method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Connecting method of Ethernet Passive Optical Network (EPON) access device
CN103108261A
Equipment configuration method, configuration device and management equipment
CN112600716A
Method for realizing zero-contact full-automatic network element deployment by using USB flash disk
CN114124684A
DPOE System And Service Auto-Configuration Method And Network Based Thereon
US20140023366A1
Method for implementing rapid configuration and rapid configuration server
WO2015192651A1
