Patent ID: 7328145

Claim:
A method for emulation of a command line interface command for a commmand line interface associated with an Internetwork Operating System (IOS) device, the method comprising defining a data structure to hold a data set wherein the data structure is characterized by one or more index values, the index value being less than equal to the total depth of the command data to be captured from the IOS device, the command data usable for emulating a command for a command line interface; opening, using a computing device, a socket connection to the IOS device; sending instructions to return command data for an index value from the computing device to the IOS device; receiving the returned command data from the IOS device; storing the returned command data for a command line interface command in the data structure, the command data being indexed by the associated index value; incrementing the index value; repeating the sending, the storing and the incrementing till the index value exceeds the depth of command data to be captured; and writing the command data captured in the data structure to a file, wherein the returned command data are indexed by associated index values and can be used to emulate the command for the command line interface of the IOS device.