CN105204862A - Method for processing CLI commands in concentrated mode - Google Patents

Method for processing CLI commands in concentrated mode Download PDF

Info

Publication number
CN105204862A
CN105204862A CN201510639107.5A CN201510639107A CN105204862A CN 105204862 A CN105204862 A CN 105204862A CN 201510639107 A CN201510639107 A CN 201510639107A CN 105204862 A CN105204862 A CN 105204862A
Authority
CN
China
Prior art keywords
order
cli
order management
management module
module
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.)
Pending
Application number
CN201510639107.5A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510639107.5A priority Critical patent/CN105204862A/en
Publication of CN105204862A publication Critical patent/CN105204862A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention is applicable to the technical field of computers, and provides a method for processing CLI commands in a concentrated mode. The method includes the following steps of establishing a first command management tree containing CLI commands of each application module, establishing a command management module, establishing a second command management tree of the command management module, searching for the CLI commands of all the application modules and installing the CLI commands on the second command management tree, establishing the communication between all the application modules and the command management module, controlling the command management module to receive CLI commands of a user, analyzing the CLI commands of the user according to the CLI commands installed on the second command management tree, issuing the CLI commands to the corresponding application modules, controlling the application modules to receive the CLI commands of the command management module, analyzing and executing the CLI commands of the command management module according to the CLI commands installed on the first command management tree, returning the execution result to the command management module, controlling the command management module to receive the execution result returned by the application modules, and displaying the execution result to the user.

Description

