Table Of ContentsIndex


Chapter 4: Setting Up Common Configurations


Chapter 4: Setting Up Common Configurations

This chapter includes several extended examples, or application notes, describing common RCS/4000 setups:

It also describes the procedures for the following:

TOC Index


Terminal dedicated to a host (direct connection)

The RCS/4000 can be configured to automatically connect a terminal to a host located anywhere on the network. This technique could be used in applications that require a user's terminal to communicate with one and only one host computer, perhaps running a specialized application program. This configuration closely models a terminal that is directly connected to a host, via a conventional serial interface. The following example shows how this can be done for the terminal connected to port 1.

A custom service configuration must be defined to support a direct connect. At the admin access level enter the following:

The custom configuration that you define should be similar to this:.

The IP address set in the telnet command (198.130.71.67 in the example) should be that of the target host system. The table below describes the service configuration options in detail. Once a service configuration has been defined, it must then be assigned to a port or range of ports. Enter the following:.

TOC Index


Configuration Options and Descriptions

Option

Description

Configuration name (C0-C33)

Define as C0 through C33. Must be different for each unique configuration.

Authentication (none)

Selecting none allows user to go directly to host system. Selecting user or admin requires a password before logging onto the host.

Capabilities (user)

Selecting user allows telnet and rlogin access.

Terminal (vt100)

Enter type appropriate for the user.

Restart Delay (1)

Specifies 1-second delay between ending a session and starting a new one.

Display Banner (no)

Login banner will not display when the terminal is first powered on or connected.

One-key Menus (none)

One-key menus are not used, since you want the user to automatically connect to the remote host, bypassing the RCS/4000 shell.

Sessions

Defines the command the RCS/4000 will executes to connect to the host: telnet or rlogin. If the host name has been added to the hosts list or if you are using DNS, you can use a host name instead of the IP address. The command shown in the example will establish a telnet session with the host whose IP address is 198.130.71.67.

TOC Index


Terminal for rlogin/telnet using multiple sessions.

The RCS/4000 supports up to four sessions for each connected terminal. These sessions can be individually connected to any host on the network. The following example establishes three sessions for the terminal connected to port 1:

You must define a custom service configuration to support a connection with multiple sessions. Each port may have up to four sessions defined, allowing the user to enter the BREAK key to switch between the sessions. To define, enter the following at the admin level prompt:

The custom configuration that you define should be similar to this:

Once you define a service configuration, you must assign it to a port or range of ports. Enter the following:

The terminal type determines how the screen is updated between session switches. Terminal modes that support multiple display pages (e.g., Wyse-50+; Wyse-60) will repaint the screen, restoring the state of the session at the previous switch. Most standard terminal modes (e.g., vt200; ansi) do not support multiple display pages and will only clear the screen on a session switch. If the selected terminal type does not support screen clearing, no screen update will occur on a session switch.

TOC Index


Configuration Options and Descriptions

Option

Description

Configuration name (C0-C33)

Define as C0 through C33. Must be different for each unique configuration.

Authentication (user)

Requires operator to enter user password before an active session begins.

Capabilities (user)

Selecting user allows telnet and rlogin access.

Terminal (vt100)

Enter type appropriate for the user.

Restart Delay (1)

Specifies 1-second delay between ending a session and starting a new one.

Display Banner (yes)

Identifies RCS/4000 unit to which operator is logging on.

One-key Menus (none)

No one-key menus are configured in this example. One-key menus could be defined and would be available to the user in the shell session (session 1) as shortcuts for commonly used commands.

Sessions

Defines what command the RCS/4000 will execute to connect to the host: telnet, shell or rlogin. If the host or nameserver has been defined, you can use a host name instead of the IP address.

When you switch from one session to another and then return to the original session, the screen will either re-display the original screen or clear the screen. Whether the original session screen is re-displayed or the screen is cleared depends on the terminal type defined in your custom configuration. Only terminal types that support multiple page display can re-display the original screen. The terminal type must support a number of multiple pages equal to the number of sessions required. That is, if a user is switching between 4 sessions (the maximum number of sessions the RCS/4000 can support), the terminal must provide multiple page display support for at least 4 pages. Of the currently supported terminal types, only the Wyse 50+ terminal supports sufficient multiple display pages to support 4 sessions and, therefore, allows the original screen to be redisplayed after a switch when 4 sessions are configured. The Wyse 60 terminal supports up to 2 multiple display pages and so will re-display the original session if the user has only 2 sessions, but will clear the screen if the user has 3 or 4 sessions. All other supported terminal types will clear the screen when the user returns to the original session. (For a list of supported terminal types, see terminal types)

TOC Index


Dial-in modem for telnet/rlogin or ppp/slip

These directions show how to configure a modem on a serial port to allow users to dial-in and automatically start a slip, ppp, rlogin or telnet session. In this example, we will set up a hayes compatible modem on serial port 1.

  1. First, configure the modem. Connect the modem to port 1. On the RCS/4000, set up the following to allow you to communicate with the modem:
  2. Now connect to the modem with the following command:

    Assuming that cuda1 is the name of the RCS/4000 you are using, this will connect you to the modem attached to port 1.

  3. Configure the modem for auto answer. For the hayes compatible modem, for example, you would issue these commands to the modem to configure it:
  4. at&f
    Recall factory configuration
    at&c1
    Track presence of carrier detect signal
    at&d2
    Monitor DTR signal
    ats0=1
    Answer after 1 ring
    at&k3
    Enable RTS/CTS local flow control*
    at&r0
    CTS tracks RTS
    at&s0
    Assert DSR signal always
    at&w0
    Write storable params in profile 0
    at&y0
    Specify profile 0 as power-up configuration

    *This parameter may vary on your modem. Motorola Lifestyle modems use \Q3 for this mode.

  5. Now set up the port for dial-in access. Configure port 1 as follows:
  1. Define a custom service configuration C10 using the add custom C10 command:
  2. The commands shown will automatically start a service on the dial-in port as soon as the modem receives a call and connects to the remote (calling) modem.

  3. Assign the custom service configuration C10, to port 1.
  1. Save the configuration changes to flash.

