CN105141444A - Regular matching-based method and system for generating network management commands - Google Patents
Regular matching-based method and system for generating network management commands Download PDFInfo
- Publication number
- CN105141444A CN105141444A CN201510439399.8A CN201510439399A CN105141444A CN 105141444 A CN105141444 A CN 105141444A CN 201510439399 A CN201510439399 A CN 201510439399A CN 105141444 A CN105141444 A CN 105141444A
- Authority
- CN
- China
- Prior art keywords
- regular expression
- mating
- network management
- character
- management command
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0266—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a regular matching-based method for generating network management commands. The method comprises the following steps: (S1) constructing a command set composed of all network management commands; (S2) presetting the matching rule of the network management commands and a regular expression; (S3) obtaining input regular expression commands; and (S4) matching the input regular expression commands with the matching rule one by one, judging whether the matched result is sole or not, if the matched result is sole, directly displaying the matched network management commands, if two or more matched results are generated, displaying all matched network management commands. The invention further provides a regular matching-based system for generating the network management commands.
Description
Technical field
The present invention relates to network management command design field, particularly a kind of network management command based on canonical coupling generates method and system.
Background technology
Along with social progress and technical development, network management device function is more and more strong, and for supporting many New function and characteristic, for its network management command be equipped with gets more and more, even conveniently keeper manages, and is also provided with hidden command.Domestic consumer does not also know how to use, even network manager, when there will be the infull command keyword of note yet.Network equipment vendor is when designing order line in addition, and it is not thorough to consider, and some orders are long especially, and very lack of standardization, and even many orders have identical several Repeating Fields, are extremely unfavorable for that user grasps, always there will be note not full command keyword time.And for many many orders of Repeating Field, even if skilled keeper, input efficiency of getting up is also relatively low.And the CLI (COMMANDLINEINTERFACE) of each equipment vendors is not quite similar, after being familiar with the equipment of equipment vendors, when adapting to new vendor equipment, efficiency is very low, and easy misoperation causes damage.
Use network management command for the ease of new user, facilitate the quick input command of skilled user, the invention provides a kind of Command design method based on matching regular expressions, simple command input process, increases work efficiency and Product's Ease of Use.
Summary of the invention
In view of this, the invention provides one can simple command input process, increases work efficiency and the network management command based on canonical coupling of Product's Ease of Use generates method and system.
A kind of network management command generation method based on canonical coupling, comprises the steps:
S1, construct the command history be made up of all-network administration order;
The matched rule of S2, default network management command and regular expression;
The regular expression order of S3, acquisition input;
S4, the regular expression order of input to be mated one by one with matched rule, judge that whether matching result is unique, if matching result is unique, directly show the network management command of mating; If matching result has two or more, then show the network management command of all couplings.
Based on a network management command generation system for canonical coupling, comprise as lower unit:
Command history structural unit, for constructing the command history be made up of all-network administration order;
Matched rule setting unit, for the matched rule of default network management command and regular expression;
Command input unit, for obtaining the regular expression order of input;
Matching unit, for the regular expression order of input being mated one by one with matched rule, judging that whether matching result is unique, if matching result is unique, directly showing the network management command of coupling; If matching result has two or more, then show the network management command of all couplings.
Network management command based on canonical coupling provided by the invention generates method and system, and tool has the following advantages:
By with the form design network management command of regular expression, order itself can a more than keyword, such as can carry out coupling input according to canonical matched rule as during input in space, various order can be inputted easily, improve the ease for use of input efficiency and equipment;
Command design defers to canonical matched rule of the present invention, order input is mated according to unified canonical matched rule, not only can play suggesting effect to new user, skilled user can utilize canonical matched rule, the regular expression order that input simplifies, reduce input time, thus raise the efficiency.
By regular expression is regarded in order itself, user can be guided to input and look-up command by canonical matching way.For new user, more conveniently can search the corresponding command; And for old users such as keepers, input command can be mated more easily, increase work efficiency.
Accompanying drawing explanation
Fig. 1 is that the network management command based on canonical coupling of the embodiment of the present invention generates method flow diagram;
Fig. 2 is the network management command generation system structured flowchart based on canonical coupling of the embodiment of the present invention.
Embodiment
As shown in Figure 1, a kind of network management command generation method based on canonical coupling, comprises the steps:
S1, construct the command history be made up of all-network administration order;
The matched rule of S2, default network management command and regular expression;
The regular expression order of S3, acquisition input;
S4, the regular expression order of input to be mated one by one with matched rule, judge that whether matching result is unique, if matching result is unique, directly show the network management command of mating; If matching result has two or more, then show the network management command of all couplings.
Alternatively, regular expression order comprises simple escape character (ESC) coupling regular expression, various characters asterisk wildcard regular expression, self-defined various characters coupling regular expression, specifies matching times regular expression, Special Significance character match regular expression.
Regular expression is made up of some general character and metacharacter.General character comprises the letter and number of capital and small letter, and metacharacter has special implication.Combined by general character and metacharacter, all orders in command history can be formed, but be not limited thereto.Matched rule is as follows:
General character mates: the simplest and the most direct matching way, mates the general character string (order) of user's input, as the order of " telnet " coupling telnet telnet.
Alternatively, simple escape character (ESC) coupling regular expression comprises the regular expression for mating blank character.Simple escape character (ESC) coupling regular expression is as following table 1:
regular expression | coupling |
s | blank character, comprises space and tab etc. |
Table 1
Alternatively, various characters asterisk wildcard regular expression comprises the regular expression for mating word border, for mating the regular expression on non-word border, for mating the regular expression of individual digit character, for mating the regular expression of nonnumeric character, for mating the regular expression of any word character comprising underscore and minus sign, for mating the regular expression of any non-word character.Various characters asterisk wildcard regular expression is as following table 2:
Table 2
Alternatively, self-defined various characters coupling regular expression comprises the regular expression for mating any one character in character set, for mating the regular expression of any character do not comprised in negative value character set, for mating the regular expression of any any character not in specified scope.Self-defined various characters coupling regular expression is as following table 3:
Table 3
Alternatively, matching times regular expression is specified to comprise regular expression for mating the nonnegative integer determined time, for mating the regular expression that at least nonnegative integer is secondary, for mating the regular expression of number of times between two nonnegative integer scopes, for mating the regular expression of arbitrary string, for mating the regular expression of sub-regular expression one or many above, for the regular expression of mate sub-regular expression above 0 time or 1 time.Specify matching times regular expression as following table 4:
Table 4
Alternatively, Special Significance character match regular expression comprises the regular expression of the starting position for mating character string in input command, for mating the regular expression of any single character in character set, for connecting the regular expression of uncertain coupling.Special Significance character match regular expression is as following table 5:
Table 5
The concrete character of the regular expression above in each table can independent and flexible be arranged.
As shown in Figure 2, the embodiment of the present invention also provides a kind of network management command generation system based on canonical coupling, comprises as lower unit:
Command history structural unit 10, for constructing the command history be made up of all-network administration order;
Matched rule setting unit 20, for the matched rule of default network management command and regular expression;
Command input unit 30, for obtaining the regular expression order of input;
Matching unit 40, for the regular expression order of input being mated one by one with matched rule, judging that whether matching result is unique, if matching result is unique, directly showing the network management command of coupling; If matching result has two or more, then show the network management command of all couplings.
Above embodiment of the method and system embodiment one_to_one corresponding, therefore the content of embodiment of the method can also be used for system embodiment.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in any other forms of storage medium known in random access memory, internal memory, read-only memory, electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Be understandable that, for the person of ordinary skill of the art, other various corresponding change and distortion can be made by technical conceive according to the present invention, and all these change the protection range that all should belong to the claims in the present invention with distortion.
Claims (8)
1. a network management command generation method of mating based on canonical, is characterized in that, comprise the steps:
S1, construct the command history be made up of all-network administration order;
The matched rule of S2, default network management command and regular expression;
The regular expression order of S3, acquisition input;
S4, the regular expression order of input to be mated one by one with matched rule, judge that whether matching result is unique, if matching result is unique, directly show the network management command of mating; If matching result has two or more, then show the network management command of all couplings.
2. as claimed in claim 1 based on the network management command generation method of canonical coupling, it is characterized in that, regular expression order comprises simple escape character (ESC) coupling regular expression, various characters asterisk wildcard regular expression, self-defined various characters coupling regular expression, specifies matching times regular expression, Special Significance character match regular expression.
3. as claimed in claim 2 based on the network management command generation method of canonical coupling, it is characterized in that, simple escape character (ESC) coupling regular expression comprises the regular expression for mating blank character.
4. as claimed in claim 2 based on the network management command generation method of canonical coupling, it is characterized in that, various characters asterisk wildcard regular expression comprises the regular expression for mating word border, for mating the regular expression on non-word border, for mating the regular expression of individual digit character, for mating the regular expression of nonnumeric character, for mating the regular expression of any word character comprising underscore and minus sign, for mating the regular expression of any non-word character.
5. as claimed in claim 2 based on the network management command generation method of canonical coupling, it is characterized in that, self-defined various characters coupling regular expression comprises the regular expression for mating any one character in character set, for mating the regular expression of any character do not comprised in negative value character set, for mating the regular expression of any any character not in specified scope.
6. as claimed in claim 2 based on the network management command generation method of canonical coupling, it is characterized in that, matching times regular expression is specified to comprise regular expression for mating the nonnegative integer determined time, for mating the regular expression that at least nonnegative integer is secondary, for mating the regular expression of number of times between two nonnegative integer scopes, for mating the regular expression of arbitrary string, for mating the regular expression of sub-regular expression one or many above, for the regular expression of mate sub-regular expression above 0 time or 1 time.
7. as claimed in claim 2 based on the network management command generation method of canonical coupling, it is characterized in that, Special Significance character match regular expression comprises the regular expression of the starting position for mating character string in input command, for mating the regular expression of any single character in character set, for connecting the regular expression of uncertain coupling.
8., based on a network management command generation system for canonical coupling, it is characterized in that, comprise as lower unit:
Command history structural unit, for constructing the command history be made up of all-network administration order;
Matched rule setting unit, for the matched rule of default network management command and regular expression;
Command input unit, for obtaining the regular expression order of input;
Matching unit, for the regular expression order of input being mated one by one with matched rule, judging that whether matching result is unique, if matching result is unique, directly showing the network management command of coupling; If matching result has two or more, then show the network management command of all couplings.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510439399.8A CN105141444A (en) | 2015-07-24 | 2015-07-24 | Regular matching-based method and system for generating network management commands |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510439399.8A CN105141444A (en) | 2015-07-24 | 2015-07-24 | Regular matching-based method and system for generating network management commands |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105141444A true CN105141444A (en) | 2015-12-09 |
Family
ID=54726662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510439399.8A Pending CN105141444A (en) | 2015-07-24 | 2015-07-24 | Regular matching-based method and system for generating network management commands |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105141444A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109766483A (en) * | 2018-12-28 | 2019-05-17 | 平安科技(深圳)有限公司 | Regular expression generation method, device, computer equipment and storage medium |
CN110908729A (en) * | 2019-10-12 | 2020-03-24 | 杭州安恒信息技术股份有限公司 | Command line output information processing method based on regular matching |
CN113645070A (en) * | 2021-08-10 | 2021-11-12 | 中国工商银行股份有限公司 | Network equipment operation execution method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564128A (en) * | 2004-03-26 | 2005-01-12 | 中兴通讯股份有限公司 | String manipulation command method |
CN101582794A (en) * | 2009-06-26 | 2009-11-18 | 西安电子科技大学 | System and method for unified configuration of network equipment |
CN103188092A (en) * | 2011-12-28 | 2013-07-03 | ***通信集团北京有限公司 | Remote equipment control method, remote equipment control device and control server |
-
2015
- 2015-07-24 CN CN201510439399.8A patent/CN105141444A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564128A (en) * | 2004-03-26 | 2005-01-12 | 中兴通讯股份有限公司 | String manipulation command method |
CN101582794A (en) * | 2009-06-26 | 2009-11-18 | 西安电子科技大学 | System and method for unified configuration of network equipment |
CN103188092A (en) * | 2011-12-28 | 2013-07-03 | ***通信集团北京有限公司 | Remote equipment control method, remote equipment control device and control server |
Non-Patent Citations (1)
Title |
---|
华为技术有限公司: ""熟悉命令行"", 《AR530 V200R005C60命令参考,HTTP://SUPPORT.HUAWEI.COM/ENTERPRISE/ZH/DOC/DOC1000061814?SECTION=10012》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109766483A (en) * | 2018-12-28 | 2019-05-17 | 平安科技(深圳)有限公司 | Regular expression generation method, device, computer equipment and storage medium |
CN109766483B (en) * | 2018-12-28 | 2024-04-19 | 平安科技(深圳)有限公司 | Regular expression generation method, device, computer equipment and storage medium |
CN110908729A (en) * | 2019-10-12 | 2020-03-24 | 杭州安恒信息技术股份有限公司 | Command line output information processing method based on regular matching |
CN110908729B (en) * | 2019-10-12 | 2023-05-23 | 杭州安恒信息技术股份有限公司 | Command line output information processing method based on regular matching |
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 |
---|---|---|
Fu et al. | Toward efficient multi-keyword fuzzy search over encrypted outsourced data with accuracy improvement | |
WO2020143620A1 (en) | Method for displaying block chain data, block chain browser, user node and medium | |
CN105141444A (en) | Regular matching-based method and system for generating network management commands | |
Lan et al. | A projection-based approach for discovering high average-utility itemsets | |
JP5840110B2 (en) | Same item detection device and program | |
CN108319661A (en) | A kind of structured storage method and device of spare part information | |
CN104462421A (en) | Multi-tenant expanding method based on Key-Value database | |
JP2012185666A (en) | Device and method for aggregation and expansion processing, program, and storage medium | |
WO2018040942A1 (en) | Verification method and device | |
CN111309979A (en) | RDF Top-k query method based on neighbor vector | |
Shah | Association rule mining with modified apriori algorithm using top down approach | |
CN108920448A (en) | A method of the comparison based on shot and long term memory network extracts | |
CN105335466A (en) | Audio data retrieval method and apparatus | |
JP2019135634A (en) | Generating program, generating method, and generating device | |
CN106326295B (en) | Semantic data storage method and device | |
De March | Quasi-sure duality for multi-dimensional martingale optimal transport | |
CN116346307A (en) | Statistical information-based iterative attack method for searchable symmetric encryption | |
JP2011039977A (en) | Word clustering device, method and program, and recording medium storing the program | |
CN115328917A (en) | Query method, device, equipment and storage medium | |
Han et al. | Combinatorics of γ-structures | |
WO2021207831A1 (en) | Method and systems for indexing databases on a contextual basis | |
JP2017182377A (en) | Information processing device, control method, and program | |
JP2018010482A (en) | Document concept base generation device, document concept search device, method and program | |
CN116108455B (en) | Vulnerability deduplication method, vulnerability deduplication device, vulnerability deduplication equipment and storage medium | |
CN112364368B (en) | Telephone number encryption storage method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Yang Shuhui Inventor after: Chen Long Inventor after: Chen Shuang Inventor after: Shi Ning Inventor before: Li Yuqiang Inventor before: Chen Long Inventor before: Chen Shuang Inventor before: The inventor has waived the right to be mentioned |
|
COR | Change of bibliographic data | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151209 |