The Command Line Interface, or CLI, is an application that is operated through an ASCII terminal. The user has greater configuration flexibility by entering the commands directly. The CLI is a basic command-line interpreter with command-line completion, inline syntax help, and prior command recall. The CLI can be accessed from a console terminal connected to a console port or through an SSH/Telnet session. A switch can be configured and maintained by entering commands into the CLI.
The CLI is the choice of most engineers for configuring and maintaining switches. It allows for copying and pasting parts, or all, of a configuration to re-use on other systems. The CLI also provides a basis for scripting and automation. The following is an example taken from Chapter 4 of commands entered at a command line:
OS10#configure
OS10(conf)#interface mgmt 1/1/1
OS10(conf-if-ma-1/1/1)#no ip address dhcp
OS10(conf-if-ma-1/1/1)#ip address 192.168.1.10/24
Terminal emulators are available for Windows or Linux that run on a PC. Terminal emulators provide a method for entering CLI commands. A terminal emulator example is provided in Appendix A.