TOC Index


Dial-out modem (rtelnet)

The following example provides a quick step-by-step description of how to add a dial-out modem to the RCS/4000, including:

TOC Index


Equipment required

The following equipment is required before you can install and configure the dial-out modem:

TOC Index


Configuring and installing the modem

In this example, a modem is being attached to port 1 of an RCS/4000 with a hostname cudasrv.

  1. Connect the modem to port 1.
  2. Setup reverse telnet on port 1 by typing the following command from the admin shell:
  3. This will set up the RCS/4000 to respond on tcp port 9001 to connect the telnet service to serial port 1. The tcp port number will change depending on the serial port to which you are connecting the modem. Each serial port has a tcp port associated with it. Serial ports 0 through 15 are associated with tcp ports 9000 through 9015, respectively.

  4. Set the baud rate of port 1 by typing:
  5. This sets the baud rate to 115200. Change this based on the type of modem you have. (Some modems may not be able to handle high DTE baud rates.)

  6. Save your configuration by typing:

TOC Index


Accessing the modem through a host

There are two ways to access the modem through a host:

Using the telnet command

The quickest and easiest way to access the modem is by using the telnet command. However, this does not allow a device name to be associated with the modem, which might be required by some applications (e.g. terminal programs).

To access the modem via telnet, type:

cudasrv is the host name of the RCS/4000 and 9001 is the tcp port that the modem is attached to. The IP address of the RCS/4000 could be substituted for the host name.

You should now be able to type 'AT' commands to communicate with the modem. For example, to dial a number type:

Using a reverse telnet connection

To show an example of how to access the modem via a reverse telnet connection and an application program we will use the 'tip' program and reverse telnet running on a Solaris system (see The rtn Utility, Chapter 7 for a full description of the rtn program).

The following steps show how this is accomplished.

  1. Run a reverse telnet program on the host. Reverse telnet programs for many versions of Unix are included with the RCS/4000. To run the Solaris version of reverse telnet, from the directory where rtn.soli is located, type:
  2. The "/dev/modem1" parameter in the above command is the name of the device that you want associated with the modem. You may name this anything you like.

  3. Edit /etc/remote and add the following lines:
  4. modem1 is the name of the device to be associated with the modem on the RCS/4000. Refer to the man pages of your system for an explanation of the other parameters.

  5. Enter the following command:
  6. This will connect you to the modem and you should now be able to type AT commands.

TOC Index


Pool of dial-out modems

This section describes adding a pool of dial-out modems to the RCS/4000, including:

TOC Index


Equipment required

Make sure you have the following equipment:

TOC Index


Configuring the modem

In this example, modems are being attached to ports 1-3 of an RCS/4000 with the hostname cudasrv. These ports will be added to mpool 1.

  1. Connect the modems to ports 1 through 3.
  2. Add the modems attached to ports 1 through 3 to mpool 1 by typing the following command from the admin shell:
  3. The parameter '1-3' specifies the ports to add to mpool 1, which is specified by the parameter '1'. These values may be different from the actual values that you are using, depending on what ports your modems are attached to and what mpool you would like to use.

  4. Set the baud rate of ports 1-3 by typing:
  5. This sets the baud rate to 115200 on ports 1-3. You might want to change this, based on the type of the modem you have. (NOTE: Some modems may not be able to handle high DTE baud rates.)

  6. Save your configuration by typing:

TOC Index


Accessing the modem through a host

There are two ways to access modems through a host:

Using the telnet command

The quickest and easiest way to access a modem in the pool is with the telnet command. However, this does not allow a device name to be associated with the modem, which might be required by some applications (such as terminal programs).

To access the modem through telnet, type:

cudasrv is the host name of the RCS/4000 and 9101 is the tcp port to which the modem pool is attached. The '91' in '9101' specifies an mpool and the '01' is the number of the mpool.

You should now be attached to the modem located on port 1. You can communicate with the modem by typing 'AT' commands. For example, to dial a number type:

NOTE: To communicate to the modems attached to ports 2 and 3 issue additional telnet commands without terminating your session to port 1.

Using reverse telnet

To access the modem in the pool with a reverse telnet connection and an application program, use the 'tip' program and reverse telnet running on a Solaris system. Do the following:

  1. Run a reverse telnet program on the host. Reverse telnet programs for many versions of Unix are included with the RCS/4000. To run the Solaris version of reverse telnet from the directory where rtn.soli is located, type:
  2. The "/dev/modem1" parameter in the above command is the name of the device that you want associated with the modem. You may name this anything you like.

  3. Edit /etc/remote and add the following lines:
  4. 'modem1' is the name of the device associated with the modem on the RCS/4000. Please refer to the man pages of your system for an explanation of the other parameters.

  5. Enter the following command:
  6. You should now be attached to the modem located on port 1. You can communicate with the modem by typing 'AT' commands. For example, to dial a number type:

NOTE: To communicate to the modems attached to ports 2 and 3, issue additional rtn and tip commands.

TOC Index


PPP Dial-on-Demand

