CN102148702B - Method for managing network by utilizing network configuration protocol - Google Patents
Method for managing network by utilizing 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
- 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.)
- Expired - Fee Related
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
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. a method of using network configuration protocol to carry out network management, is characterized in that, 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.
2. method according to claim 1, is characterized in that, describedly carries out mistake according to wrong option and process and to comprise:
Make mistakes if main frame is carried out in the process of script, process according to wrong option, described wrong option does not stop continuing execution or runs into mistake carrying out rollback for running into mistake and namely stopping, running into mistake.
3. method according to claim 1 and 2, it is characterized in that, described main frame adds the result of carrying 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 being added in the NETCONF back message using.
4. method according to claim 1, is characterized in that, describedly carries out mistake according to wrong option and be treated to and run into mistake and do not stop continue carrying out, and namely 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 file, and the title of described file and store path are 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 of carrying 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 file, and the title of described file and store path are 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 title and the store path of described file according to back message using, and the notice main frame mode by FTP uploads to webmaster with described file.
8. according to claim 1 or 4 described methods, 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 of carrying 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 return in the NETCONF back message using to and further comprises after webmaster: webmaster gets the data of collection according to back message using.
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 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 | Method for managing network by utilizing 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 bulk 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 bulk 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 |
---|---|---|
JP6444405B2 (en) | Software update method, system and device | |
CN102654885B (en) | Mobile terminal webpage adaptation system and method | |
CN102148702B (en) | Method for managing network by utilizing network configuration protocol | |
CN103024060A (en) | Open type cloud computing monitoring system for large scale cluster and method thereof | |
CN111343020A (en) | Unified management method and device for multi-protocol Internet of things equipment | |
CN102013998B (en) | Tr-069 protocol-based management method for realizing home network | |
CN105763619A (en) | Method and device for communication of client and server | |
CN103414579A (en) | Cross-platform monitoring system applicable to cloud computing and monitoring method thereof | |
CN103139018B (en) | Network card status monitoring under a kind of modulation integral system and TCP communication method | |
CN101605078A (en) | Power system communication server and control method thereof based on the many communication modes of WEB | |
CN105052076A (en) | Interface management service entity, functional service entity and network element management method | |
CN103200199A (en) | Out of band (OOB) data collection system | |
CN105607606B (en) | A kind of data acquisition device and method based on double mainboard frameworks | |
CN108090000A (en) | A kind of method and system for obtaining CPU register informations | |
CN103488696A (en) | Business query method, device and system of CPE (customer premises equipment), ACS (auto-configuration server) and CPE | |
CN103067201B (en) | A kind of multi-protocol communication manager | |
EP2563061B1 (en) | Data cut-over method and apparatus | |
CN102833092A (en) | Method and system for managing cloud nodes and central server | |
CN103685083A (en) | Communication method in asynchronous management network | |
CN102904744A (en) | Method and system for acquiring performance data | |
CN105975415A (en) | Peripheral device management control apparatus, method and system | |
CN110430110B (en) | On-site bus gateway and protocol conversion method thereof | |
CN106534259B (en) | Web data acquisition method, Web server and web data acquisition system based on Docker | |
CN103368969B (en) | The method and system of full dose configuration synchronization between transfer management EML-NML | |
CN103646015A (en) | Method and system for sending, receiving and transmitting XML message |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130626 Termination date: 20190113 |