WO2016041387A1 - Method and device used by network management system for debugging network element configuration - Google Patents

Method and device used by network management system for debugging network element configuration Download PDF

Info

Publication number
WO2016041387A1
WO2016041387A1 PCT/CN2015/080994 CN2015080994W WO2016041387A1 WO 2016041387 A1 WO2016041387 A1 WO 2016041387A1 CN 2015080994 W CN2015080994 W CN 2015080994W WO 2016041387 A1 WO2016041387 A1 WO 2016041387A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
module
configuration item
specified module
debugged
Prior art date
Application number
PCT/CN2015/080994
Other languages
French (fr)
Chinese (zh)
Inventor
李广焱
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016041387A1 publication Critical patent/WO2016041387A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method and device used by a network management system for debugging a network element configuration, the method comprising: obtaining difference information between a current configuration item and an old configuration item of a specified module in a network element to be debugged; testing a service function corresponding to the current configuration item of the specified module in the network element to be debugged; if the service function corresponding to the current configuration item of the specified module in the network element to be debugged is abnormal, then modifying, according to the difference information, the current configuration item of the specified module in the network element to be debugged; and testing the service function corresponding to the modified configuration item of the specified module in the network element to be debugged. The technical solution of the present invention easily lists differences between the current configuration item and the old configuration item according to the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged, enabling debugging personnel to focus on the differences only, thus greatly improving data configuration consistency between the network management system and the network element, and greatly saving resources thereof.

Description

