- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- edit model script 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
Forums
Discussions
Discussions
Discussions
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
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
02-23-2006 03:30 PM
02-23-2006 03:30 PM
edit model script defaults
I am trying to set up an HP print queue that will always print landscape, and always print a specific font size. I created the printer with HPPI, that was easy. I found the /etc/lp/interface/model.orig/
Can I just edit this file, which appears to just be a copy from a template, to get the disired results. Again, I want this printer to always default to landscape and a smaller font.
What do I need to edit, since my application can not call lp -d commands...it just prints to directly to the printer queue.
Thanks, Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 03:52 PM
02-23-2006 03:52 PM
Re: edit model script defaults
/etc/lp/interface houses shell script that can be modified for your particular printer.
As long as you know what to change it too
That file is generated from /usr/lib/lp/model which should not be modified
Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 04:18 PM
02-23-2006 04:18 PM
Re: edit model script defaults
Thanks, I was aware that the interface files can be edited.
My question is:
What exactly do you need to change in these files? Where can you find documentation on this? HP documentation is pretty sparse on this...at least I can't find it.
Still looking for help or an example of what to change in these printer interface scripts so that a printer will always print landscape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 04:20 PM
02-23-2006 04:20 PM
Re: edit model script defaults
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 04:38 PM
02-23-2006 04:38 PM
Re: edit model script defaults
Thanks, I will try this as soon as I get into work tomorrow am.
Do you know if there are any good examples or documents on modifying these interface scripts?
We have about 75 printers to set up in HPUX. They are all going to require two print queues as near as I can tell. One for Portrait and one for Landscape. (at least that is how we did it in TRU64)
But I am open to any other ideas, since I am new to HPUX printing! Does LPADMIN have any advantages over HPPI (hippie :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 11:44 PM
02-23-2006 11:44 PM
Re: edit model script defaults
The HP-UX spooler is a SysV lp spooler while Tru64 is a BSD spooler. So while you have a printcap file in a BSD spooler and use lpr to print, in a SysV spooler, the command is lp with options. The -o options are specific to the printer script. lpadmin is the lp spooler maintenance command but it is incapable of adding/changing an HP JetDirect LAN connection, thus the need for hppi. But the good news is that you don't need hppi...just use addqueue, modifyqueue and removequeue for printer changes. Use lpadmin for direct connect (ie, parallel or serial) printers and for remote (print server or non-HP LAN cards in printers).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 09:14 AM
03-02-2006 09:14 AM