CN109947444A - A kind of method that dynamic updates establishment for network element device configuration script - Google Patents

A kind of method that dynamic updates establishment for network element device configuration script Download PDF

Info

Publication number
CN109947444A
CN109947444A CN201910119960.2A CN201910119960A CN109947444A CN 109947444 A CN109947444 A CN 109947444A CN 201910119960 A CN201910119960 A CN 201910119960A CN 109947444 A CN109947444 A CN 109947444A
Authority
CN
China
Prior art keywords
script
network element
element device
configuration
job
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.)
Pending
Application number
CN201910119960.2A
Other languages
Chinese (zh)
Inventor
周国强
秦水
王云帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nupt Institute Of Big Data Research At Yancheng Co Ltd
Nanjing Post and Telecommunication University
Nanjing University of Posts and Telecommunications
Original Assignee
Nupt Institute Of Big Data Research At Yancheng Co Ltd
Nanjing Post and Telecommunication University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nupt Institute Of Big Data Research At Yancheng Co Ltd, Nanjing Post and Telecommunication University filed Critical Nupt Institute Of Big Data Research At Yancheng Co Ltd
Priority to CN201910119960.2A priority Critical patent/CN109947444A/en
Publication of CN109947444A publication Critical patent/CN109947444A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of dynamics to be directed to the method that network element device configuration script real-time update is set up, script is write into operation flow refinement first, then device name is carried out to it, the information solicitations such as device type are deposited into the database of script system after then carrying out Wire Parameters instantiation;Then the establishment that job carries out related service to the script of upstream script system is created, configure the relevant information of job, it executes job and generates complete configuration script landing into the database of network element device configuration system, in order to not influence the High Availabitity of system, table is landed to it carries out rename operation, and mark is updated to the script for relying on upstream script system and carries out resetting to 0, the script of such network element device configuration system is exactly real-time newest script logic.Advantage: the present invention saves a large amount of manpower when network element device is updated with upgrading service and reduces modification error omission probability, improves the High Availabitity of network element device configuration system.

Description

