CN101257402A - Method and system for equipment to realize user-defined order - Google Patents

Method and system for equipment to realize user-defined order Download PDF

Info

Publication number
CN101257402A
CN101257402A CNA2008100659259A CN200810065925A CN101257402A CN 101257402 A CN101257402 A CN 101257402A CN A2008100659259 A CNA2008100659259 A CN A2008100659259A CN 200810065925 A CN200810065925 A CN 200810065925A CN 101257402 A CN101257402 A CN 101257402A
Authority
CN
China
Prior art keywords
command
user input
built
input commands
mapping table
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
CNA2008100659259A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2008100659259A priority Critical patent/CN101257402A/en
Publication of CN101257402A publication Critical patent/CN101257402A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the invention provides a method and a system for performing user-defined command by a device, wherein, the method comprises: receiving a user inputting command; inquiring a command mapping table according to the user inputting command; when judging that the user inputting command exists in the command mapping table, mapping the user inputting command as a built-in command based on the command mapping table; and carrying out the built-in command. The system of the invention includes a storage module, a receiving module, a first judging modul, a mapping module and an execution module. The embodiment of the invention can perform the user-defined command on a communication device by adding the command mapping table.

Description

Equipment is realized the method and system of custom command
Technical field
The present invention relates to the communication technology, especially realize the method and system of custom command about a kind of equipment.
Background technology
Increasingly mature along with network technology, the increasing network equipment is needed a large amount of plant maintenance personnel regularly equipment to be safeguarded by application deployment; Simultaneously, the technology of the network equipment also becomes increasingly complex, and the order of Operation and Maintenance is also more and more, and the operational maintenance command of different manufacturers has nothing in common with each other, and all these cause requiring also more and more higher to plant maintenance personnel's technical ability.
Communication apparatus generally all can provide the configuration interface based on order line, and configuration file also is to be kept in the storage medium of equipment by the file that order line is formed simultaneously, and we claim the complete or collected works of these order lines to be the built-in command tree usually.Along with the upgrading of communication apparatus operation version, order line tends to change, and when the user still operates with original order, will order invalid situation.The flow chart of existing order line command process as shown in Figure 1, Fig. 1 is the method flow diagram of prior art device processes order.When user input commands, equipment can be inquired about the built-in command tree, if find the order of being imported in the built-in command tree, then carries out this order; If in the built-in command tree, do not find the order of being imported, then output error message.In addition, often mutual OEM (OriginalEquipmentManufacturer between the present equipment vendors; OEM) product has been a kind of common phenomena, but the order style of distinct device manufacturer is generally inconsistent, if will order style to unify to revise then workload is too big, if order style disunity then cause end user's learning cost to improve causes the easy usability of equipment poor.
Summary of the invention
In view of this, the main purpose of the embodiment of the invention provides the method and system that a kind of equipment is realized custom command.
The purpose of the embodiment of the invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of equipment to realize the method for custom command, comprising: receive user input commands; According to described user input commands querying command mapping table; When judging that described user input commands is present in the described command mapping table, then described user input commands is mapped as built-in command according to described command mapping table; Carry out described built-in command.
The embodiment of the invention also provides a kind of equipment to realize the system of custom command, and comprising: memory module is used for the memory command mapping table; Receiver module is used to receive user input commands; First judge module is used for judging from described memory module whether described user input commands is present in the command mapping table; Mapping block when being used for judged result when described first judge module and being described user input commands and being present in the command mapping table, then is mapped as built-in command according to the command mapping table with described user input commands; Executive Module is used for carrying out described built-in command when mapping block is mapped as built-in command with described user input commands.
The embodiment of the invention can realize custom command by increasing the command mapping table on communication apparatus.
Description of drawings
Fig. 1 is the method schematic diagram of the device processes order of prior art;
Fig. 2 is the method flow diagram that the equipment of the embodiment of the invention is realized custom command;
Fig. 3 is the system schematic that the equipment of the embodiment of the invention one is realized custom command;
Fig. 4 is the system schematic that the equipment of the embodiment of the invention two is realized custom command;
Fig. 5 is the system schematic that the equipment of the embodiment of the invention three is realized custom command;
Fig. 6 is the system schematic that the equipment of the embodiment of the invention four is realized custom command.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples, and, the embodiment of the invention is further described with reference to accompanying drawing.
In order on equipment, to realize custom command, need when the device processes order line, increase processing to the custom command row.The visible Fig. 2 of concrete flow process, Fig. 2 are the method flow diagram that the equipment of the embodiment of the invention is realized custom command.
Block diagram 201, reception user input commands.
The order that the user is imported on Command Line Interface can also can be self-defining order for the order in the built-in command tree.If user input be self-defining order the time, then need to set in advance the command mapping table, the command mapping table can be made according to user's needs, wishes that such as: user regular maintenance information can conveniently collect, and then can support the User Defined errorlevel in the command mapping table.For example, order of equipment state report weekly of User Defined: display weekly-report, the then command set of the equipment state of the desired execution of respective user report in the command mapping table.Like this, the user only needs to carry out the information that a self-defining order display weekly-report can collect all care weekly.Again for example, the original order of equipment is unreasonable, and equipment need be made amendment to original order in the version of upgrading, but original order needs again by compatibility, like this, and by the command mapping table, can solve the forward compatibility problem of order line easily, backward compatibility also can realize equally.For example: the order of legacy version is 1; 2; 3, the order of redaction is 1; 2; 3 '; Then the command mapping table can be 1; 2; 3-1; 2; 3 '.For example: the order of legacy version is 1; 2; 3, the order of redaction is 1; 2; 3; 4, then the command mapping table can be 1; 2; 3-1; 2; 3; 4.In addition, will replace to order with the display beginning with show beginning in redaction in the order of legacy version, then the command mapping table can be show *-Display *( *The expression asterisk wildcard).Again for example, the user may be familiar with a cover command format, and then the user can be by custom command, and the order with the original command mapping of system becomes user oneself to define makes things convenient for the use of user to equipment like this.Again for example, can a kind of order line style be mapped to another kind of order line style, make things convenient for the OEM of equipment by the command mapping table.
We will realize user defined command by assurance equipment, then need to finish the making of command mapping table.The making of command mapping table is made at different user's requests, specifically can be with reference to several situations of the above user defined command of enumerating.After the command mapping table was finished, we need be loaded into the command mapping table on the equipment, and concrete load mode is not limit, and below recommended two kinds of load modes: mode one: finish earlier the making of command mapping table voluntarily, upload on the equipment then; Mode two: the equipment making user interface, pass through this user interface input command mapping table by the user.
In the system starting process,, need to guarantee first loading command mapping table, loading configuration file afterwards in order to guarantee the trouble-free operation of user defined command in the configuration file or legacy commands.The command mapping table can be kept in the memory device of equipment, and for example in hard disk or the flash memory (flash), user-defined order was not lost after the equipment of assurance was restarted.
Block diagram 202, querying command mapping table;
When the user imported custom command, whether equipment at first had this order in the querying command mapping table.
Block diagram 203, judge whether to inquire this order
Equipment is inquired about the order that whether has the user to import in the command mapping table.
If block diagram 204 inquires this order, be built-in command with the command mapping that the user imports then according to the command mapping table, carry out block diagram 208;
If block diagram 205 does not inquire this order, then inquire about the built-in command tree;
If block diagram 206 inquires this order in the built-in command tree, then carry out block diagram 208, if in the built-in command tree, do not inquire this order, then carry out block diagram 207;
Block diagram 207, output error message;
Block diagram 208, execution built-in command.
Need to prove if do not inquire this order in the built-in command tree, whether output error message can be determined according to the configuration requirement of equipment, for example, also this order directly can be abandoned or carry out other processing.
Also have, after equipment receives user input commands, also can inquire about the built-in command tree earlier, if in the built-in command tree, do not inquire described user input commands, querying command mapping table then, if in the command mapping table, inquire this order, be built-in command with the command mapping that the user imports then according to the command mapping table, carry out described built-in command.Need to prove that after not qualification of embodiment of the invention equipment received user input commands, the sequencing of inquiry built-in command tree and querying command mapping table did not limit, and both can inquire about respectively, can inquire about simultaneously yet.When user input commands neither is present in the command mapping table, be not present in the built-in command tree yet, can output error message.
As shown in Figure 3, Fig. 3 is the system schematic of the equipment realization custom command of the embodiment of the invention one.The embodiment of the invention one provides a kind of realization system of equipment custom command, comprising: memory module 305 is used for the memory command mapping table; Receiver module 301 is used to receive user input commands.First judge module 302 is used for judging whether described user input commands is present in the command mapping table; Mapping block 303 when being used for judged result when described first judge module 302 and being described user input commands and being present in the command mapping table, then is mapped as built-in command according to the command mapping table with described user input commands; Executive Module 304 is used for carrying out described built-in command when mapping block 303 is mapped as built-in command with described user input commands.
As shown in Figure 4, Fig. 4 is the system schematic of the equipment realization custom command of the embodiment of the invention two;
The embodiment of the invention two also provides a kind of realization system of equipment custom command, comprising: memory module 405 is used for memory command mapping table and built-in command tree; Receiver module 401 is used to receive user input commands.First judge module 402 is used for judging whether described user input commands is present in the command mapping table; Mapping block 403 when being used for judged result when described first judge module and being described user input commands and being present in the command mapping table, then is mapped as built-in command according to the command mapping table with described user input commands; Second judge module 406 is used for judged result when described first judge module 402 and is described user input commands no longer during the command mapping table, judges whether described user input commands is present in the built-in command tree; Executive Module 404 is used for carrying out described built-in command when mapping block is mapped as built-in command with described user input commands; Perhaps when the judged result of described second judge module be described user input commands when being present in the built-in command tree, carry out described user input commands.Wherein, first judge module and second judge module can be integrated in the same chip.
As shown in Figure 5, Fig. 5 is the system schematic of the equipment realization custom command of the embodiment of the invention three.The embodiment of the invention also provides a kind of realization system of equipment custom command, comprising: memory module 505 is used for memory command mapping table and built-in command tree; Receiver module 501 is used to receive user input commands.First judge module 502 is used for judging whether described user input commands is present in the command mapping table; Mapping block 503 when being used for judged result when described first judge module 502 and being described user input commands and being present in the command mapping table, then is mapped as built-in command according to the command mapping table with described user input commands; Second judge module 506 when being used for judged result when described first judge module 502 and being described user input commands not at the command mapping table, judges whether described user input commands is present in the built-in command tree; Executive Module 504 is used for carrying out described built-in command when mapping block is mapped as built-in command with described user input commands; Perhaps when the judged result of described second judge module be described user input commands when being present in the built-in command tree, carry out described user input commands.Mistake output module 507, when being used for judged result when described second judge module and being described user input commands and not being present in the built-in command tree, output error message.Wherein, first judge module and second judge module can be integrated in the same chip.
As shown in Figure 6, Fig. 6 is the system schematic of the equipment realization custom command of the embodiment of the invention four.The embodiment of the invention also provides a kind of realization system of equipment custom command, comprising: memory module 605 is used for memory command mapping table and built-in command tree; Receiver module 601 is used to receive user input commands; Second judge module 602 is used for judging whether described user input commands is present in described built-in command tree, when judged result is a described user input commands when not being present in the described built-in command tree, carries out first judge module.First judge module 606 is used for judging from described memory module whether described user input commands is present in the command mapping table; Mapping block 603 when being used for judged result when described first judge module and being described user input commands and being present in the command mapping table, then is mapped as built-in command according to the command mapping table with described user input commands; Executive Module 604 is used for carrying out described built-in command when mapping block is mapped as built-in command with described user input commands.Can also comprise mistake output module 607, be used for not being present in described built-in command tree, and described user input commands is not when being present in the described command mapping table, output error message when described user input commands.
The embodiment of the invention is by increasing the command mapping table, can on communication apparatus, realize custom command, by the original command mapping of communication apparatus being become the order of user oneself definition, can be user-friendly to and make things convenient for regular maintenance and the information gathering of user, also can be easy to solve the backward or forward compatibling problem of order line equipment.Simultaneously, also can like a cork a kind of order line style be mapped to another kind of order line style, make things convenient for the OEM of equipment by the command mapping table.
One of ordinary skill in the art will appreciate that all or part of step in the foregoing description method is to finish by the relevant hardware of program command, described program can be stored in the computer read/write memory medium, described storage medium can be ROM/RAM, magnetic disc, CD etc.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.

