Specifications
3-421
Cisco Wide Area Application Services Command Reference
OL-21611-01
Chapter 3 CLI Commands
type-tail
type-tail
To view a specified number of lines of the end of a log file, to view the end of the file continuously as
new lines are added to the file, to start at a particular line in the file, or to include or exclude specific
lines in the file, use the type-tail EXEC command.
type-tail filename [line | follow | | {begin LINE | exclude LINE | include LINE}]
Syntax Description
Defaults The last ten lines are shown.
Command Modes EXEC
Device Modes application-accelerator
central-manager
Usage Guidelines The type-tail command allows you to monitor a log file by letting you view the end of the file. You can
specify the number of lines at the end of the file that you want to view, or you can follow the last line of
the file as it continues to log new information. To stop the last line from continuously scrolling as with
the follow option, use the key sequence Ctrl-C.
You can further indicate the type of information to display using the output modifiers. These allow you
to include or exclude specific lines or to indicate where to begin displaying the file.
Examples The following example shows how to looks for a list of log files in the /local1 directory and then displays
the last ten lines of the syslog.txt file. In this example, the number of lines to display is not specified, so
the default of ten lines is used:
WAE# ls /local1
actona
core_dir
crash
filename File to be examined.
line (Optional) Number of lines from the end of the file to be displayed (1–65535).
follow (Optional) Displays the end of the file continuously as new lines are added to the file.
| (Optional) Displays contents of the file according to the begin, exclude, and include
output modifiers.
begin LINE Identifies the line at which to begin file display. Specifies a regular expression to
match in the file.
exclude LINE Indicates lines that are to be excluded from the file display. Specifies a regular
expression to match in the file.
include LINE Indicates lines that are to be included in the file display. Specifies a regular expression
to match in the file.