Tail - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Chapter 23
T Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

tail

To display the last lines (tail end) of a specified file, use the tail command in EXEC mode.
Syntax Description
filename
number-of-lines
Defaults
Displays the last 10 lines.
Command Modes
EXEC mode.
Command History
Release
1.0(2)
Usage Guidelines
You need two separate CLI terminals to use this command. In one terminal, execute the run-script or any
other desired command. In the other, issue the tail command for the mylog file. On the second terminal
session, you will see the last lines of the mylog file (as it grows) that is being saved in response to the
command issued in the first terminal.
If you specify a long file and would like to exit in the middle, enter Ctrl-c to exit this command.
Examples
The following example displays the last lines (tail end) of a specified file.
switch# run-script slot0:test mylog
In another terminal, issue the tail command for the mylog file.
switch# tail mylog
config terminal
In the second CLI terminal, you see the last lines of the mylog file (as it grows) that is being saved in
response to the command issued in the first terminal.
OL-8413-07, Cisco MDS SAN-OS Release 3.x
tail filename [number-of-lines]
The name of the file for which you want to view the last lines.
(Optional) The number of lines you want to view. The range is 0 to 80 lines.
Modification
This command was introduced.
Cisco MDS 9000 Family Command Reference
tail
23-13

Advertisement

Table of Contents
loading

Table of Contents