HP-UX
9.x and HP-UX 10.x
Adding
a Remote Printer With SAM
Adding a Printer Manually
Adding
a Remote Printer With SAM
- Use SAM to set
up remote printer access to a remote printer on host "solaris":
hpux# sam
a.
Select "Printers and Plotters."
b.
Select "Printers/Plotters."
c.
From the "Actions" menu, select "Add
Remote Printer/Plotter."
The "Add
Remote Printer/Plotter" dialog will be displayed. Enter
the information as shown:
![[screen image]](../images/addlocalprtr2.gif)

NOTE:
Even though Solaris supports printing using the System V printing
protocol, it does not work well through release 2.5. When
printing from or to systems running Solaris 2.5 or earlier, be
sure to use the BSD protocol. Problems occur when the printer is
busy; with a Solaris 2.5 (or earlier) system connected to a
printer and under high queuing load, the entire print system can
hang and require resetting.

Once the
information has been entered, select "OK."
Test your
configuration by printing a file:
hpux# lp -drhpljet /etc/hosts
You can print
directly to the printer or the printer class.
Adding
a Printer Manually
- Stop the LP
spooler:
hpux# lpshut
Add the
printer to the LP spooler. In this example, the printer device
is /dev/lp and the model file is laserjet:
hpux# lpadmin -phpljet -v/dev/lp -mlaserjet
(Be sure to
use the appropriate model file for the printer.)
Allow print
requests to be accepted:
hpux# accept hpljet
This command
allows the LP spooler to accept print requests for this printer.
Enable
printing:
hpux# enable hpljet
This command
allows the LP spooler to actually print the job.
Restart the LP
spooler:
hpux# lpsched
Test the
printer. The first line is an example using the printer model;
the second line is an example using the print
class name:
hpux# lp -dhpljet /etc/hosts
hpux# lp -dpostscript /etc/hosts
|