1834008 Members
1671 Online
110063 Solutions
New Discussion

Banner Pages with lp

 
Simon Abbott
Frequent Advisor

Banner Pages with lp

Hello everyone,

Silly question probably, but I've just installed a printer and it prints a banner page every time I print something.

Anyone know how to unset the banner page option?

Cheers,

Simon.
I'm still working on that one
11 REPLIES 11
Helen French
Honored Contributor

Re: Banner Pages with lp

Hi,

If your printer name is 'pr1', then check for the file called - /etc/lp/interface/pr1.

Edit this file with 'vi' and search for 'banner' command. Put a '#' sign in those lines in order to avoid banner command.

HTH,
Shiju
Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: Banner Pages with lp

Hi:

Not so silly a question but the answer is that it depends. Typically it's simply lp -dmyprinter -onb myfile. The -onb is no banner BUT this can vary from interface to interface. You need to cd to /var/spool/lp/interface and look for your particular printer. In this example the interface file would be 'myprinter'. THis is almost always simply a script so lloking for the no banner option is easy.

It this is a network printer, sometimes you need to telnet to the printer directly and turn off the banner there as well.
If it ain't broke, I can fix that.
Craig Rants
Honored Contributor

Re: Banner Pages with lp

Simon,
You can also control this through jetadmin, when you configure a printer there is an option to turn of the banner page.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sanjay_6
Honored Contributor

Re: Banner Pages with lp

Hi simon,

Try the "-o nb" option with the lp command.

Hope this helps.

Regds
BFA6
Respected Contributor

Re: Banner Pages with lp

Hi,

This is how I normally remove the banner

cd /etc/lp/interface
vi
find banner="yes" and remove yes

Regards,

Hilary
Steve Steel
Honored Contributor

Re: Banner Pages with lp

Hi

In /etc/lp/interface or model.orig under it
you have a scrip[t on the printer name.

Find banner="yes"

Make

banner=""

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill McNAMARA_1
Honored Contributor

Re: Banner Pages with lp

send the print jobs with

lp -onb

(option no banner)

Later,
Bill
It works for me (tm)
Charles Holland
Trusted Contributor

Re: Banner Pages with lp

If it is interfaced through a jetdirect card you should be able to telnet to the card and turn off the banner option.
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
Simon Abbott
Frequent Advisor

Re: Banner Pages with lp

Hello everyone,

Thanks for all your replys, however I've still not been able to remove the banner. I installed the printer onto the parallel port on an xterm using the envisex adminitstation utility in SAM after installing netstation. So the file in /etc/lp/interface/ is a 'Network Peripheral Model Script'. I then installed the printer as remote on other machines so the scrtipts in their /etc/lp/interface/ directories describes itself as a remote printer script. I cannot seem to find any entries for a banner command in either file.

Lp -onb does work however but I do need it to be default.

Any more ideas?

Many thanks,

Simon.
I'm still working on that one
Sanjay_6
Honored Contributor

Re: Banner Pages with lp

Hi Simon,

try this,

Go to /etc/lp/interface.

Edit the printer file and look for the keywork PRINTERCFG. This should point to a file say, /opt/hpnp/admin/printer/11.cfg

edit 11.cfg and look for BANNER under printer_defaults. Set BANNER="no", save this file and exit. Try the printing once again.

Hope this helps.

Regds
Simon Abbott
Frequent Advisor

Re: Banner Pages with lp

Hello again,

I found why I wasn't finding the banner="yes" line. The script I was looking at in /etc/lp/interface was calling another script of the same name in /etc/lp/interface/model.orig. This is where the banner="yes" was hiding. A quick edit and all is well.

Thanks to everyone for you help,

Simon.
I'm still working on that one