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
CN101924656AActive Publication Date: 2010-12-22BEIJING TOPSEC TECH

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
BEIJING TOPSEC TECH
Publication Date
2010-12-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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