摘要 |
A method and device for searching a command on a network device. The method comprises: parsing an inputted query command to acquire command information to be searched for; performing a search in a pre-generated query data source file according to the command information to acquire a search result; and displaying the search result, wherein the command information comprises at least one of a command keyword, a command parameter and command mode information, and a generation process of the query data source file comprises sequentially reading each of script files supported by the network device, and parsing the script files to generate the query data source files corresponding to the script files. |