CN115065897B - OLT equipment configuration method, device, equipment and readable storage medium - Google Patents
OLT equipment configuration method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN115065897B CN115065897B CN202210877553.XA CN202210877553A CN115065897B CN 115065897 B CN115065897 B CN 115065897B CN 202210877553 A CN202210877553 A CN 202210877553A CN 115065897 B CN115065897 B CN 115065897B
- Authority
- CN
- China
- Prior art keywords
- configuration
- olt
- target
- configuration file
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000003068 static effect Effects 0.000 claims description 13
- 230000002776 aggregation Effects 0.000 claims description 7
- 238000004220 aggregation Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 3
- 238000012986 modification Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides an OLT device configuration method, an OLT device configuration device, an OLT device and a readable storage medium. The method comprises the following steps: determining a target pre-deployment task of the OLT equipment to be configured from a network management database; determining a target general configuration template based on the target pre-deployment task; acquiring a target configuration file based on a target general configuration template; modifying the target configuration file according to task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending the new target configuration file to the server; and configuring the OLT equipment to be configured based on the new target configuration file. The invention solves the problems that the configuration is needed to be carried out on the spot manually when the OLT is opened, the time and the labor are consumed, and the mismatch is easy to occur.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an OLT device configuration method, an OLT device configuration apparatus, an OLT device, and a readable storage medium.
Background
The OLT is an optical line terminal, and is used for connecting with a terminal device of an optical fiber trunk, and its functions are: transmitting Ethernet data to ONU (optical network unit) in broadcasting mode; initiating and controlling a ranging process, and recording ranging information; and allocating bandwidth for the ONU, namely controlling the starting time of the ONU for transmitting data and the size of a transmission window.
At present, when an OLT is opened, a construction team is required to install equipment, power on and connect with a fiber channel for debugging, a user plans information such as management IP, mask and gateway information, management VLAN, service VLAN, OLT name, an on-line port of the OLT and the like of the OLT, a soft-tuning engineer issues a command line to open, a management channel is opened, OLT equipment is added on the network manager, the OLT name, the service VLAN and the like are configured, various service templates and the like are configured according to the requirements of actual engineering, when each OLT is opened, manual on-site configuration is required, the configuration process is complicated, the time consumption is long, the condition such as mismatch is easy to occur, and moreover, the soft-tuning engineer is required to enter a site for debugging and opening after the construction is completed, and the time consumption is consumed.
Disclosure of Invention
The invention mainly aims to provide an OLT equipment configuration method, an OLT equipment configuration device and a readable storage medium, and aims to solve the problems that manual field configuration is needed when an OLT is started, the time and the labor are consumed, and mismatch due to missing configuration is easy to occur.
In a first aspect, the present invention provides an OLT apparatus configuration method, where the OLT apparatus configuration method is applied to a network management, and the OLT apparatus configuration method includes:
Determining a target pre-deployment task of the OLT equipment to be configured from a network management database;
determining a target general configuration template based on the target pre-deployment task;
acquiring a target configuration file based on a target general configuration template;
Modifying the target configuration file according to task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending the new target configuration file to the server;
And configuring the OLT equipment to be configured based on the new target configuration file.
Optionally, before the step of determining the target pre-deployment task of the OLT apparatus to be configured from the network management database, the method includes:
Storing configuration files corresponding to each type of the OLT equipment to be configured to a server;
Creating a corresponding general configuration template based on the storage information of each configuration file, setting a name for each general configuration template, obtaining a plurality of general configuration templates, and storing the general configuration templates in a network management database, wherein the names among different general configuration templates are different, and the storage information of each configuration file comprises the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
Creating a corresponding pre-deployment task for each to-be-configured OLT device, and storing the pre-deployment task into a network management database, wherein the task parameters of each pre-deployment task comprise the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, the customized configuration parameter and the general configuration template name of the to-be-configured OLT device corresponding to the pre-deployment task, and the customized configuration parameter comprises a host name, a service VLAN, an OLT uplink port and an OLT uplink port aggregation group.
Optionally, before the step of determining the target pre-deployment task of the OLT apparatus to be configured from the network management database, the method includes:
The OLT equipment to be configured initializes according to the read configuration management VLAN, temporary management IP, static route and network management IP address in the U disk;
the initialized OLT equipment to be configured sends SNMP TRAP data packets to the network manager based on a temporary management channel constructed according to the configuration management VLAN, the temporary management IP, the static route and the network manager IP address.
Optionally, the step of determining the target pre-deployment task of the OLT equipment to be configured from the network management database includes:
analyzing an SNMP TRAP data packet sent by the to-be-configured OLT equipment to obtain an electronic serial number of the to-be-configured OLT equipment;
And determining a target pre-deployment task of the to-be-configured OLT equipment from the network management database according to the electronic serial number of the to-be-configured OLT equipment.
Optionally, the step of determining the target generic configuration template based on the target pre-deployment task includes:
and acquiring task parameters corresponding to the target pre-deployment task, and determining a target general configuration template from the network management database according to the general configuration template name in the task parameters.
Optionally, the step of obtaining the target configuration file based on the target general configuration template includes:
acquiring storage information of a configuration file corresponding to a target general configuration template;
and acquiring the target configuration file according to the storage information of the configuration file.
Optionally, the step of configuring the OLT device to be configured based on the new target configuration file includes:
And sending the information of the server and the name of the new target configuration file to the to-be-configured OLT equipment through the temporary management IP so that the to-be-configured OLT equipment obtains the 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 configures the new target configuration file, wherein the name of the new target configuration file comprises the electronic serial number of the to-be-configured OLT equipment.
In a second aspect, the present invention further provides an OLT apparatus configuration device, where the OLT apparatus configuration device includes:
the first determining module is used for determining a target pre-deployment task of the OLT equipment to be configured from the network management database;
The second determining module is used for determining a target general configuration template based on the target pre-deployment task;
The acquisition module is used for acquiring a target configuration file based on the target general configuration template;
The modification module is used for 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 the new target configuration file to the server;
and the configuration module is used for configuring the OLT equipment to be configured based on the new target configuration file.
In a third aspect, the present invention also provides an OLT apparatus configuration device, the OLT apparatus configuration device including a processor, a memory, and an OLT apparatus configuration program stored on the memory and executable by the processor, wherein the OLT apparatus configuration program, when executed by the processor, implements the steps of the OLT apparatus configuration method described above.
In a fourth aspect, the present invention also provides a readable storage medium, on which an OLT device configuration program is stored, wherein the OLT device configuration program, when executed by a processor, implements the steps of the OLT device configuration method described above.
In the invention, a target pre-deployment task of the OLT equipment to be configured is determined from a network management database; determining a target general configuration template based on the target pre-deployment task; acquiring a target configuration file based on a target general configuration template; modifying the target configuration file according to task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending the new target configuration file to the server; and configuring the OLT equipment to be configured based on the new target configuration file. According to the invention, when the OLT equipment needs to be opened, the target pre-deployment task and the target general configuration template of the OLT equipment to be configured are determined from the network management database, the target configuration file is acquired 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 equipment to be configured can be configured based on the new target configuration file, so that a hardware engineer only needs to complete hardware-related operation without soft tuning skills, the soft tuning engineer does not need to go to the site, and the data of new equipment is not configured by remote manual operation in a network center, thereby realizing automatic, efficient and intelligent OLT deployment and opening, and solving the problems of complicated, time-consuming and labor-consuming configuration and easy missing configuration mismatch when the OLT is opened in the prior art.
Drawings
Fig. 1 is a schematic hardware structure diagram of an OLT device configuration device according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of an OLT apparatus configuration method according to the present invention;
FIG. 3 is a schematic diagram of a refinement flow chart of step S10 in FIG. 2;
fig. 4 is a flowchart of a second embodiment of the OLT apparatus configuration method according to the present invention;
fig. 5 is a schematic functional block diagram of an OLT apparatus configuration device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
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 (personal computer, PC), a notebook computer, a server, or the like.
Referring to fig. 1, fig. 1 is a schematic hardware structure of an OLT device configuration device according to an embodiment of the present invention. In an embodiment of the present invention, the OLT apparatus configuration device may include a processor 1001 (e.g., a central processor CentralProcessing Unit, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., wireless FIdelity WIreless-FICAT 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, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to fig. 1, an operating system, a network communication module, a user interface module, and an OLT device configuration program may be included in the memory 1005 in fig. 1, which is a type of computer storage medium. The processor 1001 may call an OLT device configuration program stored in the memory 1005, and execute the OLT device configuration method provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for configuring OLT equipment.
In an embodiment, referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an OLT apparatus configuration method according to the present invention. As shown in fig. 2, the OLT apparatus configuration method includes:
Step S10, determining a target pre-deployment task of the OLT equipment to be configured from a network management database;
In this embodiment, each OLT device to be configured has a corresponding pre-deployment task in the network management database, and because the task parameters of the pre-deployment task include the electronic serial number of the OLT device to be configured, after the electronic serial number of the OLT device to be configured is obtained, 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 device to be configured.
Further, in an embodiment, referring to fig. 3, fig. 3 is a schematic diagram of a refinement process of step S10 in fig. 2. As shown in fig. 3, step S10 includes:
Step S101, analyzing SNMPTRAP data packets sent by the OLT equipment to be configured to obtain an electronic serial number of the OLT equipment to be configured;
Step S102, determining a target pre-deployment task of the to-be-configured OLT equipment from a network management database according to the electronic serial number of the to-be-configured OLT equipment.
In this embodiment, an SNMP TRAP packet sent by an OLT to be configured is parsed to obtain an Electronic Serial Number (ESN) of the OLT to be configured, and the electronic serial numbers of the OLT to be configured are matched in a network management database according to the obtained electronic serial numbers of the OLT to be configured, where a pre-deployment task in the network management database to which the electronic serial number identical to the obtained electronic serial number of the OLT to be configured belongs is a target pre-deployment task of the OLT to be configured.
Step S20, determining a target general configuration template based on a target pre-deployment task;
In this embodiment, after determining the target pre-deployment task of the OLT apparatus to be configured, the general configuration template may be determined from the network management database according to the task parameter corresponding to the target pre-deployment task.
Further, in an embodiment, step S20 includes:
and acquiring task parameters corresponding to the target pre-deployment task, and determining a target general configuration template from the network management database according to the general configuration template name in the task parameters.
In this embodiment, task parameters corresponding to the target pre-deployment task are obtained, and a generic configuration template corresponding to the generic configuration template name in the task parameters is searched in the network management database according to the generic configuration template name in the task parameters, and the generic configuration template corresponding to the generic configuration template name in the task parameters corresponding to the target pre-deployment task in the network management database is the target generic configuration template.
Step S30, acquiring a target configuration file based on a target general configuration template;
In this embodiment, when the universal configuration template is created, a corresponding universal configuration template is created based on the storage information of each configuration file, so that the target configuration file can be obtained based on the target universal configuration template.
Further, in an embodiment, step S30 includes:
acquiring storage information of a configuration file corresponding to a target general configuration template;
and acquiring the target configuration file according to the storage information of the configuration file.
In this embodiment, after determining the target general configuration template, the storage information of the configuration file corresponding to the target general configuration template is obtained, and according to the storage information of the configuration file, 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.
Step S40, modifying the target configuration file according to task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending the new target configuration file to the server;
In this embodiment, taking the server as an ftp server as an example, modifying the target configuration file according to the task parameters corresponding to the target pre-deployment task, and generating a new target configuration file, so that the parameters of the new target configuration file are the same as the task parameters corresponding to the target pre-deployment task. The task parameters comprise types, names, management IP, masks, gateways, management VLAN, electronic serial numbers, SNMP parameters, customized configuration parameters and general configuration template names of the OLT equipment to be configured corresponding to the pre-deployment task, wherein the customized configuration parameters comprise host names, service VLAN, OLT uplink ports and OLT uplink port aggregation groups. After generating the new target configuration file, the new target configuration file is sent to the ftp server for storage. It is easily conceivable that the server may be another computer that provides file storage and access services on the internet, and the following description will be made with the server as an ftp server.
And step S50, configuring the OLT equipment to be configured based on the new target configuration file.
In this embodiment, the OLT apparatus to be configured may be configured based on the new target configuration file.
Further, in an embodiment, step S50 includes:
And sending the information of the server and the name of the new target configuration file to the to-be-configured OLT equipment through the temporary management IP so that the to-be-configured OLT equipment obtains the 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 configures the new target configuration file, wherein the name of the new target configuration file comprises the electronic serial number of the to-be-configured OLT equipment.
In this embodiment, a SNMPTRAP data packet sent by the OLT to be configured is parsed, so as to obtain a temporary management IP of the OLT to be configured. And sending the information of the ftp server storing the new target configuration file and the name of the new target configuration file to the OLT equipment to be configured through the temporary management IP of the OLT equipment to be configured, so that the OLT equipment to be configured obtains 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 configures the new target configuration file. Because the name of the new target configuration file includes the electronic serial number of the OLT equipment to be configured, the new target configuration file corresponding to the name of the new target configuration file obtained by the OLT equipment to be configured from the ftp server storing the new target configuration file is the configuration file of the OLT equipment to be configured, so that the OLT equipment to be configured can be configured based on the new target configuration file. Wherein the information of the ftp server storing the new target configuration file includes an IP address, a user name, and a password of the ftp server.
Further, after the OLT device is configured, the device is restarted, so that the configured management IP is validated, that is, the management IP in the task parameters is validated. The network manager analyzes SNMPTRAP data packets sent by the to-be-configured OLT equipment to obtain equipment types of the to-be-configured OLT equipment, creates the to-be-configured OLT equipment according to the equipment types of the to-be-configured OLT equipment, modifies a temporary management IP of the created to-be-configured OLT equipment into a management IP in task parameters, and simultaneously acquires configuration data corresponding to the configured OLT equipment, so that the configuration data corresponding to the to-be-configured OLT equipment created in the network manager is identical to the configuration data corresponding to the configured OLT equipment, wherein the configuration data comprises single-disk configuration data and service configuration data.
In the embodiment, a target pre-deployment task of the OLT equipment to be configured is determined from a network management database; determining a target general configuration template based on the target pre-deployment task; acquiring a target configuration file based on a target general configuration template; modifying the target configuration file according to task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending the new target configuration file to the server; and configuring the OLT equipment to be configured based on the new target configuration file. According to the method and the system for configuring the OLT equipment, when the OLT equipment needs to be opened, a target pre-deployment task and a target general configuration template of the OLT equipment to be configured are determined from a network management database, a target configuration file is obtained based on the target general configuration template, the target configuration file is modified according to task parameters corresponding to the target pre-deployment task, a new target configuration file is generated, and the OLT equipment to be configured can be configured based on the new target configuration file, so that a hardware engineer only needs to complete hardware-related operation, does not need to have soft tuning skills, does not need to go to the site, does not need to manually operate and configure data of new equipment at a network center, automatic, efficient and intelligent OLT deployment opening is achieved, and the problems that in the prior art, manual site configuration is required, time consumption is complicated, and mismatching is easy to occur are solved.
Further, in an embodiment, before step S10, the method includes:
Storing configuration files corresponding to each type of the OLT equipment to be configured to a server;
Creating a corresponding general configuration template based on the storage information of each configuration file, setting a name for each general configuration template, obtaining a plurality of general configuration templates, and storing the general configuration templates in a network management database, wherein the names among different general configuration templates are different, and the storage information of each configuration file comprises the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
Creating a corresponding pre-deployment task for each to-be-configured OLT device, and storing the pre-deployment task into a network management database, wherein the task parameters of each pre-deployment task comprise the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, the customized configuration parameter and the general configuration template name of the to-be-configured OLT device corresponding to the pre-deployment task, and the customized configuration parameter comprises a host name, a service VLAN, an OLT uplink port and an OLT uplink port aggregation group.
In this embodiment, a configuration file corresponding to each OLT equipment type to be configured is created, and the configuration file corresponding to each OLT equipment type to be configured is stored in the ftp server. Specifically, if the OLT devices A, B, C, D and E to be configured are the same 3 types, the OLT devices a and B to be configured are one type, and the OLT devices D and E to be configured are another type, then there are 3 types of OLT devices to be configured, and configuration files corresponding to the 3 types of OLT devices to be configured are created respectively, and the configuration files corresponding to the 3 types of OLT devices to be configured are stored in the ftp server.
Creating a corresponding general configuration template based on the storage information of each configuration file, setting a name for each general configuration template, obtaining a plurality of general configuration templates and storing the general configuration templates in a network management database. The method comprises the steps of setting up a plurality of configuration files, wherein names among different general configuration templates are different, configuration files among different general configuration templates are also different, and storage information of each configuration file comprises the name of the configuration file corresponding to each configuration file and an IP address of an 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 3 types of OLT equipment to be configured, different names are set for the 3 general configuration templates respectively, and 3 general configuration templates are obtained and stored in a network management database.
Creating a corresponding pre-deployment task for each to-be-configured OLT device, and storing the pre-deployment task into a network management database, wherein the task parameters of each pre-deployment task comprise the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, the customized configuration parameter and the general configuration template name of the to-be-configured OLT device corresponding to the pre-deployment task, and the customized configuration parameter comprises a host name, a service VLAN, an OLT uplink port and an OLT uplink port aggregation group.
Further, the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, and the customized configuration parameter of the OLT device to be configured corresponding to the pre-deployment task are set according to the user requirement, and the generic configuration template name of the OLT device to be configured corresponding to the pre-deployment task included in the task parameter of each pre-deployment task is a name set by creating a generic configuration template based on the storage information of the configuration file corresponding to the type of the OLT device to be configured and setting the generic configuration template.
Further, in an embodiment, before step S10, the method includes:
Step S001, initializing the to-be-configured OLT equipment according to the read configuration management VLAN, temporary management IP, static route and network management IP address in the U disk;
Step S002, the initialized OLT equipment to be configured sends SNMP TRAP data packets to the network manager based on the temporary management channel constructed according to the configuration management VLAN, the temporary management IP, the static route and the network manager IP address.
In this embodiment, referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of the OLT apparatus configuration method according to the present invention. As shown in fig. 4, after the OLT to be configured reads the configuration management VLAN, the temporary management IP, the static route, and the network management IP address in the usb disk, the OLT to be configured initializes according to the read configuration management VLAN, temporary management IP, static route, and network management IP address in the usb disk.
The initialized OLT equipment to be configured sends an SNMP TRAP packet to the network manager based on a temporary management channel set up according to the configuration management VLAN, the temporary management IP, the static route, and the network manager IP address, so as to execute step S101. The SNMP TRAP data packet comprises the type of the OLT equipment, an electronic serial number and a temporary management IP.
In a third aspect, the embodiment of the invention further provides an OLT equipment configuration device.
In an embodiment, referring to fig. 5, fig. 5 is a schematic diagram of functional modules of an OLT apparatus configuration device according to an embodiment of the present invention. As shown in fig. 5, the OLT apparatus configuration device includes:
the first determining module 10 is configured to determine a target pre-deployment task of the OLT equipment to be configured from a network management database;
a second determining module 20, configured to determine a target generic configuration template based on the target pre-deployment task;
an obtaining module 30, configured to obtain a target configuration file based on a target generic configuration template;
the modification module 40 is configured to modify the target configuration file according to the task parameter corresponding to the target pre-deployment task, generate a new target configuration file, and send the new target configuration file to the server;
and the configuration module 50 is configured to configure the OLT equipment to be configured based on the new target configuration file.
Further, in an embodiment, the OLT apparatus configuration device further includes a creating module configured to:
Storing configuration files corresponding to each type of the OLT equipment to be configured to a server;
Creating a corresponding general configuration template based on the storage information of each configuration file, setting a name for each general configuration template, obtaining a plurality of general configuration templates, and storing the general configuration templates in a network management database, wherein the names among different general configuration templates are different, and the storage information of each configuration file comprises the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
Creating a corresponding pre-deployment task for each to-be-configured OLT device, and storing the pre-deployment task into a network management database, wherein the task parameters of each pre-deployment task comprise the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, the customized configuration parameter and the general configuration template name of the to-be-configured OLT device corresponding to the pre-deployment task, and the customized configuration parameter comprises a host name, a service VLAN, an OLT uplink port and an OLT uplink port aggregation group.
Further, in an embodiment, the OLT apparatus configuration device further includes an initialization module configured to:
The OLT equipment to be configured initializes according to the read configuration management VLAN, temporary management IP, static route and network management IP address in the U disk;
Building a module for: the initialized OLT equipment to be configured sends SNMP TRAP data packets to the network manager based on a temporary management channel constructed according to the configuration management VLAN, the temporary management IP, the static route and the network manager IP address.
Further, in an embodiment, the first determining module 10 is configured to:
analyzing an SNMP TRAP data packet sent by the to-be-configured OLT equipment to obtain an electronic serial number of the to-be-configured OLT equipment;
And determining a target pre-deployment task of the to-be-configured OLT equipment from the network management database according to the electronic serial number of the to-be-configured OLT equipment.
Further, in an embodiment, the second determining module 20 is configured to:
and acquiring task parameters corresponding to the target pre-deployment task, and determining a target general configuration template from the network management database according to the general configuration template name in the task parameters.
Further, in an embodiment, the obtaining module 30 is configured to:
acquiring storage information of a configuration file corresponding to a target general configuration template;
and acquiring the target configuration file according to the storage information of the configuration file.
Further, in an embodiment, the configuration module 50 is configured to:
And sending the information of the server and the name of the new target configuration file to the to-be-configured OLT equipment through the temporary management IP so that the to-be-configured OLT equipment obtains the 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 configures the new target configuration file, wherein the name of the new target configuration file comprises the electronic serial number of the to-be-configured OLT equipment.
The function implementation of each module in the OLT device configuration apparatus corresponds to each step in the OLT device configuration method embodiment, and the function and implementation process thereof are not described in detail herein.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The invention stores the OLT equipment configuration program on the readable storage medium, wherein the OLT equipment configuration program realizes the steps of the OLT equipment configuration method when being executed by the processor.
The method implemented when the OLT apparatus configuration program is executed may refer to various embodiments of the OLT apparatus configuration method of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (7)
1. The OLT equipment configuration method is characterized in that the OLT equipment configuration method is applied to network management, and comprises the following steps:
Determining a target pre-deployment task of the OLT equipment to be configured from a network management database;
determining a target general configuration template based on the target pre-deployment task;
acquiring a target configuration file based on a target general configuration template;
Modifying the target configuration file according to task parameters corresponding to the target pre-deployment task, generating a new target configuration file and sending the new target configuration file to the server;
Configuring the to-be-configured OLT equipment based on the new target configuration file;
before the step of determining the target pre-deployment task of the OLT equipment to be configured from the network management database, the method includes:
Storing configuration files corresponding to each type of the OLT equipment to be configured to a server;
Creating a corresponding general configuration template based on the storage information of each configuration file, setting a name for each general configuration template, obtaining a plurality of general configuration templates, and storing the general configuration templates in a network management database, wherein the names among different general configuration templates are different, and the storage information of each configuration file comprises the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
creating a corresponding pre-deployment task for each to-be-configured OLT device and storing the pre-deployment task into a network management database, wherein the task parameters of each pre-deployment task comprise the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, the customized configuration parameter and the general configuration template name of the to-be-configured OLT device corresponding to the pre-deployment task, and the customized configuration parameter comprises a host name, a service VLAN, an OLT uplink port and an OLT uplink port aggregation group;
before the step of determining the target pre-deployment task of the OLT equipment to be configured from the network management database, the method includes:
The OLT equipment to be configured initializes according to the read configuration management VLAN, temporary management IP, static route and network management IP address in the U disk;
The initialized OLT equipment to be configured sends SNMP TRAP data packets to a network manager based on a temporary management channel constructed according to a configuration management VLAN, a temporary management IP, a static route and a network manager IP address;
The step of determining the target pre-deployment task of the to-be-configured OLT equipment from the network management database comprises the following steps:
analyzing an SNMP TRAP data packet sent by the to-be-configured OLT equipment to obtain an electronic serial number of the to-be-configured OLT equipment;
And determining a target pre-deployment task of the to-be-configured OLT equipment from the network management database according to the electronic serial number of the to-be-configured OLT equipment.
2. The OLT apparatus configuration method of claim 1, wherein the step of determining a target generic configuration template based on a target pre-deployment task comprises:
and acquiring task parameters corresponding to the target pre-deployment task, and determining a target general configuration template from the network management database according to the general configuration template name in the task parameters.
3. The OLT apparatus configuration method of claim 1, wherein the step of obtaining a target configuration file based on a target generic configuration template comprises:
acquiring storage information of a configuration file corresponding to a target general configuration template;
and acquiring the target configuration file according to the storage information of the configuration file.
4. The OLT apparatus configuration method of claim 1, wherein the step of configuring the OLT apparatus to be configured based on the new target configuration file comprises:
And sending the information of the server and the name of the new target configuration file to the to-be-configured OLT equipment through the temporary management IP so that the to-be-configured OLT equipment obtains the 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 configures the new target configuration file, wherein the name of the new target configuration file comprises the electronic serial number of the to-be-configured OLT equipment.
5. An OLT apparatus configuration device, wherein the OLT apparatus configuration device comprises:
the first determining module is used for determining a target pre-deployment task of the OLT equipment to be configured from the network management database;
The second determining module is used for determining a target general configuration template based on the target pre-deployment task;
The acquisition module is used for acquiring a target configuration file based on the target general configuration template;
The modification module is used for 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 the new target configuration file to the server;
the configuration module is used for configuring the OLT equipment to be configured based on the new target configuration file;
the OLT device configuration apparatus further includes a creation module configured to:
Storing configuration files corresponding to each type of the OLT equipment to be configured to a server;
Creating a corresponding general configuration template based on the storage information of each configuration file, setting a name for each general configuration template, obtaining a plurality of general configuration templates, and storing the general configuration templates in a network management database, wherein the names among different general configuration templates are different, and the storage information of each configuration file comprises the name of the configuration file corresponding to each configuration file and the IP address of the server storing each configuration file;
creating a corresponding pre-deployment task for each to-be-configured OLT device and storing the pre-deployment task into a network management database, wherein the task parameters of each pre-deployment task comprise the type, the name, the management IP, the mask, the gateway, the management VLAN, the electronic serial number, the SNMP parameter, the customized configuration parameter and the general configuration template name of the to-be-configured OLT device corresponding to the pre-deployment task, and the customized configuration parameter comprises a host name, a service VLAN, an OLT uplink port and an OLT uplink port aggregation group;
the OLT device configuration apparatus further includes an initialization module configured to:
The OLT equipment to be configured initializes according to the read configuration management VLAN, temporary management IP, static route and network management IP address in the U disk;
building a module for: the initialized OLT equipment to be configured sends SNMP TRAP data packets to a network manager based on a temporary management channel constructed according to a configuration management VLAN, a temporary management IP, a static route and a network manager IP address;
The first determining module is further configured to:
analyzing an SNMP TRAP data packet sent by the to-be-configured OLT equipment to obtain an electronic serial number of the to-be-configured OLT equipment;
And determining a target pre-deployment task of the to-be-configured OLT equipment from the network management database according to the electronic serial number of the to-be-configured OLT equipment.
6. An OLT device configuration device, characterized in that it comprises a processor, a memory, and an OLT device configuration program stored on the memory and executable by the processor, wherein the OLT device configuration program, when executed by the processor, implements the steps of the OLT device configuration method according to any of claims 1 to 4.
7. A readable storage medium, wherein an OLT device configuration program is stored on the readable storage medium, wherein the OLT device configuration program, when executed by a processor, implements the steps of the OLT device configuration method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210877553.XA CN115065897B (en) | 2022-07-25 | 2022-07-25 | OLT equipment configuration method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210877553.XA CN115065897B (en) | 2022-07-25 | 2022-07-25 | OLT equipment configuration method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115065897A CN115065897A (en) | 2022-09-16 |
CN115065897B true CN115065897B (en) | 2024-10-29 |
Family
ID=83205946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210877553.XA Active CN115065897B (en) | 2022-07-25 | 2022-07-25 | OLT equipment configuration method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115065897B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117519781B (en) * | 2024-01-04 | 2024-03-29 | 上海柯林布瑞信息技术有限公司 | Script-based project configuration file generation method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103108261A (en) * | 2013-02-06 | 2013-05-15 | 上海电信工程有限公司 | Connecting method of Ethernet Passive Optical Network (EPON) access device |
WO2015192651A1 (en) * | 2014-06-17 | 2015-12-23 | 中兴通讯股份有限公司 | Method for implementing rapid configuration and rapid configuration server |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739426B (en) * | 2011-04-13 | 2017-05-24 | 中兴通讯股份有限公司 | DPOE system and service auto-configuration method and network based on DPOE system |
CN112600716B (en) * | 2014-11-28 | 2022-07-19 | 华为技术有限公司 | Equipment configuration method, configuration device and management equipment |
CN114124684B (en) * | 2021-10-22 | 2024-04-19 | 杭州依赛通信有限公司 | Method for realizing zero-contact full-automatic deployment of network elements by using USB flash disk |
-
2022
- 2022-07-25 CN CN202210877553.XA patent/CN115065897B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103108261A (en) * | 2013-02-06 | 2013-05-15 | 上海电信工程有限公司 | Connecting method of Ethernet Passive Optical Network (EPON) access device |
WO2015192651A1 (en) * | 2014-06-17 | 2015-12-23 | 中兴通讯股份有限公司 | Method for implementing rapid configuration and rapid configuration server |
Also Published As
Publication number | Publication date |
---|---|
CN115065897A (en) | 2022-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7457853B1 (en) | Method and apparatus for automatically configuring a network device | |
US7631055B1 (en) | Method and apparatus providing automatic connection announcement from a modular network device to a network management point | |
US8897174B2 (en) | Network configuration management | |
CN100499510C (en) | Method for positioning fault and service maintenance platform | |
CN105959644B (en) | A kind of configuration method and device of video monitoring equipment | |
EP1973269B1 (en) | Configuration preprocessor language | |
KR102045556B1 (en) | Apparatus and method for controlling network device based on network service in communication system | |
CN106713420B (en) | The dispositions method and device of monitoring | |
CN115065897B (en) | OLT equipment configuration method, device, equipment and readable storage medium | |
EP3544233A1 (en) | System and method to provide network insights for correct and efficient network configuration | |
US20090310513A1 (en) | Method and apparatus for creating router configuration templates | |
US7580936B2 (en) | Extendable discovery of network device information | |
CN106330511B (en) | Network element equipment and method for opening data communication network | |
CN106130787B (en) | Service processing system based on software defined network | |
KR20150088462A (en) | Method for linking network device in cloud environment and apparatus therefor | |
US20230087249A1 (en) | Method and Apparatus for Evaluating Impact of Network Operation, and Device | |
Baranda et al. | Disaggregating a 5G Non-Public Network via On-Demand Cloud-Native UPF Deployments | |
CN115550764A (en) | Network element configuration method, system, equipment and medium based on automatic opening system | |
WO2021051936A1 (en) | Method and device for constructing software-defined networking (sdn) network | |
CN115658218A (en) | Method, device, equipment and storage medium for edge equipment to access cloud | |
US20090310512A1 (en) | Method and apparatus for creating router configuration | |
WO2020001142A1 (en) | Method and device for communication device station deployment and storage medium | |
CN115834399B (en) | Method and device for opening SPN service transmission link | |
US20060190928A1 (en) | Device and method for managing communication equipment | |
CN105142178B (en) | A kind of analogue simulation system and method for AP and STA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |