Event Port Logging; Enabling Port Logging; Viewing The Port Log - Lantronix SCS Reference Manual

Secure console servers
Table of Contents

Advertisement

Console Server Features

3.2 Event Port Logging

Port logging saves all idle data from an SCS serial port in a log file. This log file can be accessed by a system
administrator after a system crash, and can provide valuable information about the cause of and solution for
any problems with the attached serial device.
If email notification (discussed in Email Alerts for Serial Events on page 3-3) is enabled, the serial log can
be sent via email to the system administrator.

3.2.1 Enabling Port Logging

Enable port logging with the Set/Define Ports Serial Log command. This command sets the file size for
the log file, which can be up to 250 Kbytes. To disable the log file, enter a file size of 0.
Local>> DEFINE PORT 2 SERIALLOG LIMIT 200
This command sets port access to Access Remote.
Note:
The log file is stored on the SCS /ram disk in the form /ram/Port_xx.log where xx is the port number. When
the file reaches its specified limit, it is truncated to half its current size and begins logging again. The oldest
data is discarded.
When the SCS is rebooted, the data stored in the log file is lost.

3.2.2 Viewing the Port Log

This section describes three methods for retrieving port logs.
3.2.2.1 Telnet/Serial Login
To retrieve the port log using Telnet, SSH, or terminal login:
1
At a Local_n >prompt, type disk ls to see the files. The file is Port_nn by default, where nn is the
port number.
2
To view the entire log, type disk cat port_nn.log.
You can use other Unix commands, such as tail and top.
Note:
3.2.2.2 Web Interface
To retrieve the port log using the web browser interface:
Open the web browser interface and http to the IP address or hostname of the SCS. The SCS Home
1
page displays. If logging is enabled, the port name is a link.
2
Click the link to open the file in the default text viewer.
3.2.2.3 FTP
To retrieve the port log using an FTP session:
Figure 3-2: Saving Serial Data to a Logfile
3-2
Event Port Logging

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SCS and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents