Westermo MR Series User Manual

Page 41

Advertising
background image

41

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

Continuous writing

A secondary log file will be created on the log drive and the analyser trace will continuously be
appended to this log file in real time. Care should be taken when using this feature to ensure that
the analyser trace is configured correctly and precisely, to only capture the data that is required. If
the analyser is left to capture all traffic on a fast interface, trace data will be missed out from the file
as the unit is unable to write the data fast enough. If this happens the following error will be seen in
the log file ===== Missed Frames 34 =====

There are no web page options.

The CLI commands are:

To specify the log file:

ana 0 contfile <name>

Where <name> is the name of the file on the log drive:

For example, to log a trace to the file u:analog.txt or s:analog.txt

ana 0 contfile analog.txt

To limit the maximum size of the log file:

ana 0 logsizek <n>

Where <n> is the maximum allowed size of the file in Kb, if 0 is used or this value is not set, the
file size is unlimited. For example, to limit the log file to 1Gb

ana 0 logsizek 1048576

Writing PCAP fi les to USB or SD cards

As with the standard analyser trace, the secondary trace may also be configured to capture in
PCAP format for use with Wireshark.

To specify logging to PCAP files:

ana 0 <anatype> <n>

Where <anatype> can be anappps for PPP, anaeths for ethernet and anaips for IP. Where
<n>

defines the maximum number of separate log files to create using circular logging.

This is to be used in conjunction with the ana 0 logsizek <n> command to restrict the size
of the log. eg: ana 0 logsizek 524288

The files written to the log drive will be named anapppx, anaethx or anaipx where x will be the
number of the log file. eg: anappp1, anaeth1 or anaip1.

Disable / enable logging

The command logfat <0|1> will disable and enable secondary logging. This can be used to tem-
porarily stop logging to the secondary log files, this does not affect logging to the standard analyser
trace (ana.txt) which is held in internal memory. This command should be used before removing
a USB flash drive to allow the log files to be closed and ensure data is not being written during
removal of the flash drive.

For example, to disable USB logging

logfat 0

To re-enable USB logging

logfat 1

Advertising
This manual is related to the following products: