Oracle® Fabric OS 1.0.2 Command Reference

Exit Print View

Updated: November 2016
 
 

set cli

The set cli command configures different attributes of the CLI.

Syntax

set cli autocommit {off|on} [–noconfirm]
set cli block-entry {off|on}
set cli color {off|on}
set cli cols number
set cli confirm {off|on}
set cli echo {off|on}
set cli idle-timeout minutes
set cli mode {expert|user|xml}
set cli paging {off|on}
set cli progress-bar {off|on}
set cli prompt {custom value|normal}
set cli rows number
set cli space-completion {off|on}
set cli wrap {off|on}

where:

  • minutes is the number of minutes an idle-timeout will last.

  • number is the number of columns or rows on the screen.

  • value is the CLI prompt.

This command has subcommands. This table describes the subcommands and provides the syntax.

Subcommand
Description
autocommit
Controls whether the CLI automatically commits after each change:
  • on – The default is on. When a CLI command is complete, the system automatically commits the changes to the configuration database.

  • off – When set to off, any changes must be manually written to the database using the commit command. Choosing off lets you make a set of changes and then commit the changes as a group.

block-entry
Controls whether the CLI prompts for the entry of scripting blocks, such as “foreach”.
color
Controls whether the CLI displays colors for command output in a session. Only output is displayed in color. Command prompts and command text is monochrome. By default, colors are displayed, but setting color to off returns the screen to monochrome display.
cols
Sets the number of columns on the terminal screen. The default is the screen size for your monitor. Setting row size might not be available through a TTY/console port.
confirm
Sets the CLI confirmation mode. If the mode is set to on, the CLI confirms dangerous commands.
echo
Displays all CLI communication. Choosing on echoes all commands to the terminal screen. The default is off.
history
Sets the number of saved history commands to display. The buffer limit size is 512 commands per user. The log is persistent across CLI login sessions.
idle-timeout
After a specified number of idle minutes, the CLI session times out. Configure a value of 0 to configure an infinite CLI timeout (no timeout). The default is 30 minutes.
mode
Controls the CLI mode. The default is user.
paging
Sets the CLI paging mode. When set to on, the display output stops when the screen is full. When paging mode is off, the output does not stop at the end of the page.
progress-bar
Determines if a progress bar is displayed on the screen for commands that are expected to take a long time to execute.
prompt
Controls the current CLI prompt mode. The custom keyword sets the prompt to be an arbitrary CLI expression. The normal keyword sets the prompt to be the full name of the current object, such as admin@nsn150-162[OFOS].
  • custom – Sets the prompt to an arbitrary CLI expression.

  • normal – Sets the prompt to the full name of the current object.

rows
Sets the number of rows on the terminal screen. The default is the screen size for your monitor. Setting row size might not be available through a TTY/console port.
space-completion
Controls whether the CLI completes commands when the spacebar is pressed. The default is on.
wrap
Controls whether the CLI wraps text at the end of line. The default is on.

Options

Option
Description
–noconfirm
Turns off the confirmation when configuring or displaying the CLI.

Example: Controlling Echo on the Command Line

This example shows how to turn echo on and off on the command line.

[OFOS] set cli echo on
[OFOS] add server-profile foo
add server-profile foo
add  server virtual "foo"
    // if a template was specified, apply it now
top
top
commit noconfirm
[OFOS] set cli echo off
set cli echo off