CN102148702B - A method of network management using network configuration protocol - Google Patents
A method of network management using network configuration protocol Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000004044 response Effects 0.000 claims abstract 13
- 239000000284 extract Substances 0.000 claims 1
- 230000003993 interaction Effects 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 10
- 238000013499 data model Methods 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
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
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)
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)
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)
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)
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 |
-
2011
- 2011-01-13 CN CN 201110009402 patent/CN102148702B/en not_active Expired - Fee Related
Patent Citations (2)
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 |