The CLI framework provides IP server the capability to communicate with devices with CLI interfaces. For all communications with the corresponding devices, it uses Telnet or SSH. The devices could be any UnitaryComputerSystem with Telnet or SSH enabled. The commands are executed on the devices as line by line text, and the response processed as required in the IP server. The framework provides an excellent means of session caching as it improves performance by avoiding the building up of connection every time.