A kind of method focusing on CLI order
Technical field
The invention belongs to field of computer technology, particularly relate to one and focus on the method that command line interface (CommandLineInterface, CLI) orders.
Background technology
Traditional optical fiber cable termination equipment (opticallineterminal, OLT) system (such as Vxworks system, VxWorks system is the real time operating system that WindRiverSystem company of the U.S. releases) in the implementation procedure of systemic-function, it is all single process, when therefore configuring on personnel's Telnet (Telnet) to equipment, can the function all to system be configured.When the systematic evaluation of OLT, when such as adopting Linux system, will be multi-process, so, when configuration personnel want to be remotely logged on equipment, in that process that Telnet needs may be needed to configure, operate cumbersome.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method focusing on CLI order, is intended to easy and simple to handle.
The present invention is achieved in that a kind of method focusing on CLI order, and it comprises the steps: the first order management tree of setting up each application module, and this first order management tree comprises CLI order; Set up an order management module; Set up the second order management tree of this order management module, this second order management tree comprises CLI order, search for and the CLI order of installing all application modules on this second order management is set; Set up the communication connection of all application modules and this order management module; Control the CLI order that this order management module receives a user, and set the CLI order of this user of CLI command analysis installed according to this second order management, be then handed down to corresponding application module; Control the CLI order that this application module receives this order management module, set according to this first order management the CLI command analysis installed and perform the CLI order of this order management module, then execution result being returned to this order management module; And control this order management module and receive execution result that this application module returns and be shown to this user.
The present invention compared with prior art, beneficial effect is: the method focusing on CLI order of the present invention, and user only need be remotely logged into single order management module, just can operate all application modules, thus carry out the centralized management of order, easy and simple to handle.
Accompanying drawing explanation
Fig. 1 is the process flow diagram focusing on the method for CLI order that the embodiment of the present invention provides.
Fig. 2 is the schematic diagram focusing on the method for CLI order of Fig. 1.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figures 1 and 2, a kind of method focusing on CLI order provided by the invention, by setting up an order management module, to receive and to resolve corresponding order, then issues corresponding application module.The method its comprise the steps:
S1: the first order management tree of setting up each application module, this first order management tree comprises CLI order.In the present embodiment, this application module is Gigabit Passive Optical Network (GigabitPassiveOpticalNetwork, GPON) module.Also step is comprised: in each application module, set up intelligent multimedia interface-client (IntelligentMultimediaInterfaceclient, IMIclient) and display client (showclient) in this step S1.
S2: set up an order management module.
S3: the second order management tree of setting up this order management module, this second order management tree comprises CLI order, search for and the CLI order of installing all application modules on this second order management is set.Due to practicality extracts and Report Language (PracticalExtractionandReportLanguage, Perl) general type variable and dynamic array are directly provided, make programming more convenient, therefore the present embodiment adopts perl to search for the CLI order of all application modules.Also step is comprised: in this order management module, set up intelligent multimedia interface server (IntelligentMultimediaInterfaceserver in this step S3, IMIserver), display server (showserver) and virtual terminal server (virtualtypeterminalserver, vtyserver), this IMIserver is used for communicating to connect with this IMIclient, this showserver is used for communicating to connect with this showclient, and this vtyserver is used for user and carries out Telnet.
S4: the communication connection of setting up all application modules and this order management module.Concrete, each application module is all established a communications link by socket (socket) and this order management module.In the present embodiment, this socket is You Nisi socket (unixsocket), the port numbers of this application module and relevant attribute are informed this order management module by this socket, to set up the communication connection of this application module and this order management module.
S5: control the CLI order that this order management module receives a user, and the CLI order of setting this user of CLI command analysis installed according to this second order management, be then handed down to corresponding application module.Concrete, the order of this user is the CLI order inputted after this user is communicatively connected to this vtyserver by Telnet (Telnet), and this order management module resolves this CLI order by this vtyserver.This step S4 also comprises step: control this order management module and judge that whether this CLI order is legal; If this CLI order is legal, then by this IMIserver, this CLI order is sent to corresponding application module (such as GPON module) by soket; If this CLI order is illegal, then by this showserver, the information (such as the method for expressing such as " mistake " or " error ") representing " this CLI order is illegal " is passed to this vtyserver, then pass through this vtyserver by the information displaying of this representative " this CLI order is illegal " to user.
S6: control the CLI order that this application module receives this order management module, sets according to this first order management the CLI command analysis installed and performs the CLI order of this order management module, then execution result being returned to this order management module.Concrete, this application module receives the CLI order of this order management module by this IMIclient, and the result of this execution returns to this IMIserver.
S7: control this order management module and receive execution result that this application module returns and be shown to this user.Concrete, this order management module receives by this showserver the execution result that this application module returns, and passes to this vtyserver, then by this vtyserver, the result that this application module returns is shown to user.
Compared with prior art, the method focusing on CLI order of the present invention, user only need be remotely logged into single order management module, just can operate all application modules, thus reaches the centralized management of order.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. focus on a method for CLI order, it comprises the steps: the first order management tree of setting up each application module, and this first order management tree comprises CLI order; Set up an order management module; Set up the second order management tree of this order management module, this second order management tree comprises CLI order, search for and the CLI order of installing all application modules on this second order management is set; Set up the communication connection of all application modules and this order management module; Control the CLI order that this order management module receives a user, and set the CLI order of this user of CLI command analysis installed according to this second order management, be then handed down to corresponding application module; Control the CLI order that this application module receives this order management module, set according to this first order management the CLI command analysis installed and perform the CLI order of this order management module, then execution result being returned to this order management module; And control this order management module and receive execution result that this application module returns and be shown to this user.
2. focus on the method for CLI order as claimed in claim 1, it is characterized in that, this step " set up the first order management tree of each application module, this first order management tree comprises CLI order " also comprises step and " in each application module, sets up intelligent multimedia interface-client and display client ".
3. focus on the method for CLI order as claimed in claim 2, it is characterized in that, this step " sets up the second order management tree of this order management module, search for and the CLI order of installing all application modules on this second order management tree " also comprise step and " in this order management module, set up intelligent multimedia interface server, display server and virtual terminal server, this intelligent multimedia interface server is used for communicating to connect with intelligent multimedia interface-client, this display server is used for communicating to connect with this display client, this virtual terminal server is used for user and carries out Telnet ".
4. focus on the method for CLI order as claimed in claim 3, it is characterized in that, this step " control the CLI order that this order management module receives a user; and the CLI order of this user of CLI command analysis installed is set according to this second order management; be then handed down to corresponding application module " in, the CLI order of this user is the CLI order inputted after this user is communicatively connected to this virtual terminal server by Telnet, and this order management module resolves this CLI order by this virtual terminal server.
5. focus on the method for CLI order as claimed in claim 4, it is characterized in that, this step also comprise in " controlling the CLI order that this order management module receives a user; and set the CLI order of this user of CLI command analysis installed according to this second order management, be then handed down to corresponding application module " step " control this order management module and judge that whether this CLI order legal; If this CLI order is legal, then by this intelligent multimedia interface server, this CLI order is sent to corresponding application module; If this CLI order is illegal, then by this display server, the information representing ' this CLI order is illegal ' is passed to this virtual terminal server, then give this user by this virtual terminal server by the information displaying of this representative ' this CLI order is illegal ' ".
6. focus on the method for CLI order as claimed in claim 3, it is characterized in that, in this step " controls the CLI order that this application module receives this order management module; set according to this first order management the CLI command analysis installed and perform the CLI order of this order management module; then the result of execution being returned to this order management module ", this application module receives the CLI order of this order management module by this intelligent multimedia interface-client, and this execution result returns to this intelligent multimedia interface server.
7. focus on the method for CLI order as claimed in claim 3, it is characterized in that, in this step " controls this order management module receive execution result that this application module returns and be shown to user ", this order management module receives by this display server the execution result that this application module returns, and by this virtual terminal server, the result that this application module returns is shown to user.
8. focus on the method for CLI order as claimed in claim 1, it is characterized in that, in step " sets up the communication connection of all application modules and this order management module ", each application module is all established a communications link by socket and this order management module.
9. focus on the method for CLI order as claimed in claim 8, it is characterized in that, this socket is You Nisi socket.
10. focus on the method for CLI order as claimed in claim 1, it is characterized in that, step " set up the second order management tree of this order management module; search for and the CLI order of installing all application modules on this second order management tree " in, adopt practical extracts and Report Language to search for the CLI order of all application modules.
CN201510639107.5A 2015-09-29 2015-09-29 Method for processing CLI commands in concentrated mode Pending CN105204862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510639107.5A CN105204862A (en) 2015-09-29 2015-09-29 Method for processing CLI commands in concentrated mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510639107.5A CN105204862A (en) 2015-09-29 2015-09-29 Method for processing CLI commands in concentrated mode

