NPort 9000 Series CLI
Commands
2-70
2.3.3.13 tcpserver
To configure the parameters of TCP Server mode for specified serial port.
Commands
tcpserver alive-check
minute
tcpserver inactivity
milli-second
tcpserver [max-conn
maxconn
] [ ignore-jammed-ip {enable | disable}] [ allow-driver-ctrl {enable
| disable} ]
tcpserver conn-down-rts {low | high}
tcpserver conn-down-dtr {low | high}
tcpserver local-tcp-port
tcp-port
tcpserver local-cmd-port
tcp-port
Syntax
Description
tcpserver
To configure the parameters of TCP Server mode.
alive-check
TCP alive check time specifies how long the device server will wait for a
response to "keep alive" packets before closing the TCP connection.
inactivity
Inactivity time specifies how long the device server will wait for incoming
and outgoing data through the serial port before closing the TCP
connection.
max-conn
Max connection is used if you need to receive data from different hosts
simultaneously.
ignore-jammed-i
p
When in multiple connection, if there are any remote sides happen
connection problem, the device should ignore these sides and keep send
serial-to-Ethernet data or stop send, this setting only work when max
connection is not 1.
allow-driver-ctrl
Allow driver control determines how the port will proceed if driver control
commands are received from multiple hosts that are connected to the
port, this setting only work when max connection is not 1.
conn-down-rts
Set the RTS signal to high/low when the connection is down.
conn-down-dtr
Set the DTR signal to high/low when the connection is down.
local-tcp-port
Specific the local TCP port for TCP server use.
local-cmd-port
Specific the local CMD port for TCP server use.
no
Clear the setting to empty
Defaults
The default settings for each parameter are:
TCP alive check time: 7 min
Inactivity time: 0 ms (disable)
Max connection: 1
Ignore jammed IP: disable
Allow driver control: disable
Connection goes down - RTS: always high
Connection goes down - DTR: always high
Local TCP port: 4001
Local CMD port: 966
Permission
Admin group
Usage
Guidelines
Alive-check: 0 – 99 min
Inctivict time: 0 – 65535 ms
Max connection: 1 - 8
Tcp-port: 1 – 65535
Examples
NPort S9650I-16-2HV(config)# interface serial 1
NPort S9650I-16-2HV (config-serif)# tcpclient alive-check 5
NPort S9650I-16-2HV (config-serif)# tcpserver alive-check 5
NPort S9650I-16-2HV (config-serif)# tcpserver inactivity 5000
NPort S9650I-16-2HV(config-serif) # tcpserver max-conn 8
ignore-jammed-ip enable allow-driver-ctrl disable