CN102447585B - Method and device for converting network configuration protocol response message into command line - Google Patents

Method and device for converting network configuration protocol response message into command line Download PDF

Info

Publication number
CN102447585B
CN102447585B CN201210001172.1A CN201210001172A CN102447585B CN 102447585 B CN102447585 B CN 102447585B CN 201210001172 A CN201210001172 A CN 201210001172A CN 102447585 B CN102447585 B CN 102447585B
Authority
CN
China
Prior art keywords
node
shell
defined file
binary tree
command
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
Application number
CN201210001172.1A
Other languages
Chinese (zh)
Other versions
CN102447585A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201210001172.1A priority Critical patent/CN102447585B/en
Publication of CN102447585A publication Critical patent/CN102447585A/en
Application granted granted Critical
Publication of CN102447585B publication Critical patent/CN102447585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for converting a network configuration protocol response message into a command line, which is applied to a NETCONF agency and comprises the following steps of: A. converting the shell command line of network equipment into a shell definition file of an XML (Extensive Makeup Language) format according to a modeling Schma file in advance; B. when the system is started, loading the shell definition file into a memory to generate a shell binary tree; and C. according to information in the shell binary tree in the memory, converting a received response message which is from the NETCONF server and corresponds to a configuration information command obtained by a user into the shell command line. With the method provided by the invention, the XML response message in the network configuration protocol can be directly converted into the Shell command line, so that the client can not feel the change of the operation mode, and therefore, the client can not feel the presence of the NETCONF protocol.

Description