Publications (1)

Publication Number Publication Date
CN105204862A true CN105204862A (en) 2015-12-30

Family

ID=54952568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510639107.5A Pending CN105204862A (en) 2015-09-29 2015-09-29 Method for processing CLI commands in concentrated mode

Country Status (1)

Country Link
CN (1) CN105204862A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959256A (en) * 2016-04-15 2016-09-21 烽火通信科技股份有限公司 System and method for processing unblocking CLI command in blocking CLI command architecture
CN106878467A (en) * 2017-04-07 2017-06-20 同方威视技术股份有限公司 The method and tele-control system of remote control equipment
CN108763471A (en) * 2018-05-29 2018-11-06 郑州云海信息技术有限公司 The method and system of HTTP file servers in a kind of deployment cluster

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122924A1 (en) * 2002-12-18 2004-06-24 Coryell Larry G. System and method for providing a flexible framework for remote heterogeneous server management and control
CN101964923A (en) * 2009-07-23 2011-02-02 中兴通讯股份有限公司 Configuration system and method for interactive commands
CN103457761A (en) * 2013-07-17 2013-12-18 国家电网公司 Cross-platform command line configuration interface implementation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122924A1 (en) * 2002-12-18 2004-06-24 Coryell Larry G. System and method for providing a flexible framework for remote heterogeneous server management and control
CN101964923A (en) * 2009-07-23 2011-02-02 中兴通讯股份有限公司 Configuration system and method for interactive commands
CN103457761A (en) * 2013-07-17 2013-12-18 国家电网公司 Cross-platform command line configuration interface implementation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
鲁先志 等: "《网络安全系统集成》", 31 January 2015, 中国水利水电出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959256A (en) * 2016-04-15 2016-09-21 烽火通信科技股份有限公司 System and method for processing unblocking CLI command in blocking CLI command architecture
CN105959256B (en) * 2016-04-15 2019-03-15 烽火通信科技股份有限公司 The system and method for non-obstruction CLI command is handled under obstruction CLI command framework
CN106878467A (en) * 2017-04-07 2017-06-20 同方威视技术股份有限公司 The method and tele-control system of remote control equipment
CN106878467B (en) * 2017-04-07 2023-06-16 同方威视技术股份有限公司 Method for remotely controlling equipment and remote control system
CN108763471A (en) * 2018-05-29 2018-11-06 郑州云海信息技术有限公司 The method and system of HTTP file servers in a kind of deployment cluster
CN108763471B (en) * 2018-05-29 2021-10-22 郑州云海信息技术有限公司 Method and system for deploying HTTP file server in cluster

Similar Documents

Publication Publication Date Title
TWI741505B (en) Topology processing method, device and system
CN103532756B (en) Command line system and command line operation method based on webmaster system
CN102307107A (en) Intelligent management system of ODN (optical distribution network) based on RFID (radio frequency identification)
EP2852095B1 (en) Optical distribution method, device and system
CN104394008A (en) A method for configuring uniformly different types of intelligent electronic devices and the system thereof
CN103108262A (en) Method for upgrading configuration file of optical network unit in GPON system
CN105204862A (en) Method for processing CLI commands in concentrated mode
US10210068B2 (en) Device topology definition system
CN104202178B (en) The communication means of intelligent optical distribution network Intelligent management terminal and network management system
CN102902547A (en) Command construction and analysis method of command line interface
CN114501501B (en) Configuration management method, device, equipment and medium for mobile communication network target range
CN103746840A (en) Method and system for automatic checking of software version information of network equipment
CN105430096A (en) Automatic installation method and device for parallel file system
CN113760730A (en) Automatic testing method and device
KR101453671B1 (en) Integrated interface system for monitoring and controling electric power system
CN105490745B (en) Passive optical network SFP module and its application method based on LED light
US10887676B2 (en) Systems and methods for optically initiated information collection for network connected devices
WO2017016386A1 (en) Method and device for implementing radio remote unit fault analysis
CN104020540A (en) Intelligent optical fiber cable distribution box and method of applying the same for managing ports
CN105656648A (en) ODN resource organizing method and system
EP3300384A1 (en) Onu template generating method and device
CN104065495A (en) Long light emitting ONU judging method and device and passive optical network system
CN104539463A (en) Network device configuration file online attribute cross checking method and system
CN103269296A (en) Detection system and detection method of user side of passive optical network system
CN105511025B (en) Quartz plastic composite fiber component, recognition methods and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151230