Operating System - HP-UX
1836412 Members
2227 Online
110100 Solutions
New Discussion

The no banner '-onb' option dose not work.

 
SOLVED
Go to solution
Pam Tuvul
New Member

The no banner '-onb' option dose not work.

We created multiple remote printers in a 11i servers by using the following LP command.

lpadmin -p -mrmodel -/dev/null \
-ocmrcmodel -orm \
-orp -ob3 -osmrsmodel

Everything works fine except the no banner options does not work.

lp -d -onb


I created another remote printer with the same command without the "-ob3" option. Then the '-onb' works just fine.

Just wonder what wrong with it. Cause the -ob3 option just control the format of request numbers. The remote printer configuration is pointing to a laserjet5si that is connected to another HP-UX11.i box. How do I fix the problem without removing and re-create all the remote printers?

thanks

Pam
4 REPLIES 4
BONNAFOUS Jean Marc
Trusted Contributor

Re: The no banner '-onb' option dose not work.

Hi,

I think problem is with the interface script. Can you see if scripts are same 'nb option' code for all printers?
If scripts are differents and physical printers are all same type, you can replace the bad script files by the good. If problem doesn't resolve, verify script interface on remote HP-UX box.

If scripts are identical, verify if Esc sequence use by 'nb option' is good for your printers.

Rgds

JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
Steve Steel
Honored Contributor

Re: The no banner '-onb' option dose not work.

Hi

See the script you have chosen

Normally for remote

/var/spool/lp/model/rmodel

#!/usr/bin/sh
# @(#) $Header: rmodel,v 72.3.1.2 97/04/28 19:49:14 ssa Exp $
#Note: These options must be preceded by "BSD" in the option argument.


# ie. use "-oBSDh" to suppress banner page.



And that is standard.

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

Re: The no banner '-onb' option dose not work.

Since this is connected to another HP-UX box, -ob3 controls the BSD behavior which includes stepping the request number range down to 3 digits. If you drop the -ob3, then SysV spooling formats will be used and now all the -o options will be included in the control file. That means that options like -olandscape and -o15 (as well as -onb) will work just fine. HP-UX to HP-UX print servers are the one case where -o options will work. NOTE: This assumes that the remote HP-UX system has the LaserJet printer as a local or JetDirect device. If instead the remote server has the printer as remote to another box like Windows-mumble, then you lose all the -o options in both machines for this printer.

This is an example of where putting the printer onto the network with a JetDirect card works really well. NOTE: although it will partially work, don't add an HP JetDirect LAN card as a remote printer. Use the HPPI software package.


Bill Hassell, sysadmin
Fred Martin_1
Valued Contributor

Re: The no banner '-onb' option dose not work.

Have a look at the interface scripts, for mine the default is no banner, and print one the switch is -oban ...

# OPTIONS RECOGNIZED:
# -oban output a banner page

fmartin@applicatorssales.com