CN1402559A - Method for implementing simultaneously supporting two style command line configuration - Google Patents

Method for implementing simultaneously supporting two style command line configuration Download PDF

Info

Publication number
CN1402559A
CN1402559A CN 01123994 CN01123994A CN1402559A CN 1402559 A CN1402559 A CN 1402559A CN 01123994 CN01123994 CN 01123994 CN 01123994 A CN01123994 A CN 01123994A CN 1402559 A CN1402559 A CN 1402559A
Authority
CN
China
Prior art keywords
style
order
command
configuration
cmo
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
CN 01123994
Other languages
Chinese (zh)
Other versions
CN1184828C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB011239948A priority Critical patent/CN1184828C/en
Publication of CN1402559A publication Critical patent/CN1402559A/en
Application granted granted Critical
Publication of CN1184828C publication Critical patent/CN1184828C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention makes the device support the command line configuration in both of the Cisco format and the MML format as well as possible for dynamic switching between the two formats. The invention includes following steps. The relevant collocation management object (CMO) is defined for the parameter of each command line and each format. The only identification (OID) is assigned. The relationship between the parameter of each command line and its CMO is registered and is informed to the command line module. The command line process unit in Cisco or MML formats analyzes out CMO and OID from an item of the Cisco or MML command line inputted. Based on the analyzed CMO and OID, the collocation management plane distributes the message on the collocation data layer. The relevant module on the the collocation data layer completes the CMO collocation.

Description

