Configuring a Device for a Terminal

Use the following procedure to configure a RealPort device for a terminal. For more information on configuring a serial device for a terminal see Setting Up and Managing Terminals on the DG/UX System on the user documentation CD that came with your system.

The PortServer and RealPort should be properly installed, configured and functioning before connecting a terminal.

Procedure

  1. Connect a proper cable between the port and terminal. These are common EIA-232 cables:

    Cable

    Flow Control Compatibility

    RJ-45/RJ-11 3-pin Terminal/Printer Cable Software Only (ixon/ixoff)
    DB-25 3-pin Terminal/Printer Cable Software Only (ixon/ixoff)
    RJ-45 4-pin Terminal/Printer Cable Software (ixon/ixoff) or Hardware (ready/busy)
    DB-25 4-pin Terminal/Printer Cable Software (ixon/ixoff) or Hardware (ready/busy)
  2. Set the port to dev=prn on the PortServer by entering this command at a PortServer root prompt:

    set dev port=prn ra=12

    This example sets dev=prn for port 12 of a PortServer.

  3. If you are using 8-pin RJ-45 cabling from the PortServer to the terminal, set the port to altpin=on by entering this command at a PortServer root prompt:

    set port altpin=on ra=12

    This example sets altpin=on for port 12 of a PortServer.

  4. If you want a loss of carrier to terminate the login session, you should use a modem TTY definition entry in the /etc/ttydefs file. These entries begin with the letter "M" followed by the baud rate. For best results with RealPort devices this file should be modified from the standard DG/UX distribution.

    As root edit /etc/ttydefs and change lines that begin with an "M" by adding clocal just before the second ":" in the line and adding -clocal just before the third ":". These should be separated by spaces like the other options. For example, here is the "M9600" line after editing.

    M9600: 9600 echo echoe echok kill  erase  intr  hupcl cs8 opost onlcr icrnl cread clocal : 9600 echo echoe echok iexten kill  erase  intr  hupcl icanon cs8 opost icrnl onlcr cread ixon ixoff isig tab3 -clocal ::M9600

  5. To enable the terminal port in DG/UX, as root run sysadm and select Device, Port, Terminal, and then Add. Enter the requested information. Select a modem TTY definition label such as M9600 if you want a loss of carrier to terminate the login session.

    You should now be able to login over the terminal.