一种网络管理系统调试网元配置的方法及装置Method and device for debugging network element configuration of network management system 技术领域Technical field
本文涉及网络管理系统调试网元配置技术领域,尤其涉及一种网络管理系统调试网元配置的方法及装置。This document relates to the technical field of network management system debugging network element configuration, and in particular, to a method and device for configuring a network management system debugging network element.
背景技术Background technique
在一个网管中,包含了许多系列的网元,并且不同网元版本之间,存在配置功能的能力差异。当网管要调试新版本或新系列的网元时,相关常用的调试方法为:根据支持的配置项逐一在网元上验证。In a network management system, there are many series of network elements, and there are differences in the ability to configure functions between different network element versions. When the network management system is to debug a new version or a new series of NEs, the common debugging method is to verify the NEs one by one according to the supported configuration items.
然而上述方法存在以下不足:首先,对调试人员要求比较高,调试人员必须对网管界面的配置项与网元的命令行界面(CLI)命令对应关系要熟悉;其次,调试人员需要花费大量的时间进行调试,且每次调试的时候,调试人员需要重复和枯燥的在网元上敲CLI命令来逐一比较,特别当模块比较大,如OSPF(Open Shortest Path First,开放式最短路径优先)路由协议等,又包含很多CLI命令分支,不可避免的存在调试人员验证马虎,进而造成失误。However, the above methods have the following disadvantages: First, the requirements for the debugger are relatively high, and the debugger must be familiar with the correspondence between the configuration items of the network management interface and the command line interface (CLI) commands of the network element. Second, the debugger needs to spend a lot of time. Debugging, and each time debugging, the debugger needs to repeatedly and boring the CLI command on the network element to compare one by one, especially when the module is relatively large, such as OSPF (Open Shortest Path First) routing protocol. Etc., and also contains a lot of CLI command branches, inevitably there are debugging personnel to verify the sloppy, and thus cause errors.
发明内容Summary of the invention
为了克服相关技术中存在的以上问题,本发明提供了一种网络管理系统调试网元配置的方法及装置,实现自动化的执行配置验证,使得网元调试更高效。In order to overcome the above problems in the related art, the present invention provides a method and a device for configuring a network management system to debug a network element, and implements automatic execution configuration verification, so that network element debugging is more efficient.
为了解决上述技术问题,本发明采用如下技术方案:In order to solve the above technical problem, the present invention adopts the following technical solutions:
一种网络管理系统调试网元配置的方法,所述方法包括:A method for configuring a network element to debug a network element, the method comprising:
获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;Obtaining the difference information between the current configuration item of the specified module in the NE to be debugged and the old configuration item;
验证所述待调试网元中指定模块的当前配置项所对应的业务功能;Verifying the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element;
若所述待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据所述差异信息对所述待调试网元中指定模块的当前配置项进行修改; 以及,If the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element is abnormal, modify the current configuration item of the specified module in the to-be-decoded network element according to the difference information; as well as,
验证所述待调试网元中指定模块修改后的配置项所对应的业务功能。Verify the service function corresponding to the configuration item modified by the specified module in the NE to be debugged.
可选地,所述获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息的步骤包括:Optionally, the step of obtaining the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged includes:
执行预先设置的自动化脚本;Execute pre-set automation scripts;
通过所述自动化脚本遍历所述待调试网元中指定模块的业务功能,生成所述待调试网元中指定模块的当前配置项;The current configuration item of the specified module in the to-be-decoded network element is generated by traversing the service function of the specified module in the network element to be debugged by the automatic script;
将得到的所述待调试网元中指定模块的当前配置项,与其他网元中与所述待调试网元中指定模块相同的模块的旧的配置项或与所述待调试网元中指定模块的旧的配置项进行比对,得到所述待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息。The current configuration item of the specified module in the to-be-decoded network element is the same as the old configuration item of the same module in the other network element that is the same as the specified module in the to-be-decoded network element, or is specified in the to-be-decoded network element. The old configuration items of the module are compared, and the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged is obtained.
可选地,所述执行预先设置的自动化脚本的步骤包括:Optionally, the step of executing the preset automatic script includes:
通过预设的协议连接到所述待调试网元;Connect to the network element to be debugged by using a preset protocol;
向所述待调试网元发送命令并解析命令回显。Send a command to the network element to be debugged and parse the command to display the command.
可选地,所述自动化脚本的信息包括:脚本的全局配置信息、指定模块的基本信息、指定模块的前置命令、指定模块的包含命令和指定模块的排除命令。Optionally, the information of the automation script includes: global configuration information of the script, basic information of the specified module, a pre-command of the specified module, an include command of the specified module, and an exclusion command of the specified module.
可选地,所述指定模块的基本信息包括接收差异信息的地址信息。Optionally, the basic information of the specifying module includes address information that receives the difference information.
可选地,该方法还包括:Optionally, the method further includes:
执行所述执行预先设置的自动化脚本的步骤时,自动记录所述待测试网元中指定模块的当前配置项信息。When the step of executing the preset automatic script is performed, the current configuration item information of the specified module in the network element to be tested is automatically recorded.
一种网络管理系统调试网元配置的装置,包括获取模块、第一验证模块、修改模块和第二验证模块,其中:A device for configuring a network element for debugging a network element, comprising: an obtaining module, a first verifying module, a modifying module, and a second verifying module, wherein:
所述获取模块设置成:获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;The obtaining module is configured to: obtain difference information between a current configuration item of the specified module in the network element to be debugged and the old configuration item;
所述第一验证模块设置成:验证所述待调试网元中指定模块的当前配置 项所对应的业务功能;The first verification module is configured to: verify the current configuration of the specified module in the to-be-decoded network element The business function corresponding to the item;
所述修改模块设置成:若所述第一验证模块确定所述待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据所述差异信息对所述待调试网元中指定模块的当前配置项进行修改;The modifying module is configured to: if the first verification module determines that the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element is abnormal, the difference information is used in the to-be-decoded network element. The current configuration item of the specified module is modified.
所述第二验证模块设置成:验证所述待调试网元中指定模块修改后的配置项所对应的业务功能。The second verification module is configured to: verify the service function corresponding to the modified configuration item of the specified module in the to-be-decoded network element.
可选地,所述获取模块包括执行单元、遍历单元和比对单元,其中:Optionally, the obtaining module includes an execution unit, an traversal unit, and a comparison unit, where:
所述执行单元设置成:执行预先设置的自动化脚本;The execution unit is configured to: execute a preset automatic script;
所述遍历单元设置成:通过所述自动化脚本遍历所述待调试网元中指定模块的业务功能,生成所述待调试网元中指定模块的当前配置项;The traversal unit is configured to: traverse the service function of the specified module in the network element to be debugged by the automatic script, and generate a current configuration item of the specified module in the to-be-decoded network element;
所述比对单元设置成:将得到的所述待调试网元中指定模块的当前配置项,与其他网元中与所述待调试网元中指定模块相同的模块的旧的配置项或与所述待调试网元中指定模块的旧的配置项进行比对,得到所述待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息。The aligning unit is configured to: obtain the current configuration item of the specified module in the to-be-decoded network element, and the old configuration item of the module in the other network element that is the same as the specified module in the to-be-decoded network element. The old configuration items of the specified module in the network element to be debugged are compared, and the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged is obtained.
可选地,所述执行单元包括连接子单元和CLI命令执行单元,其中:Optionally, the execution unit includes a connection subunit and a CLI command execution unit, where:
所述连接子单元设置成:通过预设的协议连接到所述待调试网元;The connection subunit is configured to: connect to the network element to be debugged by using a preset protocol;
所述CLI命令执行单元设置成:向所述待调试网元发送命令并解析命令回显。The CLI command execution unit is configured to: send a command to the network element to be debugged and parse the command echo.
可选地,所述自动化脚本信息包括:脚本的全局配置信息、指定模块的基本信息、指定模块的前置命令、指定模块的包含命令和指定模块的排除命令。Optionally, the automated script information includes: global configuration information of the script, basic information of the specified module, a pre-command of the specified module, an include command of the specified module, and an exclusion command of the specified module.
可选地,所述指定模块的基本信息包括:接收差异信息的地址信息。Optionally, the basic information of the specified module includes: address information that receives the difference information.
可选地,所述执行单元还设置成:执行预先设置的自动化脚本时,自动记录所述待测试网元中指定模块的当前配置项信息。Optionally, the executing unit is further configured to automatically record current configuration item information of the specified module in the network element to be tested when the preset automatic script is executed.
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的网络管理系统调试网元配置的方法。 A computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of configuring the network element configuration of any of the network management systems described above.
一种载有所述计算机程序的载体。A carrier carrying the computer program.
本发明技术方案的有益效果:根据待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息,很方便的罗列出了当前配置项与旧的配置项之间的差异项,使得调试人员可只关注差异项,而不需关注全部配置项对应的CLI命令,从而节省了大量的CLI命令与网管界面功能对比工作,同时由于不需调试人员枯燥重复的敲CLI命令来逐一比较,又增加了验证的可靠性,实现自动化的执行配置验证,使得网元调试更高效。The beneficial effects of the technical solution of the present invention are: according to the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged, it is convenient to list the difference between the current configuration item and the old configuration item. This allows the debugger to focus on the difference items without paying attention to the CLI commands corresponding to all the configuration items, thus saving a lot of CLI commands and network management interface functions, and at the same time, because the debugging staff does not need to quit the repeated CLI commands. One by one comparison, the reliability of the verification is increased, and the automatic execution configuration verification is realized, which makes the network element debugging more efficient.
附图概述BRIEF abstract
图1为本发明实施例的网络管理系统调试网元配置的方法的流程图;1 is a flowchart of a method for configuring a network element in a network management system according to an embodiment of the present invention;
图2为本发明实施例的获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息的流程图;2 is a flowchart of obtaining difference information between a current configuration item and an old configuration item of a specified module in a network element to be debugged according to an embodiment of the present invention;
图3为本发明实施例的执行预先设置的自动化脚本的流程图;以及3 is a flowchart of executing a preset automatic script according to an embodiment of the present invention;
图4为本发明实施例的网络管理系统调试网元配置的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for configuring a network element in a network management system according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
实施例一Embodiment 1
在本实施例中,网络管理系统调试网元配置的方法包括:获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;验证待调试网元中指定模块的当前配置项所对应的业务功能;若待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据该差异信息对待调试网元中指定 模块的当前配置项进行修改;以及验证待调试网元中指定模块修改后的配置项所对应的业务功能。当验证待调试网元中指定模块修改后的配置项所对应的业务功能不正常时,则继续执行所述根据该差异信息对待调试网元中指定模块的当前配置项进行修改的步骤,直到待调试网元中指定模块修改后的配置项所对应的业务功能正常为止。In this embodiment, the method for configuring the network element in the network management system includes: obtaining the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged; and verifying the current status of the specified module in the network element to be debugged. The service function corresponding to the configuration item; if the service function corresponding to the current configuration item of the specified module in the NE to be debugged is abnormal, the specified information is to be specified in the debugging NE. The current configuration item of the module is modified; and the service function corresponding to the configuration item modified by the specified module in the NE to be debugged is verified. If the service function corresponding to the configuration item modified by the specified module in the to-be-decoded network element is not normal, the process of modifying the current configuration item of the specified module in the network element to be debugged according to the difference information is performed, until the The service function corresponding to the configuration item modified by the specified module in the debugging NE is normal.
如图1所示,为本发明实施例的网络管理系统调试网元配置的方法的流程图,该方法包括如下步骤:As shown in FIG. 1 , it is a flowchart of a method for configuring a network management system to debug a network element according to an embodiment of the present invention, where the method includes the following steps:
步骤101,获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;Step 101: Obtain difference information between the current configuration item of the specified module in the network element to be debugged and the old configuration item.
步骤102,验证待调试网元中指定模块的当前配置项所对应的业务功能;Step 102: Verify the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element.
具体地,该业务功能可为命令树,当然可以理解的是,在本发明的实施例中,并不限制该业务功能的具体范围。Specifically, the service function may be a command tree. It is to be understood that, in the embodiment of the present invention, the specific scope of the service function is not limited.
步骤103,若待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据该差异信息对待调试网元中指定模块的当前配置项进行修改;Step 103: If the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element is abnormal, modify the current configuration item of the specified module in the debugging network element according to the difference information.
步骤104,验证待调试网元中指定模块修改后的配置项所对应的业务功能。Step 104: Verify the service function corresponding to the configuration item modified by the specified module in the NE to be debugged.
在本发明的实施例中,根据待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息,很方便的罗列出了当前配置项与旧的配置项之间的差异项,使得调试人员可只关注差异项,而不需关注全部配置项对应的CLI命令,从而节省了大量的CLI命令与网管界面功能对比工作,同时由于不需调试人员枯燥重复的敲CLI命令来逐一比较,又增加了验证的可靠性,实现自动化的执行配置验证,使得网元调试更高效。In the embodiment of the present invention, according to the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged, it is convenient to list the difference between the current configuration item and the old configuration item. This allows the debugger to focus on the difference items without paying attention to the CLI commands corresponding to all the configuration items, thus saving a lot of CLI commands and network management interface functions, and at the same time, because the debugging staff does not need to quit the repeated CLI commands. One by one comparison, the reliability of the verification is increased, and the automatic execution configuration verification is realized, which makes the network element debugging more efficient.
在本实施例中,该获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息的实现,具体参见图2,包括:In this embodiment, the implementation of the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged is specifically referred to FIG. 2, and includes:
步骤201,执行预先设置的自动化脚本; Step 201, executing a preset automatic script;
具体地,在执行预先设置的自动化脚本时,自动记录待测试网元中指定模块的当前配置项信息。Specifically, when the preset automatic script is executed, the current configuration item information of the specified module in the network element to be tested is automatically recorded.
其中,该自动化脚本的信息包括:脚本的全局配置信息、指定模块的基本信息、指定模块的前置命令、指定模块的包含命令和指定模块的排除命令。 The information of the automation script includes: global configuration information of the script, basic information of the specified module, a pre-command of the specified module, an included command of the specified module, and an exclusion command of the specified module.
下面,具体地介绍自动化脚本的信息,包括如下:Below, the information about the automation script is specifically introduced, including the following:
脚本的全局配置信息,包括登录网元的用户名/密码,CLI帮助命令结束符,以及脚本中需要全局替换的变量等信息;The global configuration information of the script, including the username/password of the login NE, the CLI help command terminator, and the variables in the script that need to be globally replaced.
配置模块的基本信息,包括模块名称和接收差异信息的地址信息(例如模块负责人邮箱)等信息。当模块存在差异项后,则将差异信息发送到相关模块负责人邮箱中;Configure basic information about the module, including the module name and address information (for example, the module owner's mailbox) that receives the difference information. After the module has a difference item, the difference information is sent to the mailbox of the relevant module owner;
配置模块的前置命令,列出网元相应模块的前置执行的命令列表;Configure the pre-command of the module to list the list of pre-executed commands of the corresponding module of the NE.
配置模块的包含命令,列出在该模块下,仅执行的命令列表;非列表中的命令,不会被遍历执行;The include command of the configuration module lists the list of commands that are executed only under the module; the commands in the non-list are not traversed;
配置模块的排除命令,列出在该模块下,不被执行的命令列表或者需要被替换的命令。The configuration module's exclude command lists the commands that are not executed under this module or the commands that need to be replaced.
步骤202,通过该自动化脚本遍历待调试网元中指定模块的业务功能,生成待调试网元中指定模块的当前配置项;In step 202, the service function of the specified module in the network element to be debugged is traversed by the automatic script, and the current configuration item of the specified module in the network element to be debugged is generated.
步骤203,将得到的待调试网元中指定模块的当前配置项,与其他网元中与所指定的模块相同模块的旧的配置项或与待调试网元中指定模块旧的配置项进行比对,得到待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息。In step 203, the current configuration item of the specified module in the obtained NE to be debugged is compared with the old configuration item of the same module in the other network element or the old configuration item of the specified module in the network element to be debugged. The information about the difference between the current configuration item and the old configuration item of the specified module in the NE to be debugged is obtained.
可选地,该执行预先设置的自动化脚本的实现,具体参见图3,包括:Optionally, the implementation of the pre-set automatic script is performed. Referring specifically to FIG. 3, the method includes:
步骤301,通过预设的协议连接到网元;Step 301: Connect to the network element by using a preset protocol.
具体地,该预设的协议可是远程登录(telnet)协议或安全外壳(ssh)协议。Specifically, the preset protocol may be a telnet protocol or a secure shell (ssh) protocol.
步骤302,向网元发送命令并解析命令回显。具体地,该执行预先设置的自动化脚本的实现,可通过调用CLI命令将指定模块下的功能遍历出来。下面进一步地解释“该执行预先设置的自动化脚本的实现”:通过telnet协议或ssh协议连接到网元,根据自动化脚本指定的配置,从网元上结合相应算法,将指定模块下的功能遍历出来。形式如下例所示,假设配置仅有一条CLI命令,并且CLI命令格式为:Cmd1<Param1|Cmd2<Param2>>,那么遍历的过程为:Step 302: Send a command to the network element and parse the command echo. Specifically, the implementation of the pre-set automation script can traverse the function under the specified module by calling a CLI command. The following is a further explanation of "implementation of the implementation of the pre-set automation script": connected to the network element through the telnet protocol or the ssh protocol, according to the configuration specified by the automation script, the corresponding algorithm is combined from the network element, and the function under the specified module is traversed. . The format is as shown in the following example. Suppose the configuration has only one CLI command, and the CLI command format is: Cmd1<Param1|Cmd2<Param2>>, then the traversal process is:
ZXR10# ZXR10#
ZXR10#Cmd1?ZXR10#Cmd1?
Param1    description**range:<1-32>Param1 description**range:<1-32>
Cmd2Cmd2
ZXR10#Cmd1 Cmd2?ZXR10#Cmd1 Cmd2?
Param2    description**range:<1-16>Param2 description**range:<1-16>
ZXR10#Cmd1 Cmd2 16?ZXR10#Cmd1 Cmd2 16?
<cr><cr>
ZXR10#Cmd1 32?ZXR10#Cmd1 32?
<cr><cr>
结束End
其中:among them:
-CLI命令结束符:本实施例中用<cr>代替;-CLI command terminator: in this embodiment, <cr> is used instead;
-CLI帮助命令符:本实施例中用字符“?”代替。-CLI help command character: In this embodiment, the character "?" is used instead.
本发明实施例公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的网络管理系统调试网元配置的方法。The embodiment of the invention discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to execute the method for configuring the network element configuration of any of the above network management systems.
本发明实施例公开了一种载有所述计算机程序的载体。The embodiment of the invention discloses a carrier carrying the computer program.
实施例二Embodiment 2
对应于上述实施例一中的网络管理系统调试网元配置的方法,本发明还提供了一种网络管理系统调试网元配置的装置,如图4所示,该装置40包括:Corresponding to the method for configuring the network element of the network management system in the above-mentioned first embodiment, the present invention further provides a device for configuring the network element of the network management system. As shown in FIG. 4, the device 40 includes:
获取模块41,设置成:获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;The obtaining module 41 is configured to: obtain difference information between a current configuration item of the specified module in the network element to be debugged and the old configuration item;
第一验证模块42,设置成:验证待调试网元中指定模块的当前配置项所对应的业务功能;The first verification module 42 is configured to: verify the service function corresponding to the current configuration item of the specified module in the network element to be debugged;
修改模块43,若待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据该差异信息对待调试网元中指定模块的当前配置项进行修改;The modifying module 43 is configured to modify the current configuration item of the specified module in the debugging network element according to the difference information, if the service function corresponding to the current configuration item of the specified module in the network element to be debugged is abnormal.
第二验证模块44,验证待调试网元中指定模块修改后的配置项所对应的业务功能。当验证待调试网元中指定模块修改后的配置项所对应的业务功能 不正常时,则通知所述修改模块43执行所述根据该差异信息对待调试网元中指定模块的当前配置项进行修改的步骤,直到待调试网元中指定模块修改后的配置项所对应的业务功能正常为止。The second verification module 44 is configured to verify the service function corresponding to the configuration item modified by the specified module in the to-be-decoded network element. Verify the service function corresponding to the configuration item modified by the specified module in the NE to be debugged. If the configuration is not normal, the modification module 43 is configured to perform the step of modifying the current configuration item of the specified module in the network element to be debugged according to the difference information, until the configuration item modified by the specified module in the to-be-decoded network element corresponds to The business function is normal.
具体地,该获取模块41包括:Specifically, the obtaining module 41 includes:
执行单元411,设置成:执行预先设置的自动化脚本;The executing unit 411 is configured to: execute a preset automatic script;
具体地,执行单元411执行命令时,自动记录待测试网元中指定模块的当前配置项信息。Specifically, when the execution unit 411 executes the command, the current configuration item information of the specified module in the network element to be tested is automatically recorded.
其中,该自动化脚本的信息包括:脚本的全局配置信息、指定模块的基本信息、指定模块的前置命令、指定模块的包含命令和指定模块的排除命令。The information of the automation script includes: global configuration information of the script, basic information of the specified module, a pre-command of the specified module, an included command of the specified module, and an exclusion command of the specified module.
具体地,该指定模块的基本信息包括接收差异信息的地址信息。Specifically, the basic information of the designated module includes address information for receiving the difference information.
可选地,该执行单元411包括:Optionally, the executing unit 411 includes:
连接子单元4111,设置成:通过预设的协议连接到网元;The connection subunit 4111 is configured to: connect to the network element by using a preset protocol;
CLI命令执行单元4112,设置成:向网元发送命令并解析命令回显。遍历单元412,设置成:通过自动化脚本遍历待调试网元中指定模块的业务功能,生成待调试网元中指定模块的当前配置项;The CLI command execution unit 4112 is configured to: send a command to the network element and parse the command echo. The traversing unit 412 is configured to: traverse the service function of the specified module in the network element to be debugged by the automatic script, and generate the current configuration item of the specified module in the network element to be debugged;
比对单元413,设置成:将得到的待调试网元中指定模块的当前配置项,与其他网元中与所指定的模块相同模块的旧的配置项或与待调试网元中指定模块旧的配置项进行比对,得到待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息。The comparison unit 413 is configured to: set the current configuration item of the specified module in the obtained network element to be debugged, and the old configuration item of the same module as the specified module in the other network element or the designated module in the network element to be debugged The configuration items are compared, and the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged is obtained.
在本发明的实施例中,根据待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息,很方便的罗列出了当前配置项与旧的配置项之间的差异项,使得调试人员可只关注差异项,而不需关注全部配置项对应的CLI命令,从而节省了大量的CLI命令与网管界面功能对比工作,同时由于不需调试人员枯燥重复的敲CLI命令来逐一比较,又增加了验证的可靠性,实现自动化的执行配置验证,使得网元调试更高效。In the embodiment of the present invention, according to the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged, it is convenient to list the difference between the current configuration item and the old configuration item. This allows the debugger to focus on the difference items without paying attention to the CLI commands corresponding to all the configuration items, thus saving a lot of CLI commands and network management interface functions, and at the same time, because the debugging staff does not need to quit the repeated CLI commands. One by one comparison, the reliability of the verification is increased, and the automatic execution configuration verification is realized, which makes the network element debugging more efficient.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should also be considered as the scope of protection of the present invention.
工业实用性Industrial applicability
本发明技术方案根据待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息,很方便的罗列出了当前配置项与旧的配置项之间的差异项,使得调试人员可只关注差异项,而不需关注全部配置项对应的CLI命令,从而节省了大量的CLI命令与网管界面功能对比工作,同时由于不需调试人员枯燥重复的敲CLI命令来逐一比较,又增加了验证的可靠性,实现自动化的执行配置验证,使得网元调试更高效。因此本发明具有很强的工业实用性。 The technical solution of the present invention conveniently lists the difference between the current configuration item and the old configuration item according to the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged, so that the debugging is performed. The personnel can only focus on the difference items, and do not need to pay attention to the CLI commands corresponding to all the configuration items, thereby saving a lot of CLI commands and network management interface function comparison work, and at the same time, because the debugging personnel do not need to repeatedly and repeatedly knock the CLI commands to compare one by one, The reliability of the verification is increased, and the automatic execution configuration verification is realized, so that the network element debugging is more efficient. Therefore, the present invention has strong industrial applicability.

Claims (14)

  1. 一种网络管理系统调试网元配置的方法,所述方法包括:A method for configuring a network element to debug a network element, the method comprising:
    获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;Obtaining the difference information between the current configuration item of the specified module in the NE to be debugged and the old configuration item;
    验证所述待调试网元中指定模块的当前配置项所对应的业务功能;Verifying the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element;
    若所述待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据所述差异信息对所述待调试网元中指定模块的当前配置项进行修改;以及,If the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element is abnormal, modify the current configuration item of the specified module in the to-be-decoded network element according to the difference information; and
    验证所述待调试网元中指定模块修改后的配置项所对应的业务功能。Verify the service function corresponding to the configuration item modified by the specified module in the NE to be debugged.
  2. 根据权利要求1所述的网络管理系统调试网元配置的方法,其中,所述获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息的步骤包括:The method for configuring the network element of the network management system according to claim 1, wherein the step of obtaining the difference information between the current configuration item of the specified module and the old configuration item in the network element to be debugged comprises:
    执行预先设置的自动化脚本;Execute pre-set automation scripts;
    通过所述自动化脚本遍历所述待调试网元中指定模块的业务功能,生成所述待调试网元中指定模块的当前配置项;The current configuration item of the specified module in the to-be-decoded network element is generated by traversing the service function of the specified module in the network element to be debugged by the automatic script;
    将得到的所述待调试网元中指定模块的当前配置项,与其他网元中与所述待调试网元中指定模块相同的模块的旧的配置项或与所述待调试网元中指定模块的旧的配置项进行比对,得到所述待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息。The current configuration item of the specified module in the to-be-decoded network element is the same as the old configuration item of the same module in the other network element that is the same as the specified module in the to-be-decoded network element, or is specified in the to-be-decoded network element. The old configuration items of the module are compared, and the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged is obtained.
  3. 根据权利要求2所述的网络管理系统调试网元配置的方法,其中,所述执行预先设置的自动化脚本的步骤包括:The method for configuring a network element for network management system debugging according to claim 2, wherein the step of executing a preset automatic script comprises:
    通过预设的协议连接到所述待调试网元;Connect to the network element to be debugged by using a preset protocol;
    向所述待调试网元发送命令并解析命令回显。Send a command to the network element to be debugged and parse the command to display the command.
  4. 根据权利要求2所述的网络管理系统调试网元配置的方法,其中,所述自动化脚本的信息包括:脚本的全局配置信息、指定模块的基本信息、指定模块的前置命令、指定模块的包含命令和指定模块的排除命令。The method for configuring a network element in a network management system according to claim 2, wherein the information of the automation script includes: global configuration information of a script, basic information of a specified module, a pre-command of a specified module, and inclusion of a specified module. Command and exclude commands for the specified module.
  5. 根据权利要求4所述的网络管理系统调试网元配置的方法,其中,所述指定模块的基本信息包括接收差异信息的地址信息。 The method for configuring a network element of a network management system according to claim 4, wherein the basic information of the specifying module comprises address information for receiving the difference information.
  6. 根据权利要求2~5中任一项所述的网络管理系统调试网元配置的方法,该方法还包括:The method for configuring a network element of a network management system according to any one of claims 2 to 5, further comprising:
    执行所述执行预先设置的自动化脚本的步骤时,自动记录所述待测试网元中指定模块的当前配置项信息。When the step of executing the preset automatic script is performed, the current configuration item information of the specified module in the network element to be tested is automatically recorded.
  7. 一种网络管理系统调试网元配置的装置,包括获取模块、第一验证模块、修改模块和第二验证模块,其中:A device for configuring a network element for debugging a network element, comprising: an obtaining module, a first verifying module, a modifying module, and a second verifying module, wherein:
    所述获取模块设置成:获取待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息;The obtaining module is configured to: obtain difference information between a current configuration item of the specified module in the network element to be debugged and the old configuration item;
    所述第一验证模块设置成:验证所述待调试网元中指定模块的当前配置项所对应的业务功能;The first verification module is configured to: verify a service function corresponding to a current configuration item of the specified module in the to-be-decoded network element;
    所述修改模块设置成:若所述第一验证模块确定所述待调试网元中指定模块的当前配置项所对应的业务功能不正常,则根据所述差异信息对所述待调试网元中指定模块的当前配置项进行修改;The modifying module is configured to: if the first verification module determines that the service function corresponding to the current configuration item of the specified module in the to-be-decoded network element is abnormal, the difference information is used in the to-be-decoded network element. The current configuration item of the specified module is modified.
    所述第二验证模块设置成:验证所述待调试网元中指定模块修改后的配置项所对应的业务功能。The second verification module is configured to: verify the service function corresponding to the modified configuration item of the specified module in the to-be-decoded network element.
  8. 根据权利要求7所述的网络管理系统调试网元配置的装置,其中,所述获取模块包括执行单元、遍历单元和比对单元,其中:The apparatus for configuring a network element for network management system debugging according to claim 7, wherein the obtaining module comprises an execution unit, an traversal unit and a comparison unit, wherein:
    所述执行单元设置成:执行预先设置的自动化脚本;The execution unit is configured to: execute a preset automatic script;
    所述遍历单元设置成:通过所述自动化脚本遍历所述待调试网元中指定模块的业务功能,生成所述待调试网元中指定模块的当前配置项;The traversal unit is configured to: traverse the service function of the specified module in the network element to be debugged by the automatic script, and generate a current configuration item of the specified module in the to-be-decoded network element;
    所述比对单元设置成:将得到的所述待调试网元中指定模块的当前配置项,与其他网元中与所述待调试网元中指定模块相同的模块的旧的配置项或与所述待调试网元中指定模块的旧的配置项进行比对,得到所述待调试网元中指定模块的当前配置项与旧的配置项之间的差异信息。The aligning unit is configured to: obtain the current configuration item of the specified module in the to-be-decoded network element, and the old configuration item of the module in the other network element that is the same as the specified module in the to-be-decoded network element. The old configuration items of the specified module in the network element to be debugged are compared, and the difference information between the current configuration item and the old configuration item of the specified module in the network element to be debugged is obtained.
  9. 根据权利要求8所述的网络管理系统调试网元配置的装置,其中,所述执行单元包括连接子单元和CLI命令执行单元,其中:The apparatus for configuring a network element of a network management system according to claim 8, wherein the execution unit comprises a connection subunit and a CLI command execution unit, wherein:
    所述连接子单元设置成:通过预设的协议连接到所述待调试网元;The connection subunit is configured to: connect to the network element to be debugged by using a preset protocol;
    所述CLI命令执行单元设置成:向所述待调试网元发送命令并解析命令回显。 The CLI command execution unit is configured to: send a command to the network element to be debugged and parse the command echo.
  10. 根据权利要求8所述的网络管理系统调试网元配置的装置,其中,所述自动化脚本信息包括:脚本的全局配置信息、指定模块的基本信息、指定模块的前置命令、指定模块的包含命令和指定模块的排除命令。The apparatus for configuring a network element of a network management system according to claim 8, wherein the automatic script information comprises: global configuration information of a script, basic information of a specified module, a pre-command of the specified module, and a command of the specified module And the exclusion command for the specified module.
  11. 根据权利要求10所述的网络管理系统调试网元配置的装置,其中,所述指定模块的基本信息包括:接收差异信息的地址信息。The apparatus for configuring a network element for debugging a network element according to claim 10, wherein the basic information of the specifying module comprises: address information for receiving the difference information.
  12. 根据权利要求8~11中任一项所述的网络管理系统调试网元配置的装置,其中,所述执行单元还设置成:执行预先设置的自动化脚本时,自动记录所述待测试网元中指定模块的当前配置项信息。The device for configuring a network element for debugging a network management system according to any one of claims 8 to 11, wherein the execution unit is further configured to automatically record the network element to be tested when executing a preset automatic script Specifies the current configuration item information of the module.
  13. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行如权利要求1-6中任一项所述的网络管理系统调试网元配置的方法。A computer program comprising program instructions which, when executed by a computer, cause the computer to perform a method of configuring a network element configuration of a network management system according to any of claims 1-6.
  14. 一种载有如权利要求13所述计算机程序的载体。 A carrier carrying the computer program of claim 13.
PCT/CN2015/080994 2014-09-19 2015-06-08 Method and device used by network management system for debugging network element configuration WO2016041387A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410483797.5 2014-09-19
CN201410483797.5A CN105429774A (en) 2014-09-19 2014-09-19 Method and device for network management system to debug network element configuration

Publications (1)

Publication Number Publication Date
WO2016041387A1 true WO2016041387A1 (en) 2016-03-24

Family

ID=55507726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080994 WO2016041387A1 (en) 2014-09-19 2015-06-08 Method and device used by network management system for debugging network element configuration

Country Status (2)

Country Link
CN (1) CN105429774A (en)
WO (1) WO2016041387A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515823A (en) * 2017-08-16 2017-12-26 郑州云海信息技术有限公司 A kind of method for generating configuration file
CN112152841B (en) * 2020-09-03 2023-06-20 锐捷网络股份有限公司 Verification method, verification device, switch, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009591A (en) * 2005-12-01 2007-08-01 阿尔卡特公司 Method and system for configuring network devices through an operations support system interface
CN101068158A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Network configuration management method and system
CN103617242A (en) * 2013-11-26 2014-03-05 曙光信息产业股份有限公司 Method for showing topology of distributed file system
CN103888297A (en) * 2014-03-21 2014-06-25 醴陵恒茂电子科技有限公司 Interchanger network management method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009591A (en) * 2005-12-01 2007-08-01 阿尔卡特公司 Method and system for configuring network devices through an operations support system interface
CN101068158A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Network configuration management method and system
CN103617242A (en) * 2013-11-26 2014-03-05 曙光信息产业股份有限公司 Method for showing topology of distributed file system
CN103888297A (en) * 2014-03-21 2014-06-25 醴陵恒茂电子科技有限公司 Interchanger network management method and system

Also Published As

Publication number Publication date
CN105429774A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US11307967B2 (en) Test orchestration platform
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
CN111190812B (en) Automatic test framework system based on embedded equipment
US8589881B2 (en) Web-based software debugging apparatus and method for remote debugging
CN103812726B (en) Automated testing method and device for data communication equipment
US9547579B1 (en) Method and apparatus for automatically detecting defects
WO2020087954A1 (en) Method, apparatus, device and system for grabbing trace of nvme hard disk
WO2018006702A1 (en) Abnormality processing method, apparatus and system in automation test
CN108139964B (en) Cloud service configuration method and device, storage medium and cloud service system
CN105608002A (en) Method for simultaneously capturing all node information of Rack whole cabinet
EP3101841B1 (en) Method, system and computer readable medium for network management automation
WO2017000916A1 (en) Pre-emphasis parameter configuration method and apparatus
WO2018000918A1 (en) Network-based set-top box testing method and system
WO2016041387A1 (en) Method and device used by network management system for debugging network element configuration
CN106776346A (en) The method of testing and device of CCMTS equipment
US9612935B2 (en) Enhanced resiliency testing by enabling state level control for request
WO2020087956A1 (en) Method, apparatus, device and system for capturing trace of nvme hard disc
WO2017016386A1 (en) Method and device for implementing radio remote unit fault analysis
WO2016165461A1 (en) Automated testing method and apparatus for network management system software of telecommunications network
CN113127009A (en) Automatic deployment method and device for big data management platform
WO2016201997A1 (en) Automatic testing method, device and system
CN104104546A (en) SNMP network management system based on scripts
WO2016202085A1 (en) Method and device for drawing planisphere of optical module, and virtual vector analyzer
CN106230658A (en) A kind of method and apparatus monitoring the network equipment
WO2021254243A1 (en) Code construction method and apparatus, device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15842682

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15842682

Country of ref document: EP

Kind code of ref document: A1