User`s guide
Chapter 1 XgOS CLI Overview 3
■ Scripting Engine—Enables you to run scripts within the CLI for each I/O card.
The engine also enables you to define new commands. Script support in the XgOS
CLI includes a full text editor for writing and revising your scripts. For the details
about the scripting engine, see “Scripting XgOS Commands” on page 351
This section introduces the CLI itself and explains the online help that is available.
Command Completion
The CLI includes a powerful command-completion feature that informs you of
possible commands, subcommands, and options at each point on the command line.
The following kinds of command completion are available:
■ To complete an unambiguous entry, press the Tab key.
■ If your entry is unambiguous, the CLI completes the command or subcommand
that you have begun typing. For example, if you enter the following:
the CLI adds profile to your command line as the only legitimate completion.
This form of command completion can potentially save you a lot of typing.
■ To see valid completions at any point, type ? on the command line.
■ Typing a question mark causes the CLI to print a list of valid completions, and
some short help text for each item, for what is currently on the command line. For
example, if you enter the following:
The CLI responds with the following:
■ You can also press the Tab key twice to get this same command completion.
The command-completion facility is context sensitive and always displays what the
CLI determines to be valid at the point in the command where you request the
completion. You can configure the CLI to automatically complete the command
whenever the space bar is pressed. (Refer to the set cli space-completion
command.)
add server-[Tab]
ad?
Possible completions:
[Configuration commands]
add Add a configuration object to the system if it doesn’t already exist.
[Scripts]
add10vnics