Rebranding and fix to set time command parameters and example.
Updated the customflow option description and the Set custom flow control
example in the Set serial Command.
Trademarks and copyright
Digi, Digi International, and the Digi logo are trademarks or registered trademarks in the United
States and other countries worldwide. All other trademarks mentioned in this document are the
property of their respective owners.
Information in this document is subject to change without notice and does not represent a
commitment on the part of Digi International. Digi provides this document “as is,” without warranty of
any kind, expressed or implied, including, but not limited to, the implied warranties of fitness or
merchantability for a particular purpose. Digi may make improvements and/or changes in this manual
or in the product(s) and/or the program(s) described in this manual at any time.
Warranty
To view product warranty information, go to the following website:
www.digi.com/howtobuy/terms
Send comments
Documentation feedback: To provide feedback on this document, send your comments to
techcomm@digi.com.
Customer support
Digi Technical Support: Digi offers multiple technical support plans and service packages to help our
customers get the most out of their Digi product. For information on Technical Support plans and
pricing, contact us at +1 952.912.3444 or visit us at www.digi.com/support.
ConnectPort® LTS Command Reference
2
Contents
Introduction
Products to which this book applies5
Quick reference for configuring features6
Access the command line8
Configure an IP address9
Basic command information
Navigation and editing keys11
Displaying online help11
Abbreviating commands11
Syntax conventions11
Entering special characters in string values12
Verifying device support for commands12
User permissions in ConnectPort LTS products
Multi-user model14
Increasing security for device users14
Command descriptions
backup17
bash18
boot19
close21
connect23
display24
display buffers27
exit29
help and ?30
info31
kill37
newpass38
ping39
python40
quit41
reconnect42
revert44
ConnectPort® LTS Command Reference
3
rlogin48
set alarm49
set autoconnect52
set buffer56
set esc59
set ethernet60
set group62
set host64
set ippool65
set lcd66
set modem68
set network70
set nfs75
set permissions78
set pmodem84
set portauth86
set portgroup90
set ppp92
set profile96
set python99
set realport100
set rtstoggle102
set samba104
set sdmemory107
set serial109
set service112
set smtp118
set snmp120
set socket_tunnel126
set switches128
set sysauth131
set syslog135
set system137
set tcpserial138
set time141
set trace143
set udpserial146
set usb150
set user153
set web158
set xbee159
show162
status166
telnet167
wan168
who169
ConnectPort® LTS Command Reference
4
Introduction
This book describes the commands in the command-line interface for several Digi product families,
listed below. This chapter provides the following:
n A quick reference showing the commands used to configure features or perform configuration
tasks from the command line.
n Basic information that applies to all commands, including navigation and editing keys,
displaying online help, abbreviating commands, syntax conventions, and entering special
characters in string values.
n How to access the command line.
n How to configure an IP address for a ConnectPort LTS product from the command line, if an
address has not already been assigned.
n Information about user models and user permissions in ConnectPort LTS products, and how
they affect the commands you can issue.
Products to which this book applies5
Quick reference for configuring features6
Access the command line8
Configure an IP address9
Products to which this book applies
This manual documents the command-line interface for the ConnectPort LTS Family, which includes
these products:
n ConnectPort LTS 8
n ConnectPort LTS 8 MEI
n ConnectPort LTS 8 W
n ConnectPort LTS 8 MEI W
n ConnectPort LTS 16
n ConnectPort LTS 16 MEI
n ConnectPort LTS 16 W
n ConnectPort LTS 16 MEI W
n ConnectPort LTS 16 MEI 2AC
ConnectPort® LTS Command Reference
5
IntroductionQuick reference for configuring features
n ConnectPort LTS 32
n ConnectPort LTS 32 MEI
n ConnectPort LTS 32 W
n ConnectPort LTS 32 MEI W
Quick reference for configuring features
The following table shows common features that can be configured from the command line, and the
commands used to configure each feature. If you are viewing the PDF file of this document, click the
commands in the “Commands” column to go to the command descriptions.
Feature/TaskCommands
Alarmsset alarm
Autoconnection
(automatically connect a
user to a server or network
set autoconnect
set serial
set tcpserial
device)
Configuration
management/administration
Backup/restore a configuration from a TFTP server on the network:
backup
Update firmware: boot
Reset configuration to factory defaults: revert or boot
action=factory” (see boot)
Reboot the device: boot
Display current configuration
show
settings in a device
Ethernet settingsset ethernet
Help on device commandshelp and ?
Host name for a device
set host
(Specify a name for the
device)
IP address settingsset network
Multiple Electrical Interface
set switches
(MEI)
Point to Point Protocol (PPP) set ppp
Port bufferingdisplay buffers
Port profiles: sets of
preconfigured serial-port
settings for a particular use
ConnectPort® LTS Command Reference
set buffer
set profile
6
IntroductionQuick reference for configuring features
Feature/TaskCommands
Python program storage and
execution on ConnectPort
LTS products
RealPort (COM port
redirection) configuration
Remote login (rlogin)rlogin
Reverting configuration
settings
RTS Toggleset rtstoggle
Serial port configurationSerial port communication options: set serial
Security, users, user access
permissions, and
user groups
To learn about the Python programming language and
writing programs: see the Digi Python Programming
Guide.
To configure Python programs to execute when the Digi
device boots: set python
To manually execute a Python program from the command
line: python
set realport
See also the RealPort Installation Guide.
revert
Port profiles: set profile
RTS Toggle: set rtstoggle
TCP serial connections: set tcpserial
UDP serial characteristics: set udpserial
See User permissions in ConnectPort LTS products for a discussion
of how users and access permissions are implemented in Digi
Connect products. To create users and change user names: set user
To control access to inbound ports:set service
To issue new password to user: newpass
To set permissions associated with various services and
commands: set permissions
To add or remove user groups, change group configuration
attributes, or display group configuration attributes: set group
Simple Network
Management Protocol
(SNMP)
Simple Mail Transfer
Protocol (SMTP) settings
Set system information:
assign systemidentifying information to a
device
Socket tunnel settingset socket_tunnel
Statistics for your
ConnectPort LTS product
To configure SNMP: set snmp
To enable/disable SNMP service: set service
To configure SMTP settings: set smtp
set system
info
ConnectPort® LTS Command Reference
7
IntroductionAccess the command line
Feature/TaskCommands
Status of your ConnectPort
LTS product
Telnet to network devicestelnet
LCDset lcd
NFSset nfs
Sambaset samba
SD memoryset sdmemory
Syslogset syslog
Traceset trace
USBset usb
Webset web
XBeeset xbee
Access the command line
To configure devices using commands, you must first access the command line, and then log on as
needed.
This procedure assumes that you have already configured the ConnectPort LTS product with an IP
address.
display
status
who
1. To access the command-line interface for the ConnectPort LTS product, enter the following
command from a command prompt on another networked device, such as a server:
telnet
Or
ssh
Where:
ip address is the ConnectPort LTS product’s IP address.
user is the username on ConnectPort LTS product.
For example:
telnet 192.3.23.5
Or
ssh root@192.2.23.5
Or connect to the serial console port with a terminal emulator.
ip address
user@ ip address
ConnectPort® LTS Command Reference
8
IntroductionConfigure an IP address
2. A login prompt is displayed. If you do not know the user name and password for the device,
contact the system administrator who configured the device. The default username is “root”
and the default password is “dbps.”
3. If the system interface access option of the user is set as “Shell”, the bash-shell can be
accessed after authentication is passed. To access configuration-shell from the bash-shell,
enter following command on the bash-shell.
configshell
If the system interface access option of the user is set as “CLI menu”, the configuration-shell
can be accessed directly after authentication is passed. For details on configuring the system
interface access option, see the Digi product’s User’s Guide or the “set user” command.
Configure an IP address
If the device to which you will be issuing commands has not already been assigned an IP address, or if
the IP address needs to be modified from its initial configuration, see the Digi product’s User’s Guide
for details on configuring an IP address.
ConnectPort® LTS Command Reference
9
Basic command information
Navigation and editing keys11
Displaying online help11
Abbreviating commands11
Syntax conventions11
Entering special characters in string values12
Verifying device support for commands12
ConnectPort® LTS Command Reference
10
Basic command informationNavigation and editing keys
Navigation and editing keys
Use the keys listed in the table to navigate the command line and edit commands:
ActionKeys
Move the cursor back one space.Ctrl+b or Left arrow
Move the cursor forward one space.Ctrl+f or Right arrow
Delete the character to the left of the cursor. Ctrl+h or Backspace
Scroll back through commands.Ctrl+p or Upper arrow
Scroll forward through commands.Ctrl+n or Lower arrow
Execute the command.Enter
Displaying online help
Help is available for all commands. The table describes how to access it.
For information on... Type
All commands? (with no additional options)
A specific command
help [
?
Example: help info
Example: info ?
Example: set alarm ?
Abbreviating commands
All commands can be abbreviated. Simply supply enough letters to uniquely identify the command.
Syntax conventions
Presentation of command syntax in this manual follows these conventions:
n Brackets [ ] surround optional material.
n Braces { } surround entries that require you to chose one of several options, which are
separated by the vertical bar, |.
n Non-italicized text indicates literal values, that is, options or values that must be typed exactly
as they appear. Yes and no options are examples of literals.
n Italicized text indicates that a type of information is required in that option. For example,
filename means that the name of a file is required in the option.
command
] OR
[command
]
ConnectPort® LTS Command Reference
11
Basic command informationEntering special characters in string values
Entering special characters in string values
Several commands have options that are string values, for example the “set alarm” command’s
“match” option and the “set autoconnect” command’s “connect_on_string” option.
Escape sequences for special characters
Special characters can be entered in strings using the following escape sequences:
Escape SequenceProcessed as:
\*Match any character. This escape sequence is only available on the
“set alarm match=string” option.
\aAlert character.
\bBackspace character.
\fForm-feed character.
\nNew-line character.
\rCarriage-return character.
\sActs as a separator between characters. This sequence allows you
to enter a string such as “\xB8\s4” where you want the B8
translated as a hexadecimal character separate from the numeric
character 4
\tHorizontal tab character.
\vVertical tab character.
\\Backslash character ( \ ).
\xNA hexadecimal number, where N is up to 20 hexadecimal digits. For
example: \x10\x2
\NAn octal byte, where N is up to 3 octal digits. For example: \2 or
\208
Length limitations for string values
String values for certain command options have specific limitations on the maximum total string value
including special characters, and the maximum parsed value (that is, the character-string length when
any escape sequences in the string are processed). The option descriptions note these maximum
lengths.
Verifying device support for commands
To verify whether a ConnectPort LTS device supports a particular command or command options, and
to get the allowed ranges and limits for command options, you can enter several commands. For
example:
n “help” displays all supported commands for a device.
n “?” displays all supported commands for a device.
n “set ?” displays the syntax and options for the “set” command. You can use this to determine
whether the device includes a particular “set” command variant.
ConnectPort® LTS Command Reference
12
Basic command informationVerifying device support for commands
n “help set” displays syntax and options for the “set” command.
n “set serial ?” displays the syntax and options for the set serial command.
n “help set serial” displays the syntax and options for the set serial command.
Some options may become available in new firmware revisions or before new documentation is
released.
Some commands relate only to particular features unique to specific Digi products. For example, the
“set wlan” command applies only to wireless products. Other commands may have options that are
specific to features that are not available on all devices.
ConnectPort® LTS Command Reference
13
User permissions in ConnectPort LTS products
The user model in a ConnectPort LTS product influences the commands that users can issue.
ConnectPort LTS supports multiple users.
Multi-user model
n User 1 has a default name of “root.” This user is also known as the administrative user.
n User 1 has default permissions that enables the user to issue all commands.
n Permissions for User 1 can be changed to be less than the default root permissions.
n Additional users may be defined as needed. The “set group” command defines user groups (see
"set group").
Increasing security for device users
As needed, you can enforce additional security for device users. For example, you can use the
autoconnect feature, where a user is automatically connected to another system without accessing
the ConnectPort LTS product’s command line. See the "set autoconnect" command on page 57.
ConnectPort® LTS Command Reference
14
Command descriptions
backup17
bash18
boot19
close21
connect23
display24
display buffers27
exit29
help and ?30
info31
kill37
newpass38
ping39
python40
quit41
reconnect42
revert44
rlogin48
set alarm49
set autoconnect52
set buffer56
set esc59
set ethernet60
set group62
set host64
set ippool65
set lcd66
set modem68
set network70
set nfs75
set permissions78
set pmodem84
set portauth86
set portgroup90
set ppp92
set profile96
set python99
set realport100
set rtstoggle102
set samba104
set sdmemory107
set serial109
set service112
ConnectPort® LTS Command Reference
15
Command descriptions
set smtp118
set snmp120
set socket_tunnel126
set switches128
set sysauth131
set syslog135
set system137
set tcpserial138
set time141
set trace143
set udpserial146
set usb150
set user153
set web158
set xbee159
show162
status166
telnet167
wan168
who169
ConnectPort® LTS Command Reference
16
Command descriptionsbackup
backup
Purpose
Saves the device configuration to a TFTP server located on the network or a storage device in the
ConnectPort LTS device, or restores the configuration.
Required permissions
For products with two or more users, permissions must be set to “set permissions backup=execute”
to use this command. See "set permissions" for details on setting user permissions for commands.
The IP address of the TFTP server to which the configuration will be saved, and the filename that the
configuration will be saved as. If a filename is not specified, the default filename of config.rci is used.
to=(sd|usb|nfs|samba|userspace)[:filename]
The location of the storage device to which the configuration will be saved, and the filename to which
hat the configuration will be saved. If a filename is not specified, the default filename of config.rci is
used.
from=serveripaddress[:filename]
The IP address of the TFTP server and the filename from which the configuration will be restored. If a
filename is not specified, the default filename of config.rci is assumed. In ConnectPort LTS, the system
will be rebooted after restoring configuration.
from=(sd|usb|nfs|samba|userspace)[:filename]
The location of the storage device and the filename from which the configuration will be restored. If a
filename is not specified, the default filename of config.rci is used.
print
Prints out the current device configuration.
serveripaddress[:filename
serveripaddress[:filename
]|
filename
] print]|
filename
]]
]]
Example
backup from=10.0.0.1:config.rci
ConnectPort® LTS Command Reference
17
Command descriptionsbash
bash
Purpose
Initiates the BASH Linux shell.
Required permissions
Root privileges are required to initiate the BASH shell.
Syntax
Initiate BASH shell
bash
ConnectPort® LTS Command Reference
18
Command descriptionsboot
boot
Purpose
Reboots the ConnectPort LTS product, restores the device configuration to factory default settings, or
loads new firmware files from a TFTP server.
Required permissions
For products with two or more users, permissions must be set to “set permissions boot=execute” to
use this command. See "set permissions" for details on setting user permissions for commands.
Syntax
Reboot the ConnectPort LTS product
boot action=reset
Restore configuration defaults
boot action=factory
Load new firmware into flash ROM from a TFTP host
boot load=
Options
action
The action to be performed.
load
The firmware to be loaded.
host ip address:loadfile
factory
Resets the entire configuration to factory defaults, and then reboots the device.
reset
Reboots the device.
host ip address
The IP address of a host with new firmware, which is then burned into flash ROM. The
host must be running a TFTP server.
loadfile
The name of a firmware file. The software automatically detects the type of file and
performs the appropriate load operation.
ConnectPort® LTS Command Reference
19
Command descriptionsboot
Examples
Restore configuration defaults
This example reloads the firmware stored in flash ROM and resets the configuration to factory
defaults then reboots the device.
#> boot action=factory
Reboot using the current firmware and configuration
This example reboots the device and uses the current firmware and configuration stored in flash ROM.
#> boot action=reset
Reboot using firmware from a boot host
This example loads the firmware stored on the TFTP host into flash ROM. A reboot is required to use
the new firmware.
#> boot load=10.0.0.1:firmware.bin
See also
revert
ConnectPort® LTS Command Reference
20
Command descriptionsclose
close
Purpose
Closes active connect, Rlogin, and Telnet sessions; that is, sessions opened by “connect,” “rlogin,” or
“telnet” commands.
The “close” command is associated with the sessions displayed by the“status” command.
A “close” command issued without any options closes the current connection.
To issue the “close” command, you must first escape the active session. Do this by pressing the
escape key defined for your session type. The following table lists default escape keys.
Session Type Default Escape Keys
ConnectCtrl+[+Enter
Rlogin~+Enter
TelnetCtrl+]+Enter
For ConnectPort LTS, use the command “z suspend telnet” to escape the active Telnet session
instead of “e exit telnet”. Using the latter command to exit the Telnet session causes the session to
be closed automatically and there will be no session to close using “close” command. See the "telnet”
command description for details on connecting and closing Telnet connections.
Syntax
close [{*|
Options *
Closes all active sessions.
connection number
Identifies the session to close by its session number.
Examples
Close a session identified by number
#> close 1
Close the current session
#> close
Close all active sessions
#> close *
connection number
}]
ConnectPort® LTS Command Reference
21
Command descriptionsclose
See also
n kill: The kill command has a broader effect than close, and lets you kill connections from the
global list. That is, it is not limited to sessions associated with the current connection.
n status for information on displaying status information on active sessions.
n connect
n rlogin
n telnet
ConnectPort® LTS Command Reference
22
Command descriptionsconnect
connect
Purpose
Used to make a connection, or establish a session, with a serial port.
Required permissions
For products with two or more users, permissions must be set to “set permissions connect=execute”
to use this command. See "set permissions" for details on setting user permissions for commands.
Syntax
There are several ways to create and manage connections:
Create a single connection
connect serial port
Create multiple connections
Issue multiple “connect” commands.
Temporarily suspend a connection
Escape the active session by pressing Ctrl [.
Temporarily suspend a connection and return to the command line
Options
serial port
The number of the port on which to establish a connection.
Example
Create a connection to port 1
#> connect 1
See also
n close for information on ending a session.
n reconnect for information on reestablishing a port connection.
ConnectPort® LTS Command Reference
23
Command descriptionsdisplay
display
Purpose
Displays status information for the device. The “display” command’s focus is on real-time information.
In contrast, the “info” command displays statistical information about a device over time, while the
“status” command displays the status of outgoing connections (connections made by “connect,”
“rlogin,” or “telnet” commands). Status information that can be displayed includes:
n General product information, including the product name, MAC address, boot, post, and
firmware versions, memory usage, CPU utilization, and uptime, or the amount of time since the
device was last booted.
n Access control status information.
n ARP table information.
n Contents of a port buffer (see also "display buffers").
n Serial modem signals (DTR, RTS, CTS, DSR, DCD).
n Socket status information.
n Current TCP and UDP session and listener information.
n Uptime information only.
n Version information for Boot, firmware, and Digi part numbers for those items.
Required permissions
For products with two or more users, permissions must be set to “set permissions display=execute”
to use this command. See "set permissions" for details on setting user permissions for commands.
Displays the contents of a port buffer. This option is covered in more detail in "display buffers".
device
Displays general product information including product name, MAC address, boot, and firmware
versions, memory usage, CPU utilization, and uptime. The information displayed by this option is the
same as that displayed by the “info device” command (see "info")
dnsserver
ConnectPort® LTS Command Reference
24
Command descriptionsdisplay
Displays DNS server information.
memory
Displays memory usage.
netdevice
Displays the active interfaces on the system, for example, PPP and Ethernet interfaces, and their
status, such as “Closed” or “Connected.”
proxyarp
Displays Proxy ARP table entries.
serial
Displays serial modem signals (DTR, RTS, CTS, DSR, DCD).
sockets
Displays information about how socket resources are being used by the system.
tcp
Displays active TCP sessions and active TCP listeners. To display more TCP-related statistics, such as
number of input and output bytes transmitted, issue an “info tcp” command (see "info").
udp
Displays current UDP listeners. To display more UDP-related statistics, such as number of input and
output bytes transmitted, issue an “info udp” command (see "info").
uptime
Displays amount of time since the device was booted.
versions
Displays boot firmware version information.
xbee {refresh|clear}
Displays or refreshes device information of XBee module on the network. For products with two or
more users, permissions must be set to “set permissions s-xbee = read” to user this command. See
"set permissions" for details on setting user permissions for commands.
Example
Display device information
refresh
Refresh the information of XBee devices on the network
clear
Remove current network information of XBee devices and refresh the information of
XBee devices on the network again.
#> display device
device information:
product: ConnectPort LTS 32 MEI W
mac address #1: 00:40:9D:CC:CC:C6
mac address #2: 00:40:9D:56:47:39
firmware version: N/A
bios version: N/Acpu utilization: 1 %
uptime: 2 hours 51 seconds
ConnectPort® LTS Command Reference
25
Command descriptionsdisplay
total memory: 255944
used memory: 40760
free memory: 215184
See also
n info
n show
n status
ConnectPort® LTS Command Reference
26
Command descriptionsdisplay buffers
display buffers
Purpose
Displays the contents of a port buffer, or transfers the contents of a port buffer to a server running
Trivial File Transfer Protocol (TFTP). Port buffering is enabled by the “set buffer” command (see "set
buffer"). Contents are displayed in log form.
Required permissions
For products with two or more users, permissions must be set to one of the following:
n For a user to display the contents of a port buffer for the line on which they are logged in: “set
permissions buffers=r-self” or higher.
n For a user to display the contents of a port buffer for any line: “set permissions buffers=read”
or higher.
See "set permissions" for details on setting user permissions for commands.
Syntax
display buffers [port=
Options
port=range
The port or ports to which the command applies. Optional on a single-port device.
lines=number
The number of lines of data to display at a time when the “screen” option is specified. Use 0 to
indicate continuous flow.
tail=number
The total number of lines in the buffer to be displayed. The number is calculated from the end of the
buffer counting back.
tftp=server:filename
range
]
[lines=
[tftp=
number
server:filename
server
The IP address or DNS name of a server running TFTP to which buffer information
should be transferred.
filename
][tail=
number
}]
]
The name to use for the file that will be transferred to the TFTP server. If the “port”
option specifies more than one port, one file will be transferred for each port. The
filename for each port will be “filename_n,” where n is the port number.