A kind of method that dynamic updates establishment for network element device configuration script
Technical field
The present invention relates to a kind of dynamics, and the method set up is updated for network element device configuration script, belongs to internet data and matches Set technical field.
Background technique
The configuration of network element device is the fundamental functional modules of operator, and very important position is occupied in the network operation. However, network element device renewal speed is also to grow with each passing hour as network structure becomes increasingly complex more and more with the demand of people, So this is to the huge challenge of the renewal speed band of network element configuration system, and how efficiently quickly and effectively configuration is when business It is anxious, and a kind of configuration of network element device is divided into a work order type, multiple types of service, and different combinations will carry out difference Corresponding configuration.The speed and difficulty for making network element configuration system update in this way have promotion.
In the development process that network element device automatically configures, with the update of network element device and the update of business, make in this way The exploitation modification for obtaining either staff or auto-configuration script is all that very cumbersome and workload is big.It can make in this way The probability to malfunction during must modifying can also greatly increase, in order to cope with the update of network element device and the upgrading and fortune of business The growing complicated demand of quotient is sought, we are dedicated to how being dynamically directed to the update of network element device configuration script.Script is For configuring the related service of network element device, how for the change of business in script and the change of logic come to network element device Automatic configuration system dynamically changes all relevant content for script.The purpose is to reduce the manual configurations of configuration personnel, reduce A possibility that error of configuration and network element configuration system rapidly cope with the logic of update, so that system is not by shadow Ring the High Availabitity of raising system.
Python is the high-level scripting language for combining explanatory, compiled, interactivity and object-oriented. The design of Python has very strong readability, and english keyword, some marks of other language are commonly used compared to other language Point symbol, it has syntactic structure more characteristic than other language.
Telnet is a Virtual Terminal Protocol in TCP/IP protocol suite, it allows attachment to distance host. Telnet operates in the application layer of OSI reference model, is guaranteed correct between client and server using TCP and had Transmit data to sequence.In daily network management work, the most important effect of Telnet is set for being connected remotely to network It is standby, carry out configuration modification and the status checkout work of equipment.
Pexpect is the pure Python module for being used to startup subroutine and carrying out automatically controlling to it, pexpect It is for realizing SSH in Python, the orders such as FTP, Telnet carry out automation interaction, realize without manual intervention automatic Change third party's expansion module of O&M.
Shell script is similar to the batch processing under Windows/Dos, that is, is placed in advance in all kinds of orders to a text In part, the convenient program file disposably executed mainly facilitates administrator to be configured or management.But it More powerful than the batch processing under Windows, higher than the program efficiency with other programs editor, it has used Linux/ Order under Unix.
Summary of the invention
Lead to repairing for script in network element device automatic configuration system to cope with update and the upgrading of business of network element device Change complicated and omit, this application provides a kind of dynamics to update the method set up for network element device configuration script.
In order to solve the above technical problems, the present invention provides a kind of side that dynamic is set up for the update of network element device configuration script Method, which comprises the steps of:
1) it is written as the business process script refinement of network element device to refine script accordingly;
2) in refinement script input equipment title, device type, type of service, template type, and updated mark and set It is 1;
3) relevant parameter of the device configuration in step 2 treated script is bound, fills in the order generation of configuration equipment Code content for script, then saves the script;
4) parameter that script is bound is carried out argument transmitting replacement and is instantiated by background program to be stored to network element device configuration system In the database of system;
5) job is created, writes shell script in newly-built job, group builds up complete configuration script, group is built up complete Configuration script landing is into the database of network element device configuration system;
6) configuration of relevant device and work order type is carried out to job;
7) job is executed;
8) rename behaviour is carried out to falling on local database table and corresponding original table (referring to existing table in database) Make, and 0 is set to the update mark of the upstream script of dependence.
Further, the step 1), the configuration flow for refining each business for writing every kind of equipment obtain corresponding match Set script.
Further, whether described to update mark for mark be script for real-time update;
Wherein updating mark indicates to execute job automatically for 1, updates network element device configuration script in real time to realize;Update mark It indicates not having to update for 0, for avoiding job from executing again.
Further, the step 3), to the relevant parameter of the network topology being related in network element device configuration script into Row binding passes ginseng and instantiation progress place mat for carrying out for background program.
Further, the step 5) pulls the script of each business by newly-built job come to relevant device and work order Configuration script is set up in the configuration of type, is write shell script for the script group of corresponding operation flow and is built up complete configuration foot This.
Further, the step 6), the data of configuration up-stream system (script updates control system, abbreviation up-stream system) Library name and table name, network element device configure the title and table name of the database of system, and the id dependence for the script being related to is matched It sets.
Further, the step 7) manually performs newly-built job for the first time, in execution backward, Job background thread can voluntarily scanning rely on up-stream system script update mark, when update mark occur 1 can be automatic It executes, updates network element device configuration script in real time to realize.
Further, the step 8) executes the data for setting up new script landing to network element device configuration system in job During library, first creates corresponding temp table and be stored in the script information in new local data base in table, then will be original Table is deleted, then is carried out rename operation to temp table and become formal table, and treated that script updates mark to step 3 Will is changed to 0, executes again in order to avoid job is scanned again to update mark for 1.
Advantageous effects of the invention:
The present invention develops corresponding establishment scheduling script system, service logic and equipment of the method which sets up to update All associated scripts of script one-key update network element device automatic configuration system, so that system is not influenced by these changes.It should Invention automatically can automate for the script of change sets up new complete configuration script in real time, does not influence network element and matches The operation of system is set, guarantees configuration system real time and Gao Ke.
Detailed description of the invention
Fig. 1 is network element device configuration script system flow of the invention;
Fig. 2 is the process of real-time update network element device script of the invention.
Specific embodiment
The invention will be further described below in conjunction with the accompanying drawings.Following embodiment is only used for clearly illustrating the present invention Technical solution, and not intended to limit the protection scope of the present invention.
As illustrated in fig. 1 and 2, a kind of dynamic updates the method set up for network element device configuration script, includes the following steps:
Step 1: script is write into certain process configuration refinement of network element device.
Network element device is there are many kinds of type, the equipment that each type has many titles again, is divided into work order type very much Type of service, we are refined writes corresponding script in order to avoid repeating to write same type configuration script respectively.Such as: SR type Under have a device models such as 7750,7000, SR equipment, which creates in work order type, can configure the types of service such as itv, voice.Refinement business Script is write for equipment of the configuration flow as device directive it is avoided that writing duplicate script.
Step 2: filling in the title of equipment, selected equipment type, type of service, template type, and updated mark and set It is 1.
A script can be uniquely determined by the title of the device type of selection, type of service, template type and equipment, Script is automatically updated behind the flag bit of update to prepare more.
Step 3: the parameter in script being bound, content for script is filled in, saves the script.
It can be related to the parameter of some topological structures in script, it is bound at this, meeting during instantiation The parameter of binding is transmitted to script.
Step 4: by the transmitting of automatic the calling script and parameter on backstage, the script of instantiation being then deposited into correspondence Database and table in.
Background program carries out argument replacement to the parameter that script is bound, and then instantiation script, which is deposited into or updates, arrives In corresponding database table.
Step 5: creating a job in the scheduling system of script, write shell script in newly-built job.
One job corresponds to a kind of establishment script process of a type of service of equipment.Job is for the foot to upstream This system carries out setting up complete configuration script;
It writes shell script and draws the script group for removing needs to build up a complete configuration script from the script database of upstream.
Each work order type configuration includes very multiple services configuration, such as: the newly-built work order of SR7750 includes The configuration of the business such as itv, voice.Shell script is drawn from the script system of upstream goes the script group needed to build up one completely Configuration script for network element configuration system call.
Step 6: relevant configuration is carried out to job.
The name and table name of the database that newly-built job configuration upstream script system is searched, by the complete foot of establishment The script dependence of upstream script system involved by this landing to local data library name and table name, the job.
Step 7: executing job.
The job is manually performed for the first time for newly-built job, and is all backward the relationship relied on according to upstream script system It is automatic to execute, such as: the job is 1000 dependent on script id, when the update mark of 1000 scripts is 1, gets dependence when job is swept Script update mark and can execute the job automatically for 1.
Step 8: during executing job, will draw go group to build up completion configuration script landing to local data base into Row rename handover operation, and the update mark for the up-stream system being involved in is set to 0.
In order to not influence the use of existing network element device configuration system, by combined script landing to local data base pair The temp table of table is answered, then deletes its corresponding table, temp is subjected to rename operation and is revised as formal table, and simultaneously will The up-stream system script being related to updates mark and is set to 0, in case job automatically updates waste performance again.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, several improvement and deformations can also be made, these improvement and deformations Also it should be regarded as protection scope of the present invention.

