CN101140520A - Configuring load application method and system of communication apparatus - Google Patents

Configuring load application method and system of communication apparatus Download PDF

Info

Publication number
CN101140520A
CN101140520A CNA2006101286567A CN200610128656A CN101140520A CN 101140520 A CN101140520 A CN 101140520A CN A2006101286567 A CNA2006101286567 A CN A2006101286567A CN 200610128656 A CN200610128656 A CN 200610128656A CN 101140520 A CN101140520 A CN 101140520A
Authority
CN
China
Prior art keywords
configuration
data
configuration file
database
communication facilities
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.)
Granted
Application number
CNA2006101286567A
Other languages
Chinese (zh)
Other versions
CN100472445C (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2006101286567A priority Critical patent/CN100472445C/en
Publication of CN101140520A publication Critical patent/CN101140520A/en
Application granted granted Critical
Publication of CN100472445C publication Critical patent/CN100472445C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a configuration loading method and a system for communication equipments. Configuration files are created in form of command lines to save configuration information of communication equipments. After the communication equipment is started, the configuration file is read and the command line is parsed to acquire command marks and relevant parameters. Configuration data of the command are memorized into the configuration database. The configuration database creates data index for the configuration database. Upon completion of configuration file reading, a processing module of the communication equipment reads configuration data from the configuration database to realize configuration loading through the data index. The present invention enables the communication configuration not to rely on execution sequence of the command, thus improving maintainability of the communication equipment.

Description

The configuring load application method of communication facilities and system
Technical field
The present invention relates to the configuring technical of communication facilities, relate in particular to the configuring load application method and the system of communication facilities.
Background technology
At present, the configuration mode of communication facilities (for example, router, switch and access server etc.) generally all provides CLI (Command Line Interface, command line interface) mode, by telnet (Telnet) or serial ports, the fill order row comes configuration device.After configuration successful, configuration can be preserved, form a configuration file, the content of file is the order line of a rule.After communication facilities restarts, read configuration file, obtain order line, resolve command row then, obtain the sign and the relevant parameters of order, again command id and parameter are passed to corresponding processing module (processing module generally is business module or protocol module), processing module is carried out corresponding configuration.Up to having read configuration file, the configuration of just having finished equipment loads like this.
As can be seen, when the process of commands module has requirement to the execution sequence of ordering, guarantee the sequencing of command execution.Particularly when a module relies on the data of another one module, more will guarantee the sequencing of command execution, the order of depended module will be carried out earlier, and the order of Depending module will be carried out the back.When an order related to a plurality of module, same existence passed to command id and parameter the sequencing problem of each processing module.When adding newer command, consider former command execution order, could guarantee the loading success of the order of interpolation.When practical application, such situation often takes place, and loads to communication device configured and has added a lot of inconvenience.
In addition, communication facilities is write configuration file when beginning, if the execution sequence of attention command not also can cause configuration to load failure, has also brought inconvenience for the maintenance of communication facilities.
Thus, need a solution, the sequencing that can make command execution loads communication device configured and causes as far as possible little influence.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of configuring load application method and system of communication facilities, is used to make the loading of communication facilities not rely on the execution sequence of order.
To achieve these goals, according to a first aspect of the invention, the invention provides a kind of configuring load application method that is used for communication facilities.Configuring load application method may further comprise the steps:
Step S102 generates configuration file, and configuration file is the order line form, is used to preserve the configuration information of communication facilities;
Step S104 after communication device initiated, reads configuration file, and the resolve command row obtains command id and correlation parameter;
Step S106 stores the configuration data of ordering in the configuration database into, and generates the data directory that is used for configuration data by configuration database; And
Step S108, after configuration file read end, the processing module in the communication facilities read configuration data from configuration database, used data directory, realized that configuration loads.
Alternatively, in step S102, be kept at configuration file on the communication facilities or on the server, communication facilities can obtain configuration file from server.
Alternatively, in step S104, after communication device initiated, the initial configuration database.
Configuration database can comprise memory database or document data bank.
In step S108, the configuration of processing module loads order in no particular order.After configuration file read end, sequentially notification handler module was carried out initialization in no particular order.
To achieve these goals, according to a second aspect of the invention, the invention provides a kind of configuration loading system that is used for communication facilities.The configuration loading system comprises: the configuration file generation module, be used to generate configuration file, and configuration file is the order line form, is used to preserve the configuration information of communication facilities; The configuration data acquisition module is used for reading configuration file after communication device initiated, and the resolve command row obtains command id and correlation parameter; Configuration database is used to store the configuration data that is obtained by the configuration data acquisition module, and generates the data directory that is used for configuration data; And processing module, be used for after configuration file reads end, from configuration database, read configuration data, use data directory, realize that configuration loads.
Configuration file is kept on the communication facilities or on the server, communication facilities can obtain configuration file from server.
Configuration database can carry out initialization after communication device initiated.Configuration database can comprise memory database or document data bank.
The configuration of processing module loads order in no particular order.Processing module is sequentially notified to carry out initialization after configuration file reads end in no particular order.
Pass through technique scheme, the present invention is by at first resolving all order lines in the configuration file and generating data directory, make the loading that needs the module of loading configuration can be no longer dependent on other modules finish, thereby the loading that guarantees communicate configuration does not rely on the execution sequence of order, has improved the maintainability of communication facilities.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram that is used for the configuring load application method of communication facilities according to of the present invention;
Fig. 2 is the block diagram that is used for the configuration loading system of communication facilities according to of the present invention; And
Fig. 3 is the process flow diagram according to the communication device configured loading method of the embodiment of the invention.
Embodiment
Describe the present invention below with reference to the accompanying drawings in detail.
With reference to Fig. 1, the configuring load application method that is used for communication facilities according to the present invention may further comprise the steps:
Step S102 generates configuration file, and configuration file is the order line form, is used to preserve the configuration information of communication facilities.Be kept at configuration file on the communication facilities or on the server, communication facilities can obtain configuration file from server.
Step S104 after communication device initiated, reads configuration file, and the resolve command row obtains command id and correlation parameter.After communication device initiated, the initial configuration database.Configuration database can comprise memory database or document data bank.
Step S106 stores the configuration data of ordering in the configuration database into, and generates the data directory that is used for configuration data by configuration database.
Step S108, after configuration file read end, the processing module in the communication facilities read configuration data from configuration database, used data directory, realized that configuration loads.The configuration of processing module loads order in no particular order.After configuration file read end, sequentially notification handler module was carried out initialization in no particular order.
To achieve these goals, according to a second aspect of the invention, the invention provides a kind of configuration loading system 10 that is used for communication facilities.Configuration loading system 10 comprises: configuration file generation module 20, be used to generate configuration file, and configuration file is the order line form, is used to preserve the configuration information of communication facilities; Configuration data acquisition module 30 is used for reading configuration file after communication device initiated, and the resolve command row obtains command id and correlation parameter; Configuration database 40 is used to store the configuration data that is obtained by configuration data acquisition module 30, and generates the data directory that is used for configuration data; And processing module 50, be used for after configuration file reads end, from configuration database 40, read configuration data, use data directory, realize that configuration loads.
Configuration file is kept on the communication facilities or on the server, communication facilities can obtain configuration file from server.
Configuration database 40 can carry out initialization after communication device initiated.Configuration database 40 can comprise memory database or document data bank.
The configuration of processing module 50 loads order in no particular order.Processing module 50 is sequentially notified to carry out initialization after configuration file reads end in no particular order.
The present invention aims to provide the method that a kind of communication device configured loads, and can guarantee that the loading of communication device configured does not rely on the execution sequence of order, is used to improve the maintainability of communication facilities.
As shown in Figure 3, the method that loads according to the realization communication device configured of the embodiment of the invention comprises:
The first step: forming content is the configuration file of order line.
Configuration file can form by following mode: the configuration of fill order row, and preserve, form configuration file; Edit directly forms configuration file.
After configuration file forms, can be kept on the communication facilities, also can be kept on the server that communication facilities can obtain configuration file.
In this example, when communication facilities normally moves, use telnet mode configuration of communications device, and will dispose preservation, forming content is the configuration file of order line, and configuration file is in the local preservation of system.
Second step: after communication device initiated, the initial configuration database.
Configuration database is used for the configuration data of hold-over command row, has just preserved whole configuration datas of communication facilities.It can be a memory database, also can be document data bank.
In this example, restart communication facilities, make communication facilities reload configuration.Configuration database adopts the document data bank mode, preserves configuration data.Configuration database adopts tree-like organizational form to preserve whole configuration datas.Configuration database leaves system this locality in.
The 3rd step: obtain and read configuration file, read order line and parsing, obtain the sign and the relevant parameters of order.
Communication facilities obtains configuration file earlier, if configuration file is kept at this locality, then directly obtains configuration file from this locality, if configuration file leaves on the server, then obtains configuration file from server by ftp (file transfer protocol (FTP)).
In this example, obtain configuration file from this locality after, reading order is capable, resolves, thereby obtains the sign and the relevant parameters of order.
The 4th step: the configuration data of order is saved in the configuration database, generates the index of data simultaneously.
Generate configuration data by command id and correlation parameter, configuration data is the data that processing module can directly be used.Generate which configuration data by command id and correlation parameter, by the realization decision of each order.When being saved in the configuration data of ordering in the configuration database, by the unified index that generates data of configuration database, the module of service data is the regeneration index not, and other module of the module of service data and these data of dependence is directly used the data directory that generates here when using these data.
In this example, every parsing finishes an order line, and just the data with this order are saved in the configuration database, generate the index of configuration data simultaneously.The index of data is unified in here by configuration database and generates, and is not that the module by service data generates.Can guarantee the consistance of data directory like this.And can guarantee that a module relies on the data of another module the time, the data directory of depended module has here generated, and does not need to wait for depended module first initialization and loading data regeneration index before Depending module again.So just removed the sequencing requirement of loading data between the module, thus the sequencing requirement that does not also need order line to load.
The 5th step: after having read the configuration file of order line, other module initialization in the reporting system.
Order in no particular order during other module initialization in the reporting system.
In this example, read the configuration file of order line after, preserved whole order line configuration datas and corresponding data directory in the configuration database.At this moment other module initialization in the reporting system, and order in no particular order when notifying other module initialization.
The 6th step: other module reads the configuration data in the configuration database, and initialization and the configuration of finishing self load.
In this example, other module when loading data, regeneration index not, the data directory that directly uses configuration database to generate.
By technique scheme, the present invention can guarantee that the loading of communication device configured does not rely on the execution sequence of order, has improved the maintainability of communication facilities.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a configuring load application method that is used for communication facilities is characterized in that, may further comprise the steps:
Step S102 generates configuration file, and described configuration file is the order line form, is used to preserve the configuration information of described communication facilities;
Step S104, described communication device initiated after, read described configuration file, resolve described order line, obtain command id and correlation parameter;
Step S106 stores the configuration data of ordering in the configuration database into, and generates the data directory that is used for described configuration data by described configuration database; And
Step S108, after described configuration file read end, the processing module in the described communication facilities read described configuration data from described configuration database, use described data directory, realized that configuration loads.
2. configuring load application method according to claim 1 is characterized in that, in step S102, is kept at described configuration file on the described communication facilities or on the server, described communication facilities can obtain described configuration file from described server.
3. configuring load application method according to claim 1 is characterized in that, in step S104, described communication device initiated after, the described configuration database of initialization.
4. configuring load application method according to claim 1 is characterized in that described configuration database comprises memory database or document data bank.
5. according to each described configuring load application method in the claim 1 to 4, it is characterized in that in step S108, the configuration of described processing module loads order in no particular order.
6. according to each described configuring load application method in the claim 1 to 4, it is characterized in that, in step S108, after described configuration file reads end, sequentially notify described processing module to carry out initialization in no particular order.
7. a configuration loading system that is used for communication facilities is characterized in that, comprising:
The configuration file generation module is used to generate configuration file, and described configuration file is the order line form, is used to preserve the configuration information of described communication facilities;
The configuration data acquisition module, be used for described communication device initiated after, read described configuration file, resolve described order line, obtain command id and correlation parameter;
Configuration database is used to store and is obtained by described configuration data acquisition module
Configuration data, and generate the data directory that is used for described configuration data; And processing module, be used for after described configuration file reads end, from described
Read described configuration data in the configuration database, use described data directory, realize that configuration loads.
8. configuration loading system according to claim 7 is characterized in that, described configuration file is kept on the described communication facilities or on the server, described communication facilities can obtain described configuration file from described server.
9. configuration loading system according to claim 7 is characterized in that, described configuration database carries out initialization described after communication device initiated.
10. configuration loading system according to claim 7 is characterized in that described configuration database comprises memory database or document data bank.
11., it is characterized in that the configuration of described processing module loads order in no particular order according to each described configuration loading system in the claim 7 to 10.
12., it is characterized in that described processing module is sequentially notified to carry out initialization in no particular order according to each described configuration loading system in the claim 7 to 10 after described configuration file reads end.
CNB2006101286567A 2006-09-04 2006-09-04 Configuring load application method and system of communication apparatus Expired - Fee Related CN100472445C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101286567A CN100472445C (en) 2006-09-04 2006-09-04 Configuring load application method and system of communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101286567A CN100472445C (en) 2006-09-04 2006-09-04 Configuring load application method and system of communication apparatus

Publications (2)

Publication Number Publication Date
CN101140520A true CN101140520A (en) 2008-03-12
CN100472445C CN100472445C (en) 2009-03-25

Family

ID=39192481

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101286567A Expired - Fee Related CN100472445C (en) 2006-09-04 2006-09-04 Configuring load application method and system of communication apparatus

Country Status (1)

Country Link
CN (1) CN100472445C (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304427B (en) * 2008-07-02 2012-05-23 华为终端有限公司 Method and apparatus for setting maximum transmission unit value
CN102571392A (en) * 2010-12-13 2012-07-11 中国移动通信集团广东有限公司 Method and device for configuring data of data communication device
CN101630257B (en) * 2009-05-07 2012-08-22 永洋科技股份有限公司 Embedded system structure control method
CN101741625B (en) * 2010-01-29 2012-08-22 北京东土科技股份有限公司 Method for configuring command line
CN102724067A (en) * 2012-06-12 2012-10-10 华为技术有限公司 Method and device for configuring equipment
CN101827353B (en) * 2010-02-04 2013-04-03 重庆索伦互联网信息服务有限公司 3G network technology-based method for generating desktop application on mobile terminal
CN103036668A (en) * 2012-12-11 2013-04-10 上海斐讯数据通信技术有限公司 Rack-mounted equipment tab configuration synchronization method based on a command line
CN103209338A (en) * 2013-02-04 2013-07-17 奥维通信股份有限公司 Online dynamic configuration system and method for multiplexer
CN103401742A (en) * 2013-08-15 2013-11-20 上海斐讯数据通信技术有限公司 Effective method and system for home gateway SIP (Session Initiation Protocol) configuration
CN101364175B (en) * 2008-07-02 2013-11-20 深圳国人通信有限公司 Configuration method and device for embedded system
CN104423283A (en) * 2013-08-30 2015-03-18 北京北方微电子基地设备工艺研究中心有限责任公司 Method and system for configuring analog channel parameters of electric equipment
CN106789200A (en) * 2016-12-07 2017-05-31 国云科技股份有限公司 A kind of method of the self-defined automatic deployment of cloud platform
CN109165055A (en) * 2018-08-30 2019-01-08 百度在线网络技术(北京)有限公司 A kind of component loading method, device, computer equipment and storage medium
CN109976798A (en) * 2019-02-02 2019-07-05 杭州迪普科技股份有限公司 A kind of reminding method and device
CN113922979A (en) * 2021-08-23 2022-01-11 北京天融信网络安全技术有限公司 Network security device configuration system, configuration method and computer device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304427B (en) * 2008-07-02 2012-05-23 华为终端有限公司 Method and apparatus for setting maximum transmission unit value
CN101364175B (en) * 2008-07-02 2013-11-20 深圳国人通信有限公司 Configuration method and device for embedded system
CN101630257B (en) * 2009-05-07 2012-08-22 永洋科技股份有限公司 Embedded system structure control method
CN101741625B (en) * 2010-01-29 2012-08-22 北京东土科技股份有限公司 Method for configuring command line
CN101827353B (en) * 2010-02-04 2013-04-03 重庆索伦互联网信息服务有限公司 3G network technology-based method for generating desktop application on mobile terminal
CN102571392B (en) * 2010-12-13 2015-05-27 中国移动通信集团广东有限公司 Method and device for configuring data of data communication device
CN102571392A (en) * 2010-12-13 2012-07-11 中国移动通信集团广东有限公司 Method and device for configuring data of data communication device
CN102724067A (en) * 2012-06-12 2012-10-10 华为技术有限公司 Method and device for configuring equipment
CN103036668A (en) * 2012-12-11 2013-04-10 上海斐讯数据通信技术有限公司 Rack-mounted equipment tab configuration synchronization method based on a command line
CN103209338A (en) * 2013-02-04 2013-07-17 奥维通信股份有限公司 Online dynamic configuration system and method for multiplexer
CN103401742A (en) * 2013-08-15 2013-11-20 上海斐讯数据通信技术有限公司 Effective method and system for home gateway SIP (Session Initiation Protocol) configuration
CN103401742B (en) * 2013-08-15 2017-05-24 上海斐讯数据通信技术有限公司 Effective method and system for home gateway SIP (Session Initiation Protocol) configuration
CN104423283A (en) * 2013-08-30 2015-03-18 北京北方微电子基地设备工艺研究中心有限责任公司 Method and system for configuring analog channel parameters of electric equipment
CN106789200A (en) * 2016-12-07 2017-05-31 国云科技股份有限公司 A kind of method of the self-defined automatic deployment of cloud platform
CN109165055A (en) * 2018-08-30 2019-01-08 百度在线网络技术(北京)有限公司 A kind of component loading method, device, computer equipment and storage medium
CN109165055B (en) * 2018-08-30 2022-09-06 百度在线网络技术(北京)有限公司 Unmanned system component loading method and device, computer equipment and medium
CN109976798A (en) * 2019-02-02 2019-07-05 杭州迪普科技股份有限公司 A kind of reminding method and device
CN113922979A (en) * 2021-08-23 2022-01-11 北京天融信网络安全技术有限公司 Network security device configuration system, configuration method and computer device

Also Published As

Publication number Publication date
CN100472445C (en) 2009-03-25

Similar Documents

Publication Publication Date Title
CN100472445C (en) Configuring load application method and system of communication apparatus
CN101313495B (en) Method, system and apparatus for data synchronization
CN101136783B (en) Backup, recovery method and apparatus for network management system to configure data
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CN101557427A (en) Method for providing diffluent information and realizing the diffluence of clients, system and server thereof
CN101459503A (en) Method and device for implementing data synchronization
CN102223256A (en) Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system
CN101325478A (en) Method and system for data synchronization
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN105228182A (en) The double card collocation method of multimode double-card mobile terminal and device
CN101370032A (en) Modification log maintenance method and apparatus for data synchronization
CN102546558B (en) The changing method of agreement and optical network unit in a kind of optical network unit
CN106570163A (en) Unreliable environment-oriented audit log read-write managing method and system
CN102130993A (en) Mobile-terminal-based information-recording method and system
CN104104582A (en) Data storage path management method, client and server
CN102833102B (en) Customer premise equipment system of set-card separated type gateway and data configuration management method
CN105224541B (en) Uniqueness control method, information storage means and the device of data
CN108243207B (en) A kind of date storage method of network cloud disk
CN101783742B (en) Discovery method and device of network topology
CN102594874B (en) Synchronization processing method and device
CN102624545A (en) Data backup method, data backup device, data recovery method and data recovery device of network management system
CN103503388B (en) A kind of distributed queue's message read method and equipment, system
CN101951361B (en) Method for accessing intelligent card and server
CN105827739A (en) Contact person information synchronization method, device, server and system
CN104462108A (en) Database structure object processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090325

Termination date: 20150904

EXPY Termination of patent right or utility model