Network configuration protocol response message is converted to method and the device of order line
Technical field
The present invention relates to data communication field, particularly the response message of XML form is converted to the method and apparatus of order line in NETCONF agreement.
Background technology
In data communication field, network configuration (Network Configuration is called for short NETCONF) agreement is a kind of based on the extend markup language network configuration management agreement of (eXtensible Markup Language is called for short XML).NETCONF agreement uses XML to operate coding, and is carried on remote procedure call (Remote Procedure Call is called for short RPC) layer, for completing the data communication between client and NETCONF server.As shown in Figure 1, for the configuration management framework schematic diagram based on NETCONF agreement in prior art, configuration management framework based on NETCONF agreement is divided into 4 levels in logical construction: network management entity, network configuration agency, and NETCONF server and application module, wherein:
Network management entity, operates in the client of network management, for different NMPs and operation provide user interface.In the configuration management framework based on NETCONF agreement as shown in Fig. 1, NETCONF server can be towards dissimilar network management entity (being called for short webmaster entity), not only towards NETCONF protocol network management entity, but also need to face other non-NETCONF protocol network management entity, and such as: order line, SNMP, WEB etc.
Network configuration is acted on behalf of (being called for short NETCONF agency), is equivalent to the adaptation layer of the network management entity of non-NETCONF protocol type, different non-NETCONF protocol network management entities, and its network configuration agency is different.Network configuration agency is converted to the operation of NETCONF agreement for the configuration management operation that heterogeneous networks management entity is issued, be then handed down to NETCONF server; Receive and come from response message and the announcement information of NETCONF server simultaneously, and be converted into the network configuration corresponding non-NETCONF protocol massages of agency or response message, send to the non-NETCONF protocol network management entity of its correspondence.
NETCONF server, reception comes from the network configuration agency's of NETCONF protocol network management entity and other non-NETCONF protocol network management entity business operation, if obtain configuration information, directly from configuration database, obtains; For network state information, need to be handed down to the application module of destination network device.
At present, user's general custom is passed through Command Line Interface (Command Line Interface, CLI) operational network equipment or network configuration protocol system in client.When user is when the capable interpreter of order line terminal input command (Shell) configuration order row or Shell obtain configuration order row, NETCONF agency needs first the relevant information of Shell order line be converted to the RPC request message of XML form and send to NETCONF server, NETCONF server is received after this request, to equipment or system is configured or collection information, the rpc-reply response message that is packaged as again XML form returns to NETCONF agency, by NETCONF agency, is converted to information or the command format that order line terminal use can identify.
When user is obtained configuration order and is checked NETCONF system or the relevant configuration information of the network equipment by Shell, for the ease of user, check, NETCONF agency need to be converted to the rpc-reply response message of the XML form that comprises configuration information the form of Shell configuration order row, because general orders row terminal use is also unaccustomed to check configuration information by XML form, whether the Shell order line that on the other hand, order line terminal use cannot relatively show is consistent with the Shell order line of request configuration before.
How the rpc-reply response message of XML form in NETCONF agreement is converted to Shell order line? the YANG modeling language of NETCONF agreement and RFC 6020 definition is not stipulated, supports now several manufacturers of NETCONF agreement the details how to address this problem not to be disclosed yet.
Summary of the invention
In view of this, the invention provides a kind of method and device that the XML form response message of network configuration protocol is converted to order line, to solve the problems of the prior art.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
Network configuration protocol response message is converted to a method for order line, is applied in NETCONF agency, comprising:
A. in advance according to modeling Schema file, by the capable shell defined file that is converted to XML form of the shell-command of the network equipment;
B. when system starts, described shell defined file is loaded into and in internal memory, generates shell binary tree;
C. according to the information in shell binary tree in internal memory, by receive from NETCONF server obtain the corresponding response message of configuration information order with user, be converted to shell-command capable.
The embodiment of the present invention also provides a kind of device that network configuration protocol response message is converted to order line, comprising:
Shell defined file generation module, in advance according to modeling file, by the capable shell defined file that is converted to XML form of the shell-command of the network equipment;
Shell defined file load-on module, for when described device starts, is loaded into described shell defined file in internal memory, to generate shell binary tree;
The capable modular converter of shell-command, for receive from NETCONF server obtain the corresponding response message of configuration information order with user after, according to the binary tree of shell described in internal memory, the data in response message are converted to shell-command capable.
In sum, utilize method and apparatus provided by the present invention, can directly the XML response message in network configuration protocol be converted to Shell order line, allow the variation of the imperceptible mode of operation of client, thus the existence of imperceptible NETCONF agreement.
Accompanying drawing explanation
Fig. 1 is the logical schematic based on NETCONF protocol configuration Governance framework in prior art;
Fig. 2 is that the embodiment of the present invention is converted to network configuration protocol response message the method flow diagram of order line;
Fig. 3 is that the Shell defined file of embodiment of the present invention configuration module interfaces is loaded into the shell binary tree schematic diagram that internal memory generates;
Fig. 4 is that the Shell defined file of embodiment of the present invention configuration module show is loaded into the shell binary tree signal that internal memory generates;
Fig. 5 is that the embodiment of the present invention is converted to network configuration protocol response message the structured flowchart of the device of order line.
Embodiment
For making object of the present invention, technical scheme and advantage clearer,, scheme of the present invention is described in further detail referring to accompanying drawing also in conjunction with the embodiments.
Referring to Fig. 1, for the embodiment of the present invention is converted to network configuration protocol response message the method flow diagram of order line.This method is mainly used in, in NETCONF agency, comprising the steps:
Step 101, in advance according to modeling file, by the capable shell defined file that is converted to XML form of the shell-command of the network equipment.
In this step, the shell-command of the network equipment is defined by configuration module, generate the shell defined file of XML form.The relevant shell-command of a plurality of configuration modules can be defined in same shell defined file, if Shell defined file is larger, also can generate a plurality of shell defined files by configuration module.Modeling (Schema) file, is for describing the file of XML data constraint rule, and the content layer of NETCONF agreement and operation layer are carried out to abstract, modeling; When system starts, be loaded in NETCONF agency and NETCONF server memory.Due to the generation of modeling file with obtain, belong to prior art, repeat no more herein.
In Shell defined file, having two category nodes is command keyword (cmd-key) node and command parameter (cmd-param) node, cmd-key node represents that this is a keyword in order, and cmd-param node represents a parameter in order.Cmd-key node and cmd-param node mainly comprise name attribute, help attribute, the name of node under described name attribute representation, this node of name attribute representation of command keyword node the name of the capable component part of corresponding shell-command, the name attribute of command parameter node is consistent with the node name in Schema file; The help information of the affiliated node that help attribute representation can view by the command format of setting.In addition, can also be as required node definition xpath path attribute, filter path attribute and the type type attribute of shell defined file; Xpath attribute and filter attribute all represent path, consistent with the path of affiliated node in modeling file, the path of the command parameter node of xpath attribute representation configuration order in modeling file, the storing path of the relevant information that filter attribute representation obtains configuration information order in modeling file; The type of type attribute representation parameter.Can also define target-mode attribute, generally appear in leaf node, represent that this order is a configuration mode switching command, carries out the target configuration pattern being switched to after this order.
In the present embodiment, by the capable method that is converted to the shell defined file of XML form of the shell-command of the network equipment, specifically comprise:
A1. by function, be divided into configuration module by the shell-command of the network equipment is capable.
A2. be defined in same shell defined file all shell-commands that belong to same configuration module are capable.
A3. in described shell defined file, when the capable composition node of shell-command has definition in Schema file, by this node definition, be the command parameter node of shell defined file, otherwise be defined as the command keyword node of shell defined file; Described command parameter node and command keyword node are in the hierarchical relationship of shell defined file, and the ordinal relation by it in shell-command is capable is determined.
In this step, capable for many shell-commands in same configuration module in first node identical, as shell-command " show run " and " show ospf ", only define a show node; Identical and its all ancestor node identical a plurality of nodes all for the brother of node in many shell-commands, in described shell defined file, described node is only defined to a node, for example Show interface carriage return, Show interface name, only need to define show node and interface node.
A4. specify name attribute and the help attribute of each node in described shell defined file.
According to above formula, the Shell defined file that the orders such as interface name, ip address ip subnetmask under the configuration module of module interfaces by name, mtu mtu, exit are generated is as follows:
Figure BDA00001287027100051
Figure BDA00001287027100061
The Shell defined file that show interface, show interface name under the configuration module of module show by name, show running-config order are generated is as follows:
Figure BDA00001287027100062
The shell-command of above-mentioned interfaces and two configuration modules of show is capable has generated respectively a shell defined file, and certain two configuration modules can become a shell defined file.
Step 102, when system starts, is loaded into described shell defined file in internal memory, to generate shell binary tree.
When system starts, Shell defined file is loaded into internal memory, generate Shell binary tree.During loading, different configuration modules, is loaded into different shell binary trees.The present embodiment provides following two kinds of implementations.
Described shell defined file is loaded into the scheme one that generates shell binary tree in internal memory, specific implementation step is as follows: by the naming of described shell binary tree, be the name property value of configuration module node in described shell defined file; First child node of configuration module node in described shell defined file is loaded as to the root node of described shell binary tree, all the other child nodes of configuration module node in described shell defined file are loaded as to the brotgher of node of its previous child node, and the father node pointer of the above-mentioned node loading in shell binary tree is set to sky; First child node of non-configuration module node in described shell defined file is loaded as to the left child node of node described in shell binary tree, all the other child nodes of non-configuration module node described in shell defined file are loaded as to the brotgher of node of its previous child node corresponding node in described shell binary tree, and the father node pointer of the above-mentioned node loading in shell binary tree is set to its father node in described shell defined file corresponding node in described shell binary tree.
Described shell defined file is loaded into the scheme two that generates shell binary tree in internal memory, specific implementation step is as follows: by the naming of described shell binary tree, be the name property value of configuration module node in described shell defined file; Configuration module node in described shell defined file is loaded as to the root node of described shell binary tree; By first child node of configuration module node in described shell defined file, be loaded as the left child node of root node in described shell binary tree, by all the other child nodes of configuration module node described in described shell defined file, be loaded as the brotgher of node of its previous child node corresponding node in described shell binary tree, and the father node pointer of the above-mentioned node loading in shell binary tree is set to sky; By first child node of non-configuration module node in described shell defined file, be loaded as the left child node of non-configuration module node described in described shell binary tree, by all the other child nodes of non-configuration module node described in described shell defined file, be loaded as the brotgher of node of its previous child node corresponding node in described shell binary tree, and the father node pointer of the above-mentioned node loading in shell binary tree is set to its father node in described shell defined file corresponding node in described shell binary tree.The Shell defined file that is shown as being configuration module interfaces is loaded into the shell binary tree that internal memory forms.Its loading procedure is as follows:
The name property value that is configuration module node in described shell defined file by the naming of the corresponding shell binary tree of configuration module interfaces is interfaces; Then interfaces is loaded as to the root node of described shell binary tree; The child node interface and the child node thereof that load interfaces node, because the father node of interface child node is root node interfaces, be set to sky by the father node pointer of interface child node; Load the child node name of interface child node;
In like manner load the next brother node i p of interface node, it in binary tree, is the right child node of interface node, the father node pointer of ip node is set to sky, load the child node address of ip node, load the child node ip of address child node, reload the child node subnetmask of ip child node; Here two ip child nodes have been there are, previous type is cmd-key, then the type of is cmd-param, in the same command, there will not be two types is all the child node of the same name of cmd-key, even if but the type of two child nodes of the same name is all cmd-param, also can be distinguished according to its xpath, because can not there are two child nodes of the same name in schema file under same path; In like manner load next brother node mtu and all child nodes thereof of ip child node; In like manner load the node exit of next brother again and all child nodes thereof of mtu child node; All node loadeds, finally form the binary tree of interfaces configuration module, see Fig. 3.
In like manner load the shell binary tree that show configuration module shell defined file generates, as shown in Figure 4.
Step 103, according to the information in shell binary tree in internal memory, by receive from NETCONF server obtain the corresponding response message of configuration information order with user, be converted to shell-command capable.
When user is when the configuration information of network equipment total interface is obtained in CLI terminal execution Shell order " show interface ", NETCONF agency is converted to show interface request command the get-config request message of NETCONF agreement according to the Shell binary tree and the modeling file that are loaded in Installed System Memory, and in session, sends to NETCONF server.NETCONF server receives after this get-config request message, collects the configuration information relevant to interfaces in running database, and is packaged as rpc-reply message and returns to NETCONF and act on behalf of, and this process is prior art, repeats no more herein.
As NETCONF agency, from NETCONF server, receive XML form obtain rpc-reply response message corresponding to the order " show interface " of configuration information with user, can find the request message that this message is corresponding according to the Message ID in message, obtain user's the configuration order of obtaining, thereby judgement needs this response message to be converted to Shell order line to facilitate user to check, according to the Shell binary tree in internal memory, the data in XML response message is converted to Shell order line.
According to the information in shell binary tree in internal memory, by what receive, from NETCONF server, obtain the corresponding response message of configuration information order with user, be converted to the detailed process that shell-command is capable as follows: C1. resolution response message, removes XML header and obtains data division;
C2. the configuration module name represented according to top-level node, finds the shell binary tree that described configuration module is corresponding;
C3. shell binary tree described in inorder traversal, while traversing leaf node, from this leaf node, search successively its father node, and the father node of father node, until find ancestor node for empty, obtain a sequence node, described sequence node inverted order is arranged, if there is command parameter node in sequence node, by the value of this command parameter node in described response message, replace, thereby it is capable to obtain a shell-command;
C4. the leaf node from C3 starts, and continues to press shell binary tree described in the step inorder traversal of C3, until traveled through described shell binary tree;
If C5. also there is the brotgher of node of top-level node described in step C2, get the next brotgher of node, continue circulation execution step C2-C4, otherwise this flow process finishes.
Below in conjunction with the Shell binary tree of configuration module interfaces, concrete in explanation the data in the XML response message corresponding with shell-command " show interface " are converted to the process of Shell order line:
First resolve rpc-reply response message, remove header, obtain data division;
The configuration module name representing according to the top-level node interfaces of XML, finds the shell binary tree that described interfaces configuration module is corresponding;
Inorder traversal interfaces binary tree, obtain first node i nterface, for cmd-key node, but non-leaf node, continue again traversal, obtain name node, for cmd-param, it is leaf node, get successively name node, the father node interface of name node (frontly addresses, the father node pointer of interface node is empty), obtain a sequence node name interface, after inverted order, obtain interface name, because name node is cmd-param type, so replace by the value of node name in response message, obtain Shell order line: interface eth0.
From the target-mode attribute of name node, this order is a configuration mode switching command, need carry out pattern switching, so the order being parsed by interface node below will increase indentation, shows;
Continue this interfaces binary tree of inorder traversal, obtain successively ip, address, ip node, these three nodes are not leaf nodes, continue again traversal, obtain subnetmask node, it has been leaf node, so get subnetmask node, the father node ip of subnetmask node, the father node address of ip node, the father node ip of address node, the father node pointer of ip node is empty, finally obtain a sequence: subnetmask ip address ip, after inverted order, obtain ip address ip subnetmask, in this sequence, the node i p of cmd-param type is replaced with 192.168.1.1, node subnetmask replaces with 255.255.252.0, obtain Shell order: ip address 192.168.1.1255.255.252.0,
Continue traversal, in like manner can obtain Shell order: mtu 1500;
Continue traversal, in like manner can obtain Shell order: exit;
Because exit is a configuration mode switching command, so will reduce indentation demonstration to order below;
Now traversal of binary tree is complete, obtains following command sequence:
interface?eth0
ip?address?192.168.1.1255.255.252.0
mtu?1500
exit
Although traversal of binary tree is complete, also have the child node of <interfaces> node after XML, therefore again binary tree is traveled through; In like manner resolve XML message below, NETCONF agency finally parses corresponding Shell order behavior:
interface?eth0
ip?address?192.168.1.1255.255.252.0
mtu?1500
exit
interface?eth1
ip?address?128.255.41.209255.255.255.0
mtu?1500
exit
Referring to Fig. 5, be that the embodiment of the present invention is converted to network configuration protocol response message the structured flowchart of the device of order line, specifically comprise:
Shell defined file generation module, in advance according to modeling file, by the capable shell defined file that is converted to XML form of the shell-command of the network equipment;
Shell defined file load-on module, for when system starts, is loaded into described shell defined file in internal memory, to generate Shell binary tree; Also, for after changing at shell defined file, again shell defined file is loaded;
Shell order line modular converter, for after receiving the response message of NETCONF server, is converted to Shell order line according to Shell binary tree in internal memory by the data in response message.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (9)

