Operating System - HP-UX
1834915 Members
2655 Online
110071 Solutions
New Discussion

Re: How to set up print queue attributes?

 
Watcharin_1
Occasional Advisor

How to set up print queue attributes?

Dear Sir,

HP-UX11 Server. Whenever I print using command 'lp -d ' system printing banner page first which I don't want it. Where to set it off? Using 'sam' or lp options?

And also another attributes such as max lines, max column , etc..

Thanks in advance
Watcharin

New HP-UX11 user :)

10 REPLIES 10
Ian Dennison_1
Honored Contributor

Re: How to set up print queue attributes?

cd /etc/lp/interface

Look for the printer queue name as an executable file. You can change here the options sent to the printer.

Also /var/spool/lp/model directory holds the model scripts for modifying attributes of all printers of the same model (when they are created).

Share and Enjoy! Ian
Building a dumber user
RAC_1
Honored Contributor

Re: How to set up print queue attributes?

check the interface script you use for this printer in /etc/lp/interface dir.
Modify it to reflect banner=no.

It printer connected on print server, you put off the banner from print server config also. All options yor are talking about are in interface script you use.
There is no substitute to HARDWORK
Leif Halvarsson_2
Honored Contributor

Re: How to set up print queue attributes?

Hi
It depends on which printer model was selected when the printer was configured. In the directory /etc/lp/interface uou can find the interface script, it has the same name as the printer. If you list this script you can fint the options.
Watcharin_1
Occasional Advisor

Re: How to set up print queue attributes?

Guys,

I'm wonderring. I don't have anything under /var/spool/lp/interface. see below;

hotcb2:/var/spool/lp/interface# lpstat -a
hphotcb2 accepting requests since Oct 11 15:59
hotcb2:/var/spool/lp/interface# ls -l
total 0
hotcb2:/var/spool/lp/interface#

Rdgs,
Watcharin
Ian Dennison_1
Honored Contributor

Re: How to set up print queue attributes?

Did you create the printer using sam or the 'lp' commands?

Any other printer spooler products installed on the Server (jetadmin?).

Intriguing problem.

Ian
Building a dumber user
Leif Halvarsson_2
Honored Contributor

Re: How to set up print queue attributes?

Hi
It makes no sense if the printer is created with sam or lpadmin, there should be a interface script in any case. Can you check /var/spool/lp/interface, it should be a link to /etc/lp/interface. It also seems strange you always get a banner, this should not be default. Is it possible to create a new printer (to the same physical printer), perhaps something has got wrong when creating the first.
Leif Halvarsson_2
Honored Contributor

Re: How to set up print queue attributes?

Sorry,
Banner IS default, I have modifyed my scripts.
Watcharin_1
Occasional Advisor

Re: How to set up print queue attributes?

Leif,

I may did the wrong way, Could you please show me step by step to create new logical printer by using sam?


Thank a lots
Watcharin
Pete Randall
Outstanding Contributor

Re: How to set up print queue attributes?

You could also use an alias for the lp command: alias lp="lp -o nb". Put this in /etc/profile for it's effect to be system-wide.

Pete

Pete
Leif Halvarsson_2
Honored Contributor

Re: How to set up print queue attributes?

Hi
The following steps is for a local connected serial printer.

Start SAM
Select Printers and Plotters
Select LP Spooler
Select Printers and Plotters
Select Add Local Printer/Add serial Printer/Plotter

Select the serial port in the pop-up window
In the next window, give tour printrt a name and select Model/Interface, this is hardware depenent, for example select "laserjet" if you have a laserjet printer.
The rest of the fields is optional.