CN101741625B - Method for configuring command line - Google Patents
Method for configuring command line Download PDFInfo
- Publication number
- CN101741625B CN101741625B CN 201010104256 CN201010104256A CN101741625B CN 101741625 B CN101741625 B CN 101741625B CN 201010104256 CN201010104256 CN 201010104256 CN 201010104256 A CN201010104256 A CN 201010104256A CN 101741625 B CN101741625 B CN 101741625B
- Authority
- CN
- China
- Prior art keywords
- configuration
- adaptation layer
- parameter
- command
- current
- 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
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention discloses a method for configuring a command line, in particular to a method for configuring a command line for communication equipment. According to the technical scheme, the method for configuring the command line is characterized in that the character strings of the command line are interpreted by an interpreter in a processor into command keywords and parameters; the parameters are saved in a corresponding data structure in a memory configuration adaption layer; the task of the protocol takes charge of checking that whether a configuration is changed; if a configuration is changed, related parameter is read from the corresponding data structure in the memory configuration adaption layer, and the command is given actually; and other modules read the parameters of the protocol through the memory configuration adaption layer. The invention ensures the state machine running efficiency, ensures the state uniqueness and the operation safety due to the unified management of the configuration and the unified release of the mechanism under the condition of the existence of multi-users and simplifies the inquiry process because the configuration data is saved in the memory configuration adaption layer and result of inquiring the configuration by other modules is directly given by the memory configuration adaption layer.
Description
Technical field
The present invention relates to the communications field, more particularly, relate to a kind of implementation method of communication equipment order line configuration.
Background technology
The roughly process that order line configuration at present realizes is following: after equipment receives command-line string; By command line interpreter it is interpreted as command keyword and relevant parameter, is configured to protocol-dependent structure or state machine the parameter indirect assignment then and issues.
Because agreement is in running; This module or other module (like the web page) need constantly read relevant information; The data structure of frequent access agreement affects to the operational efficiency and the reliability of agreement, and is unfavorable for the centralized management to configuration.Under the situation of multi-user operation, also sequence problem possibly take place.
The present invention adopts and increases the configuration adaptation layer and realize the separation of the configuration structure of order with the protocol data structure, and issuing in agreement self task of order carried out, and reaches safe and reliable, manageability, is prone to the purpose of inquiry, reduces causing in the layoutprocedure of task and switches.
Summary of the invention
The objective of the invention is to overcome deficiency of the prior art, a kind of safe and reliable, manageability is provided, is prone to the implementation method of the order line configuration of inquiry.
Command-line string is command keyword and parameter through interpreter interprets in the processor; Preserve parameter then in the memory configurations adaptation layer in the corresponding data structure; Whether the task of agreement self is responsible for inspection has configuration to change; Read relevant parameter if having in the data structure corresponding from the configuration adaptation layer, the line command of going forward side by side is actual to issue; Other module obtains through the configuration adaptation layer reading all of protocol parameter.
Configuration adaptation layer structure comprises a status indication, in order to identify the state of parameter current: maintenance, interpolation, deletion, invalid.For some configuration order is on logic interfacing, has a plurality ofly, so this organization definition is a chained list, and the relevant parameter data are kept in the data field., store owing to do not relate to linear operation for the configuration of the overall situation with the single structure body.
Timing inquiry through to the configuration adaptation layer detects the current configuration change that whether has, and issues if exist then will change to concentrate, so that agreement is normally moved.Main task or timer can be operated according to parameter current states sign constantly to the adaptation layer inquiry; If Status Flag is current is " interpolation ", and explanation is that operation is added in configuration, and so just sign is set to " maintenance ", then the configuration change counter is added one; If Status Flag is current to be " deletion ", then Status Flag is made as engineering noise, then the configuration change counter is added one; The unification that is configured according to the value that changes counter at last issues, and accomplishes configuration.
Other module reads protocol parameter, when the Status Flag of adaptation layer perhaps just reads when " maintenances " for " interpolations ", otherwise is regarded as less than dispose.
The invention has the beneficial effects as follows: in user configured process,, guaranteed the efficient of state machine operation owing to do not relate to operation to the virtual condition machine; Under multi-user's situation, because issuing mechanism is concentrated in the unified management of configuration; Guarantee the uniqueness of state, guaranteed the safety of operating.Configuration data is kept at the configuration adaptation layer simultaneously, and other modules are directly provided by this layer the Query Result of configuration, has simplified the process of inquiry.
Description of drawings
Fig. 1 order line is issued to configuration adaptation layer flow chart;
Fig. 2 main task inquiry adaptation layer, the configuration distributing flow chart;
Other module query configuration message flow chart of Fig. 3.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further description.
Fig. 1 has indicated order line to be issued to configuration adaptation layer flow process, and order line is issued to the configuration adaptation layer, and state flag bit is set is " interpolations ", " deletion ", disposes end then.
Not directly protocol data structure or state machine to be carried out assignment in the process of configuration distributing; But, promptly dispose adaptation layer through increasing structure of configured parameters, the current configuration that issues is preserved; Then through timing inquiry to the configuration adaptation layer; Detect the current configuration change that whether has, if exist then will change (possibly exist a plurality of) concentrated issuing, so that agreement is normally moved.Order is equivalent to chained list or structure are carried out retouching operation through the operation that order is issued to adaptation layer.
Fig. 2 has indicated main task inquiry adaptation layer, the configuration distributing flow process, and main task or timer can be operated based on parameter current states sign constantly to the adaptation layer inquiry.If Status Flag is not " interpolation " or " deletion ", return main task, current is " interpolation ", and explanation is that operation is added in configuration, and so just sign is set to " maintenance ", then the configuration change counter is added one.If Status Flag is current to be " deletion ", then Status Flag is made as engineering noise, then the configuration change counter is added one.When the change counter is not " 0 ", return main task; When the change counter was " 0 ", the unification that is configured issued, and following brush is configured in the state machine.Return the new order line of main task execution then and issue task.
Fig. 3 has indicated other module query configuration message flow, and other module query configuration message such as the buildrun of order line, checks whether configuration adaptation layer Status Flag is " interpolation "/" maintenance ", if return configuration information, finishes; If not " interpolation "/" maintenance ", be regarded as not configuration, finish.
The above is merely process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of within spirit of the present invention and essence, being made, is not equal to replacement, improvement etc., all should be included within the protection range of the present invention.
Claims (5)
1. the implementation method of order line configuration; It is characterized in that; Command-line string is command keyword and parameter through interpreter interprets in the processor, preserves parameter then in the memory configurations adaptation layer in the corresponding data structure, and whether the task of agreement self is responsible for inspection has configuration to change; Read relevant parameter if having in the data structure corresponding from the configuration adaptation layer, the line command of going forward side by side is actual to issue; Other module obtains through the configuration adaptation layer reading all of protocol parameter; Configuration adaptation layer structure comprises a status indication, in order to identify the state of parameter current: maintenance, interpolation, deletion, invalid; Main task or timer can be operated according to parameter current states sign constantly to the adaptation layer inquiry; If Status Flag is current is " interpolation ", and explanation is that operation is added in configuration, and so just sign is set to " maintenance ", then the configuration change counter is added one; If Status Flag is current to be " deletion ", then Status Flag is made as engineering noise, then the configuration change counter is added one; The unification that is configured according to the value that changes counter at last issues, and accomplishes configuration.
2. method according to claim 1 is characterized in that, is on logic interfacing for some configuration order, has a plurality ofly, so this organization definition is a chained list, and the relevant parameter data are kept in the data field.
3. method according to claim 1 is characterized in that,, stores with the single structure body owing to do not relate to linear operation for the configuration of the overall situation.
4. according to the described method of claim 1, it is characterized in that the timing inquiry through to the configuration adaptation layer detects the current configuration change that whether has, issue if exist then will change to concentrate, so that agreement is normally moved.
5. according to the described method of claim 1, it is characterized in that other module reads protocol parameter, when the Status Flag of adaptation layer perhaps just reads when " maintenances " for " interpolations ", otherwise be regarded as less than dispose.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010104256 CN101741625B (en) | 2010-01-29 | 2010-01-29 | Method for configuring command line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010104256 CN101741625B (en) | 2010-01-29 | 2010-01-29 | Method for configuring command line |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101741625A CN101741625A (en) | 2010-06-16 |
CN101741625B true CN101741625B (en) | 2012-08-22 |
Family
ID=42464559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010104256 Active CN101741625B (en) | 2010-01-29 | 2010-01-29 | Method for configuring command line |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101741625B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103401742B (en) * | 2013-08-15 | 2017-05-24 | 上海斐讯数据通信技术有限公司 | Effective method and system for home gateway SIP (Session Initiation Protocol) configuration |
CN104022894B (en) * | 2014-05-12 | 2017-06-06 | 东软熙康健康科技有限公司 | Manage method, the method for configuration application parameter of application configuration parameter concentratedly |
CN104954171A (en) * | 2015-05-15 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Optical network unit alarm configuration sending down system and optical network unit alarm configuration sending down method based on single linked list |
CN106557356B (en) * | 2015-09-25 | 2020-06-19 | 阿里巴巴集团控股有限公司 | Task processing method and device |
CN108629017A (en) * | 2018-05-08 | 2018-10-09 | 山东浪潮通软信息科技有限公司 | A kind of document flow implementation method that explanation type alternative is configured and run |
CN109039754B (en) * | 2018-08-20 | 2022-05-10 | 新华三技术有限公司 | Network equipment management method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140520A (en) * | 2006-09-04 | 2008-03-12 | 中兴通讯股份有限公司 | Configuring load application method and system of communication apparatus |
-
2010
- 2010-01-29 CN CN 201010104256 patent/CN101741625B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140520A (en) * | 2006-09-04 | 2008-03-12 | 中兴通讯股份有限公司 | Configuring load application method and system of communication apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN101741625A (en) | 2010-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101741625B (en) | Method for configuring command line | |
CN103218176B (en) | Data processing method and device | |
CN107071006A (en) | A kind of acquisition system and acquisition method towards navigation channel big data | |
CN103135732B (en) | Server cabinet system | |
CN101404604A (en) | 485 bus type monitoring system and its high extendibility method | |
CN101848186B (en) | Three-layer plastic optical fiber Ethernet switch | |
CN202679397U (en) | Real-time industrial Ethernet EtherCAT slave station system | |
CN104079478A (en) | Method and device of packet forwarding | |
CN102594699A (en) | Routing method based on routing list decomposition storage for extensible router system | |
CN106021149A (en) | Multiple connection management for bluetooth low energy devices | |
CN104618152A (en) | Session table aging method and system | |
CN103414769A (en) | Virtual machine thermal migration method and physical machine | |
CN105700859A (en) | Network-processor-based hardware table traversal method and apparatus | |
CN103559095A (en) | Data synchronization method for dual-core multiprocessor framework used for relay protection field | |
CN205320102U (en) | Switch based on godson treater | |
CN110413322A (en) | A kind of server network interface management method, system and baseboard management controller | |
CN103795550A (en) | Method and apparatus for supplying power | |
CN112804276A (en) | Virtualization broadband remote access server, control method thereof and communication system | |
CN102752138A (en) | Asynchronous configuration management method and network device | |
CN115333894A (en) | Modbus communication hub based on multi-master-station communication requirements and reading method | |
CN213987222U (en) | Industrial data terminal based on 5G | |
CN101739115A (en) | Simplified type host computer and method for wakening same | |
CN201323591Y (en) | Three-layer plastic optical fiber Ethernet switch | |
CN106292911A (en) | A kind of fusion architecture server | |
CN103995758A (en) | Method for displaying main board fault information in delayed mode |
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 |