Changing the command line options – Thinklogical Configuring the TLX ASCII Interface User Manual

Page 8

Advertising
background image

®

Configuring the TLX ASCII Interface

5

Rev. A - July, 2015

Changing the Command Line Options

The command line options are stored in the file:

/etc/default/tlxapi

.

The default file contents are:

# Defaults for tlxrapi initscript

# sourced by /etc/init.d/tlxrapi

# installed at /etc/default/tlxrapi by the maintainer scripts

#

# This is a POSIX shell fragment

#

## set this to no and the daemon will not run

APIRUN=yes

# Command line options that are passed to tlxrapi.

TLXAPI_ARGS="--verbose –api"

Command line options are added to the

TLXAPI_ARGS

line.

For example, to change the serial port baud rate to 115200 and send a CRLF at the end of each
line, the TLXAPI_ARGS line will be:

TLXAPI_ARGS="--verbose --api --baud=115200 --CR"

After the file is modified and saved, the following command will restart the API with the new
settings:

service tlxapi restart

Note: Any changes you make to the switch firmware will be lost if you install a new
SD card from Thinklogical.

Advertising