Echoing Information To The Terminal - Cisco Nexus 5500 Series Configuration Manual

Nx-os fundamentals configuration guide, release 7.x
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
You cannot create the script files at the CLI prompt. You can create the script file on a remote device and
Note
copy it to the bootflash:, slot0:, or volatile: directory on the Cisco NX-OS device.
SUMMARY STEPS
1. run-script [bootflash: | slot0: | volatile:]filename
DETAILED STEPS
Command or Action
Step 1
run-script [bootflash: | slot0: | volatile:]filename
Example:
switch# run-script testfile

Echoing Information to the Terminal

You can echo information to the terminal, which is particularly useful from a command script. You can
reference CLI variables and use formatting options in the echoed text.
This table lists the formatting options that you can insert in the text.
Table 7: Formatting Options for the echo Command
Formatting Option
\b
\c
\f
\n
\r
\t
\v
\\
\nnn
OL-30890-01
Purpose
Executes the commands in the file on the default
directory.
Description
Inserts back spaces.
Removes the new line character at the end of the text
string.
Inserts a form feed character.
Inserts a new line character.
Returns to the beginning of the text line.
Inserts a horizontal tab character.
Inserts a vertical tab character.
Displays a backslash character.
Displays the corresponding ASCII octal character.
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Echoing Information to the Terminal
59

Advertisement

Table of Contents
loading

Table of Contents