The RCS/4000 provides on-demand network connectivity using point-to-point protocol (PPP). You can configure it to dial a remote system when a packet arrives for a specified remote site, and to disconnect the dialed line if it is idle for a specified amount of time.

In the above figure, whenever a machine on the local network needs to access data or systems on the remote network, the local RCS/4000 dials the remote RCS/4000, establishes the connection and keeps it alive as long as there is network activity between the two sites. This is transparent to the user.

TOC Index


Setting up system and dial on demand services

This section describes how to configure the RCS/4000 using the dial on demand service. DOD provides "on-demand" network connectivity via PPP. DOD dials a remote system when a packet arrives for a pre-configured remote site. You will configure the local RCS/4000 (cuda1) and the remote RCS/4000 (cuda2).

On the Local RCS/4000

  1. Configure the local RCS/4000 (cuda1) port 1 for required serial port operation.
  1. Define the modem
  2. Add the modem description and the corresponding chat script to the setup database. The chat script here describes the modem-specific conversation which must take place between the RCS/4000 and the modem in order to establish communication to any remote system. This could include initializing the modem and the dial string. (For more information on chat scripts, see Writing Chat Scripts.) For example:

    sets the modem chat script to do the following:

    The "\T" specifies: insert the phone number for the defined system here (see next section on setting up the system).

    Enter the modem initialization string: AT

    Now apply modem1 (the modem type you just defined) to a specific port that is to be used for dial-on-demand. Use the set command.

    to set the modem type on port 1 to modem1.

  3. Set up the system
  4. Set up information about the remote system that you are dialing into. This would include the name of the system, the ports to use to dial to the remote system, the backoff time for dialout failures (see Bi-Directional Dial on Demand below for more information), and the login chat script.

    The login chat script describes the system-specific conversation that must take place between the RCS/4000 and the remote system to establish the ppp service, once the modem has made the connection to the system.

    Example:

    The example sets up to connect to the remote system, remote71, using port 1, with the telephone number, 348-5839, and the login chat script as follows:

    NOTE: The ppp command is the command that is run on the remote RCS to start ppp on the port that answers.

  5. Set up the interface and add route to route packets to and from the remote system through the interface:
  1. Use the save command to retain the setup for the next time you reboot:

On the Remote RCS/4000

  1. Configure the remote RCS/4000 (cuda2) port 2 for the required serial port operation.

Start some activity to the remote network to test the connection. On the local RCS/4000, enter the following command:

The ping command will start dialing and establish a connection to the remote site.

To complete the setup, you need to setup proper routes on the local and remote systems. (For information on setting up routing, see ROUTING and Appendix B.)

TOC Index


Bi-Directional Dial on Demand

The remote office and corporate headquarters may need a configuration where either side can initiate the dial-on-demand connection. This is done by setting up both a dial-on-demand service and the default service on the same port on both RCS/4000 units.

A dial-on-demand from the remote office will connect with the shell (default service) at the local office. Similarly, a dial-on-demand from the local office will connect with the shell at the remote office.

At the shell prompt, the login chat script initiates the PPP connection for the other end.

When setting up Bi-Directional Dial-on-Demand, you must configure the backoff time when adding the remote systems (for adding remote systems, see the SYSTEM command). The backoff time determines how long the RCS/4000 waits before retrying a failed dialout attempt. For uni-directional dial-on-demand configurations, this value should generally be 0 to specify no backoff.

For bi-directional configurations, one of the RCS/4000s must be configured to backoff in order to avoid the deadlock which would occur if both units dialed each other simultaneously (and continued to redial each other at regular intervals). Typically, one unit should be configured with a backoff time of 0, while the other unit should be configured with a backoff time approximately equal to the amount of time it takes for a DOD connection to be established. For asynchronous modems, this is in the neighborhood of about 30 seconds. For ISDN modems, this value should be in the neighborhood of about 5 seconds. Use a backoff time which is appropriate for your configuration.

TOC Index


Troubleshooting your dial-on-demand connection

Syslog can provide useful information for troubleshooting your dial-on-demand connection. Configure syslog to save data in a large buffer for easier debugging:

Depending on what the syslog display shows, check your modem and the remote modem speed, your login chat script, and the remote and local routes.

TOC Index


ISDN terminal adapter on an asynch port

In the previous examples we used analog modems to dial in, dial out, or make an "on demand" connection. The same can be accomplished with an ISDN terminal adapter with an asynch communication port. This section describes how to set up a Motorola BitSurfrTM in place of an analog modem, including:

TOC Index


Equipment required

Make sure you have the following equipment:

TOC Index


Setting up the ISDN terminal adapter

