User`s guide
62 XgOS User’s Guide • September 2014
▼ Search the CLI History
1. Press Ctrl-R to initiate a history search:
Ctrl-C will interrupt the search. Repeated Ctrl-R will display the previous
command.
2. Enter the command text string to search on:
3. Press the Enter key to bring the command to the host prompt:
CLI Recording
The XgOS CLI contains a command-line recording tool which supports capturing the
commands in a management session in the exact sequence in which the commands
were issued, then writing that series of commands to a script that you name. After
the script is saved, you can then run the script to reproduce the exact set of
commands.
Use the cli record-script command to start the command-line recording tool,
and use the cli stop-recording command to stop the recording tool and write
the commands to the named script.
When the CLI is being recorded, it behaves as normal, including the display of error
or status messages, but the string xsigo-recording is inserted in the command
prompt to indicate the CLI recording tool is active and recording the current
commands.
When the script is run, the command output is displayed, but status and error
messages are not displayed. The actual commands logged in the script are also not
displayed.
():
(gogo): add server-profile gogo
add server-profile gogo
cli record-script <name>
cli stop-recording