[Previous]   [Next]   [Contents]   [Index]   

Using a Local Printer or Plotter

This chapter describes how you can attach a printer or plotter to an HP Netstation. Topics include:

If you have problems with the printer installation, refer to If the Printer Will Not Print.

Which Devices Can I Connect?

Which devices you can connect depends largely on your host computer. In general, all HP printers are supported on any multi-vendor system. Other printers that can plug into the Netstation and have their own model scripts are also supported.

Physically Connecting a Printer or Plotter to the Netstation

This section explains how to connect a printer or plotter to the Netstation and how to test the connection.

Connecting to the Parallel Port

To connect a parallel printer to the Netstation, use a Centronics-style cable (HP 24542D). The parallel port is optional on the HP ENVIZEX II Netstation (order HP Part Number C5215A).

Connecting to the Serial Port

To connect a serial printer to the Netstation, use an HP 24542G cable. If your Netstation has two serial ports, you can connect the printer to either serial port. To configure the Serial Port to work with the printer:

  1. Press and hold [F12] to access the configuration screens.

  2. Select [Terminal], then [Serial (1)] or [Serial (2)] depending on whether the printer is connected to the first or second serial port.

  3. Set the baud rate, data bits, stop bits, parity, and flow control as described in the printer's documentation.
    Note: The printer or plotter will not work if the same serial port is used for SLIP or PPP. To ensure that SLIP or PPP is not connected to the printer or plotter serial port, do the following:

    1. Select [Network], then [SLIP(1)], [SLIP(2)], [PPP(1)], or [PPP(2)] depending on whether you are using SLIP or PPP on port 1 or 2.

    2. If necessary, select the [Activate] button to disable it.

Testing the Netstation-Printer Connection

HP Netstations have print tests you can use with non-PostScript printers to test the Netstation-to-printer connection.

  1. Press and hold [F12] to access the configuration screens.

  2. Select [Diagnostic], then [Printer Test].

  3. Select the port to which the printer is connected (parallel, serial 1, or serial 2).

  4. Select [Start Test].

If your printer does not print the Netstation's configuration, check the cable and the printer for problems.

How to Set Up Local Printing

There are two different ways you can set up your Netstation to support local printing:

Reasons to Choose Jetdirect and remport

You may wish to choose Jetdirect and remport if: For more information, see Using JetDirect and remport.

Reasons to Choose LPR/LPD

You may prefer LPR/LPD printing if: For more information, see Using LPR and LPD to Set Up Printing.

Using JetDirect and remport

If you plan to use remport and JetDirect, do the following:

  1. Follow the instructions in Setting up the Netstation.

  2. Follow the instructions in one of the following sections:

Setting up the Netstation

Set up your Netstation to load the following extensions:

For more information about downloadable extensions and how to load them, see Using Downloadable Extensions.

Setting Up an HP-UX or Sun Host

The administration script (xtadm) makes it easy for you to add a Netstation's printer or plotter to the print spooler and provides a script to test the operation of the printer or plotter.

The "Printers, plotters" section of the administration script prompts you for all the information required to set up a printer or plotter on the print spooler.

Before you begin, you need to know the following:

To begin:

  1. Invoke the administration scripts, as described in Invoking the Netstation Administration Scripts.

  2. Choose Printers, plotters from the main menu.

  3. Choose Check operation of a printer or plotter.

    The administration script uses ping to verify that the Netstation is connected to the network, then sends a test file to the printer. This test bypasses the print spooler. If the test fails, check that the Netstation and the printer are properly connected and configured.

  4. Choose Add a printer or plotter. The script prompts you as necessary. To access the online help, at the prompt, type: ?

To learn how to print a file, see Printing a File.

Setting Up an HP-UX Host for HP Plotters

To use HP 7440A, HP 7475A, HP 7550A, HP 7570A, HP 7595A, or HP 7596A plotters with HP Netstations, you must use a pseudo-terminal driver as follows:

  1. Assign the master side of the pseudo-terminal driver. You do this when you set up a daemon that directs data from a pseudo-terminal driver to the Netstation.

  2. Assign the slave side of the pseudo-terminal driver. You do this when you add the plotter to the print spooler.

Assigning the Master Side of the Pseudo-Terminal Driver

To assign the plotter daemon to the master side of the pseudo-terminal driver, follow these steps:

  1. Copy the sample setup script as follows:
    cp /opt/hpxt/enware2/share/examples/hpnptyd.sh /sbin/init.d/hpnptyd.sh
    

  2. Set up the symbolic links by typing:
    ln -s /sbin/init.d/hpnptyd.sh /sbin/rc3.d/S400hpnptyd.sh
    ln -s /sbin/init.d/hpnptyd.sh /sbin/rc2.d/K400hpnptyd.sh
    

The change will take effect when the host is rebooted. If you wish to start the daemon now, type:

/sbin/init.d/hpnptyd.sh start

In the sample setup script:

Assigning the Slave Side of the Pseudo-Terminal Driver

To assign the slave side of the pseudo-terminal driver, use sam as follows:

  1. On the root server as superuser, type: sam

  2. Select [Printers and Plotters].

  3. From the [Actions] pulldown, choose: "Add Printer/Plotter Requiring Nonstandard Device File..."

  4. Fill in the resulting menu as follows:

Setting Up an IBM AIX Host

Before you begin you need to know the following:

To begin:
  1. As superuser, type: smit
  2. Choose: Devices
  3. Choose: Printer/Plotter
  4. Choose: Print Spooling
  5. Choose: Add a Print Queue
  6. Choose: Printer Attached to Xstation
  7. smit prompts you for all the necessary information.

To learn how to print a file, see Printing a File.

Using LPR and LPD to Set Up Printing

If you plan to use LPR and LPD, do the following:

  1. Set up the LPD side on the Netstation that is directly connected to the printer. Follow the instructions in Setting Up LPD on the Netstation with the Printer Connection. (If you want to connect the printer to a host rather than a Netstation, create a Berkeley LPR/LPD RFC1179 printer queue, as described in the documentation for your host computer.)

  2. Set up the LPR side on this Netstation, and every other Netstation that will use this printer directly from a local client such as the local Java runtime environment (JRE) or the Navio Navigator for HP Netstations. Follow the instructions in Setting Up Netstations to Print Directly Using LPR.

Setting Up LPD on the Netstation with the Printer Connection

On the Netstation that has the direct printer connection:

  1. Switch to the Netstation binary directory:
    cd /opt/hpxt/enware2/xthome/bin
    

  2. If you have not previously done so, create a directives file for this Netstation:
    cp directives ipaddress.directives
    (where ipaddress is the IP address of the Netstation)

  3. Edit the Netstation's directives file, and uncomment the following line:
     # noshow auto App lpd=lpd  "Berkeley LPR printer daemon"
    

    For more information about the directives file in general, see Customizing the directives File.

  4. When you are setting up the host side print queues, you will need to know the terminal name and the name of the print queue. LPD creates two print queues:
Queue
Definition
raw
All data is sent to the printer without interpretation
text
End of lines are translated as carriage returns. Intended for UNIX-formatted text.

Setting Up Netstations to Print Directly Using LPR

On every Netstation that will use the printer:

  1. Switch to the Netstation binary directory:
    cd /opt/hpxt/enware2/xthome/bin
    

  2. If you have not previously done so, create a directives file for this Netstation:
    cp directives ipaddress.directives
    (where ipaddress is the IP address of the Netstation)

  3. Edit the Netstation's directives file, and uncomment the following lines:
     # Driver LPRdrvr=drvr/lprExt "Remote printer driver (BSD/RFC 1179)"
     # Auto extension Alias=drvr/aliasExt "Name alias extension"
     # prerequisite LPRdrvr = Alias
    

    For more information about the directives file in general, see Customizing the directives File.

  4. If you have not already done so, create a remote configuration file for the Netstation (terminalname.cfg). For more information, see Using Remote Configuration.

  5. In the terminalname.cfg file, create a print queue by adding the following line:
    LPR queue = queue:host:remqueue:desc:f
    where the variables are as follows:
    Variable
    Definition
    queue
    the local name or alias for the queue,
    host
    the hostname or IP address of the directly connected Netstation,
    remqueue
    the name of the printer queue on the directly connected Netstation,
    desc
    a textual description of the queue,
    f
    an optional format for print jobs in this queue
    l
    for raw text, the default print queue
    f
    for formatted text,
    o
    for PostScript.

    For example:

    LPR queue = laser:dave1x:HPLaserJ:"Dave's desk"
    

  6. For the queue that you have just defined, you can add the following optional lines in the terminalname.cfg file: These lines are explained in detail below.

  7. Optionally define additional print queues in the same way.

  8. Reboot the Netstation.

Printing a File

You can print a file to a printer connected to a Netstation using much the same commands as you would on any UNIX system.

On HP-UX or IBM AIX Systems

To print a file, use: lp -dprintername filename

For example: lp -dxterm1par data.output


Note: To eliminate the -d option, make the local printer the default by typing one of the following command lines in the $HOME/.xsession or (for HP VUE users) $HOME/.vueprofile file:

On a Sun System

To print a file, use:

Examples:

To print PostScript files, you can use:
lpr -Pprintcap_name -h file
For example: lpr -P700xpr -h data.ps

How the Print Command Works

When you issue a print command using the print spooler, the hpnpf utility completes the print request.

Monitoring the Status of a Local Printer

HP Netstation Software 9.0 uses SNMP to identify a parallel printer attached to a Netstation and to report back whether the printer is out of paper, jammed or offline.

You can query the configuration and status of your parallel printer using any SNMP-supported printer utility (for example, JetAdmin). For more information on SNMP, refer to Using SNMP.


[Previous]   [Next]   [Contents]   [Index]