To set up a terminal adapter, do the following:

  1. Connect the terminal adapter to port 1 using a modem cable.
  2. Set the network switch and global parameters to achieve proper ISDN operation. Use the following commands (Refer to ISDN documentation for your specific terminal adapter commands):
  3. AT>F
    Set Switch and Global parameters to factory default
    AT!C0=0
    Switch type - AT&T 5ESS
    AT!C1=0
    Switch version - AT&T Point-to-Point
    AT!D3=255
    Auto data TEI
    AT!C6=x...x
    Data SPID - Refer to ISDN service provider documentation
    AT!N1=x...x
    Directory number - Refer to ISDN service provider documentation
    AT*!D3=255
    Auto Voice TEI
    AT>W>Z
    Save switch parameters and restart the network

    NOTE: Network switch and Global parameters need to be entered only once - during initial terminal adapter powerup.

  4. Once the network settings are configured properly, restore the factory default configuration (which is usually sufficient) with the following commands to the terminal adapter:
  5. AT&F0
    Restore factory default profile 0
    AT&D2
    No DTR signal causes BitSurfr to hangup, used for port timeout
    AT&C1
    DCD on when BitSurfr establishes a connection
    AT%A4=0
    Line channel speed 64 Kbps
    AT&W0
    Save active profile to stored profile 0
    AT>Z
    Restore switch options and restart the network

    NOTE: Factory default configuration is used as a basis for further settings and therefore does not need to be reentered in order to change to another terminal adapter mode.

  6. After setting the terminal adapter to the factory default condition issue the following commands to enter the appropriate async mode.
  7. V.120 Asynchronous Mode

    Asynchronous Inverse Multiplexing Mode

    TOC Index


    Accessing the terminal adapter through a remote host

    You may now access the terminal adapter as you did a modem in the previous examples of a dial-in modem, dial-out modem or dial-on-demand routing.

    TOC Index


    ISDN terminal adapter on a synchronous port

    (NOTE: only some RCS/4000 models have a synchronous WAN port. See Model Numbers)

    The following example provides a quick step-by-step description of how to add an ISDN terminal adapter to the sync port of the RCS/4000, including:

    TOC Index


    Equipment required

    Make sure you have the following equipment:

    The following diagram illustrates using the RCS/4000 sync port and ISDN terminal adapters to route packets between isolated networks

    TOC Index


    ISDN Terminal Adapter Setup

    We will first set up the terminal adapter in asynch mode.

    Attach the terminal adapter to port 1 on the local RCS unit (cuda1). On the RCS, configure the following:

    Now connect to the terminal adapter using the following command:

    You may now enter commands to configure the terminal adapter. To achieve proper ISDN operation, the Network switch and Global parameters must be set by the following commands to the terminal adapter: (Refer to ISDN documentation for your specific terminal adapter commands)

    AT>F

    AT!C0=0

    AT!C1=0

    AT!D3=255

    AT!C6=x...x

    AT!N1=x...x

    AT*!D3=255

    AT>W>Z

    NOTE: Network switch and Global parameters need to be entered only once - during initial terminal adapter powerup.

    Once the network settings are configured properly, you can restore the factory default configuration (which is usually sufficient) with the following commands to the terminal adapter:

    AT&F0

    AT&D2

    AT&C1

    AT%A4=0

    AT&M2

    AT&Z0=x...x

    AT&W1

    AT>Z

    NOTE: Factory default configuration is used as a basis for further settings and therefore does not need to be reentered in order to change to another terminal adapter mode.

    After setting the terminal adapter to the factory default condition, issue the appropriate following commands to enter the desired sync mode.

    Ensure terminal adapter parameters are correct and return to the admin shell. ISDN terminal adapter 1 has been set up to automatically dial the stored number in register 0 when DTR is enabled (which occurs when the DOD connection is made e.g., pinging a remote host). ISDN terminal adapter 2 attached at the stored phone number location can be configured to answer the call by using the same command format but using AT&M1 in place of AT&M2.

    Once you have typed these commands and entered synchronous mode, move the terminal adapter over to be attached to the WAN port on the RCS/4000.

    TOC Index


    Set up system and dial-on-demand configurations

    We will set up a dial on demand configuration on the local RCS/4000 (cuda1) and an automatic ppp session on the remote RCS/4000 (cuda2).

    1. Set up cuda1 WAN port for RS232 interface and internal clock by the following commands.
    2. This sets the baud rate to 128000. (ISDN terminal adapters support sync baud rates of 300-128000 bps.)

      NOTE: If you change the WAN interface or clock, save and reboot the system for the WAN to work with the following commands.

    3. Set up cuda2 WAN port for RS232 interface, internal clock and set ppp custom configuration with the following commands.
    4. NOTE: If you change the WAN interface or clock, save and reboot the system for the WAN to work with the following commands:

    5. Connect the terminal adapters to the WAN ports using the RS-232 straight-through cables.
    6. Add system sync1 to cuda1's database:
    7. Set cuda1's dial on demand to the selected port:
    1. Configure cuda1's routing table to add a route through the ppp connection.
    1. Configure apollo's routing table to add a route through the ppp connection:
    2. 	route add 198.130.71.0 199.171.148.11 1

      NOTE: This command may vary depending on the OS running on apollo.

    3. To start the dial-on-demand connection, ping the remote host (dino):
    1. This will start dialing and establish a connection to the remote host through the remote RCS/4000. Upon connection the terminal adapter LEDs should display as follows, from left to right:
    1. To complete the setup, add the proper routes on the remote systems.
    2. Configure cuda2's routing table to add a route to cuda1 through ppp.
    1. Configure dino's routing table to add a route to 148 through cuda2:

    TOC Index


    Configuring the WAN port

    (NOTE: only some RCS/4000 models have a synchronous WAN port. See Model Numbers)

    The following example shows how to configure the WAN ports on 2 RCS/4000s with a pair of CSU/DSUs to set up remote routing over the WAN.

    Before you configure the WAN port, ask the following questions:

    TOC Index


    Setup 1

    Using the RCS/4000 sync port to route packets between isolated networks as shown in the following WAN diagram:

    Consider cuda2 (198.130.71.21) and cuda1 (199.171.148.11) are two RCS/4000s on two different networks. The two RCS/4000s are connected by means of a CSU (could be a modem eliminator or sync modems) which does the clocking.

    On the remote RCS cuda2 :

    Set up the WAN port for EIA-530 interface and external clock. If you change the WAN interface or clock, save and reboot the system.

    Setup ppp on the WAN port (make sure C9 - custom configuration - is not being used by any other ports; if so use any other custom configuration not being used). Select an IP address such that the local address is an address on the network.

    Example:

    Since cuda2 is on the 198.130.71.0 network the local address is 198.130.71.2, and since cuda1 is on the 199.171.148.0 network the IP address chosen is 199.171.148.1. This allows hosts on 198.130.71.0 net to access hosts on 199.171.148.1 network by using the ppp interface on cuda2.

    As you will see, when configuring cuda1's sync port the remote and local IP addresses will be the opposite of cuda2.

    On entering yes, ppp is started on the WAN interface. To set up routes for 199.171.148.0 network through the local ppp address :

    If you want to save the setup in the database for use during the next reboot, enter:

    On the local RCS cuda1:

    Set up the WAN port for EIA-530 interface and external clock:

    Set up ppp on the WAN port (make sure C9 - custom configuration - is not being used by any other ports; if so, use any other custom configuration not being used)

    To set up routes for 198.130.71.0 network through the local ppp address :

    All other hosts on the 198.130.71.0 network should be setup to route to 198.130.71.2 to access any hosts on 199.171.148.0 network. Example:

    Similarly, all hosts on the 199.171.148.0 network should be set up to route to 199.171.148.1 to access any hosts on 198.130.71.0 network.

    TOC Index


    Setup 2

    Consider the same diagram, but instead of a CSU we use a cable (pinout shown in the diagram below) to connect the two RCS/4000 sync ports. Most of the setup will be the same, except the configuration part related to clock:

    The rest of the setup is the same.

    EIA-530 Synch Back-to-back Cable

    TOC Index


    Printing to a serial or parallel port

    TOC Index


    Connecting a printer to the RCS/4000

    Parallel printer

    1. Connect printer to the parallel printer port on RCS/4000 using a standard printer cable.
    2. Enter system administration mode, then expert mode:
    1. Issue printer test command to check the connection (the parallel port is
      port 32):

    This should print 10 lines of output.

    Serial printer

    1. Connect printer to a serial port on the RCS/4000 (assume port 4 for this example).
    2. Enter system administration mode, then expert mode:
    1. Configure the serial port characteristics to match the printer. The default RCS/4000 port characteristics are:
    2. xon/xoff flow control

      To change these characteristics, use the following commands:

      Save any changes to the configuration:

    3. Make sure rtelnet is set on the serial port and default has been deleted.
    4. 	set rt 4  
      	delete def 4

      Use show port 4 to verify that the configuration is set to rtelnet and no default is set.

    5. Issue the printer test command to check the connection:

    This should print 10 lines of output. See the section, Troubleshooting the serial printer if the output does not appear.

    TOC Index


    Print Options

    The RCS/4000 supports two different protocols for sending output to a printer:

    TOC Index


    Selecting a Print Option

    The following table compares the two print options: reverse telnet and the UNIX line printer daemon (lpd).

    Reverse telnet

    lpd

    Setup requires more steps.

    Minimal setup on RCS unless using printer pool or serial ports; minimal setup on hosts.

    Less flexibility with multiple hosts. Denies connection if a shared printer is busy (or all printers in a pool are busy).

    Manages sharing of port or printer pool so that multiple hosts can queue print jobs.

    Allows host to enforce security.

    Allows any host on the network to connect and print.

    Host maintains accounting information.

    Maintains no accounting information.

    Use this option if ...

    Use this option if ...

    You need security and accounting.

    You want the RCS/4000 to act as a print server.

    TOC Index


    Printing using LPD

    The RCS/4000 can serve as a print server on a network. Print jobs can be sent to the RCS/4000 from any host on the network that supports the LPD protocol. This includes all UNIX systems and Windows/NT.

    On the RCS/4000:

    No setup is required to use a printer connected to the parallel port. For a printer connected to a serial port, the default service on the port must be deleted and the serial port must be configured to match the printer configuration (baud rate, flow control, ...). A printer pool may also be used with lpd. Setting up a printer pool is described below.

    NOTE: If you do not delete the default service on a serial port, the default service will control the port and lpd will be unable to access it. Use:

    to configure a serial port for use with lpd.

    On the host system:

    The host system must be configured to use a remote printer. The steps involved vary depending upon the specific host system. However, in all cases the following information is required:

    Use the print queue name for two purposes:

    For examples, see the Sample configurations at the end of this section.

    Specifying RCS/4000 print queue names

    Use any name in either upper or lower case letters followed by the port number. The first letter of the printer name selects the default treatment of the data file. 'f' means that the data will be formatted text. Anything else means binary data. Serial ports are numbers 0-15. The parallel port is number 32.

    The following special names are recognized:

    ppoolN
    Use any port from printer pool N
    fppoolN
    Use any port from printer pool N
    lpt
    Parallel port
    flpt
    Parallel port
    printer
    Parallel port
    fprinter
    Parallel port

    Any other name ending in a sequence of digits is taken to mean the port whose number is specified by the digits.

    Example

    To specify a queue name selecting serial port 3, you could use any of the following:

    Specifying default data file format

    A print job consists of control information and the data to print. The control information specifies how to print the data, including page parameters, fonts and data format.

    The RCS/4000 supports printing of formatted or unformatted data. Unformatted data includes binary and PostScript.

    The lpd protocol allows the host to send either the data or the control information first.

    If the RCS/4000 receives the control information before the data file, it uses that information to format the data file.

    If it receives the data file before the control information, it prints the file without the control information formatting and uses default file formatting. The host can control the default formatting with the queue name it uses (see the next section).

    If you are using the RCS/4000 in a UNIX environment, the data file is usually sent before the control information. If you are printing both formatted and unformatted data, specify two queue names: one to support formatted data and the other to support unformatted data.

    If you are using the RCS/4000 in a Windows NT environment, the control information is sent before the data file. Specify one queue name for your print jobs.

    For examples, see the Sample configurations at the end of this section.

    TOC Index


    Managing the print queue on the RCS/4000

    Once you have set up lpd, you can perform additional tasks on the RCS/4000, using the following commands:

    lpq
    Display the print queue
    lprm n or lprm all
    Delete job(s) from print queue

    NOTE: You should delete print jobs from the host. The host may resend print jobs if you delete them from the RCS/4000.

    You may repeat these commands as many times as necessary.

    TOC Index


    Sample configurations

    This section describes setting up a remote printer with lpd in both the UNIX (AIX 4 or SunOS or DEC) and Windows NT and 95 environments.

    UNIX environment (AIX 4)

    To set up a remote printer with an AIX driver to print formatted text, do the following:

    1. Log onto your system as root.
    2. Type smit printer to start the System Management Interface Tool (SMIT).
    3. From the SMIT main menu, select Print Spooling.
    4. From the Print Spooling menu, select Add a Print Queue.
    5. From the Add a Print Queue menu, select Remote - Printer Attached to Remote Host.
    6. From the Remote Printer Attached to Remote Host menu, select standard processing.
    7. From the Add a Standard Remote Print Queue dialog, fill in the following and click OK.
    8. 	Name of QUEUE to Add            linda
        
      	HOSTNAME of remote server       rcs-host
        
      	Name of QUEUE on remote server  fport32

      where:

    9. The COMMAND STATUS dialog displays with the message: Added print queue `linda'
    10. Press F10 to exit the SMIT program.

    UNIX environment (SunOS or DEC)

    To set up a remote printer for Sun OS or DEC Alpha:

    1. Add an entry for the printer to the /etc/printcap file.
    2. Create the spool directory.
    3. Specify maximum size for file to be printed.

    If you are printing both formatted and unformatted (binary or PostScript) data, set up a printer queue name for each.

    Example-unformatted text

    where:

    tom_lpt

    rm=cuda29:

    rp=printer:\

    sd=/var/spool/lpd.tom_lpt:\

    mx#0:

    Example-formatted text

    where:

    tom_fmt

    rm=cuda29:

    rp=fprinter:\

    sd=/var/spool/lpd.tom_fmt:\

    mx#0:

    Windows NT 3.51 environment

    Before setting up a remote printer in the Microsoft Windows NT 3.51 environment, make sure you have installed Microsoft TCP/IP printing support.

    To set up a remote printer in the Windows NT 3.51 environment, do the following:

    1. From the Windows NT Program Manager dialog box, open the Main group icon.
    2. From the Main dialog box, open the Print Manager icon.
    3. From the Print Manager dialog box, select the Printer pull-down menu.
    4. From the Printer pull-down menu, select Create Printer.
    5. From the Create Printer dialog box:
    6. Enter a printer name

      Select a printer driver

      Enter a description

      Select "Other" for Print To.

    7. From the Print Destinations pop-up dialog box, select LPR Port.
    8. Click OK.

      NOTE: If the LPR Port does not appear on the dialog box, make sure you have installed Microsoft TCP/IP printing support.

    9. From the LPR Compatible Printer pop-up dialog box, enter:
    10. Name or IP address of the RCS/4000.

      Name of the printer on that machine (portn - where n is the RCS/4000 port number, e.g. port6).

      Click OK.

    Windows NT 4.0 environment

    Before setting up a remote printer in the Microsoft Windows NT 4.0 environment, make sure you have installed Microsoft TCP/IP printing support.

    To set up a remote printer in the Windows NT 4.0 environment, do the following:

    1. From the Windows NT 4.0 desktop, click Start and select Settings and Printers from the pop-up menus.
    2. From the Printers dialog box, double click on Add Printer.
    3. From the Add a Printer Wizard dialog box, leave My Computer selected. Click Next.
    4. From the Add Port dialog box, select LPR Port and click New Port.
    5. NOTE: If LPR Port option does not exist it means Microsoft TCP/IP Printing is not installed. To install, click Start, Control Panel, select Network and Services, highlight Server/workstation and click Add. From the list choose Microsoft TCP/IP Printing. This will require your installation CD.

    6. From the New Port dialog box, enter:
    7. Name or IP address of the RCS/4000

      Name of the printer on that machine (portn, where n is the RCS/4000 port number, e.g., port6).

      Click Close.

    8. From the Add a Printer dialog box, select the port you added and click Next.
    9. From the remaining dialog boxes, select or enter the following:
    10. Printer driver

      Printer name

      Printer Shared or Not Shared

      Print test page.

      Click Next after each entry.

    Windows 95 environment

    Before setting up a remote printer in the Microsoft Windows 95 environment, make sure you have installed it first in the Windows NT environment. An NT server is required.

    To set up a remote printer in the Windows 95 environment, do the following:

    1. From the Windows 95 desktop, click Start and select Settings and Printers from the pop-up menus.
    2. Double click on Add Printer and click Next to open the Add Printer Wizard dialog box.
    3. Select Network Printer and click Next.
    4. From the Network path or queue name dialog box, enter a UNC pathname to the network printer, as follows:
    5. 	\\servername\printername

      or click Browse to select a server and then a printer. Click OK and click Next.

    6. From the Enter Printer Name dialog box, enter a printer name and click Next and click Finish.

    TOC Index


    Printing using reverse telnet (rtn)

    To print using reverse telnet:

    On the RCS/4000:

    1. Enter system administration mode:
    1. Set up rtelnet on the printer port and write down the tcp port number:
    1. Save the configuration:

    On UNIX host systems (except AIX):

    To print from a remote host, use the supplied rtn application for that host. The following example is for a Motorola SVR4 system:

    1. Start the rtn application, replacing the IP 198.130.71.113 with your RCS/4000 IP address, and the tcp port # from above:
    1. You can test the connection by directing a file to the device:
    1. Refer to your system administration guide for adding a printer.

    On AIX host systems

    Setting up an rtn-based printer under AIX is a three step process: 1) If you have not already done so, set up an RCS/4000 parent device: 2) Add an RCS/4000 printer device; and 3) Add an RCS/4000 print queue for the printer device.

    1. To set up an RCS/4000 parent device:
      1. Log onto your system as root.
      2. Type smit rcs.
      3. Choose Add RCS/4000 to configuration.
      4. From the Add RCS/4000 to Configuration menu, enter the RCS/4000 type and host name or IP address:
        • 	RCS/4000 Type             RCS/4000 8-port terminal server 	  
          	IP Address or Host Name   [leroy]
      5. Click on OK to add the RCS/4000.

    2. To add an RCS/4000 printer device on AIX:
      1. Type smit printer to start the System Management Interface Tool (SMIT).
      2. Click on Printer/Plotter Devices and Add a Printer/Plotter.
      3. From the Add a Printer/Plotter menu, select one of the following.
      4. For serial printers, select the appropriate serial printer.

        For parallel printers, select the rtn RCS/4000 Parallel Port option.

      5. Select the appropriate interface (RS-232 or parallel.rtn).
      6. From the Parent Adapter menu, click on rcs0 Available leroy RCS/4000 Terminal Server (8-port).
      7. Press F4 to list the port numbers or enter the RCS/4000 TCP port number and click on OK to add RCS/4000 parallel printer.

    3. To add a print queue for the RCS/4000:
      1. Type smit printer to start the System Management Interface Tool (SMIT).
      2. From the Printer/Plotter menu, click on Print Spooling.
      3. From the Print Spooling menu, click on Add a Print Queue.
      4. From the Add a Print Queue menu:
      5. For serial printers, select the local Printer Attached to Local Host attachment type.

        For parallel printers, select the rcs4000 Printer Attached to RCS/4000 Parallel port attachment type.

        Then select the Printer Type.

      6. Select the appropriate RCS/4000 printer device and supply the necessary queue information to add the printer queue.

    TOC Index


    Printing to the serial port(s) with PPOOL

    The following example configures three serial printers attached to port 3,4, & 6 to a printer pool (ppool 1) on the RCS/4000.

    On the RCS/4000:

    1. Enter system administration mode:
    1. Set up serial port 3, 4, & 6 on printer pool 1:
    1. To determine what ports are in ppool 1:
    1. Get the tcp port number for ppool 1: (For a discussion of tcp port numbers, see the section, RTELNET)
    1. Save configuration:

    On the host system:

    On the remote host to print from, use the supplied rtn application for your appropriate system. The following example is for a Motorola SVR4 system:

    1. Start the rtn application replacing the IP 198.130.71.113 with your RCS/4000 IP address, and the tcp port # from above:
    2. 	$ rtn -d/dev/remote_lp -h198.130.71.113 -p9106 &

      NOTE: This connects to the first available printer in printer pool 1.

    3. Test the connection by directing a file to the device:
    1. Refer to your system administration guide for adding a printer.

    TOC Index


    Troubleshooting the serial printer

    The configuration of a serial printer must match the port configuration on the RCS. Mismatches in this area are the most common cause of problems. Make sure the baud rate, character size, parity, and flow control settings all match.

    No output

    The most common reason for getting no output to the printer is a cabling problem. Try a null modem connector between the cable and the printer to see if this corrects the problem.

    Lost data

    Losing data that is sent to the printer is usually caused by the lack of flow control or a mismatch in the flow control settings between the printer and the RCS/4000. Be sure that the printer flow control is enabled (either RTS/CTS or XON/XOFF) and that the same type of flow control is enabled on the RCS/4000 port.

    Output suddenly stops

    If your printer prints some output (maybe a page or so) then suddenly stops, your printer may be using the DTR signal for flow control. Most DTE serial cables map the DTR signal to the DCD input signal on the RCS/4000 serial port connector. If the DCD signal is dropped, the RCS/4000 interprets this as a hangup and closes the connection, and terminating the print job.

    This problem is best corrected by configuring the printer to not use DTR for flow control. If this is not possible then a cabling change can be made to have DCD wired high. This may mean that the RCS/4000 will not be able to determine when the printer has been turned off. In this case, the RCS/4000 cannot report the correct printer status and may try indefinitely to print on this port.

    TOC Index


    Updating RCS/4000 software

    To upgrade RCS/4000 software, do the following:

    1. Make sure you have the following:
    1. Log onto the RCS/4000 using either a direct terminal connection or Telnet. The screen displays the login banner and a password prompt.
    2. Enter the password. The default password is user.
    3. Enter admin to enter the administration mode.
    4. Enter the password for the administrative mode. The default is admin.
    5. Enter expert to enter the expert mode.
    6. Enter flash_update. The screen displays the prompt:
    7. Enter the name of the upgrade file such as rcs4000_new.bdnl. The screen displays the prompt:
    1. Enter the IP address of the server. The screen displays a series of dots as the file loads, then the prompt:
    1. Enter y and press Enter to reboot the RCS/4000 so that the new software takes effect.

    NOTE: The server may restrict access via TFTP to a particular directory such as /tftpboot. If this is the case, then the upgrade file from Systech must be copied into that directory. The filename given in response to the prompt "filename of download image:" is relative to the default tftp directory, so "/tftpboot/" should not be entered as part of the name.

    TOC Index


    Copying Configurations

    This section describes copying configurations from the RCS/4000 to a server (uploading) and from the server to the RCS/4000 (downloading). For more information, see the flash_save and flash_update commands.

    TOC Index


    Requirements

    Before copying configurations, make sure you have the following:

    TOC Index


    Uploading a configuration to the server

    To save (upload) a configuration to the server, do the following:

    1. Prepare the server to receive a file. This step is necessary if the TFTP server is configured for security. (For the Solaris version of TFTPD, this is the -s option.) Do the following:
    2. Log in to the RCS/4000 using a direct terminal connection or telnet. The screen displays the login banner and a password prompt.
    3. Enter the password. The default password is user.
    4. Enter admin to enter the administration mode.
    5. Enter the password for the administration mode. The default password is admin.
    6. Enter expert to enter the expert mode.
    7. Enter flash_save. The screen displays the prompt:
    8. 	Selection:
    9. Enter c and press Enter. The screen displays the prompt:

      	file name:
    10. Enter a name for the configuration, for example my_config.bdnl. The screen displays the prompt:
    1. Enter the IP address of the server, for example 198.130.71.12. The screen displays some dots followed by the message:

    TOC Index


    Downloading a configuration from the server

    To download a configuration from the server to the RCS/4000, do the following:

    1. Log in to the RCS/4000 using a direct terminal connection or telnet. The screen displays the login banner and a password prompt.
    2. Enter the password. The default password is user.
    3. Enter admin to enter the administration mode.
    4. Enter the password for the administration mode. The default password is admin.
    5. Enter expert to enter the expert mode.
    6. Enter flash_update. The screen displays the prompt:
    1. Enter the name of the configuration, for example my_config.bdnl. The screen displays the prompt
    2. 	server name or IP address (return for default):
    3. Enter the IP address of the server, for example 198.130.71.12. The screen displays some dots and status messages followed by the prompt
    1. Enter y and press Enter for the new configuration to take effect immediately.

    Repeat Steps 1-9 for each RCS/4000 receiving a copy of the configuration.

    TOC Index


    Assigning an IP address with a UNIX BOOTP server

    BOOTP provides an address discovery feature; however, before it can "discover" the RCS/4000's IP address through a BOOTP request, you must configure BOOTP.

    1. Verify that both the BOOTP daemon program, bootpd, and the database file, /etc/bootptab, reside on the boot host. If a bootpd executable file is not resident on your boot host, copy the bootpd sources from a free distribution package (such as GNU), compile it, and install it on your host in the /etc directory.
      1. Enable BOOTP by:
      2. Entering a ps command to find out if bootpd is running. For example:
      3. 	# ps -axc | grep bootp

        On some systems, the command is:

          	# ps -ef | grep bootp
      4. Host operating systems based on the 4.3 BSD UNIX operating system (such as ULTRIX and SunOS) require an entry in the /etc/inetd.conf file for BOOTP. Often these entries exist, but are rendered ineffective by a pound sign (#) at the beginning of the entry. If this is the case, remove the #. Some example entries are:
      5. For ULTRIX:

          	bootp dgram udp wait /usr/etc/bootpd bootpd -i

        For SunOS:

          	bootps dgram udp wait root /usr/etc/bootpd bootpd
      6. Ensure that TCP/IP ports are reserved for the bootpd server and client processes in the /etc/services file.
      7. The usual entries in /etc/services are:

          	bootps    67/udp  
          	bootpc    68/udp

        Remove any pound signs (#) at the beginning of these entries.

      8. If you make any changes in the /etc/inetd.conf or /etc/services file, restart the inetd daemon.
      9. To restart the daemon, find the inetd process ID and send a hangup signal as shown in the following example. This causes the daemon to re-read the configuration file and use the new information.

          	# ps -axc | grep inetd  
          	17601 ? I 0:12 inetd  
          	# kill -HUP 17601

        On some systems, the command to find the process ID is

          	# ps -ef | grep inetd
    2. Next, you must add information about the RCS/4000 to the /etc/bootptab database file. Bootptab files vary for different systems; however, as an example, one version of a bootptab file is shown below. Note that abbreviations, definitions, and other information you will need to modify the file are listed at the beginning of the file.

    The general rules for bootptab file entries are:

    The typical file structure is one or more template entries, containing information common to all RCS/4000s or a group of RCS/4000s, followed by individual entries, each containing information about a specific RCS/4000. For example:

    The tags required for each template file created for an individual RCS/4000 depend on the intended use/application of that particular RCS/4000. For example, if you are installing an RCS/4000 that will not access a gateway, the gateway address(es) tag, gw, need not be used.

    As mentioned previously, bootptab files vary for different host systems. A sample bootptab template file for an RCS/4000 identified as RCS29, formatted for the SunOS, follows:

    TOC Index


    Assigning an IP Address with Windows NT DHCP Server

    The BOOTP/DHCP tags (from RFC 2132) which are used by the RCS/4000 are as follows:

    1
    Subnet Mask
    2
    Time Offset
    3
    Router
    4
    Time Server
    6
    Domain Name Server
    15
    Domain Name

    51

    IP Address Lease Time

    54

    Server Identifier
    Systech Corporation
    16510 Via Esprillo
    San Diego, CA 92127
    (858) 674-6500

    Doc #: 80-001020-1 Rev G;
    ©1999 Systech Corporation. All Rights Reserved
    Permission is granted to print a copy of this document for
    internal purposes only, as long as the content is not modified.
    This document is subject to change without notice.