User guide
set sharing
198 Chapter 2 Command Descriptions
set sharing
Device support This command is supported in all Digi One Family and PortServer TS
Family devices.
Purpose Configures or displays the port sharing feature. A Digi device enabled for
port sharing allows more than one client to open a serial port through
RealPort, reverse Telnet, reverse SSH, or connect.
All clients that share a port will read the same data from the serial port; the
data is duplicated and sent to each client. All clients that share a port will
have the data they write merged and sent out the serial port.
The serial port parameters, such as baud rate and flow control, can either
be shared by all clients or be controlled exclusively from the Digi device
alone.
If there is only one client, then RealPort, reverse Telnet, reverse SSH, and
connect will work normally.
Required
permissions
The root user can configure port sharing. Normal users can display port-
sharing settings.
Syntax Configure port sharing
set sharing [range=range]
[clients=clients]
[control={shared|exclusive}]
[timeout=timeout]
[wrpolicy={all|first}]
Display current port-sharing settings
set sharing [range=range]
Or:
show sharing [range=range]
Options range=range
The range of ports to which the command applies. This parameter is
required when configuring port-sharing parameters, and optional when
displaying parameters. If it is not specified when displaying port-sharing
parameters, the settings for all ports are displayed.
clients=clients
The maximum number of clients that are allowed to share the port.
Setting this value to 1 means that port sharing is off; that is, only one
client can open the port. Setting this value to 2 means that port sharing is
on; that is, the port is enabled to be shared.The maximum value allowed
is 4.
There is a slight performance penalty if port sharing is on, even if only one
client is using ports. Therefore, this value should be set to 1, unless port
sharing is needed.
The default is 1.