Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration

A technology of network equipment and dynamic configuration, applied in program control devices, data exchange networks, program loading/starting, etc., can solve the problems of difficulty in development and debugging, and the inability to dynamically modify development results, so as to overcome the inability to dynamically modify development results. , Overcome the difficulty of development and debugging, save development time and development workload

Active Publication Date: 2010-12-22
BEIJING TOPSEC TECH
View PDF4 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a network device CLI implementation method and device based on dynamic configuration, which overcomes the defects in the prior art that the development and debugging of the zebra command line method is difficult and the development results cannot be dynamically modified

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration
  • Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration
  • Method and device for realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0055] The first embodiment of the present invention, such as figure 1 As shown, a method for implementing a network device CLI based on dynamic configuration includes the following specific steps:

[0056] Step S101, when the CLI main program is started, load the configuration file into the memory, the configuration file includes two types of command elements: keyword nodes and parameter nodes, the optional attributes of both keyword nodes and parameter nodes include: executable attribute. The final node in a command must have an executable attribute, and the content of the executable attribute is an executable program.

[0057] Step S102, recursively parse the configuration file into a command set tree.

[0058] In step S103, the command element input by the user is matched consistently with the command nodes on the command set tree, and arbitrarily matched with the parameter nodes on the command set tree.

[0059] Step S104, converting the successfully matched command int...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for realizing realizing network equipment CLI (Command Line Interface for batch scripti) based on dynamic configuration. The method comprises the following steps of: when a CLI main program is started, loading a configuration file into a memory, recurving and analyzing the configuration file into a command set tree; matching the command input by a user in the command set tree; and executing the successfully-matched command. After the CLI main program is started, the command set tree is generated by analyzing the configuration file, a developer only debugs the program which is finally called by the CLI command in the developing process without compiling the loading, the analyzing, the matching and other processes of the CLI program, thereby greatly saving the time and reducing the workload for developing. When a command structure of the CLI is changed and a new command line is added, the corresponding configuration file is only needed to be changed without compiling and the effect can be taken immediately after the configuration file is changed. The invention overcomes the defects in the prior art that the running method of a zebra command is difficult to develop and debug and the development result cannot be dynamically modified.

Description

technical field [0001] The present invention relates to the technical field of system operation monitoring, in particular to a method and device for implementing a network device CLI (Command Line Interface, command line interface) based on dynamic configuration. Background technique [0002] A CLI is an interface through which executable instructions can be typed at the user prompt. The CLI interface is an interface that can be provided by router products produced by Cisco CISCO, Lucent Technology LUCENT, Huawei and other manufacturers, and has become the standard of router products. Because only the serial port is needed when using the CLI, the CLI has the advantages of low requirements for use, easy operation, and convenient function expansion. Especially when configuring a large number of router devices through the CLI interface, you can use the COPY / Paste function to quickly complete the configuration of all routers, without the need to configure each router through th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/24H04L12/26G06F9/445G06F17/30
Inventor 张凤羽
Owner BEIJING TOPSEC TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products