Operating System - HP-UX
1830045 Members
7952 Online
109998 Solutions
New Discussion

Printing to remote printers on IP Terminal Servers

 
Robert Milne
Frequent Advisor

Printing to remote printers on IP Terminal Servers

Hello,
I am wondering in anyone can give me some clues or pointers as to getting HP-UX 11i printing to some old ASCII dot matrix printers I have on DEC Terminal servers. I am not sure how to get this to work in the HP-UX environment.
In the Tru64 UNIX environment the printcap file entry for this would be:
# la210 in stores
stores|lp6|stores: :lf=/usr/adm/lp6err: :lp=@172.20.1.8/telnet_7: :mx#0: :of=/usr/lbin/la324of: :pl#66: :pw#132: :sd=/usr/spool/lpd6: :sf: :sh: :xf=/usr/lbin/xf:

Note the entry for:
:lp=@172.20.1.8/telnet_7:
How is the equivalent of this done in HP-UX ?
Any help appreciated.

Rob.
"For every pleasure there's a tax."
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: Printing to remote printers on IP Terminal Servers


Youre going to need your own customized interface script for your printer queue in /var/spool/lp/interface/

We use some also for some old dumb line printers. Ive attached one so you can see what it looks like.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert Milne
Frequent Advisor

Re: Printing to remote printers on IP Terminal Servers

Stefan,

Thanks for that, I'll review it and try and work it out.
Do you know how to actually get it to talk to the telnet port 7 on the terminal server ie. from lp=@172.20.1.8/telnet_7 ??

Regards,

Rob.
"For every pleasure there's a tax."
Stefan Farrelly
Honored Contributor

Re: Printing to remote printers on IP Terminal Servers


Im afraid I dont even know if its possible to direct prints to a particular telnet port from HP-UX. Sorry. Hopefully youve got a terminal server with an IP which knows how to redirect (or only has the dump printer you want to print to on it) or youre going to have to think of attaching a get direct box to the dump printer to get it an IP.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Tim Nelson
Honored Contributor

Re: Printing to remote printers on IP Terminal Servers

Robert, If you do not wish to write your own driver the below has worked for us in the past when printing to printers on terminal servers.
If you have the jet admin product ( yes it has been replaced by a different hp product ) you can set the PERIPH= line to the host or IP address of the terminal server. Then set the PORT= line to the TCP port being used. Do the following.
lpadmin -pprinter_name -v/dev/null -m dumb
accept printer_name
enable printer_name
cp /etc/lp/interface/printer_name to /etc/lp/interface/model.orig/printer_name
cp /opt/hpnp/sh/hpnp.model /etc/lp/interface/printer_name
make sure the owner and permissions are correct on all the files that you copied ( i.e. owner lp and at least r-xr-wr-x ).
edit the PERIPH= and PORT= lines in the /etc/lp/interface/printer_name as metioned above.
Give it a shot. You may be able to do the same thing with the new HP Jet Direct product ( can't remember the name but it is on the HP website for download ).

melvyn burnard
Honored Contributor

Re: Printing to remote printers on IP Terminal Servers

If I remember correctly, the ddfa (direct device file attach i think) does this for you.
you need to read up on ddfa and ocd using the man pages and also documents at docs.hp.com

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1030-90042/B1030-90042_top.html&con=/hpux/onlinedocs/B1030-90042/00/00/9-con.html&toc=/hpux/onlinedocs/B1030-90042/00/00/9-toc.html&searchterms=ddfa&queryid=20011023-001409
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
KapilRaj
Honored Contributor

Re: Printing to remote printers on IP Terminal Servers

hi ,

I think i have some third party daemons for you. let me find it out , i will post it by tomorrow

kaps
Nothing is impossible