![[Intel Navigation Header]](/CONTENT/PIX/HEADER.GIF)
NetportExpress(TM) XL: Print Server Set Up with HPUX
NETPORTEXPRESS(TM) XL PRINT SERVER WITH HPUX V9 (UNIX*)
Installation and operation instructions for printing with the
NetportExpress(TM) XL Print Server from an HP-UX Host.
This document provides instructions for setting up an HP-UX (v9.03) host
for TCP/IP printing with the NetportExpress XL Print Server. The
information applies to both Ethernet and Token Ring networks. You can
perform either an automated installation or a manual installation. The
automated installation uses the npinstall installation script. The
manual installation guides you through the creation of a printcap file
for printing with the Intel-provided iprint utility. You can use iprint
as a stand-alone command for printing, or with the native spooling
system (lp). Intel provides a shell script program called lp_scrpt for
using iprint with lp.
Installing a network printer
Installing a network printer under TCP/IP involves the following three
tasks:
* Working with Intel's Netport(R) Manager software on a Novell
workstation that uses Microsoft Windows* v3.1, to set up the XL
ports.
* Copying the required files to the UNIX* host system.
* Determine the configuration parameters by either using npinstall
for automated setup, or manually using the iprint utility.
Configuring the XL for HP-UX printing
The Configure TCP/IP Print Server window contains the fields necessary
to set up the XL for an HP-UX host. Chapter 5 of the "TCP/IP Printing
Using the Intel NetportExpress XL Print Server" manual contains a
complete description of each field and a procedure for preparing the XL
for UNIX printing. Complete this procedure to prepare the XL to handle
TCP/IP printing over one or multiple ports.
Automated setup for an HP-UX host using npinstall
To use npinstall:
1. Use Netport Manager on a Novell workstation and follow the XL
configuration instructions contained in Chapter 1 of the Complete
Guide.
2. On the UNIX host, change to the directory in which you want the
software installed. The tar command creates the ./intl/hpux
subdirectory.
3. Copy the npinstall file from the tar diskette to the ./intl
subdirectory on your host system. One way to do this is to type the
following:
tar xvf <device_name> ./intl/npinstall
For Example:
tar xvf/dev/floppy/c201d0s0 ./intl/npinstall
4. Copy the HP-UX 9.03 operating system files you need by typing:
tar xvf <device_name> ./intl/hpux
For Example:
tar xvf /dev/floppy/c201d0s0 ./intl/hpux
5. Change to the ./intl subdirectory.
6. From the system prompt, type:
npinstall
7. When prompted, provide the following configuration parameters:
* Operating system to configure (Select "5" for HP-UX)
* XL's IP address
* XL's port number to configure (parallel 1 [LPT1], parallel 2
[LPT2], or serial [COM1])
* Printer mode (Text, PostScript, or both for autosensing
printers)
* The printer name
* Whether you want to include a banner page with print jobs
8. To test configuration, print a test file when npinstall prompts
you.
HP-UX host configuration for the XL should now be complete.
Installation Troubleshooting
If you run npinstall and it seems that the installation did not work
correctly, refer to the following instructions for details about
working with iprint, lp, and the printcap file.
The npinstall script looks for the Intel provided iprint, lp_scrpt, and
sample_printcap files in the./intl/hpux subdirectory.
Be sure the operating system specific information you need is in the
./intl/hpux subdirectory, and the npinstall utility is in the ./intl
subdirectory
Manual setup for an HP-UX host using the iprint utility
The manual procedures are for setting up printing for either iprint as
a stand-alone utility, or for lp together with iprint. When using iprint
and lp together, install the iprint utility on the UNIX host before
invoking the lp print spooler for printing. You should use the provided
shell script program called lp_scrpt instead of writing your own. The
lp_scrpt program takes the parameters passed to the lp spooling system
and invokes iprint. All you have to do is edit the program to give it
the pathname to iprint.
Using iprint as a stand-alone print filter
The user can print a job using iprint as a stand-alone print filter,
without referencing the printcap file, by typing:
# cat <file_name> | iprint <ipaddress> job=<job number>
<port_number> -pc
For example:
# cat test.txt | iprint 192.9.200.2 job=1 3001 -pc
Job Numbers
The print job numbers can be any positive number. Negative numbers will
cause the system to hang.
You must correctly install the iprint utility before you can set up the
printcap file. Receipt of a printed file when you type this command
indicates correct iprint installation. Perform the procedure described
in "Automated setup for an HP-UX host using npinstall" to ensure correct
installation of the iprint utility. For more information, see Chapter 9
in TCP/IP Printing Using the Intel NetportExpress XL Print Server.
Setting up the printcap file
HP-UX users can print to multiple TCP/IP configured ports on the XL. If
you do not use npinstall, you must manually create a printcap file in
the /etc directory. This file contains the required configuration
parameters, as described in "Setting up iprint for lp printing."
The use of a printcap file is not native to HP-UX spoolers. However,
Intel has provided the means for you to use iprint in these
environments. Single-space all entries in the file. Do not include any
blank lines. Each command line ends with a colon backslash (:\) if the
next line is a continuation of the file entry. The final line in the
entry must end with a colon (:). (Do not type the circled numbers shown
at the left of each line in the sample printcap file provided on the
next page. They reference the description of each line in the left
margin.) The printcap file for the HP-UX environment must include the
following configuration parameters:
* Printer name. This must be the first entry in the printcap file,
there can be no spaces between these names.
* Device name
* Output filter designation
* XL's IP address
* XL's port number to configure (parallel 1 [LPT1], parallel 2
[LPT2], or serial [COM1])
* PostScript designation if necessary
TCP port numbers
For Parallel Port 1, use 3001
For Parallel Port 2, use 3002.
For the Serial Port, use 2501.
The example printcap file shown below defines an HP LaserJet IIIsi for
printing PostScript files over the XL's first parallel port.
Sample HP-UX printcap file entry using iprint with the native spooling
system (lp)
1. lj3ps|LaserJet_IIIsi|LaserJet_IIIsi_on_port_1:\
2. :lp=/dev/lj3ps:\
3. :of=/usr/intl/hpux/iprint:\
4. :intl_n=192.9.200.2:\
5. :intl_p=3001:\
Include these additional entries in the printcap file for
PostScript printers:
6. :mx#0:\
7. :sh:\
8. :sf:\
9. :intl_text=disable:
HP-UX Printcap file entry descriptions for lp printing with iprint:
1. lj3ps is an example printer name, LaserJet_IIIsi is an example of
an alternate printer name, and LaserJet_IIIsi _on_port_1 is an
example of an optional comment you can enter. Do not use spaces in
this line.
2. This is the command you enter to define a dummy device name. For
simplicity, you can use the printer name for the device name.
3. This is the command you enter to designate iprint and its directory
location as the output filter.
4. This is the command for defining the XL's IP address where
192.9.200.2 is an example IP address.
5. This is the command for defining the XL's TCP port IP address. The
XL's port LPT1 is port 3001, LPT2 is port 3002, and COM1 is 2501.
Entries for PostScript printers only.
Include lines 6 through 9 below only if you are creating a printcap file
entry for a PostScript printer.
6. This is the command for unlimited buffer space.
7. This is the command to suppress printing of a burst page
headersheet.
8. This is the command to suppress form feeds.
9. This is the command required for PostScript printing.
Setting up iprint for lp printing
To configure your HP-UX host so that it can initiate a print job from
iprint:
1. To determine if your system supports lp type:
ps -ef | grep -v grep | grep lpsched
The system response will be similar to the following:
lp 18732 10Jul94 /usr/lib/lpsched
2. On the UNIX host, change to the directory in which you want the
software installed. The tar command creates the ../intl/hpux
subdirectory in that directory.
3. Copy the Intel print utility and sample printcap file from the tar
diskette to your host system. One way to do this is to type:
tar xvf <device_name> ./intl/hpux
When complete, the subdirectory will contain the iprint, lp_scrpt,
and sample_printcap files.
4. Create and edit the /etc/printcap file to include an entry for each
printer on the XL. For more information, see "Setting up the
printcap file" on the previous page.
5. Create a special device file for each printer. If you are printing
to a printer called lj3ps, create a device by the same name. The
major number is 3 and the minor number is 2 for HP-UX. For
example:
mknod /dev/lj3ps c 3 2
chmod 0600 /dev/lj3ps
chown daemon /dev/lj3ps
chgrp bin /dev/lj3ps
6. Copy the sample lp_scrpt to another file as shown below:
cp lp_scrpt <new_file_name>
For example:
cp lp_scrpt <lp_scrpt1>
Note: To remove the banner page that precedes the printed
output from print jobs, modify the lp_scrpt1 file. The default
setting is banner equals "1". Remove the "1" from the header to
disable printing the banner. However, you should be familiar with
UNIX-Bourne shell script programming before doing this or any
further editing.
7. Edit the lp_scrpt1 file to specify the complete path to the iprint
utility. Assuming that the iprint utility is in ./intl/hpux, enter
the second to the last line of the lp_scrpt1 file as follows:
(shell commands)| /intl/hpux/iprint 'basename $0' job=1 exit $ ?
8. Check for running print jobs by typing:
lpstat -o
When all print jobs are complete, continue to Step 9.
9. To install the printer into the lp spooler system, you need to shut
down the spooler system with lpshut by typing the following:
/usr/lib/lpshut
/usr/lib/lpadmin -plj3ps -v/dev/lj3ps
/usr/lib/lpadmin -plj3ps -i/<path>/intl/hpux/lp_scrpt1
/usr/lib/lpsched
/usr/lib/accept lj3ps
enable lj3ps
10.(Optional) Make the printer the default system printer by entering:
/usr/lib/lpadmin -d<printer_name>
For example:
/usr/lib/lpadmin -dlj3ps
11.Print a job with spooler operation by entering:
lp -d<printer_name> <file_name>
For example, to print a file called test.txt:
lp -dlj3ps test.txt
The printing of a banner page and the contents of the file indicates a
correctly configured host. If the test fails, see the HP-UX system
administration manual for information on print spooler operation.
Getting XL print status information.
After submitting a print job, the UNIX workstation user can request the
printer's status by typing:
pstat -p<printer_name>
The user can get information about the condition of the XL's TCP/IP
printing protocol as it attempts to connect to the specified file
server. The methods for viewing printing information include working
with Netport Manager on a Novell workstation or working with UNIX system
commands at a UNIX workstation. Chapter 9 of TCP/IP Printing Using the
Intel NetportExpress XL Print Server contains the steps for using
Netport Manager to obtain status information.
Configuring the NetportExpress XL print server without using IPRINT
The XL can be set up in one of two ways, either as a Remote Printer or a
Network Printer. In both cases, IPRINT is not being used.
Remote printer
Note: This method does NOT require Intel's IPRINT binary
1. From a Novell workstation run either Netport Manager or NPAdmin and
Configure the XL IP Addressing as though you are using LPD stand
alone. Give the XL box an IP Address and each printer port in use
an IP address (Parallel port 1's IP address should match the IP
address of the box).
2. Define the IP address for each port you will be printing to in the
/etc/hosts file on your UNIX host. You will need this information
for step 5-c.
3. On the UNIX host run SAM (System Administration Manager). You will
be defining an XL as a remote printer.
4. Select "Printers/Plotters."
5. Select "Action" from the menu.
6. Select "Add a remote printer" and fill out the screen as follows:
a) Printer Name The name of the printer that the users will
print to.
b) Remote System The name associated with the Netport prin
server's IP Address in the /etc/hosts file as
defined in step 2.
c) Remote Printer Must be either TEXT or PASSTHRU (upper case).
Use PASSTHRU for postscript of graphics and
TEXT for text jobs.
7. Use the LP command to print to the Printer Name you defined in
step 5a.
Trademark information