Mapping TTY Ports Automatically
To map tty ports automatically, you may execute mxaddsvr with just the IP address and number of ports, as
in the following example:
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 950 to 965 and
command ports from 966 to 981.
Mapping TTY Ports Manually
To map tty ports manually, you may execute mxaddsvr and manually specify the data and command ports, as
in the following example:
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16 4001 966
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 4001 to 4016 and
command ports from 966 to 981.
Redundant COM Mode
Before mapping the tty ports, you must set the operation mode of your NPORT to Redundant COM Mode (for
npreal2_1.17_Build_11011413.tgz or later only).
The following is a new command for mapping tty ports to Redundant COM Mode.
Mapping TTY Ports
mxaddsvr -r [NPort IP1 Address] [NPort IP2 Address] [Total Ports]
Example :
# cd /usr/lib/npreal2/driver
# ./mxaddsvr -r 192.168.32.134 192.168.126.123 16
In this example, 16 tty ports will be added, all with
IP1 192.168.32.134 and IP2 192.168.32.126, but with data ports
equal to (950, 951, ..., 965), and command ports
equal to (966, 967, 968, ..., 981).
Removing Mapped TTY Ports
There are two ways to remove mapped tty ports:
1. Remove mapped tty ports automatically: after logging in as root, enter the directory
“/usr/lib/npreal2/driver” and then execute “mxdelsvr” to delete a server. The syntax of “mxdelsvr” is:
mxdelsvr [IP] ; For Real COM mode.
mxdelsvr [IP1] ; For Redundant COM mode.
Example:
# cd /usr/lib/npreal2/driver
# ./mxdelsvr 192.168.3.4