Command Line Interface
33
5 COMMAND LINE INTERFACE
The primary user interface to SmartWare is the command line interface (CLI). You can access the CLI
either via the SmartNode console port or through a Telnet session. The CLI lets you configure the
complete SmartWare functionality, in contrast to other management interfaces (SNMP, HTTP) which
are limited to a subset of the functions. CLI commands can be entered on-line or as a configuration
script in the form of a text file. The CLI also includes monitoring and debugging commands. CLI
commands are simple strings of keywords and user-specified arguments.
This chapter gives an overview of the CLI and the basic features that allow you to navigate the CLI
and edit commands effectively. The following topics are covered:
•
Command Modes
•
Command Editing
For detailed information on command syntax, and usage guidelines for each CLI command refer to
Chapter 1, “Command Line Interface”, in the SmartWare
Command Reference Guide
.
5.1 Command Modes
The CLI is comprised of
modes
. There are two
mode groups
, the
exec mode
group and the
configuration mode
group. Within the exec mode group there are two modes:
operator exec
and
administrator exec
. The configuration mode group contains all of the remaining modes. A command
mode is an environment within which a group of related commands is valid. All commands are
mode-specific, and certain commands are valid in more than one mode. A command mode provides
command line completion and context help within the mode. The command modes are organized
hierarchically.
The operator’s current working mode is indicated by the CLI prompt. An overview of all command
modes is given in Figure 5-1 and Table 5-1.
Appendix A contains a detailed overview of all command modes and the CLI commands that are
valid in each mode.
Software Configuration Guide, Revision 1.03