User guide

set sharing
200 Chapter 2 Command Descriptions
The port-sharing parameters are displayed in four columns. The "current
clients" column shows how many clients are currently sharing the port. The
"max clients," "control," and "timeout" columns show the value set with the
"clients," "control," and "timeout" options.
Now, the "set sharing" command is issued to change port-sharing
parameters, as follows:
#> set sharing range=2,4 clients=4 control=exclusive timeout=600
#> show sharing
current max
tty clients clients control timeout
1 2 2 shared 100
2 0 4 exclusive 600
3 0 1 shared 0
4 0 4 exclusive 600
#> set sharing range=1 clients=1
Warning: Some changes will not take effect until the ports are closed.
#> set sharing range=1-2
current max
tty clients clients control timeout
1 2 1 shared 100
2 0 4 exclusive 600
At this point, the two clients disconnect from port 1 and a new client
connects to port 2.
#> show sharing range=1-2
current max
tty clients clients control timeout
1 0 1 shared 100
2 1 4 exclusive 600
Note that the warning message indicates that until the two clients
disconnect from port 1, the max clients value cannot be reduced to 1.
See also "Configure Port Sharing" on page 24 for more details on port sharing,
including the caveats involved.
"revert" on page 79. The “revert sharing” option reverts the “set sharing”
configuration.
"show" on page 251. The “show sharing” variant of the show command
displays the current port-sharing settings.