RUGGEDCOM ROX II
CLI User Guide
Chapter 2
Using RUGGEDCOM ROX II
Using Output Redirects 29
repeat Repeat show term with a given interval
save Save output text to a file
select Select additional columns
tab Enforce table output
until End with the line that matches
Parameter Description
append Appends the output text to a specified ASCII text file.
For example, running these two terms appends the admin and chassis information to the
specified file:
ruggedcom# show admin | append foo.txt
ruggedcom# show interface | append foo.txt
The resulting file contains the results of show interface appended to the results of show
admin (lines truncated with ... are shortened for illustrative purposes only):
ruggedcom# file show-config foo.txt
admin
time
gmtime "Wed Oct 22 20:05:50 2014"
localtime "Wed Oct 22 16:05:50 2014"
rox-imaging
roxflash-progress
phase Inactive
status message ""
image flashing 0
netconf
statistics
in bad hellos 0
in sessions 0
dropped sessions 0
in rpcs 0
in bad rpcs 0
out rpc errors 0
out notifications 0
alarms
active-alarms chassis 11 1
severity notice
description "Line Module with serial number L15R-1710-PR002 in
slot lm4 is i
nserted or up"
begin Begins the output with the line containing the specified text. Regular expressions can
be used with this redirect. For more information about regular expressions, refer to
Section2.5.7, “Using Regular Expressions”.
For example, show admin | begin netconf returns all of the admin information
following the netconf line:
ruggedcom# show admin | begin netconf
netconf
statistics
in sessions 0 in xml parse errs 0 in bad hellos 0 in rpcs 0 in
bad rpcs 0 in not...
count Displays the number of lines returned by the term.
For example, show admin | count shows the number of lines in the admin information.
ruggedcom# show admin | count
Count: 9 lines