1. network configuration protocol response message is converted to the method for order line, is applied in network configuration agency, it is characterized in that, comprising:
A. in advance according to modeling Schema file, by the capable shell defined file that is converted to XML form of the shell-command of the network equipment; Specifically comprise:
A1. by function, be divided into configuration module by the shell-command of the network equipment is capable;
A2. be defined in same shell defined file or in different shell defined file by all shell-commands that belong to same configuration module are capable;
A3. in described shell defined file, when the capable composition node of shell-command has definition in Schema file, by this node definition, be the command parameter node of shell defined file, otherwise be defined as the command keyword node of shell defined file; Described command parameter node and command keyword node are in the hierarchical relationship of shell defined file, and the ordinal relation by it in shell-command is capable is determined;
A4. specify name attribute and the help attribute of each node in described shell defined file;
B. when system starts, described shell defined file is loaded into and in internal memory, generates shell binary tree;
C. according to the information in shell binary tree in internal memory, by receive from NETCONF server obtain the corresponding response message of configuration information order with user, be converted to shell-command capable.
2. method according to claim 1, is characterized in that, described shell defined file comprises command keyword and command parameter two category nodes, and every category node comprises name name attribute, helps help attribute; The name of node under described name attribute representation, this node of name attribute representation of command keyword node the name of the capable component part of corresponding shell-command, the name attribute of command parameter node is consistent with the node name in Schema file; The help information of the affiliated node that help attribute representation can view by the command format of setting.
3. method according to claim 2, is characterized in that, every category node also comprises xpath path attribute, filter path attribute and type type attribute; Xpath attribute and filter attribute all represent path, consistent with the path of affiliated node in modeling file, the path of the command parameter node of xpath attribute representation configuration order in modeling file, the storing path of the relevant information that filter attribute representation obtains configuration information order in modeling file; The type of type attribute representation parameter.
4. method according to claim 1, it is characterized in that, in described steps A 3, in described shell defined file, in same configuration module, in capable for many shell-commands, first node is identical, or the brother of node is identical and its all ancestor node identical a plurality of nodes all, in described shell defined file, described node is only defined to a node.
5. method according to claim 2, is characterized in that, in described step B, described shell defined file is loaded into the method that generates shell binary tree in internal memory is, different configuration modules is loaded into different shell binary trees, specifically comprises:
B1. by the naming of described shell binary tree, be the name property value of configuration module node in described shell defined file;
B2. by first child node of configuration module node in described shell defined file, be loaded as the root node of described shell binary tree, all the other child nodes of configuration module node in described shell defined file are loaded as to the brotgher of node of its previous child node, and the father node pointer of the above-mentioned node loading in shell binary tree is set to sky;
B3. by first child node of non-configuration module node in described shell defined file, be loaded as the left child node of node described in shell binary tree, all the other child nodes of non-configuration module node described in shell defined file are loaded as to the brotgher of node of its previous child node corresponding node in described shell binary tree, and the father node pointer of the above-mentioned node loading in shell binary tree is set to its father node in described shell defined file corresponding node in described shell binary tree.
6. method according to claim 2, is characterized in that, in described step B, described shell defined file is loaded into the method that generates shell binary tree in internal memory is, different configuration modules is loaded into different shell binary trees, specifically comprises:
B1. by the naming of described shell binary tree, be the name property value of configuration module node in described shell defined file;
B2. the configuration module node in described shell defined file is loaded as to the root node of described shell binary tree;
B3. by first child node of configuration module node in described shell defined file, be loaded as the left child node of root node in described shell binary tree, by all the other child nodes of configuration module node described in described shell defined file, be loaded as the brotgher of node of its previous child node corresponding node in described shell binary tree, and the father node pointer of the above-mentioned node loading in shell binary tree is set to sky;
B4. by first child node of non-configuration module node in described shell defined file, be loaded as the left child node of non-configuration module node described in described shell binary tree, by all the other child nodes of non-configuration module node described in described shell defined file, be loaded as the brotgher of node of its previous child node corresponding node in described shell binary tree, and the father node pointer of the above-mentioned node loading in shell binary tree is set to its father node in described shell defined file corresponding node in described shell binary tree.
7. according to the method described in claim 5 or 6, it is characterized in that, in described step C, according to the information in shell binary tree in internal memory, by receive from NETCONF server obtain the corresponding response message of configuration information order with user, be converted to the method that shell-command is capable, comprising:
C1. resolution response message, removes XML header and obtains data division;
C2. the configuration module name represented according to top-level node, finds the shell binary tree that described configuration module is corresponding;
C3. shell binary tree described in inorder traversal, while traversing leaf node, from this leaf node, search successively its father node, and the father node of father node, until find ancestor node for empty, obtain a sequence node, described sequence node inverted order is arranged, if there is command parameter node in sequence node, by the value of this command parameter node in described response message, replace, thereby it is capable to obtain a shell-command;
C4. the leaf node from C3 starts, and continues to press shell binary tree described in the step inorder traversal of C3, until traveled through described shell binary tree;
If C5. also there is the brotgher of node of top-level node described in step C2, get the next brotgher of node, continue circulation execution step C2-C4, otherwise this flow process finishes.
8. network configuration protocol response message is converted to the device of order line, it is characterized in that, described device is for executing claims the method described in 1-7 any one, and described device comprises:
Shell defined file generation module, in advance according to modeling file, by the shell defined file of the capable XML of the being converted to form of the shell-command of the network equipment: for being divided into configuration module by function by the shell-command of the network equipment is capable; Be defined in same shell defined file or in different shell defined file by all shell-commands that belong to same configuration module are capable; In described shell defined file, when the capable composition node of shell-command has definition in Schema file, by this node definition, be the command parameter node of shell defined file, otherwise be defined as the command keyword node of shell defined file; Described command parameter node and command keyword node are in the hierarchical relationship of shell defined file, and the ordinal relation by it in shell-command is capable is determined; Specify name attribute and the help attribute of each node in described shell defined file;
Shell defined file load-on module, for when described device starts, is loaded into described shell defined file in internal memory, to generate shell binary tree;
The capable modular converter of shell-command, for receive from NETCONF server obtain the corresponding response message of configuration information order with user after, according to the binary tree of shell described in internal memory, the data in response message are converted to shell-command capable.
9. device according to claim 8, is characterized in that, described shell defined file load-on module, after changing at shell defined file, loads shell defined file again.
CN201210001172.1A 2012-01-04 2012-01-04 Method and device for converting network configuration protocol response message into command line Active CN102447585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210001172.1A CN102447585B (en) 2012-01-04 2012-01-04 Method and device for converting network configuration protocol response message into command line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210001172.1A CN102447585B (en) 2012-01-04 2012-01-04 Method and device for converting network configuration protocol response message into command line

