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

Command line analysis method and device

A technology for parsing method and parsing device, which is applied in the field of command line parsing method and device, can solve problems such as cumbersome, bloated programs, and affecting program processing performance, and achieve the effect of reducing string comparison and improving performance

Inactive Publication Date: 2017-11-17
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, when there are too many optional keywords in a certain command line, the processing method of keyword string comparison will cause the program itself to be bloated and cumbersome, and too many string comparisons will also affect the performance of program processing

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
  • Command line analysis method and device
  • Command line analysis method and device
  • Command line analysis method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0040] This embodiment provides a command line parsing method, see figure 1 , the method can include:

[0041] Step S11: Obtain optional keywords input by the user;

[0042] The keywords following the command keywords entered by the user are optional keywords. For example, the key words temperature, power, fan, led, slot, cpu, memory, usb, serial, network, sas, or fc following the command key word deviceinfo show are optional. When the user enters the devic...

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 command line analysis method and device. The command line analysis method comprises the following steps that selectable keywords input by a user are obtained; hash values of the selectable keywords are obtained through calculation according to a hash algorithm formula; corresponding element positions in a hash array are indexed according to the hash values; whether matched keywords which are the same as the selectable keywords are included in the element positions or not is judged, if not, the user is informed of input errors, and if yes, actions corresponding to the selectable keywords are executed. The hash algorithm is used for replacing a common processing method for character string comparison and analysis in sequence according to keywords, the character string comparison is reduced, and the performance of the command line analysis process is improved.

Description

technical field [0001] The present invention relates to the field of data processing, and more specifically, to a command line parsing method and device. Background technique [0002] In the field of storage device management, a common method is the command line method. For the command line mode supported by the storage device, common implementation methods include command keyword comparison, search from the command tree, and other processing procedures. In one case, when a command keyword can be followed by many keywords, according to the conventional implementation method, it is necessary to obtain the command keyword entered by the user first, and then combine the keyword followed by the command keyword entered by the user with the All possible following keywords are matched until the keyword following the command keyword entered by the user is matched, or no match is found after comparing all possible following keywords. According to the matching result program, determ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455
CPCG06F9/45512
Inventor 李美欣
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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