Claims (9)

1, a kind of equipment is realized the method for custom command, it is characterized in that, comprising:
Receive user input commands;
According to described user input commands querying command mapping table;
When judging that described user input commands is present in the described command mapping table, then described user input commands is mapped as built-in command according to described command mapping table;
Carry out described built-in command.
2, as weighing 1 described method, it is characterized in that, also comprise:
When judging that described user input commands does not exist in the described command mapping table, then inquire about the built-in command tree;
When judging that described user input commands is present in the described built-in command tree, then carry out described input command.
3, as weighing 1 described method, it is characterized in that, described according to also comprising before the described user input commands querying command mapping table: inquiry built-in command tree, when judging that described user input commands is not present in the described built-in command tree, then carry out subsequent step.
4, as weighing 1 described method, it is characterized in that, according to described user input commands inquiry built-in command tree; When described user input commands neither is present in the described command mapping table, when not being present in the described built-in command tree yet, output error message.
5, a kind of equipment is realized the system of custom command, it is characterized in that, comprising:
Memory module is used for the memory command mapping table;
Receiver module is used to receive user input commands;
First judge module is used for judging from described memory module whether described user input commands is present in the command mapping table;
Mapping block when being used for judged result when described first judge module and being described user input commands and being present in the command mapping table, then is mapped as built-in command according to the command mapping table with described user input commands;
Executive Module is used for carrying out described built-in command when mapping block is mapped as built-in command with described user input commands.
6, as weighing 5 described systems, it is characterized in that,
Described memory module also comprises the built-in command tree;
Second judge module when being used for judged result when described first judge module and being described user input commands and not being present in described command mapping table, judges whether described user input commands is present in the described built-in command tree;
Executive Module when also being used for judged result when described second judge module and being described user input commands and being present in the built-in command tree, is carried out described built-in command.
7, as weighing 5 described systems, it is characterized in that,
Described memory module also comprises the built-in command tree;
Second judge module is used for judging whether described user input commands is present in described built-in command tree, when judged result is a described user input commands when not being present in the described built-in command tree, carries out described first judge module.
As weighing 6 or 7 described systems, it is characterized in that 8, described first judge module and described second judge module are integrated in the same chip.
9, as weighing 5 described systems, it is characterized in that, also comprise:
Described memory module also comprises the built-in command tree;
The mistake output module is used for not being present in described built-in command tree when described user input commands, and described user input commands is not when being present in the described command mapping table, output error message.
CNA2008100659259A 2008-01-17 2008-01-17 Method and system for equipment to realize user-defined order Pending CN101257402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100659259A CN101257402A (en) 2008-01-17 2008-01-17 Method and system for equipment to realize user-defined order

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100659259A CN101257402A (en) 2008-01-17 2008-01-17 Method and system for equipment to realize user-defined order

