Operating System - HP-UX
1833875 Members
2135 Online
110063 Solutions
New Discussion

Printing on remote printers

 
Dieter Degrendele_1
Frequent Advisor

Printing on remote printers

Hi all,

I would like to setup a spooler for a printer that does not reside on our site. The problem is that the printer is a Lexmark Printer, thus jetadmin does not work here. I should be able to connect to a Windows NT Server which acts as printer server. I tried with the command

lpadmin -pPRINTER -v/dev/null -mrmodel -ormPRINTSERVER -orpREMOTESPOOL -ocmrcmodel -osmrsmodel -ob3

... but this does not work.

Does somebody have an idea?

Thanks.
The possible we did, the unpossible we're doing but for a miracle you have to wait some time.
5 REPLIES 5
Rita C Workman
Honored Contributor

Re: Printing on remote printers

Hi Dieter,

I don't know if this will help...but...
This printer at the other site, can you set it up as a remote printer from HPUX? Then with rlpdaemon running you could simple lp -d and thus invoke rlp.
OR...have you ever used Lantronix? You may be able to attach an external Lantronix device that would act as the print server and connect to it that way...I did this a couple years ago at another place, it worked for an IBM line printer that we needed to remote print to via their network. Lantronix has their own little language..if I could figure it out..anyone can.

Just throwing out a couple ideas to kick around,

/rcw
Patrick Wallek
Honored Contributor

Re: Printing on remote printers

I think I would try connecting to the printer on the Windows NT box as a remote printer from HP-UX. To do this you will need to make sure that you have TCP/IP printing services installed on the NT box and that the TCP/IP Print Server service started.

You can then set up the Lexmark printer as a share on the NT box and specify the NT box as the remote server and the share name as the remote queue name. This should work.
Victor BERRIDGE
Honored Contributor

Re: Printing on remote printers

Hi Dieter,
Just thoughts...
It should work, did you do accept PRINTER and enable after?
Is PRINTSERVER defined in /etc/hosts?
Have you uncommented the line :
printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i
in /etc/inetd.conf?

who can access your NT ?
...

Good luck
all the best
Victor
Rodney Hills
Honored Contributor

Re: Printing on remote printers

We have a Lexmark Optra 1855 laser printer and the internal network card works ok with the "hpnpf" (program to talk to jetdirect cards). I can do a telnet 9000 and configure the Lexmark as I wish.

If your situation is different, then maybe an external jetdirect box could be used. The NT and HPUX could share it.
There be dragons...
Geetam
Frequent Advisor

Re: Printing on remote printers

If the printer is connected to an NT machines as a shared printer, use CIFS (HP version of Samba) to access NT resources. (I myself have no experience with using printers this way, so cannot help any further)

If the printer is connected directly to the network, you will need to know the IP address of the printer, or the host name which can be resolved from the Unix machine.

Create/configure the remote printe ron your HP9000 with SAM - Printers and Plotters - LP Spooler - Printers and Plotters - Actions - Add Remote Printer or Plotter (may be the same as what you tried with 'lpadmin')

This will create a remote printer, which you can use to print text. To print more then just text, you will need to find/create a printer model to be able to use the -o options on the 'lp' command to format the printed output to your requirements.