Claims (8)

1. a kind of dynamic updates the method set up for network element device configuration script, which comprises the steps of:
1) it is written as the business process script refinement of network element device to refine script accordingly;
2) in refinement script input equipment title, device type, type of service, template type, and updated mark and set It is 1;
3) relevant parameter of the device configuration in step 2 treated script is bound, fills in the order generation of configuration equipment Code content for script, then saves the script;
4) parameter that script is bound is carried out argument transmitting replacement and is instantiated by background program to be stored to network element device configuration system In the database of system;
5) job is created, writes shell script in newly-built job, group builds up complete configuration script, group is built up complete Configuration script landing is into the database of network element device configuration system;
6) configuration of relevant device and work order type is carried out to job;
7) job is executed;
8) to falling on local database table and corresponding original table carries out rename operation, and more to the upstream script of dependence New mark is set to 0.
2. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute Step 1) is stated, the configuration flow for refining each business for writing every kind of equipment obtains corresponding configuration script.
3. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute State whether update mark for mark be script for real-time update;
Wherein updating mark indicates to execute job automatically for 1, updates network element device configuration script in real time to realize;Update mark It indicates not having to update for 0, for avoiding job from executing again.
4. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute Step 3) is stated, the relevant parameter for the network topology being related in network element device configuration script is bound, for being backstage journey Sequence carries out passing ginseng and instantiation carries out place mat.
5. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute Step 5) is stated, the script of each business is pulled by newly-built job and sets up configuration come the configuration to relevant device and work order type Script writes shell script for the script group of corresponding operation flow and builds up complete configuration script.
6. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute Step 6), the database-name and table name of configuration up-stream system (script updates control system, abbreviation up-stream system) are stated, network element is set The title and table name of the database of standby configuration system, and the id of script being related to rely on configuration.
7. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute Step 7) is stated, newly-built job is manually performed for the first time, in execution backward, job background thread can voluntarily be swept The script for retouching the up-stream system of dependence updates mark, can execute automatically when update mark occurs 1, is updated in real time with realizing Network element device configuration script.
8. dynamic according to claim 1 updates the method set up for network element device configuration script, which is characterized in that institute Step 8) is stated, during job executes the database for setting up new script landing to network element device configuration system, first newly-built pair Script information in new local data base in table is stored in by the temp table answered, then original table is deleted, then to temp table into Row rename operation becomes formal table, and treated that script updates mark is changed to 0 to step 3), in order to avoid job Scanning is executed to update mark for 1 again again.
CN201910119960.2A 2019-02-18 2019-02-18 A kind of method that dynamic updates establishment for network element device configuration script Pending CN109947444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910119960.2A CN109947444A (en) 2019-02-18 2019-02-18 A kind of method that dynamic updates establishment for network element device configuration script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910119960.2A CN109947444A (en) 2019-02-18 2019-02-18 A kind of method that dynamic updates establishment for network element device configuration script

