CN102148702A - Method for managing network by utilizing network configuration protocol - Google Patents

Method for managing network by utilizing network configuration protocol Download PDF

Info

Publication number
CN102148702A
CN102148702A CN2011100094024A CN201110009402A CN102148702A CN 102148702 A CN102148702 A CN 102148702A CN 2011100094024 A CN2011100094024 A CN 2011100094024A CN 201110009402 A CN201110009402 A CN 201110009402A CN 102148702 A CN102148702 A CN 102148702A
Authority
CN
China
Prior art keywords
script
main frame
netconf
webmaster
back message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011100094024A
Other languages
Chinese (zh)
Other versions
CN102148702B (en
Inventor
冯冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Digital Technologies Chengdu Co Ltd
Huawei Digital Technologies Co Ltd
Original Assignee
Huawei Digital Technologies Chengdu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Digital Technologies Chengdu Co Ltd filed Critical Huawei Digital Technologies Chengdu 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.Because the deficiency of snmp protocol self, industry does not use snmp protocol to be configured granting basically, but directly logging device utility command row disposes granting.Snmp protocol is then used in data acquisition.
There are the following problems to adopt SNMP to carry out network management:
1, order line is a 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, though 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, brings efficiency.
3, configuration is provided and data acquisition is suitable for different interfaces, because both data model disunities, it is bigger that webmaster carries out adaptive workload.
Network configuration protocol (NETCONF) is a 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 configuration one by one by the NETCONF interface now, interaction times is many between webmaster and network element, inefficiency;
2, when needs carry out data acquisition to network element, also can only issue request one by one by the NETCONF interface at present, the occasion of having relatively high expectations like this for timeliness, the data that collect often have time delay, can not satisfy the requirement of network management.
Summary of the invention
The embodiment of the invention provides a kind of method of using network configuration protocol to carry out network management, and described method comprises:
Webmaster uses NETCONF script executing 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, identifying is script executing script-exec operation, from described message, take out script name, script position, execution type and wrong option, if the address of script position is a uniform resource position mark URL, then 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 then going on the described main frame gets access to script;
Main frame is according to the content of script command execution script one by one, and carries out fault processing according to wrong option;
Main frame adds the result who carries out script in the NETCONF back message using to and returns to webmaster.
The use network configuration protocol that the embodiment of the invention provides carries out the method for network management, by outside NETCONF basic capacity and operation, increasing script ability and script-exec operation newly, thereby make network element device obtain script, on equipment, carry out the content in the script then in bulk according to the content of operation.It is mutual that the use network configuration protocol that the embodiment of the 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 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 invention two.
The another kind that Fig. 3 provides for the embodiment of the 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 invention is clearer, below with reference to accompanying drawing, the present invention is described in further detail.
Referring to Fig. 1, the embodiment of the invention one provides a kind of method of using network configuration protocol to be configured granting, comprising:
101: webmaster uses NETCONF script executing 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 the 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 the modeling of data model by schema.
102: main frame receives the NETCONF message, identify is to operate by script executing script-exec, from described message, take out script name, script position, execution type and wrong option, if the address of script position is uniform resource position mark URL (Uniform Resource Locator), then 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 then going on the 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, then handles according to wrong option;
Wrong option is followed the standard option of NETCONF agreement, comprises that running into mistake promptly stops Stop-on-error, runs into mistake and do not stop continue to carry out Continue-on-error and run into mistake and then carry out rollback Rollback-on-error and handle.
104: main frame returns to webmaster with carrying out script whether successful result adding in the NETCONF back message using.
Referring to Fig. 2, the embodiment of the invention two provides a kind of method of using network configuration protocol to carry out data acquisition, comprising:
201: Network Management Equipment uses NETCONF script executing 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 the 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 the modeling of data model by schema.
202: main frame receives the NETCONF message, identify is to operate by script executing script-exec, from described message, take out script name, script position, execution type and wrong option, if the address of script position is a uniform resource position mark URL, then 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 then going on the described main frame gets access to script;
203: main frame is carried out script one by one according to the content of script and is carried out data acquisition, and the data that collect are written in the file, makes mistakes if carry out in the process that script carries out data acquisition, then handles according to wrong option;
For example, make mistakes the command execution next command that then can adopt the continue-on-error mode to skip to make mistakes if carry out in the process that script carries out data acquisition.The data of described collection comprise the 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 the title and the store path of described file according to described back message using, and notifies main frame that the mode that this document passes through FTP (File Transfer Protocol, file transfer protocol (FTP)) is uploaded to Network Management Equipment.
Referring to Fig. 3, the embodiment of the invention three further provides a kind of method of using network configuration protocol to carry out data acquisition, comprising:
301: Network Management Equipment uses NETCONF script executing 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 the additional capabilities and the operation of the NETCONF agreement that the embodiment of the invention provides, and schema is a kind of description grammer of XML, can carry out the modeling of data model by schema.
302: main frame receives the NETCONF message, identify is to operate by script executing script-exec, from described message, take out script name, script position, execution type and wrong option, if the address of script position is a uniform resource position mark URL, then 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 then going on the described main frame gets access to script;
303: main frame is carried out script one by one 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, then handles according to wrong option;
For example, make mistakes the command execution next command that then can adopt the continue-on-error mode to skip to make mistakes if carry out in the process that script carries out data acquisition.The data of described collection comprise the 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 access to the data of collection according to back message using.
The use network configuration protocol that the embodiment of the invention provides is configured the method for granting and the method for data acquisition, by outside NETCONF basic capacity and operation, increasing script ability and script-exec operation newly, thereby make network element device obtain script according to the content of operation, on equipment, carry out the content in the script then in bulk, do not need between webmaster and network element to carry out repeatedly mutual, thereby improved the efficient of network management.
Being preferred embodiment of the present invention only below, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method of using network configuration protocol to carry out network management is characterized in that, described method comprises:
Webmaster uses NETCONF script executing 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, identifying is script executing script-exec operation, from described message, take out script name, script position, execution type and wrong option, if the address of script position is a uniform resource position mark URL, then 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 then going on the described main frame gets access to script;
Main frame is according to the content of script command execution script one by one, and carries out fault processing according to wrong option;
Main frame adds the result who carries out script in the NETCONF back message using to and returns to webmaster.
2. method according to claim 1 is characterized in that, describedly carries out fault processing according to wrong option and comprises:
Make mistakes if main frame is carried out in the process of script, then handle according to wrong option, described wrong option does not stop to continue execution or runs into mistake then carrying out rollback for running into mistake and promptly stopping, running into mistake.
3. method according to claim 1 and 2, it is characterized in that described main frame adds the result who carries out script to and returns to webmaster in the NETCONF back message using and be: main frame returns to webmaster with carrying out script whether successful result adding in the NETCONF back message using.
4. method according to claim 1 is characterized in that, describedly carries out fault processing according to wrong option and does not stop continue to carry out for running into mistake, promptly skips the command execution next command that makes mistakes.
5. according to claim 1 or 4 described methods, it is characterized in that, described main frame according to the content of script one by one the command execution script comprise: main frame will be carried out script and carry out the data that data acquisition obtains and be written in the file, and the title of described file and store path added in the NETCONF back message using return to webmaster.
6. method according to claim 5, it is characterized in that, described main frame adds the result who carries out script to and returns to webmaster in the NETCONF back message using and comprise: main frame will be carried out script and carry out the data that data acquisition obtains and be written in the file, and the title of described file and store path added in the NETCONF back message using return to webmaster.
7. method according to claim 6, it is characterized in that, described filename and store path with described file adds to and further comprise after returning to webmaster in the NETCONF back message using: webmaster gets access to the title and the store path of described file according to back message using, and the notice main frame uploads to webmaster with the mode of described file by FTP.
8. according to claim 1 or 4 described methods, it is characterized in that, main frame according to the content of script one by one the command execution script comprise: main frame according to the content of script one by one the command execution script carry out data acquisition, and the data that collect are written in the memory field.
9. method according to claim 8, it is characterized in that described main frame adds the result who carries out script to and returns to webmaster in the NETCONF back message using and comprise: described main frame adds the data that collect described in the memory field in the NETCONF back message using to and returns to webmaster.
10. method according to claim 9 is characterized in that, described main frame adds the result of the execution script in the memory field to and further comprises after returning to webmaster in the NETCONF back message using: webmaster gets access to the data of collection according to back message using.
CN 201110009402 2011-01-13 2011-01-13 Method for managing network by utilizing 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 Method for managing network by utilizing network configuration protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110009402 CN102148702B (en) 2011-01-13 2011-01-13 Method for managing network by utilizing network configuration protocol

Publications (2)

Publication Number Publication Date
CN102148702A true CN102148702A (en) 2011-08-10
CN102148702B 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 Method for managing network by utilizing network configuration protocol

Country Status (1)

Country Link
CN (1) CN102148702B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847041A (en) * 2016-03-18 2016-08-10 烽火通信科技股份有限公司 Interactive method based on command line data of network management system
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
CN110311826A (en) * 2019-08-08 2019-10-08 迈普通信技术股份有限公司 Method for configuring network equipment and device
WO2022048430A1 (en) * 2020-09-03 2022-03-10 华为技术有限公司 Method for uploading configuration file, method for downloading configuration file, and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050038658A1 (en) * 2003-08-15 2005-02-17 Darryl Sladden System and method for voice based network management
CN1742268A (en) * 2002-12-20 2006-03-01 诺基亚公司 Automated bulk configuration of network devices
CN101043362A (en) * 2006-06-19 2007-09-26 华为技术有限公司 Anti-field software debugging method for communication apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742268A (en) * 2002-12-20 2006-03-01 诺基亚公司 Automated bulk configuration of network devices
US20050038658A1 (en) * 2003-08-15 2005-02-17 Darryl Sladden System and method for voice based network management
CN101043362A (en) * 2006-06-19 2007-09-26 华为技术有限公司 Anti-field software debugging method for communication apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847041A (en) * 2016-03-18 2016-08-10 烽火通信科技股份有限公司 Interactive method based on command line data of network management system
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
CN110311826A (en) * 2019-08-08 2019-10-08 迈普通信技术股份有限公司 Method for configuring network equipment and device
CN110311826B (en) * 2019-08-08 2022-05-17 迈普通信技术股份有限公司 Network equipment configuration method and device
WO2022048430A1 (en) * 2020-09-03 2022-03-10 华为技术有限公司 Method for uploading configuration file, method for downloading configuration file, and apparatus

Also Published As

Publication number Publication date
CN102148702B (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN102654885B (en) Mobile terminal webpage adaptation system and method
CN101605056B (en) J2EE server monitoring device and monitoring method employing same
CN104243481B (en) A kind of method and system of power information acquisition advance data processing
CN102148702B (en) Method for managing network by utilizing network configuration protocol
CN104699736B (en) A kind of distributed larger scale data acquisition system and method based on movable equipment
CN103414579A (en) Cross-platform monitoring system applicable to cloud computing and monitoring method thereof
CN101945013A (en) System and method for implementing server configuration management
US20200174435A1 (en) Energy Information System, and Method and Device for Processing Energy Information
CN105763619A (en) Method and device for communication of client and server
CN103347037A (en) WCF realization-based communication front-end processor system and communicating method
CN103248669A (en) Distributed software upgrade system and method
CN101964763A (en) Message handling method
CN108090000A (en) A kind of method and system for obtaining CPU register informations
CN105607606B (en) A kind of data acquisition device and method based on double mainboard frameworks
CN103067201B (en) A kind of multi-protocol communication manager
CN102739788B (en) A kind of field device communicating method based on EIB agreement
CN107301084B (en) Virtual machine migration method and device of cluster server, server and storage medium
CN102752215A (en) Processing method for VDP (vertical data processing) request messages and edge switch
CN102904744A (en) Method and system for acquiring performance data
CN114153559A (en) Cloud platform log acquisition method, device, equipment and readable storage medium
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN105704253A (en) Method for acquiring host resources and device and system thereof
CN105407150A (en) Remote control method of application program
CN110430110B (en) On-site bus gateway and protocol conversion method thereof
PH12015500675B1 (en) Method and system for transmission management of full configuration synchronization between eml-nml.

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 of 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