1835251 Members
2387 Online
110078 Solutions
New Discussion

Remote printer

 
l.tamilselvan
Occasional Contributor

Remote printer

Hi,
Can any one tell how to configure and use the remote printer in HPUX11i.The remote printer in connected in Windows system.

Regards ....L.Tamilselvan
6 REPLIES 6
Rajeev  Shukla
Honored Contributor

Re: Remote printer

Hi,
Add the IP address of the windows machine in /etc/hosts
Then configure a printer using SAM-->Printers and Plotters -->LP Spooler -->Printers and Plotters
go to actions and add remote printer.
Give the queue name, then windows PC name(given in /etc/hosts), and windows printer name..
Keith Bevan_1
Trusted Contributor

Re: Remote printer

Hi,

Follow the previous suggestion and all should work fine.

A recommendation I would make is that if your printer is attached to an external print server it may be a good idea that you utilise parallel port 1. This will prevent additional complications in configuring the queue and equipment. If your printer has an internal card then nothing to worry about.

Should you have any problems getting it working you could :-

Ensure the equipment is connected.
Ensure the equipment is powered on.
Ensure the equipment is on-line.

ping ipaddress
ping hostname
lpshut
lpsched
accept lpqname
enable lpqname
lp -dlpqname testfile

Hope this helps.

Keith
You are either part of the solution or part of the problem
Bhuvaneswari Selvaraj
Valued Contributor

Re: Remote printer

Hi,

As long as, you can ping the windows system from your HPUX box, you can add the same.

You can use the lpadmin command to add the same. For adding printer test on hpux system the remote printer printer1 on the windows system windows1, you can use the follwoing command

lpadmin -ptest -ormwindows1 -orpprinter1 -mrmodel -mrmodel -v/dev/null -orc -ocmrcmmodel -osmrsmmodel

If you are not comfortable with the command, use the SAM GUI, Printers & Plotters, LP Spooler, Printers & Plotters, Add Remote printer will do it.The printer daemon must be running on the windows system for the proper functioning of this.
John Flanagan
Regular Advisor

Re: Remote printer

First you need to enable print services for UNIX in the windows machine.
Next share the printer in windows.
The windows host should have a static IP addess which needs to be entered in /etc/hosts on your unix box.
You can then use SAM to add this printer to your HP-UX system.

Note: depending on what you want to print you may need to add a registery key to your windows machine.

Regards,

John.
Matthew Couper
Frequent Advisor

Re: Remote printer

I have just finished setting up this type of printing, nobody mentioned that you need to add a registry key on the Windows machine yet though...he's a quick doc I made for the process

1) Setup a local printer connected via LPT1 or USB should work also.
2) Start the "TCP/IP Print Server" service (otherwise Unix will not be able to see it, I haven't figured out how to do this with Win98 yet)
3) Start regedit and go to "My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\\PrinterDriverData"
4)On the Edit menu click Add Value and add the following registry value
Value Name: LpdPrinterPassThrough
Data Type: REG_DWORD
Value Data: 1
5) Quit the editor and restart the TCP/IP Printer Spool and the Spooler services
6) On the Unix side, use SAM to create a new remote printer
sam->Printers and Plotters->LP Spooler->Printers and Plotters
Actions->Add Remote Printer/Plotter
The Printer Name will be what it is called in Unix
Remote System Name is the name (or IP Address) of the host system
Remote Printer Name is the name of the printer on the host system (case sensitive)
All other options can be left at default
NOTE: With the addition of remote printer queues, using lpstat -o will result in hanging for a minute if the remote queue is offline, to suppress the timeout time us a -i option also (lpstat -o -i)

I've also made changes to the initial remote script since it was not printing correctly, that involved adding sequences into the printer script, the is created by typing Ctrl+V then Esc, then enter the code you need
Here's a link to HPs site for the Esc Control functions if any additional support for the driver is needed.
http://www.hp.com/cposupport/printers/support_doc/bpd05855.html
John Flanagan
Regular Advisor

Re: Remote printer

You can also add 'SimulatePassThrough' to the LPDSVC registry key and this will work for all printers.

Regards,

John.

Run Registry Editor (REGEDT32.EXE).
From the HKEY_LOCAL_MACHINE subtree, go to the following key:

\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters
On the Edit menu, click Add Value.
Add the following:

Value Name: SimulatePassThrough
Data Type: REG_DWORD
Data: 1

PS: You usually get better responces if you assign points.