- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing lp spooler defaults
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 10:12 AM
тАО07-14-2003 10:12 AM
Printing works fine, I just want to know how to set defaults. First, it always prints landscape. How do I get portrait to be the default? Secondly, it always prints this initial banner page with the username in giant letters, the request, options, date, option summary, etc. I really don't want to print this page- just the document. How do I turn that off too?
Thanks for any help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 10:21 AM
тАО07-14-2003 10:21 AM
Re: Changing lp spooler defaults
First make a copy of your current interface.
e.g. cp myprinter myprinter.saf
vi myprinter
You will probably see a line
banner=$DEF
change it to
banner=""
also
orientation="def"
change it to
orientation="p"
Save the file and you should be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 10:22 AM
тАО07-14-2003 10:22 AM
Re: Changing lp spooler defaults
You need to look into options for the lp command. For portrait mode, use "lp -oport". For no banner, use "lp -onob".
For a list of options, print a file with lp -ooptions.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 10:28 AM
тАО07-14-2003 10:28 AM
Re: Changing lp spooler defaults
Are you talking Windows....or HPUX??
Did you on your HPUX server either run jetadmin or use SAM to add/create the printer & print queue??
If you want to 'modify' some of the default settings for a printer, you could go in to the /etc/lp/interface/
Controlling some things are printing are done using the printer options for that particular printer. Example: don't want a banner page then
lp -d
the -o is option and nb is for no banner page
Hope this helps get you started
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 10:28 AM
тАО07-14-2003 10:28 AM
Re: Changing lp spooler defaults
Are you talking Windows....or HPUX??
Did you on your HPUX server either run jetadmin or use SAM to add/create the printer & print queue??
If you want to 'modify' some of the default settings for a printer, you could go in to the /etc/lp/interface/
Controlling some things are printing are done using the printer options for that particular printer. Example: don't want a banner page then
lp -d
the -o is option and nb is for no banner page
Hope this helps get you started,
Rit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 11:05 AM
тАО07-14-2003 11:05 AM
Re: Changing lp spooler defaults
This location doesn't exists on this machine:
/var/spool/lp/interface/model.orig
Any alternative locations? It may have to do with Jetdirect setting it up.
To add the printer, I installed this using swinstall:
J4189-11001C E.10.34 HP JetDirect Printer Installer for UNIX
I then went into SAM -> Printers and Plotters -> LP Spoolers -> Printers and Plotters -> Actions -> Add Network Based Printer/Plotter -> Add HP JetDirect Printer/Plotter
Then sam ran this command:
/opt/hpnpl/admin/hppi
Inside this Installer, I selected option 1) Spooler Administration -> 1) Add printer to local spooler, gave it the JetDirect IP address and port (1), gave the printer the name "laser", made it default, configured (0) exited, and it showed up in the list.
I am begining to think I should define an alias for lp using the defaults I desire, but it would be nice to just change them permanently so that lp
It seems I have figured out much of HP-UX, but printers is confusing for me. Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 11:09 AM
тАО07-14-2003 11:09 AM
SolutionRather than mess with the model script, I do exactly as you surmised. I put an alias in my personal start-up (.kshrc) in my case. I expect you could probably put this into /etc/profile and ensure that it's parsed by everyone at login.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 02:13 PM
тАО07-14-2003 02:13 PM
Re: Changing lp spooler defaults
You will probably be better off to remnove the printer and start over directly using hppi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2003 04:40 PM
тАО07-14-2003 04:40 PM
Re: Changing lp spooler defaults
The default in *ALL* printer model scripts is to use the printer's settings, that is, the script adds nothing to the job stream except a default reset (ESC E). That means that the reason you see landscape is some well-meaning (but misinformed) user has messed with the front panel settings on the printer. Now Windows printer drivers generally don't assume anything about the printer so even with bad options in the printer, they are explicitly defined in the driver's data stream. Verify the printer's settings by printing a test page and you''ll probably see the bogus setting. You can get the printer back to 'cold reset' state by turning off the printer, then back on again while holding the ONLINE key down...note that this varies a lot with the model of the printer so check your owber's manual. AND BEFORE you issue a cold reset (which resets the JetDirect card) make sure that the JetDirect card gets it's settings automatically from a DHCP or bootp server. Otherwise, you may have to setup the JetDriect card again.
As far as the banner page, as mentioned, you can turn this off in the printer script. However, the directory: /var/spool/lp/interface/model.orig must exist since this is where all the printer scripts for active printers actually live. Is there a /var/spool/lp directory?
As far as HP-UX and printers, the JetDirect software has little to do with Unix so there isn't much you can draw upon your previous knowledge to make sense out of all this. JetDirect is a special connection as the printer is treated as if it is local. To do this, the standard interface scripts contain a reference to the model.orig directory where the specific printer scripts are kept and when printing, the generic interface script calls hpnpf to do the actual printing. Note that network printing (SAM's terminology) means HP JetDirect cards while remote printer (SAM again) means a remote computer such as Linux or Windows.
Bill Hassell, sysadmin