User Guide
DDOC0099-000-AH
DTS1 CSfC
12 - 25
Command Line Interface
© 2020 Curtiss-Wright Defense Solutions
Revision 5.0
12.3.15
log
NOTE
The DTS1 has only 1 RMC slot. As a result, the -s option is always -s 0.
Description
The log command provides access to the DTS log files. Without options, a list of log files is printed.
Without a filename, will list log files that are available for viewing. With filename, will display text of
the log file. By default, only the last 100 are shown, but viewing mode can be modified with
options.
Syntax
log
[
-h
|
--help
|
--version
]
log
[
-m
MODE] FILENAME
Options
-h
,
--help
............................Print help message.
--versio
n............................Print program version. List log files.
-M
...........................................Paged using 'more' utility. 'q' to quit.
-L
...........................................Paged using 'less' utility. 'q' to quit.
-A
...........................................All. Unpaged full text dump.
-F
...........................................Follow output with 'tail -f'. Ctrl-C to quit.
--export
..............................Export log files to an RMC selected by -s.
--archive
............................Like --export, but package files in a .tar.gz file.
-s
...........................................Selects RMC used by --export or --archive.
Example:
View list of log files
Enumerated types
<filename> .............................Name of a log file
<summary> ............................Command status summary (OK, ERR)
Example:
View log file pbit.log using paged viewer
NOTE
Output of viewer(s) not formalized.
Example:
Export an archive of log files to RMC
Line Identifier
LOG: Log export status line
Fields
status=<sts>
.....................Summary status for the line
Enumerated types
<sts> ......................................Status message (OK, ERR "<str>")
<str> .......................................Text string
<summary> ............................Command status summary (OK, ERR)
cw_dts>
log
[log]
<filename>
<filename>
[!log] <summary>
cw_dts>
log -M pbit.log
<file contents>
cw_dts>
log --archive -s 1
[log]
LOG: status=<sts>
[!log] <summary>