C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
Utility Commands on Cisco IOS XR Software
utility tail
SMR-765
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use the
utility tail
command to copy data from the end of a file.By default, the last 10 lines are copied.
Use the
bytes
keyword to copy the data measured in bytes. Use the
count
number
option to define the
number of lines or bytes to copy. Use the
file
filename
option to specify an input file.
Note
Keywords are entered using the displayed syntax, or with UNIX-equivalent syntax. The
UNIX-equivalent syntax is displayed in parentheses () in the syntax description. To display the
UNIX-equivalent syntax online, enter the keyword
usage
.
Task ID
Examples
In the following example, the
utility tail
command is used to display the last 10 lines of the output from
the command
show version
:
RP/0/RP0/CPU0:router#
show version | utility tail count 10
By iox25.cisco.com in /auto/ioxws46/nightly/ci-34_asr14k_06.09.13 for c2.95.3-8
asr14k-base, V 3.7.1[4n_06.09.13], Cisco Systems, at disk0:asr14k-base-3.7.1
Built on Wed Sep 13 22:04:26 UTC 2006
By iox25.cisco.com in /auto/ioxws46/nightly/ci-34_asr14k_06.09.13 for c2.95.3-8
asr14k-os-mbi, V 3.7.1[4n_06.09.13], Cisco Systems, at disk0:asr14k-os-mbi-3.7.1
Built on Wed Sep 13 21:47:10 UTC 2006
By iox25.cisco.com in /auto/ioxws46/nightly/ci-34_asr14k_06.09.13 for c2.95.3-8
RP/0/RP0/CPU0:router#
In the following example, the
utility tail
command is used with the bytes keyword to display the last 10
bytes in the output:
RP/0/RP0/CPU0:router#
show version | utility tail count 10 bytes
.95.3-p8
RP/0/RP0/CPU0:router#
Related Commands
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
universal
execute
Command
Description
Cuts characters or lines from the output displayed from standard input or a
file.