![Curtiss-Wright CNS4 CSfC User Manual Download Page 124](http://html.mh-extra.com/html/curtiss-wright/cns4-csfc/cns4-csfc_user-manual_2700348124.webp)
User Guide
DDOC0108-000-A2
CNS4 CSfC
11 - 28
Command Line Interface
Revision 0.0
11.2.19
log
Syntax
log [-h | --help | --version]
log [-M | -L | -A | -F ] FILENAME
log [ --export ] [ --archive ] [ -p <VolID> ]
Description
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.
Options
-h, --help.............................. Print help message.
--version .............................. 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 FSM-C NAS partition selected by -p.
--archive .............................. Like --export, but package files in a .tar.gz file.
-p <number>........................ Selects FSM-C NAS partition used by --export or --archive.
Example 1.
View list of log files
Enumerated Types
<filename> ......................... Name of a log file.
<summary> ......................... Command status summary (OK, ERR).
NOTE
Output of viewer(s) not formalized.
Example 2
. View log file pbit.log using page viewer
Example 3.
Export an archive of log files to the fsm_nas1 partition
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).
cns>
log
[log]
<filename>
<filename>
...
[!log] <summary>
cns>
log -M pbit.log
<file contents>
cns>
log --archive -p 1
[log]
LOG: status=<sts>
[!log] <summary>