Publications (1)

Publication Number Publication Date
CN101257402A true CN101257402A (en) 2008-09-03

Family

ID=39891895

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100659259A Pending CN101257402A (en) 2008-01-17 2008-01-17 Method and system for equipment to realize user-defined order

Country Status (1)

Country Link
CN (1) CN101257402A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841430A (en) * 2010-05-05 2010-09-22 北京星网锐捷网络技术有限公司 Method and device for correcting command line
CN102111484A (en) * 2009-12-29 2011-06-29 比亚迪股份有限公司 Mobile terminal, method for executing expansion command and functional expansion module
CN102314218A (en) * 2010-07-01 2012-01-11 李峰 Man-machine interaction method on intelligentized mobile phone and system
CN101577763B (en) * 2009-06-19 2012-07-18 中兴通讯股份有限公司 Cellphone message tracking mechanism and cellphone code test method
CN102915113A (en) * 2012-08-24 2013-02-06 深圳创维-Rgb电子有限公司 Method and apparatus for supporting data input
CN106227821A (en) * 2016-07-21 2016-12-14 杭州华三通信技术有限公司 A kind for the treatment of method and apparatus of order line order
US9762430B2 (en) 2012-02-17 2017-09-12 Huawei Technologies Co., Ltd. Method and apparatus for clearing configuration command in communication equipment
CN110196714A (en) * 2019-06-04 2019-09-03 上海合桀软件技术有限公司 A kind of conversion restoring method of original directive, storage equipment and terminal
CN113645070A (en) * 2021-08-10 2021-11-12 中国工商银行股份有限公司 Network equipment operation execution method and device, computer equipment and storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577763B (en) * 2009-06-19 2012-07-18 中兴通讯股份有限公司 Cellphone message tracking mechanism and cellphone code test method
CN102111484A (en) * 2009-12-29 2011-06-29 比亚迪股份有限公司 Mobile terminal, method for executing expansion command and functional expansion module
CN101841430A (en) * 2010-05-05 2010-09-22 北京星网锐捷网络技术有限公司 Method and device for correcting command line
CN102314218A (en) * 2010-07-01 2012-01-11 李峰 Man-machine interaction method on intelligentized mobile phone and system
US9762430B2 (en) 2012-02-17 2017-09-12 Huawei Technologies Co., Ltd. Method and apparatus for clearing configuration command in communication equipment
CN102915113A (en) * 2012-08-24 2013-02-06 深圳创维-Rgb电子有限公司 Method and apparatus for supporting data input
CN102915113B (en) * 2012-08-24 2016-01-27 深圳创维-Rgb电子有限公司 A kind of data input support method and device
CN106227821A (en) * 2016-07-21 2016-12-14 杭州华三通信技术有限公司 A kind for the treatment of method and apparatus of order line order
CN106227821B (en) * 2016-07-21 2019-08-06 新华三技术有限公司 A kind for the treatment of method and apparatus of order line command
CN110196714A (en) * 2019-06-04 2019-09-03 上海合桀软件技术有限公司 A kind of conversion restoring method of original directive, storage equipment and terminal
CN113645070A (en) * 2021-08-10 2021-11-12 中国工商银行股份有限公司 Network equipment operation execution method and device, computer equipment and storage medium
CN113645070B (en) * 2021-08-10 2022-12-20 中国工商银行股份有限公司 Network equipment operation execution method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101257402A (en) Method and system for equipment to realize user-defined order
WO2017028514A1 (en) Method and device for storing and reading data
CN100511132C (en) Method and system for laying out and accessing modules of user interface
CN103729373A (en) Database agency method and device
CN102520619A (en) General-purpose satellite remote sensing simulator
CN101083527A (en) User operation authority centralized management system and method
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
CN102393848B (en) Method and system for acquiring identification information of data terminal equipment
CN102272751A (en) Data integrity in a database environment through background synchronization
US20140371898A1 (en) Apparatus and method for managing machine tool information for heterogeneous numerical control devices
CN102043753A (en) Device information setting apparatus and device information setting method
CN101719131B (en) Method, device and system for processing report data
CN101706818A (en) Report dynamic filtering method and device
CN103870511A (en) Shared memory-based information inquiring equipment and method
CN103106088A (en) Hardware and firmware independently updating system and method thereof
CN110569206A (en) Driving frame supporting multiple sensors, method, electronic equipment and storage medium
US20070283260A1 (en) Human-machine Interface System with Device Bridge and Method for Designing and Operating the Same
CN104050111A (en) Accessing different types of memory by respective commands with different timing requirements
CN1975701B (en) Master machine driving external equipment method and system
CN111339560B (en) Data isolation method, device and system
CN102521318A (en) General data exchange device based on extensible markup language (XML)
CN101593123A (en) The curing of flash recordable plug-in component and terminal device
EP1955140A2 (en) Adaptive data dictionary language, extendable for a security system
CN100423492C (en) Management information base processing method
CN102663205A (en) Software realization method and system for vehicle assembly shop tooling site management

Legal Events

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

Application publication date: 20080903