Operating System - HP-UX
1834149 Members
2256 Online
110064 Solutions
New Discussion

How to install network printer.

 
Suriya Prakash
Regular Advisor

How to install network printer.

Hi,

I'm having HP Deskjet D1560 printer connected to windows machine (OS: Win XP) and shared, i want to install and configure the printer in Hp-ux server, Pls tell me the possible ways and commands, and tell me how to check wheather the printer is installed or not(like printing test page). I'm new to unix pls explain clearly.

Regards,
Suriya
14 REPLIES 14
Pete Randall
Outstanding Contributor

Re: How to install network printer.

The simple format:
IP=your_printer_ip_address
PRNTR=your_printer_queue_name

/opt/hpnpl/bin/addqueue -h $IP -q $PRNTR

Do a man on addqueue for the clear explanation.


Pete

Pete
Suriya Prakash
Regular Advisor

Re: How to install network printer.

Dear Peter,

Thanks for ur reply, but i'm not understand what ur trying to say, i'm new to unix, pls tell me clearly, and its a deskjet printer, no ip address for the printer. the printer is connected to the windows client machine. and my os is hp-ux 11i v3.

Regards,
Suriya
Pete Randall
Outstanding Contributor

Re: How to install network printer.

No ip address = no network printer

Your question is titled how to install network printer, so that is what I answered.


Pete

Pete
Bill Hassell
Honored Contributor

Re: How to install network printer.

You must first enable Unix printing on your XP box. From the XP help for printing:

1. Open Network Connections (START menu -- Network Connections. Click on Advanced tab at the top.

2. On the Advanced menu, click Optional Networking Components (bottom of the list).

3. Select Other Network File and Print Services check boxes, then clock details. You will see thwe Priont Services for Unix. Check that box and click Next.

Unix print server is now installed.

Now run sam in HP-UX. Select Printer and Plotters --> LP Spooler --> Printers and Plotters.

Press tab to highlight the Files menu item and use the arrow keys to move over to Actions, then press return and use the arror keys to move down to select Remote printers.

Fill out the first 3 lines with:

printer queue name (the name you'll use for this printer on HP-UX). Then enter the IP_address of your PC that has the printer attached. Finally, enter the name of the printer as your PC knows it. Now check the BSD box (it is a BSD printer) and finish the adding of the printer.

To test it, print a copy of /etc/profile:

lp -dmyprinter /etc/profile


Bill Hassell, sysadmin
Basheer_2
Trusted Contributor

Re: How to install network printer.

2 easy ways

1) hppi
or
2) login to your hpux as root user and type
sam
Suriya Prakash
Regular Advisor

Re: How to install network printer.

Dear Hassell,

Thanks for ur reply, I done the settings in windows pc, i try to do the setttings in hp-ux server, i'm receiving the following messages,

I open sam, and select printers and plotters i got the below msg

No printers or plotters are defined on this system. You can add a
printer or plotter by selecting one of the add items from the
"Actions" pulldown menu. For more information, choose "Overview"
from the "Help" pulldown menu.

Then i go for action and add n/w-based printer/plotter and add printer/plotter connected to hp jet direct i got the following error

The HP JetDirect printer software is not installed on your system
(neither the command "/opt/hpnpl/admin/hppi", nor the command
"/opt/hpnp/admin/jetadmin", exists). Therefore, it is not possibl
to add a printer that is connected to an HP JetDirect interface.

then i enter in to server and type cd /opt/hpnp or cd/opt/hpnpl i got file not found error.

Pls guide me what to do.

Regards,
Suriya.
Pete Randall
Outstanding Contributor

Re: How to install network printer.

> use the arror keys to move down to select Remote printers.


NOT network, remote


Pete

Pete
OldSchool
Honored Contributor

Re: How to install network printer.

1) see Bill H's reply and note he specified *REMOTE* printer, you tried to install a *NETWORK" printer

2) A network printer is connected to a JetDirect card / box and has its own ip, while a remote is hosted on another platform

3) If you determine you need the jetdirect s/w, see here:
http://h20180.www2.hp.com/apps/Lookup?h_lang=en&h_cc=us&cc=us&h_page=hpcom〈=en&h_client=S-A-R163-1&h_query=jetdirect+printer+installer
Suriya Prakash
Regular Advisor

Re: How to install network printer.

Hi,

I installed the printer through SMH, i give the print from server i got the below msg, but print not came.

# lp -dHPDeskjetD1560 /etc/profile
request id is HPDeskjetD1560-0 (1 file)

Regards,
Suriya
Pete Randall
Outstanding Contributor

Re: How to install network printer.

Well, there are only 3 places your print could be stuck:

1) the hp-ux box - check with SMH > printers and plotters > print requests OR lpstat

2) at the PC - I'm not a PC guy so I'm not sure how you would check that

3) at the printer - is it ON . . . . enabled?


Pete

Pete
Suriya Prakash
Regular Advisor

Re: How to install network printer.

All the settings are correct only but the print is in queue only, its showing busy and idle,

Regards,
Suriya
Robert-Jan Goossens
Honored Contributor

Re: How to install network printer.

Hi Suriya,

http://dingetje.homeip.net/dokuwiki/freesco/manuals/clients/winxp/printing

Create the printer on your WinXP, create a share for this printer and use the same name as you have used for the hpux queue name.

HPDeskjetD1560

Regards,
Robert-Jan
Suriya Prakash
Regular Advisor

Re: How to install network printer.

HI

I checked the settings u mentioned, all are correct, first i want to know, wheather hp-ux support deskjet d1560 printer, its a USB connected printer.if its support what was the issue.

Regards,
Suriya
OldSchool
Honored Contributor

Re: How to install network printer.

"first i want to know, wheather hp-ux support deskjet d1560 printer, its a USB connected printer.if its support what was the issue."

if the printer is attached to a windows print server, and you use "remote" printing, it matters not if "hp-ux supports.."
What happens in this case (somewhat simplified) is that hp-ux passes the file untouched to the windows box and tells windows to print it. Connections / driver and support issues at that point are all on the Windows side of things.

On the Windows side of things, log in to the box and go to Start -> Settings -> Printers and Faxes to see if the printer is up / active.

Also, Bill H gave you instructions on how to install Print Services on the Windows box. Did you then go ahead a create a print queue / lpr port there as well?