Publications (1)

Publication Number Publication Date
CN109947444A true CN109947444A (en) 2019-06-28

Family

ID=67006780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910119960.2A Pending CN109947444A (en) 2019-02-18 2019-02-18 A kind of method that dynamic updates establishment for network element device configuration script

Country Status (1)

Country Link
CN (1) CN109947444A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505100A (en) * 2019-08-30 2019-11-26 浙江岩华文化传媒有限公司 Network work order configuration method, device, electronic equipment and computer-readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147726A (en) * 2011-04-01 2011-08-10 烽火通信科技股份有限公司 Script-based method for implementing service configuration
CN107547263A (en) * 2017-07-26 2018-01-05 南京邮电大学 A kind of method realized network element device automation and search template configuration
CN108365974A (en) * 2018-01-17 2018-08-03 南京邮电大学 A method of it is configured for network element device multi-service automatized script
CN108418704A (en) * 2018-01-17 2018-08-17 南京邮电大学 A kind of network element device method of network entry based on automation template configuration
CN108647237A (en) * 2018-03-30 2018-10-12 厦门海迈科技股份有限公司 Method of data synchronization between isomeric relationship type database

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147726A (en) * 2011-04-01 2011-08-10 烽火通信科技股份有限公司 Script-based method for implementing service configuration
CN107547263A (en) * 2017-07-26 2018-01-05 南京邮电大学 A kind of method realized network element device automation and search template configuration
CN108365974A (en) * 2018-01-17 2018-08-03 南京邮电大学 A method of it is configured for network element device multi-service automatized script
CN108418704A (en) * 2018-01-17 2018-08-17 南京邮电大学 A kind of network element device method of network entry based on automation template configuration
CN108647237A (en) * 2018-03-30 2018-10-12 厦门海迈科技股份有限公司 Method of data synchronization between isomeric relationship type database

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505100A (en) * 2019-08-30 2019-11-26 浙江岩华文化传媒有限公司 Network work order configuration method, device, electronic equipment and computer-readable medium

Similar Documents

Publication Publication Date Title
CN110851145B (en) Container arrangement-based edge cloud installation and maintenance method and system
US8224493B2 (en) Same code base in irrigation control devices and related methods
CN108418704A (en) A kind of network element device method of network entry based on automation template configuration
US20070282486A1 (en) Same code base in irrigation control devices and related methods
CN112084008B (en) Method for rapidly deploying cloud pipe system based on container technology
CN108365974A (en) A method of it is configured for network element device multi-service automatized script
CN101252469B (en) Multi-net elements automated testing method
CN106713053A (en) Method and device for batch updating server firmware based on Linux
WO2018126628A1 (en) Remote upgrade method and system for embedded network devices
CN101409709A (en) Method for publishing client terminal program of communication network management system automatically
CN109947444A (en) A kind of method that dynamic updates establishment for network element device configuration script
CN108616391A (en) Method and system for upgrading equipment firmware at server side
CN101482883B (en) Method and system for on-line updating characteristic character library
CN107329738A (en) Component update method and device
CN101159605B (en) Flow control method capable of implementing state memory and recovery
CN113296809B (en) Declarative general Kubernetes tuning method
CN114510270A (en) Programmable controller cloud development system architecture based on B/S architecture
CN103607715A (en) Frequency point configuration method and device thereof
CN110377298B (en) Distributed cluster upgrading method and distributed cluster
CN112698951A (en) Method for performing automatic performance acquisition configuration based on resources in cloud computing environment
CN112685051A (en) Method, device, platform and storage medium for automatically executing shell script
CN102831029B (en) Implementation method and system for upgrading backspacing of network element
CN114510392A (en) Programmable controller cloud development system architecture based on C/S architecture
CN108345476A (en) A kind of method and apparatus of batch processing hardware configuration information
CN109005067A (en) A kind of method and apparatus of the hardware resource for monitoring server cluster

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628

RJ01 Rejection of invention patent application after publication