Make your own free website on
Updated Oct 22 2002

Setting up HP-UX B.10.20 A to print to Canon Networked Printers

There are two ways of setting up a Canon networked printer on this version of HP-UX
You can do it from the gui (the easy way) or from the command line (the way a computer was meant to be used ;-)
I will show you both.

Before we do either one we need to have a pointer to the printers IP address in a name/address resolution of some kind.
/etc/hosts, DNS, NIS.  Any of these will be fine. (we need a name for the configuration that points to the IP address)
Your network admin should have no problems doing this.

GUI - the easy way

1. Login as root.
2. Run Sam.  HP's System Administration Manager.  On my machine running CDE, I open the Application Manager, then the System_Admin group, then double click on Sam.
3. Once Sam is running, open the group Printers and Plotters.
4. Then open the group LP Spooler.
5. Now run printers and plotters.

6. Click on the Actions menu and then on Add Remote Printer/Plotter... (not to be confused with Add Local Printer/Plotter)
7. Enter a Printer Name.  This Identifies the printer on your system and is arbitrary.  But make it easy because if you have a lot of printers on your system you could be typing it a lot.
8. Enter The Remote System Name.  This is the name of the host (printer) in the name/address resolution you did before we started.  (it's looking for the fully qualified domain name.)
9. Enter the Remote Printer Name.  This is the queue name on the RIP.  For the queue name for your printer click here.  In most cases it will be 'print'.
10. Click to check the box for 'Remote Printer is on a BSD system'.

11. Under Remote Cancel Model choose rcmodel
12. Under Remote Status Model choose rsmodel
13. Change the Default Request Priority to what you want.  (default is ok)
14. If you want anyone to cancel a request click to check here.  (not recommended)
15. If you want it to be the default printer click to check here.  (your call)

16. Review your settings and click ok.
17. A note will pop up,  You can disregard this information.  It does not apply to us.  Click ok to close it.

your new printer should now show up in the printer and plotters list.
now test your setup
    # lp -dNEW_PTR_NAME filename
or if you made it your default printer
    # lp filename

There is more information on the print subsystem after command line directions.

Command Line directions

1. Login as root.  (you have already setup your name/address resolution right?)
2. Stop the lp spooler.
    # /usr/sbin/lpshut
3. Add the printer
    # /usr/sbin/lpadmin -pNEW_PTR_NAME -v/dev/null -mrmodel -ob3 -ocmrcmodel -osmrsmodel -orc -ormHOST -orpQUEUE
an explanation of each field above follows
 4. Accept and enable the new printer
    # /usr/sbin/accept NEW_PTR_NAME
    # /usr/bin/enable NEW_PTR_NAME
5. Restart the spooler
    # /usr/sbin/lpsched

now test your setup
    # lp -dNEW_PTR_NAME filename

If you want to make it your default printer
    # /usr/sbin/lpadmin -dNEW_PTR_NAME

Explanation of command line fields

what you need to change

-pNEW_PTR_NAME    NEW_PTR_NAME is the name of the printer as you want to call it on your system.
-ormHOST    HOST is the name of the host (printer) as it appears in your name/address resolution
-orpQUEUE    QUEUE is the queue name to the RIP.  For your queue name click here.

The other fields are

-v/dev/null    (the black hole)  Where we are connected to.  Since we are not connect physically to the computer we need to point no where.

-mrmodel  Model of printer (remote model)

-ob3    printer resides on a BSD system

-ocmrcmodel    Cancel model ( remotecancelmodel)

-osmrsmodel    Status model ( remotestatusmodel)

-orc    restrict users to canceling only their own requests.  Without this anyone can cancel any print request

More stuff

What is my default printer
    # /usr/bin/lpstat -d

Remove a printer

from the gui
while in Sam (as shown above) Highlight the printer you want to remove.  Click on the actions menu, then remove.  Pretty tough eh.

From the command line

1. Login as root.
2. Stop the lp spooler.
    # /usr/sbin/lpshut
3. reject and disable the printer
    # /usr/sbin/reject PTR_NAME
    # /usr/bin/disable PTR_NAME
4. check for jobs in the queue
    # /usr/bin/lpstat -oPTR_NAME
4b. If there are any jobs cancel them or move them to a different printer
    # /usr/bin/cancel PTR_NAME
    # /usr/sbin/lpmove PTR_NAME  EXISTING_PTR
5. Remove the printer
    # /usr/sbin/lpadmin -xPTR_NAME
6. Restart the spooler
    # /usr/sbin/lpsched

Banner pages
Update 11/23/2000 : check out the banner page.

To disable the banner page, the user has to add -onobanner when printing
lp -dPTR -onobanner

Canceling a print request
if you don't know/remember your print request number try
    # /usr/bin/lpstat -oPTR
to get a list of all jobs in the spool
then cancel the request
    # /usr/bin/cancel request-id

A lot of the commands are based on System V commands which you can find on other pages at this site or try man.

Home     Back to UNIX

If you find an error or wish to comment please let me know.