Operating System - HP-UX
1833838 Members
2636 Online
110063 Solutions
New Discussion

Re: How Add a printer Network HPUX 11X

 
Franklin
Occasional Contributor

How Add a printer Network HPUX 11X

How add new printer TCP/IP,in my new server, HPUX 11X,(step by step).
3 REPLIES 3
Peter Godron
Honored Contributor

Re: How Add a printer Network HPUX 11X

Franklin,
using SAM:
SAm Areas -> Printer and Plotters -> LP Spooler

Add network-based Printer

From there it calls jetadmin and here you can define your printer.
Bill Hassell
Honored Contributor

Re: How Add a printer Network HPUX 11X

You can add an HP printer with an HP network card using SAM and the terminology "network printer". If this is not an HP network card, you must add the printer as a "remote" printer. And to do that, you must know the LAN card's internal name for the printer (ask the manufacturer)


Bill Hassell, sysadmin
Lethuillier
Frequent Advisor

Re: How Add a printer Network HPUX 11X

There are two ways of setting up a networked printer on HP-UX
You can do it from the gui (the easy way) or from the command line (masochist's way).

------------------
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, in most cases it will be 'print'. Please take a look at the end of this post.

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.


go to tag "Printer test" at the end of this post.


-------------------------------------------------
Command Line way (experienced user friendly ;-) )
-------------------------------------------------
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

------------
Printer test
------------
now test your setup
# lp -dNEW_PTR_NAME filename
or if you made it your default printer
# lp filename

----------------------------------
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 take a look at;
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj02836
http://www.digitalissues.co.uk/html/hardware/charts/names.html
Il faut avoir la foi et non les foies - Il faut avoir la forme et non les formes - Il faut faire la paix et non des pets