Operating System - HP-UX
1827318 Members
5693 Online
109961 Solutions
New Discussion

Re: unable to print via remote printer

 
Meakin Singh
Frequent Advisor

unable to print via remote printer

hi all,

i have installed a hp laserjet 1505 printer locally on my pc (windows xp )

now i have installed it on my TEST server as a remote printer, but whenevr i give a print command from my TEST server, the command comes to my local pc, it gets stuck


the outpurt from LPstat is


printer queue for hpljp

Windows XP LPD Server
Printer \\192.168.0.33\hpljp

Owner Status Jobname Job-Id Size Pages Priority
----------------------------------------------------------------------------
root (192.1 Waiting a1 6 343 0 1


test: hpljp: ready and waiting

10 REPLIES 10
Avinash20
Honored Contributor

Re: unable to print via remote printer

On windows server

Installing Print Services for UNIX
You can use Add/Remove Programs tool in Control Panel to install Print Services for UNIX. After you install Print Services for UNIX, you can configure a port to support printing to a remote computer or device that is running LPD.

To install Print Services for UNIX on Windows 2000:
1. Log on to the Windows server with an administrative-level account.
2. Start the Add/Remove Programs tool in Control Panel.
3. Click Add/Remove Windows Components.
4. Click Other Network File and Print Services, and then click Details.
5. Click to select the Print Services for UNIX check box, and then click OK.
6. Follow the instructions on the screen to finish the installation.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Meakin Singh
Frequent Advisor

Re: unable to print via remote printer

i had installed the unix services on windows , but dont know how to configure a port to support printing to a remote computer or device that is running LPD?

how can i do that?

when command is sent to the printerit does not show any port., i will attach a file for this
Avinash20
Honored Contributor

Re: unable to print via remote printer

>> From the Windows Machine please do the following setting:

*** Install and Configure Print Services for UNIX **

Use the Add/Remove Programs tool in the Control Panel to install Print Services for UNIX. After Print Services for UNIX has been installed, a port can be configured to support printing to a remote computer or device that is running LPD.

To install Print Services for UNIX on Windows 2000 / XP, complete the following steps:

Log on to the Windows server with an administrative-level account.

Start the Add/Remove Programs tool in Control Panel.

Click Add/Remove Windows Components.

Click Other Network File and Print Services, and then click Details.

Click to select the Print Services for UNIX check box, and then click OK

>> From the HP-UX Machine, complete the following steps:

Login to system as root

Add the hostname and IP address of the windows machine in /etc/hosts or in the DNS

Start sam

# sam

Highlight and select "Printers and Plotters"

Highlight and select "LP Spooler"

Highlight and select "Printers and Plotters"

From the Action pulldown menu, choose "Add Remote Printer/Plotter"

Printer Name
The name you will use on this system.
Remote System Name
The full domain name of the system that hosts the printer.
Remote Printer Name
The name of the printer as it is known on the remote system.
Remote Printer is on a BSD system
Check the box if the remote operating system is BSD.(Win XP/Win 2K)
Remote Cancel Name
The default is rcmodel.
Remote Status Name
The default is rsmodel.
Default Request Priority
This is the minimum priority (fence) that a print job must have in order to print on this printer. 0 is the lowest.
Allow Anyone to Cancel a Request
Check the box if you want to allow anyone, not just the owner or a superuser, to cancel print requests for this printer. This can be a convenient idea for a small workgroup.
Make this Printer the Default Destination
Check the box to make this printer your systemâ s default.
When all fields are filled in, select OK.

In case configuration was unsuccessful.
Most likely problems will be related to the remote system configuration.
Check as follows:

Edit /etc/services (on the remote system), and if necessary, un-comment the line beginning with printer by removing the #.
Ensure no systems are restricted from access by /var/adm/inetd.sec.
Make sure rlpdaemon is running.
>> After the configuration, the sam will display the following:

Name Type Enabled To Print Accepting Requests Location
hplaser remote yes, idle yes HP_LaserJet on host.domain.com

>> Print from HP-UX with the following command
# lp -d hplaser /etc/hosts


--------------------------------------------------------------------------------


ALSO ATTACHED IS THE DOCUMENT TO CONFIGURE LPR PORT IF NEEDED
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Meakin Singh
Frequent Advisor

Re: unable to print via remote printer

i have mase the changes you have told me, but the problem is , iam able to install and print laserjet 1022 without any trouble but unbale to do so with laserjet 1505
Avinash20
Honored Contributor

Re: unable to print via remote printer

>> Your question

the command comes to my local pc, it gets stuck

>> Does the print job come to the print-queue on Windows and here its not able to print or the job is still stuck up in HP-UX print queue,
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Meakin Singh
Frequent Advisor

Re: unable to print via remote printer

sir ,

i had sent u a screenshot , which shows that its getting stuck at windows , i'll attach the file again, please view it
Meakin Singh
Frequent Advisor

Re: unable to print via remote printer

hi,

check this screenshot also, this shows the output of lpstat command
Avinash20
Honored Contributor

Re: unable to print via remote printer

Cancel the job in HP-UX by
# cancel command

Ensure that you are able to print directly from the Windows server to printer hpljp
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Meakin Singh
Frequent Advisor

Re: unable to print via remote printer

yes, iam able to print directly from windows to the printer
Meakin Singh
Frequent Advisor

Re: unable to print via remote printer

can any one suggest a solution for this problem