Support the implementation method of two kinds of style command line configurations simultaneously
Technical field
The present invention relates to a kind of technology in the communication equipment, relate to a kind of implementation method of on same telecommunication apparatus, supporting Cisco style and two kinds of order line configurations of MML style simultaneously or rather.
Background technology
Command line configuration mode is the general configuration mode of telecommunication apparatus.The order line configurating terminal can be control desk, hyper terminal, telnet client, remote dial terminal and asynchronous special line terminal etc.Because the configuration interface of order line is a textual interface, therefore have characteristics such as simple, quick and easy.
Two kinds of order line styles are arranged: a kind of is the Cisco style that generally adopts on data communication products; Another kind is the MML style that generally adopts on trade-to product.
The order line form of Cisco style is:
keyword 1〉and [<keyword 2〉[...]] [<parameter value 1〉[<parameter value 2〉[...]]]
The order line form of MML style is:
command word 1〉[command word 2]: [<parameter 1 〉=<value 1〉[,<parameter 2 〉=<value 2〉[...]]];
The order line of two kinds of styles differs greatly on form, tends to parameter of a command configuration as the Cisco style, separates with the space between each keyword and the parameter value in the form; The MML style then will be relevant with a certain object all parameters finish with a command configuration, have only two command words in the form, separate command word and parameter with colon, adopt the equal sign separation between parameter and value, and end up with branch.
With the configuration ethernet mouth is example, and the order line form of Cisco style (being prompt before # number, is the order of input after # number) is as follows:
Quidway(config)#interface?ethernet?0
Quidway(config-if-Ethernet0)#mtu?1492
Quidway(config-if-Ethernet0)#description?Router?A
Quidway(config-if-Ethernet0)#send-frame-type?Ethernet_II
Quidway(config-if-Ethernet0)#ip?address?10.24.40.12?55.255.255.0
The order line form of MML style following (all being the order of input):
MOD?IFETH:NUM=0,MTU=1492,DESC=“Router?A”,TYPE=0,IPADDR=“10.24.40.1”,IPMASK=“255.255.255.0”;
Give an example as can be seen from above-mentioned, the difference of two kinds of style command lines is very big really.And in general, the very familiar a kind of order line style wherein of telecom equipment engineering Shi Keneng unlikely is familiar with two kinds of order line styles simultaneously.
From the structure situation of existing telecommunication apparatus, a telecommunication apparatus generally only provides a kind of order line configuration of style, has only the Telecommunications Engineer who is familiar with this style command line to be configured and to safeguard it.In other words, a Telecommunications Engineer wants can both expertly be configured maintenance to any telecommunication apparatus, and he must grasp two kinds of order line configuring technicals of Cisco style and MML style simultaneously.Yet in telecommunications room, usually not only be equipped with the data communication products that adopts Cisco order line style but also be equipped with the trade-to product that adopts the MML style, also have same telecommunication apparatus not only to need to unify networking but also need to be connected in addition with the equipment of employing Cisco order line style with the equipment that adopts the MML style command line, if only be familiar with a kind of style command line, both inconvenience also was unfavorable for telecommunication apparatus is configured and safeguards.
Summary of the invention
The objective of the invention is to design a kind of implementation method that can on a telecommunication apparatus, support two kinds of style command line configurations simultaneously, make an equipment can support Cisco style and two kinds of order line configurations of MML style simultaneously, and can between the order line configuration of two kinds of styles, do dynamically to switch.Use arbitrary the telecommunication apparatus of the inventive method, can adopt two kinds of style command lines to be configured maintenance, allow the telecommunication apparatus service engineer that selectance is more freely arranged,, just can be configured maintenance arbitrary telecommunication apparatus as long as be familiar with any style command line among Cisco and the MML.
The technical scheme that realizes the object of the invention is such: a kind of implementation method of supporting two kinds of style command line configurations simultaneously is characterized in that comprising:
A. be a corresponding configuration management object of parameter-definition (CMO) of each order line, distribute a unique sign (OID);
B. carry out Ordered Registration, with the parameter of each order line and the corresponding relation notification command row module of corresponding configuration management object (CMO);
C. by the Cisco style command line processing unit in the order line module or MML style command line processing unit respectively to the Cisco style command line or the MML style command line of input, parse configuration management object (CMO) and unique sign (OID) and parameter value thereof;
D. according to the configuration management object (CMO) that parses and unique sign (OID) and parameter value thereof the configuration data layer is carried out the message distribution by the configuration management plane;
E. finish disposing the configuration of configuration management object (CMO) by the corresponding module of configuration data layer.
Described unique sign (OID) comprises module id (ID), command id (ID) and parameter identification (ID), is used to specify configuration management object (CMO) and order.
Definition in the described steps A comprises that each parameter to each module of configuration data layer defines.
The registration of described step B comprises the registration to each bar Cisco style order and each bar MML style order.
Described step B further comprises: a command list and a command list that is used to preserve the order of MML style that is used to preserve the order of Cisco style is set in the order line module; Be kept in the command list of Cisco style order by the full detail of Ordered Registration function, be kept in the command list of MML style order by the full detail of Ordered Registration function with the order of every MML style with the order of every Cisco style.
Described full detail comprises unique sign (OID) of command word, keyword, command-levels, parameter name, parameter.
The parsing of described step C further comprises: by Cisco style command line processing unit in the order line module and MML style command line processing unit the resolution of Cisco style or MML style is carried out in the order of input; Inquiry corresponding C isco style command list or MML style command list extract and comprise configuration management object (CMO) and unique sign (OID) and parameter value thereof.
Described step D is by the configuration management plane distribution mechanisms that gives information configuration order to be packaged into the configuration messages bag and to send to the corresponding configuration management object of configuration data layer (CMO).
The described message distribution mechanisms that is provided by the configuration management plane is that a kind of configuration messages is handled function.
Described step e is that the corresponding module by the configuration data layer finds and configuration management object (CMO) and unique pairing parameter of sign (OID) thereof, finishes the configuration of Cisco style command line or MML style command line.
A kind of implementation method of supporting two kinds of style command line configurations simultaneously of the present invention, in order to realize support to two kinds of style command lines, the notion of configuration management plane and configuration management object (CMO) is proposed, make on same telecommunication apparatus, can support the order line configuration of two kinds of styles simultaneously, and can between two kinds of styles, dynamically switch (can allow to import the order line of any style), solved the unified problem of style, use the equipment of the inventive method can satisfy the configuring maintenance of two kinds of order lines simultaneously, one needs only the Telecommunications Engineer who is familiar with the Cisco style command line or is familiar with the MML style command line and just can be configured maintenance to this equipment.
Description of drawings
Fig. 1 is an allocation models structural representation of realizing the inventive method.
Fig. 2 is that the structure of the unique sign OID of the present invention is formed schematic diagram.
Fig. 3 is an input command process of analysis block diagram in the inventive method.
Embodiment
Referring to Fig. 1, realize the allocation models structure of the inventive method shown in the figure, comprise the order line module of forming by Cisco style command line processing unit 101 and MML style command line processing unit 102 10; Configuration management plane 11 and by a plurality of configuration management objects as the configuration management base unit (CMO1, CMO2 ... CMON) the configuration data layer 12 of Zu Chenging.CMO herein be exactly with each parameter that need dispose of two kinds of style command lines as a CMO, so CMO is a notion, N is the sum of parameter, promptly Ding Yi parameter has N, and N configuration management object just arranged.The CMO definition rule that each CMO module in the configuration data layer 12 is formulated according to configuration management plane 11 according to the configuration management function that this module provides, defines all CMO of this module.Definition comprises that each parameter to each module of configuration data layer defines.
The present invention makes CMO corresponding with the parameter of configuration data layer, and CID is by the module assignment of configuration data layer, and the same parameter of Cisco style command line and MML style command line is used same CMO, thereby reaches the purpose of reaching the same goal by different routes.
Configuration data layer 12 is generalized concept, and it comprises that all can be for the module of management and configuration, and in other words, it is all general designations that the module of configuration management object is provided, and finally finishes configuration by the corresponding module of configuration data layer.
In conjunction with referring to Fig. 2, the structure of the sign OID that the present invention shown in the figure is unique.The present invention allows the parameter of each order line corresponding to a CMO, is exactly to distribute a number-mark for each parameter, allows each CMO that a unique sign OID is arranged, and OID is the unique entity of CMO.OID of the present invention is one 8 16 system numbers, is made up of three parts, comprises module I D, order ID and parameter I D, and wherein low 2 is parameter I D, and middle 2 is order ID, and high 4 is module I D.
According to this unique sign OID, just know that this sign OID is which the bar order that belongs to which module, so that the configuration management plane sends to configuration order the corresponding command processing function of corresponding OID module.
The module of definition command row will guarantee to have defined corresponding C MO before order line module log-in command, tell the order line module by the registration function of order line with the parameter of order line and the corresponding relation of CMO then.The order of the order of each bar Cisco style and each bar MML style all needs registration.
Be provided with two command lists in the order line module, an order that is used to preserve the Cisco style, another is used to preserve the order of MML style.The Ordered Registration function is the full detail of every order, comprises that unique sign OID etc. of command word, keyword, command-levels, parameter name, parameter is kept in these two command lists, inquires about during for command analysis.
In conjunction with referring to Fig. 3, the flow process of command analysis shown in the figure.After definition and registration, the order line module just can be resolved user's input command according to the corresponding relation of parameter and CMO.
The order line module receives the order of user's input, by Cisco style command process unit and MML style command process unit this input command is differentiated, telling according to the different characteristic of two kinds of orders is order of Cisco style or MML style order (step 31); Inquire about the command list (step 33) of corresponding C isco style or the command list (step 32) of MML style then, therefrom extract configuration management object (CMO), unique necessary information such as sign OID; After resolving successfully, by the message distribution mechanisms that provides by the configuration management plane, call the configuration messages on configuration management plane and handle function, analysis result, configuration order be packaged into the configuration messages bag and pass to the corresponding module of configuration data layer, finish the message distribution, find and the pairing parameter of CMO OID (step 34); At last finish configuration (step 35) by the corresponding module (configuration management object CMO) of configuration data layer.
Various processes shown in Fig. 3 can also have multiple difference and conventional implementation method when implementing, owing to do not belong to the art of this patent scope, no longer describe in detail.
The application of technical solution of the present invention can be an example with the configuration ethernet mouth still, is CMO of each parameter-definition earlier before the configuration, distributes an OID (register method can have multiple):
#define?CMO_MTU?0x00010101
#define?CMO_DESC?0x00010102
#define?CMO_FRMTYPE?0x00010103
#define?CMO_IPADDR?0x00010104
#define?CMO_IPMASK?0x00010105
When input command mtu1492, the corresponding CMO OID of this order is discerned and parsed in the Cisco style command process unit 101 of order line module 10 according to the characteristics of Cisco style command line is 0x00010101, by configuration management plane 11 with this CMO OID and be worth 1492 send to the definition this order the interface management module, finish configuration by the interface management module again.
As input command MOD IFETH:NUM=0, during MTU=1492, the CMO OID that the MTU parameter correspondence in this order was discerned and parsed to the MML style command process unit 102 same meetings of order line module 10 according to the characteristics of MML style command line is 0x00010101, by configuration management plane 11 this CMO OID and be worth 1492 send to the definition this order the interface management module, finish configuration by the interface management module again.
Method of the present invention is the nucleus equipment of GPRS (GPRS:General Packet Radio Servce) backbone network as Gateway GPRS Support Node (GGSN:Gateway GPRSSupport Node) in actual applications.GGSN need unify networking with telecommunication products such as MSC, SGSN as the equipment in the GPRS backbone network, in order to guarantee the consistency of operation interface, the unified order line that adopts the MML style; Simultaneously, GGSN also is positioned on the Internet (Internet), and from the aspect of Internet, GGSN also is a routing device, and its order line style should adopt the Cisco style.After having used method of the present invention, this GGSN equipment just can adopt two kinds of style command lines to be configured maintenance, but supply equipment the service engineer freely select, and can between two kinds of styles, dynamically switch, as long as be familiar with a kind of in Cisco style command line and the MML style command line, can be configured maintenance to this equipment, make under being configured in of the different-style order line technical scheme of the present invention and obtained unification.

Claims (10)

1. implementation method of supporting the configuration of two kinds of style command lines simultaneously is characterized in that comprising:
A. be a corresponding configuration management object of parameter-definition (CMO) of each order line, distribute a unique sign (OID);
B. carry out Ordered Registration, with the parameter of each order line and the corresponding relation notification command row module of corresponding configuration management object (CMO);
C. by the Cisco style command line processing unit in the order line module or MML style command line processing unit respectively to the Cisco style command line or the MML style command line of input, parse configuration management object (CMO) and unique sign (OID) and parameter value thereof;
D. according to the configuration management object (CMO) that parses and unique sign (OID) and parameter value thereof the configuration data layer is carried out the message distribution by the configuration management plane;
E. finish configuration by the corresponding module of configuration data layer to configuration management object (CMO).
2. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 1, it is characterized in that: described unique sign (OID) comprises module id (ID), command id (ID) and parameter identification (ID), is used to specify configuration management object (CMO) and order.
3. a kind of implementation method of supporting the configuration of two kinds of style command lines simultaneously according to claim 1 is characterized in that: the definition in the described steps A comprises that each parameter to each module of configuration data layer defines.
4. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 1, it is characterized in that: the registration of described step B comprises the registration to each bar Cisco style order and each bar MML style order.
5. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 1, it is characterized in that: described step B further comprises: a command list and a command list that is used to preserve the order of MML style that is used to preserve the order of Cisco style is set in the order line module; Be kept in the command list of Cisco style order by the full detail of Ordered Registration function, be kept in the command list of MML style order by the full detail of Ordered Registration function with the order of every MML style with the order of every Cisco style.
6. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 5, it is characterized in that: described full detail comprises unique sign (OID) of command word, keyword, command-levels, parameter name, parameter.
7. a kind of according to claim 1 or 5 implementation method of supporting two kinds of style command line configurations simultaneously, it is characterized in that: the parsing of described step C further comprises: by Cisco style command line processing unit in the order line module and MML style command line processing unit the resolution of Cisco style or MML style is carried out in the order of input; Inquiry corresponding C isco style command list or MML style command list extract and comprise configuration management object (CMO) and unique sign (OID) and parameter value thereof.
8. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 1, it is characterized in that: described step D is by the configuration management plane distribution mechanisms that gives information configuration order to be packaged into the configuration messages bag and to send to the corresponding configuration management object of configuration data layer (CMO).
9. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 8 is characterized in that: the described message distribution mechanisms that is provided by the configuration management plane is that a kind of configuration messages is handled function.
10. a kind of implementation method of supporting two kinds of style command line configurations simultaneously according to claim 1, it is characterized in that: described step e, be that corresponding module by the configuration data layer finds and configuration management object (CMO) and unique pairing parameter of sign (OID) thereof, finish the configuration of Cisco style command line or MML style command line.
CNB011239948A 2001-08-10 2001-08-10 Method for implementing simultaneously supporting two style command line configuration Expired - Fee Related CN1184828C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011239948A CN1184828C (en) 2001-08-10 2001-08-10 Method for implementing simultaneously supporting two style command line configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011239948A CN1184828C (en) 2001-08-10 2001-08-10 Method for implementing simultaneously supporting two style command line configuration

Publications (2)

Publication Number Publication Date
CN1402559A true CN1402559A (en) 2003-03-12
CN1184828C CN1184828C (en) 2005-01-12

Family

ID=4665423

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011239948A Expired - Fee Related CN1184828C (en) 2001-08-10 2001-08-10 Method for implementing simultaneously supporting two style command line configuration

Country Status (1)

Country Link
CN (1) CN1184828C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464294C (en) * 2003-05-12 2009-02-25 微软公司 Reflection-based processing of input parameters for commands
CN101193109B (en) * 2006-12-01 2010-08-04 中兴通讯股份有限公司 A method for supporting interactive command in command line interface of communication device
CN101964923A (en) * 2009-07-23 2011-02-02 中兴通讯股份有限公司 Configuration system and method for interactive commands
CN106227821A (en) * 2016-07-21 2016-12-14 杭州华三通信技术有限公司 A kind for the treatment of method and apparatus of order line order
CN108509184A (en) * 2018-03-28 2018-09-07 武汉斗鱼网络科技有限公司 Message distributing method, computer readable storage medium and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464294C (en) * 2003-05-12 2009-02-25 微软公司 Reflection-based processing of input parameters for commands
CN101193109B (en) * 2006-12-01 2010-08-04 中兴通讯股份有限公司 A method for supporting interactive command in command line interface of communication device
CN101964923A (en) * 2009-07-23 2011-02-02 中兴通讯股份有限公司 Configuration system and method for interactive commands
CN106227821A (en) * 2016-07-21 2016-12-14 杭州华三通信技术有限公司 A kind for the treatment of method and apparatus of order line order
CN106227821B (en) * 2016-07-21 2019-08-06 新华三技术有限公司 A kind for the treatment of method and apparatus of order line command
CN108509184A (en) * 2018-03-28 2018-09-07 武汉斗鱼网络科技有限公司 Message distributing method, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN1184828C (en) 2005-01-12

Similar Documents

Publication Publication Date Title
CN1279717C (en) Sort method of net element of group-oriented network
US20030211839A1 (en) Methods and apparatus for providing emergency telephone service to IP-based telephone users
CN100459723C (en) Method for realizing routing for next-generation network
CN1663216A (en) A method and system to subscription of events using SIP protocol
MXPA03008509A (en) User aliases in a communication system.
CN1638346A (en) Automated voice over IP device -VLAN-association setup
CN1653760A (en) Method and apparatus to improve network routing
US20230412949A1 (en) Origination and Destination Based Routing
US7606905B1 (en) Method for service processor discrimination and precedence in a voice-over-internet-protocol (VoIP) network
CN1184828C (en) Method for implementing simultaneously supporting two style command line configuration
CN1558689A (en) System and method for short message and instant message service intercommunication based on soft switch system
US6084875A (en) Routing of internet traffic and related internet service provider services
CN1539227A (en) Method and apparatus for classifying querying nodes
CN100353720C (en) Method for realizing media stream bypass
CN100596093C (en) Implementing method of intelligent media flow bypass
CN114172867A (en) IMS-based massive signaling diagnosis system and method
CN1689303A (en) Bearer connection signaling in a distributed architecture
CN1602029A (en) Personalized indicating information system and its method
CN101222652B (en) Method for selecting call routing in full IP bearing telecommunication network
CN1889610B (en) Large-capacity distributing signalling processing equipment and method thereof
CN1610317A (en) Method for dynamically selecting interconnection network provide merchant for user
CN1474977A (en) Robust method and apparatus for processing cable modem configuration files
CN101188546B (en) Implementation method and system for packet network service and user-subscribed database
CN1265605C (en) Method for realziing double-layer use adaption layer for seven-signalling network message transmission protocol
CN110516141A (en) Data query method, apparatus, electronic equipment and readable storage medium storing program for executing

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
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: 20050112

Termination date: 20170810

CF01 Termination of patent right due to non-payment of annual fee