Operating System - HP-UX
1833667 Members
4265 Online
110062 Solutions
New Discussion

Re: files printing out wierd

 
SOLVED
Go to solution
Mark Vollmers
Esteemed Contributor

files printing out wierd

Hi, all. Not a major problem, but it's kinda ticking me off. I'm running 11.0, and when I print something to one of the network printers that have been added (printers are in /etc/hosts and are added as remote printers in SAM), it is all screwy. For example, if I print /etc/passwd, normally (like with 10.20), it prints:

stuff
stuff
stuff

Now, when I go to print, I get

stuff
stuff
stuff
stuff

and so one out past the page (it will print blank pages since the text is tabbed over so far). I also get a page afterwards with the user name who sent the print and the print job number (laserjet-2, for example). What's the deal? Anyone seen this? Like I said, worked fine before with 10.20. Thanks.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
10 REPLIES 10
Jim Turner
HPE Pro

Re: files printing out wierd

Hi Mark,

I can only imagine that your second example had the word "stuff" marching across the page. instead of in a nice left-aligned column. Are these remote printers accepting print directly via the LAN or is your print going through another UNIX or NT server to get to the printer?

It sounds like you are somehow victim to DOS files having the "^M" at the end of each line where UNIX does not. Using /tmp/myfile as the file you're trying to print and myprinter as the printer you're trying to print to, try the following:

ux2dos < /tmp/myfile | lp -dmyprinter

What do you see?
Deshpande Prashant
Honored Contributor

Re: files printing out wierd

Hi
Turn the "BANNER=off" if you do not want seperate page with printout information.
Use jetadmin to do this.
#jetadmin-> configure->modify spooler queue-> name-of-printer->additional parameters->Baner Page.


Thanks.
Prashant.
Take it as it comes.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: files printing out wierd

HI:

Several things are possible. If you added printers with SAM, I suspect you actually added Remote Printers rather than JetDirect
network printers. Typically, you are much better off with JetDirect printers rather than remote (rlp) printers. If so, remove the remote printers and then add them using the JetDirect software. If you are using remote printers on both boxes make sure that the Remote Printer Name is set the same on both boxes. Network printer interfaces are very sensitive to the remote printer (queue) name. e.g. TEXT and Text are not the same. If is very easy to modify the interface files to disable the banner page. Typically there is a TEXT queue and a RAW queue and only the TEXT queue will do CRLF expansion. Cd to /var/spool/lp/interface and locate the desired interface script. Typically all you have to do is set BANNER="".

If it ain't broke, I can fix that.
Sanjay_6
Honored Contributor

Re: files printing out wierd

Hi,

Seems like you have to switch the banner off. Have you added these printers thru Jetadmin or you have them configured in some other manner.

Thanks
Mark Vollmers
Esteemed Contributor

Re: files printing out wierd

Ah. I guess I should have looked at my post; it was supposed to march along the screen. Anyway, I looked at jetadmin when I set up the server, and the description that i read made it sound like it was for controlling printers connected physically or "owned" (for lack of a better term) by UNIX. Since these are windows printers, I moved on. I found the download for web jetadmin (since jetadmin by itself is discontinued). Anything I need to be aware of when I pop it in, or can I just delete the old printer references and add the new ones thorugh jetadmin? Thanks for setting me straight here.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Jim Turner
HPE Pro

Re: files printing out wierd

Hi again, Mark,

Don't waste your time with web jetadmin unless your a sadist. Good ol' jetadmin is still available via ftp:

ftp ftp.hp.com
cd /pub/networking/software
ls HP*

HP10d621.SD for 10.20
HP11d621.SD for 11.x

(With eternal gratitude to Rita)

Cheers,
Jim
Mark Vollmers
Esteemed Contributor

Re: files printing out wierd

Jim-

Since I like things nice and sane, I went and downloaded the jetadmin from the ftp site. It has the extension of ".sd". I know that i should know how to convert this into a depot for install, but I can't think of it for the life of me. Anyone remember how to prepare it for install? Thanks. (I should just write down everything in a book as opposed to post it notes everywhere...)

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
A. Clay Stephenson
Acclaimed Contributor

Re: files printing out wierd

Hi Mark,

Assuming you did a binary ftp download, all you need to do is copy the file to a convenient location (/var/tmp) and run swinstall; the file is already in swdepot format. When prompted for the source, answer local directory with the path /var/tmp/HP10d621.SD. I'll bet you were confused by not having the .depot suffix. Remember this here is unix that there suffix don't mean nothing.

Clay
If it ain't broke, I can fix that.
Mark Vollmers
Esteemed Contributor

Re: files printing out wierd

Boy, do I feel sheepish (baa, baa). Thanks, guys!

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Tom Danzig
Honored Contributor

Re: files printing out wierd

FYI, I was told by HP that jetadmin is no longer being supported. The replacement package is called "JetDirect Printer Installer" and is available for download at:

ftp.hp.com/pub/networking/software/HP11e118.SD

(This is for HPUX 11.0)


You may also want these files as well (not really necessary though):

ftp.hp.com/pub/networking/software/ja243en.install.unx
ftp.hp.com/pub/networking/software/ja243en.readme.unx