Moxa Technologies NPort 5200 Serie User Manual Page 141

  • Download
  • Add to my manuals
  • Print
  • Page
    / 259
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 140
CN2610 User’s Manual Setting Up Multi-Host TTY
10-8
4. Compile and link documents:
SCO OpenServer : # make sco
SCO UnixWare : # make svr5
UnixWare 2.1.x, SVR 4.2 : # make svr42
Configuring tty Redirection
The following example illustrates how to map and redirect a tty device to a MOXA CN2610 serial
port. Use vi or any other text editor to add or modify entries in the file moxattyd.cf. There are
three columns: Device Name, CN2610 IP address, and TCP port number in the entry for the file
moxattyd.cf.
Device Name CN2610 IP address TCP Port number
ttyp1 192.168.1.1 4001
ttyp2 192.168.1.1 4002
ttyp3 192.168.1.1 4003
ttyp4 192.168.1.1 4004
NOTE
1. Device Names for SCO OpenServer are ttyp[n], for SCO UnixWare, SVR4.2 are pts/[n]. The
value of n should be equal or larger than 11 to prevent from conflicting with the device names
of functional keys in some UNIX systems.
2. Default TCP port numbers are from 4001 to 4016 for the 16-port CN2610. If necessary, you
can customize the TCP port numbers. However, the numbers you use MUST be the same as
those defined in MOXA CN2610.
Adding Fixed TTY driver to system booting procedures
To include Fixed TTY driver in the booting system, add the moxattyd daemon process to the
/etc/inittab file. The following example illustrates how to add the full path name for
moxattyd to the entries of /etc/inittab.
ts:2:respawn:/usr/etc/moxattyd/moxattyd –t 1
NOTE
The option “–t 1” means the reconnection time is 1 minute after turning CN2610 on or off.
Fixed TTY Driver for Different Applications
This section illustrates how to use Fixed TTY driver with a number of different applications.
Terminal Access
To use terminal access, the process getty must be activated when the system boots up. To do this,
add the following entries to the file /etc/inittab. For instance,.
ts1:234:respawn:/etc/getty ttyp1
ts2:234:respawn:/etc/getty ttyp2
ts3:234:respawn:/etc/getty ttyp3
ts4:234:respawn:/etc/getty ttyp4
NOTE
ttyp1 to ttyp4 device names are mapped to port 1 to port 4 on MOXA CN2610.
Page view 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 258 259

Comments to this Manuals

No comments