Patent ID: 7219339
Filing Date: 2007-05-15
Classification: G06F,H04L

Abstract:
1. A method of automatically parsing one or more configuration commands for a network device that uses a command-line interface and generating a representation of the commands, using a grammar-based framework, comprising the computer-implemented steps of: receiving one or more syntax definitions for a grammar associated with the command-line interface; compiling the syntax definitions into a grammar object that represents the grammar, wherein the grammar object includes one or more parameter values associated with commands of the command-line interface; wherein the grammar object comprises one or more data structures, wherein each data structure stores syntactic information about a specific command of the commands of the command-line interface; receiving a configuration of the network device; parsing the configuration using the grammar object; wherein parsing the configuration comprises searching the one or more data structures in the grammar object to locate a matching data structure that is associated with a configuration command included in the configuration; creating and storing one or more configuration values associated with the commands, based on parsing the configuration.