Operating System - HP-UX
1819834 Members
3135 Online
109607 Solutions
New Discussion юеВ

Suppressing Banner page from Printing

 
Don Clayton
Occasional Contributor

Suppressing Banner page from Printing

I have just added some printers in HP-UX 11i. All of my test prints come with a banner page. I have checked /etc/spool/lp/interface to see about editing the printer information and I found the directory empty.

How do I populate this directory or where else do I go to suppress banner pages on these printers?

Thanks in advance.
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: Suppressing Banner page from Printing

You could try "alias lp=lp -o nb"


Pete

Pete
Francois Bariselle_3
Regular Advisor

Re: Suppressing Banner page from Printing

Hi,

In sam, you can delete banner page.

When you add network printer, jetadmin ask you about parameter such as banner page...
Set banner page option to NO.
So, remove the printer and reinstall it with sam and check theses parameters.

Frank.
Fais la ...
Don Clayton
Occasional Contributor

Re: Suppressing Banner page from Printing

When I create a 'Physical Printer' with a 'Network Interface' in sam, I am not asked about banner and I dont see the option. Am I looking in the right place?
Uday_S_Ankolekar
Honored Contributor

Re: Suppressing Banner page from Printing

lp -onb -dprinterqname filename should remove this. Also aliase lp comand by alias lp="lp -onb" so by default for lp command -onb would apply!

-USA..
Good Luck..
Francois Bariselle_3
Regular Advisor

Re: Suppressing Banner page from Printing

Hi,

In sam, go to "Printers and plotters" and "lp spooler" and "Printer and plotters".
Go to "action" and "add network-based printer/plotter connected to hp jetdirect...
In HP Jetadmin, choose option 3 and read the instruction...

Frank.
Fais la ...
fg_1
Trusted Contributor

Re: Suppressing Banner page from Printing

Hi there

If you cd to /etc/lp/interface/model.orig you will see a file for each printer defined on your system, under each printer filename there is a variable to set banner on or off.

An example below is how we set it to off by using a "" setup for the variable. To set it on just put the word on in between the "".

mmdcux02@/etc/lp/interface/model.orig# more mv2itd08
#!/usr/bin/sh

#(c) Copyright 1993 ~ 1995 Hewlett-Packard Company. All Rights Reserved.
#
#@(#) $Header: /users/hpnp/odyssey/repository/sh/net_ljx000.psh,v 1.69 1999/07/30 16:02:08 hpnp Exp $

#--------------------------------------------------------------------------
# USER CAUTION: Starting this version, there are other programs depending on
# the statements planted here for various purposes. Your changes in this
# file may render those information inaccurate.
#
# To customize this script, edit the following functions:
# Init_variables - to initialize new variables
# Parsing_Options - to parse the options you create, and set the variables
# Output_PCL_Options and/or Output_PS_Options
# - to output the PCL/PS commands according the variable
# settings
#--------------------------------------------------------------------------

# jetadmin sets the following: OS, PERSONALTY, PRINTMODEL, TEOJ, and BANNER

HPNP=/opt/hpnpl
BIN=/usr/bin
HPNPS=$HPNP/bin/hpnps



PSLEVEL="2"
PERSONALTY="AUTO"
BAUDRATE="9600"
PRINTMODEL="lj4050"
TEOJ="on"
BANNER=""
SPACECHAR="_-"
MPAGE=$HPNP/bin/mpage #Added by Ramki on 14th Oct 98 for PSNUP
OS="HP-UX"


GL

Frank G.

Bill Hassell
Honored Contributor

Re: Suppressing Banner page from Printing

SAM calls either jetadmin (obsolete) or hppi for JetDirect cards, both are a bit tricky in setting options. The easiest way to turn off the banner page (the fancy one prior to each job, not the ultra-simple one that trails each job with 4-5 short lines of text) is to edit the printer's formatting script. Each printer has a formatting script, but for JetDirect network printers, there are two.

For printers that are connected directly using serial or parallel cables, edit the file with the printer's name in /var/spool/lp/interface. Look at the comments at the top of the script where you'll find comments related to setting the banner page to OFF.

For printers connected to a JetDirect interface, the printer's script in the /var/spool/lp/interface directory is a generic script related to LAN communication and the formatting script is one olevel below in the model.orig directory. cd to /var/spool/lp/interface/model.orig and edit the printer's script. As mentioned before, there will be numeerous comments about supressing the banner page. Set the internal variable banner="" to banner="no"

NOTE: If the banner page is actually trailing each job and is mostly white space with some short text in the center of the page, this has nothing to do with HP-UX, it is a burst page generated by the HP JetDirect card and is turned on/off by telnet to the printer and using the menu.


Bill Hassell, sysadmin
Mark Ellzey
Valued Contributor

Re: Suppressing Banner page from Printing

One thing I didn't see in the replies is that if you are using the jetadmin interface, the banner selection is under "6) Additional printer configuration". Go there and change "Banner Page" to 'no'.

Regards,
Mark