Publications (2)

Publication Number Publication Date
CN102447585A CN102447585A (en) 2012-05-09
CN102447585B true CN102447585B (en) 2014-04-16

Family

ID=46009692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210001172.1A Active CN102447585B (en) 2012-01-04 2012-01-04 Method and device for converting network configuration protocol response message into command line

Country Status (1)

Country Link
CN (1) CN102447585B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833100B (en) * 2012-08-21 2015-03-25 大唐移动通信设备有限公司 Method and device for information interaction of network master and network elements
WO2015058331A1 (en) * 2013-10-21 2015-04-30 Hewlett-Packard Development Company, L.P. Extract data from xml stream
CN105099746A (en) * 2014-05-21 2015-11-25 中兴通讯股份有限公司 SHELL execution method and SHELL execution device
CN107241221B (en) * 2017-05-27 2019-07-16 烽火通信科技股份有限公司 Support the network management protocol data unified processing system and method for different network management protocols
US10462010B2 (en) * 2017-06-13 2019-10-29 Cisco Technology, Inc. Detecting and managing recurring patterns in device and service configuration data
CN110971438A (en) * 2018-09-30 2020-04-07 华为技术有限公司 Method and device for configuring data
CN110007923B (en) * 2019-03-28 2022-12-06 深圳市创联时代科技有限公司 Shell implementation method
CN110311826B (en) * 2019-08-08 2022-05-17 迈普通信技术股份有限公司 Network equipment configuration method and device
CN111030860B (en) * 2019-12-10 2022-08-30 上海宽带技术及应用工程研究中心 Network management device, method, terminal and medium based on OpenDayLight
CN113114479A (en) * 2020-01-10 2021-07-13 华为技术有限公司 Data acquisition method and device
CN113784237B (en) * 2020-06-09 2022-08-02 中国电信股份有限公司 Method, device, network equipment and computer medium for reporting collected data
CN112615727B (en) * 2020-11-16 2022-10-21 新华三技术有限公司 Method and device for acquiring default configuration of equipment
CN112910697B (en) * 2021-01-22 2022-05-27 新华三大数据技术有限公司 Fault processing method and device
CN113708955B (en) * 2021-07-29 2023-12-05 杭州迪普科技股份有限公司 Equipment configuration method, device and system
CN115392160B (en) * 2022-06-10 2024-04-09 无锡芯光互连技术研究院有限公司 Format conversion method for circuit diagram description file

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079737A (en) * 2007-06-08 2007-11-28 中兴通讯股份有限公司 An automatic structuring and parsing method and system of command line interface command
CN101924656A (en) * 2010-08-26 2010-12-22 北京天融信科技有限公司 Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100453824B1 (en) * 2002-12-11 2004-10-20 한국전자통신연구원 XML based network management system and method for configuration management of heterogeneous network devices
US7721304B2 (en) * 2004-06-08 2010-05-18 Cisco Technology, Inc. Method and apparatus providing programmable network intelligence

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079737A (en) * 2007-06-08 2007-11-28 中兴通讯股份有限公司 An automatic structuring and parsing method and system of command line interface command
CN101924656A (en) * 2010-08-26 2010-12-22 北京天融信科技有限公司 Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration

