[go: up one dir, main page]

CN102148702B - A method of network management using network configuration protocol - Google Patents

A method of network management using network configuration protocol Download PDF

Info

Publication number
CN102148702B
CN102148702B CN 201110009402 CN201110009402A CN102148702B CN 102148702 B CN102148702 B CN 102148702B CN 201110009402 CN201110009402 CN 201110009402 CN 201110009402 A CN201110009402 A CN 201110009402A CN 102148702 B CN102148702 B CN 102148702B
Authority
CN
China
Prior art keywords
script
host
netconf
error
network
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.)
Expired - Fee Related
Application number
CN 201110009402
Other languages
Chinese (zh)
Other versions
CN102148702A (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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN 201110009402 priority Critical patent/CN102148702B/en
Publication of CN102148702A publication Critical patent/CN102148702A/en
Application granted granted Critical
Publication of CN102148702B publication Critical patent/CN102148702B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for managing network by utilizing a network configuration protocol (NETCONF). The method comprises the following steps that: a web master uses an NETCONF script to execute a script-exec operation, and sends a script name, a position, an execution type and incorrect options to a to-be-configured host; the host performs corresponding script execution operation according to the received NETCONF message and adds a result of executing the script in a NETCONF response message to return to the web master. The method for managing network by utilizing the network configuration protocol in the embodiment of the invention comprises: adding a script ability and the script-exec operation besides the NETCONF basic ability and operation, so that the network element device can obtain the script according to the operation content, then executes the content in the script on the device in batch; the efficiency of network management is improved since repeated interactions are unnecessary between the web master and the network element.

Description

A kind of method of using network configuration protocol to carry out network management
Technical field
The present invention relates to the communications field, particularly a kind of method of using network configuration protocol to carry out network management.
Background technology
Along with the expansion of network size, also more and more higher to the requirement of network management.Two importances of network management, configuration is provided and data acquisition, also faces the problem of improved efficiency.Present most widely used Simple Network Management Protocol (SNMP), configuration are provided and are adopted the mode of order line to issue, and the SNMP interface is adopted in data acquisition.Due to the deficiency of snmp protocol self, industry does not use snmp protocol to be configured granting basically, but directly logging device utility command row configures granting.Snmp protocol is used in data acquisition.
There are the following problems to adopt SNMP to carry out network management:
1, order line is man-machine interface, is not machine machine interface, and webmaster uses man-machine interface to issue configuration, has efficient and adaptive problem.
2, use snmp protocol to carry out data acquisition, because the snmp protocol operation can only be obtained data at every turn, although snmp protocol has also been supported (bulk) operation in batches, but still can not avoid the too much problem of interaction times, interaction times is too much, can take the network bandwidth, bring efficiency.
3, configuration is provided and the applicable different interface of data acquisition, and due to both data model disunities, it is larger that webmaster carries out adaptive workload.
Network configuration protocol (NETCONF) is webmaster agreement of future generation, and it proposes exactly in order to solve the problem of snmp protocol allocative abilities deficiency, and it can allow to define complicated data model, can satisfy the requirement that configuration is provided.
The existing NETCONF agreement of use is configured granting and there is following shortcoming in data acquisition:
1, when needs carry out batch configuration to network element, can only issue one by one configuration by the NETCONF interface now, between webmaster and network element, interaction times is many, inefficiency;
2, when needs carry out data acquisition to network element, also can only issue one by one request by the NETCONF interface at present, the occasion of having relatively high expectations for timeliness like this, the data that collect often have time delay, can not satisfy the requirement of network management.
Summary of the invention
The embodiment of the present invention provides a kind of method of using network configuration protocol to carry out network management, and described method comprises:
Webmaster uses the NETCONF script to carry out the script-exec operation, script name, position, execution type and wrong option are issued to main frame to be configured, and the content of script is command line mode, SNMP mode or expandable mark language XML schema mode;
Main frame receives the NETCONF message, identify is that script is carried out the script-exec operation, take out script name, script position, execution type and wrong option from described message, if the address of script position is uniform resource position mark URL, be directly connected to the address Download Script of URL appointment, if the address of script position is on described main frame, the assigned address of going on described main frame gets script;
Main frame is according to the content of script command execution script one by one, and carries out mistake according to wrong option and process;
Main frame adds the result of carrying out script in the NETCONF back message using to and returns to webmaster.
The use network configuration protocol that the embodiment of the present invention provides carries out the method for network management, by newly increase script ability and script-exec operation outside NETCONF basic capacity and operation, thereby make network element device according to the content obtaining script of operation, then carry out in bulk the content in script on equipment.It is mutual that the use network configuration protocol that the embodiment of the present invention provides carries out not needing to carry out repeatedly between webmaster and network element in the method for network management, thereby improved the efficient of network management.
Description of drawings
A kind of flow chart that uses network configuration protocol to be configured the method for granting that Fig. 1 provides for the embodiment of the present invention one.
A kind of flow chart that uses network configuration protocol to carry out the method for data acquisition that Fig. 2 provides for the embodiment of the present invention two.
The another kind that Fig. 3 provides for the embodiment of the present invention three uses network configuration protocol to carry out the flow chart of the method for data acquisition.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention is clearer, referring to accompanying drawing, the present invention is described in further detail.
Referring to Fig. 1, the embodiment of the present invention one provides a kind of method of using network configuration protocol to be configured granting, comprising:
101: webmaster uses the NETCONF script to carry out the script-exec operation, script name, script position, execution type and wrong option are issued to main frame to be configured, and the content of script is command line mode, SNMP mode or expandable mark language XML schema mode;
Wherein the script ability of script and NETCONF script-exec are operating as additional capabilities and the operation of NETCONF agreement provided by the invention, and schema is a kind of description grammer of XML, can carry out by schema the modeling of data model.
102: main frame receives the NETCONF message, identify is to carry out the script-exec operation by script, take out script name, script position, execution type and wrong option from described message, if the address of script position is uniform resource position mark URL (Uniform Resource Locator), be directly connected to the address Download Script of URL appointment, if the address of script position is on described main frame, the assigned address of going on described main frame obtains script;
103: main frame is carried out script one by one according to the content of script, if make mistakes in the process of execution script, processes according to wrong option;
Wrong option is followed the standard option of NETCONF agreement, comprises that running into mistake namely stops Stop-on-error, runs into mistake and do not stop continue carrying out Continue-on-error and run into mistake and carry out rollback Rollback-on-error and process.
104: main frame returns to webmaster with carrying out script whether successful result being added in the NETCONF back message using.
Referring to Fig. 2, the embodiment of the present invention two provides a kind of method of using network configuration protocol to carry out data acquisition, comprising:
201: Network Management Equipment uses the NETCONF script to carry out the script-exec operation, script name, script position, execution type and wrong option are issued to main frame to be configured, and the content of script is command line mode, SNMP mode or expandable mark language XML schema mode;
Wherein the script ability of script and NETCONF script-exec are operating as additional capabilities and the operation of NETCONF agreement provided by the invention, and schema is a kind of description grammer of XML, can carry out by schema the modeling of data model.
202: main frame receives the NETCONF message, identify is to carry out the script-exec operation by script, take out script name, script position, execution type and wrong option from described message, if the address of script position is uniform resource position mark URL, be directly connected to the address Download Script of URL appointment, if the address of script position is on described main frame, the assigned address of going on described main frame gets script;
203: main frame is carried out one by one script according to the content of script and is carried out data acquisition, and the data that collect are written in file, makes mistakes if carry out in the process that script carries out data acquisition, processes according to wrong option;
For example, make mistakes if carry out in the process that script carries out data acquisition, the command execution next command that can adopt the continue-on-error mode to skip to make mistakes.The data of described collection comprise service data and the configuration data of main frame.
204: main frame adds the title of described file and store path in the NETCONF back message using to and returns to Network Management Equipment;
205: Network Management Equipment obtains title and the store path of described file according to described back message using, and the notice main frame uploads to Network Management Equipment with the mode that this document passes through FTP (File Transfer Protocol, file transfer protocol (FTP)).
Referring to Fig. 3, the embodiment of the present invention three further provides a kind of method of using network configuration protocol to carry out data acquisition, comprising:
301: Network Management Equipment uses the NETCONF script to carry out the script-exec operation, script name, script position, execution type and wrong option are issued to main frame to be configured, and the content of script is command line mode, SNMP mode or expandable mark language XML schema mode;
Wherein script script ability and NETCONF script-exec are operating as additional capabilities and the operation of the NETCONF agreement that the embodiment of the present invention provides, and schema is a kind of description grammer of XML, can carry out by schema the modeling of data model.
302: main frame receives the NETCONF message, identify is to carry out the script-exec operation by script, take out script name, script position, execution type and wrong option from described message, if the address of script position is uniform resource position mark URL, be directly connected to the address Download Script of URL appointment, if the address of script position is on described main frame, the assigned address of going on described main frame gets script;
303: main frame is carried out one by one script according to the content of script and is carried out data acquisition, and the data that collect are written in the memory field, makes mistakes if carry out in the process that script carries out data acquisition, processes according to wrong option;
For example, make mistakes if carry out in the process that script carries out data acquisition, the command execution next command that can adopt the continue-on-error mode to skip to make mistakes.The data of described collection comprise service data and the configuration data of main frame.
304: main frame adds the data that collect described in the memory field in the NETCONF back message using to and returns to webmaster.
305: Network Management Equipment gets the data of collection according to back message using.
The use network configuration protocol that the embodiment of the present invention provides is configured the method for granting and the method for data acquisition, by newly increase script ability and script-exec operation outside NETCONF basic capacity and operation, thereby make network element device according to the content obtaining script of operation, then carry out in bulk the content in script on equipment, do not need between webmaster and network element to carry out repeatedly mutual, thereby improved the efficient of network management.
These are only preferred embodiment of the present invention, is not for limiting 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 (10)

1.一种使用网络配置协议进行网络管理的方法,其特征在于,所述方法包括:1. A method for network management using a network configuration protocol, characterized in that the method comprises: 网管使用NETCONF脚本执行script-exec操作,将脚本名称、位置、执行类型和错误选项下发到待配置的主机,脚本的内容为命令行方式、SNMP方式或者可扩展标记语言XML schema方式;The network management uses the NETCONF script to execute the script-exec operation, and sends the script name, location, execution type, and error options to the host to be configured. The content of the script is in the command line mode, SNMP mode or Extensible Markup Language XML schema mode; 主机接收到NETCONF报文,识别出是脚本执行script-exec操作,从所述报文中取出脚本名称、脚本位置、执行类型和错误选项,如果脚本位置的地址是统一资源定位符URL,则直接连接到URL指定的地址下载脚本,如果脚本位置的地址在所述主机上,则去往所述主机上的指定位置获取到脚本;The host receives the NETCONF message, recognizes that the script executes the script-exec operation, and extracts the script name, script location, execution type, and error options from the message. If the address of the script location is the Uniform Resource Locator URL, directly Connect to the address specified by the URL to download the script, if the address of the script location is on the host, then go to the specified location on the host to obtain the script; 主机根据脚本的内容逐条命令执行脚本,并根据错误选项进行错误处理;The host executes the script one by one according to the content of the script, and performs error handling according to the error option; 主机将执行脚本的结果添加到NETCONF回应报文中返回给网管。The host adds the result of executing the script to the NETCONF response message and returns it to the network management. 2.根据权利要求1所述的方法,其特征在于,所述根据错误选项进行错误处理包括:2. The method according to claim 1, wherein said performing error handling according to error options comprises: 如果主机执行脚本的过程中出错,则根据错误选项进行处理,所述错误选项为遇到错误即停止、遇到错误不停止继续执行或遇到错误则进行回退。If an error occurs during the execution of the script by the host, it will be processed according to the error option. The error option is to stop when an error is encountered, to continue execution without stopping when an error is encountered, or to roll back when an error is encountered. 3.根据权利要求1或2所述的方法,其特征在于,所述主机将执行脚本的结果添加到NETCONF回应报文中返回给网管为:主机将执行脚本是否成功的结果添加到NETCONF回应报文中返回给网管。3. The method according to claim 1 or 2, wherein the host adds the result of executing the script to the NETCONF response message and returns to the network manager as: the host adds the result of executing the script to the NETCONF response message The text is returned to the network administrator. 4.根据权利要求1所述的方法,其特征在于,所述根据错误选项进行错误处理为遇到错误不停止继续执行,即跳过出错的命令执行下一条命令。4. The method according to claim 1, characterized in that the error handling according to the error option is to continue execution without stopping when encountering an error, that is, to skip the error command and execute the next command. 5.根据权利要求1或4所述的方法,其特征在于,所述主机根据脚本的内容逐条命令执行脚本包括:主机将执行脚本进行数据采集得到的数据写入到文件中,并将所述文件的名称和存储路径添加到NETCONF回应报文中返回给网管。5. The method according to claim 1 or 4, wherein the host executes the script one by one according to the content of the script, comprising: the host writes the data obtained by executing the script to collect data into a file, and writes the The file name and storage path are added to the NETCONF response message and returned to the network management system. 6.根据权利要求5所述的方法,其特征在于,所述主机将执行脚本的结果添加到NETCONF回应报文中返回给网管包括:主机将执行脚本进行数据采集得到的数据写入到文件中,并将所述文件的名称和存储路径添加到NETCONF回应报文中返回给网管。6. The method according to claim 5, wherein the host adds the result of executing the script to the NETCONF response message and returns to the network manager comprising: the host writes the data obtained by executing the script into a file , and add the name and storage path of the file to the NETCONF response message and return it to the network manager. 7.根据权利要求6所述的方法,其特征在于,所述将所述文件的文件名和存储路径添加到NETCONF回应报文中返回给网管之后进一步包括:网管根据回应报文获取到所述文件的名称和存储路径,并通知主机将所述文件通过FTP的方式上传到网管。7. The method according to claim 6, characterized in that, after adding the file name and the storage path of the file into the NETCONF response message and returning to the network manager, further comprising: the network manager obtains the file according to the response message name and storage path, and notify the host to upload the file to the network management system via FTP. 8.根据权利要求1或4所述的方法,其特征在于,主机根据脚本的内容逐条命令执行脚本包括:主机根据脚本的内容逐条命令执行脚本进行数据采集,并将采集到的数据写入到内存区中。8. The method according to claim 1 or 4, wherein the host executes the script one by one according to the content of the script, comprising: the host executes the script one by one according to the content of the script to collect data, and writes the collected data into the in the memory area. 9.根据权利要求8所述的方法,其特征在于,所述主机将执行脚本的结果添加到NETCONF回应报文中返回给网管包括:所述主机将内存区中所述采集到的数据添加到NETCONF回应报文中返回给网管。9. The method according to claim 8, wherein the host adds the result of executing the script to the NETCONF response message and returns to the network manager comprising: adding the collected data in the memory area to the host by the host The NETCONF response message is returned to the network management system. 10.根据权利要求9所述的方法,其特征在于,所述主机将内存区中的执行脚本的结果添加到NETCONF回应报文中返回给网管之后进一步包括:网管根据回应报文获取到采集的数据。10. The method according to claim 9, characterized in that, after the host adds the result of executing the script in the memory area to the NETCONF response message and returns to the network manager, it further comprises: the network manager obtains the collected data according to the response message data.
CN 201110009402 2011-01-13 2011-01-13 A method of network management using network configuration protocol Expired - Fee Related CN102148702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110009402 CN102148702B (en) 2011-01-13 2011-01-13 A method of network management using network configuration protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110009402 CN102148702B (en) 2011-01-13 2011-01-13 A method of network management using network configuration protocol

Publications (2)

Publication Number Publication Date
CN102148702A CN102148702A (en) 2011-08-10
CN102148702B true CN102148702B (en) 2013-06-26

Family

ID=44422720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110009402 Expired - Fee Related CN102148702B (en) 2011-01-13 2011-01-13 A method of network management using network configuration protocol

Country Status (1)

Country Link
CN (1) CN102148702B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847041B (en) * 2016-03-18 2019-06-07 烽火通信科技股份有限公司 A kind of exchange method based on network management system command-line data
CN108287897A (en) * 2018-01-22 2018-07-17 中电福富信息科技有限公司 A kind of visual distributed data fix tool and its method
CN109067572A (en) * 2018-07-25 2018-12-21 郑州云海信息技术有限公司 Method, device and equipment based on order edlin SNMP configuration file
CN110311826B (en) * 2019-08-08 2022-05-17 迈普通信技术股份有限公司 Network equipment configuration method and device
CN114221950A (en) * 2020-09-03 2022-03-22 华为技术有限公司 Method for uploading configuration file, method and device for downloading configuration file

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742268A (en) * 2002-12-20 2006-03-01 诺基亚公司 Automated batch configuration of network devices
CN101043362A (en) * 2006-06-19 2007-09-26 华为技术有限公司 Anti-field software debugging method for communication apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369996B2 (en) * 2003-08-15 2008-05-06 Cisco Technology Inc. System and method for voice based network management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742268A (en) * 2002-12-20 2006-03-01 诺基亚公司 Automated batch configuration of network devices
CN101043362A (en) * 2006-06-19 2007-09-26 华为技术有限公司 Anti-field software debugging method for communication apparatus

Also Published As

Publication number Publication date
CN102148702A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
US10270648B2 (en) Configuration information management method, device, network element management system and storage medium
CN103281197B (en) A kind of ForCES collocation method based on NETCONF
CN105915633B (en) Automatic operation and maintenance system and method
CN102148702B (en) A method of network management using network configuration protocol
CN102013998B (en) A management method for home network based on tr-069 protocol
CN102821414B (en) System and method for managing CWSN (cloud wireless sensor network) communication data based on GUI (graphical user interface)
US10284418B2 (en) Network switch management via embedded management controller using management information base (MIB) to JSON parser
CN103326896B (en) The system and method for the information data that a kind of user of collection produces on the internet
CN101127783A (en) A website buffering method and device
CN103414579A (en) A cross-platform monitoring system and monitoring method suitable for cloud computing
CN112751698B (en) Device management method, device, system, device and storage medium
CN105652828A (en) MES monitoring system and method thereof
CN105323082A (en) Method and device supporting butt joint of centralized northbound interfaces
CN106027674A (en) Technology architecture of "Internet & smart manufacturing"
CN105607606B (en) A kind of data acquisition device and method based on double mainboard frameworks
CN110730112A (en) Method, system, equipment and storage medium for testing network running speed
CN104410511B (en) A kind of server management method and system
CN112448833B (en) Multi-management-domain communication method and device
CN103905429B (en) Method for achieving automatic discovery through network device on basis of DHCP extension label
CN107506144A (en) A kind of cluster storage system cabinet Explore of Unified Management Ideas and system
CN103152380B (en) Distributed type simulation communication framework and communication effectiveness calculating method
CN110891239B (en) PNF configuration and PNFD TOSCA implementation method and device
CN105045629B (en) A kind of non-disk workstation equipment starting method and system
CN105991316B (en) A real-time management method and device for transmission network resource data
CN103858091A (en) Management method and equipment for storage equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing, Haidian District on the road, No. 3

Applicant after: Beijing Huawei Digital Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road, No. 3

Applicant before: Huawei Digit Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: HUAWEI DIGIT TECHNOLOGY CO., LTD. TO: BEIJING HUAWEI DIGITAL TECHNOLOGY CO., LTD.

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: 20130626

Termination date: 20190113

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