Also Published As

Publication number Publication date
CN102447585A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102447585B (en) Method and device for converting network configuration protocol response message into command line
CN109951315B (en) Method and system for mapping YANG model to internal model
KR101647980B1 (en) Method and system for intelligent routing of requests over EPP
JP4509916B2 (en) SNMP-based network management apparatus and method
CN101098248B (en) Method and system for implementing universal network management based on configuration describing document
US20030220986A1 (en) System and method for transforming configuration commands
EP2302864B1 (en) Method for processing tlv format of communication data
CN106559251A (en) A kind of Compilation Method and corresponding interface, component and system based on YANG models
CN103220167B (en) A kind of distributed monitoring system and date storage method thereof
JP2007524939A (en) Automatic update system and method using meta MIB
CN111552838A (en) Data processing method and device, computer equipment and storage medium
CN111555915A (en) Dynamic network element control system based on plug-in configuration
CN115623000B (en) Method and device for efficiently distributing data on digital networking
US8244844B2 (en) Tool for data generation for simple network management protocol (SNMP)
CN107025115B (en) Method for adapting to acquisition of multiple interfaces
CN101848110B (en) TR069 network management method and equipment
CN113381870A (en) Message processing method and device
KR20160103110A (en) Network element data access method and apparatus, and network management system
US9736044B2 (en) Adaptive centralized collection of performance management data using a metamodel
CN101572624B (en) Cross-platform cross-method SNMP extension MIB realization method
US20110282889A1 (en) Method and Device for Distributed Configuration of Telematics Services in Motor Vehicle Systems
CN100369443C (en) Method of following SNMP/CIM protocol intermediate piece projection
US8027362B2 (en) Methods and systems for pushing and pulling network data in user interface design
KR101482668B1 (en) System and method for generating database based on SCL
CN103139806A (en) Method for decoupling web master and base station configuration data and base station

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
CP02 Change in the address of a patent holder

Address after: No. 1, No. 288 building, 610041 floor, Maipu Sichuan province Chengdu Tianfu Avenue, 17 floor

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041, 17 floor, maple building, 1 building, 288 Tianfu street, Chengdu, Sichuan.

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder