- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configuring a printer on hp-ux
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
04-21-2006 03:03 AM
04-21-2006 03:03 AM
I have a printer and want to configure it on a unix server; and have to use A4 and A3 how to proceed; shall I create the printer twice once for A4 giving it a name like "printerA4" and once for A3 "printerA3" and which file should I change; Also if I want to change let's say the margin for printing what to do.
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2006 05:28 AM
04-21-2006 05:28 AM
Re: configuring a printer on hp-ux
If these are direct attach printers, see the options in the appropriate file for your printer in the directory /var/spool/lp/model/. If your printer supports the options for paper size and margin, the options should be very similar, if not identical, to the ones for JetDirect printers.
Regards,
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2006 06:11 AM
04-21-2006 06:11 AM
Re: configuring a printer on hp-ux
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2006 09:05 AM
04-21-2006 09:05 AM
Re: configuring a printer on hp-ux
I'm not sure what you mean when you say "instead of using the options with lp, where can i change the settings for page to put it A4 or A3 or the font size". Can you clarify?
If you don't want to specify the options on the command line, you could create a different script for each option you want, and hardcode the options in the script, for example the script "lpA3" would contain the command "lp -oA3". You could also create different queues for each option you want, and manually edit /var/spool/lp/interface/
Are you adding these printers for users to print at the command-line, or for some application? Most applications allow you to specify options to lp in their printer definitions, so you could configure one print queue per physical printer at the UNIX level, and multiple queues within the application for each option you want to use. For printing at the command-line, your users will either have to specify the options each time, or remember which queue name uses which options if you set up multiple queues per printer. It's better to teach them the options than create a maintenance hassle for yourself...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2006 10:25 AM
04-21-2006 10:25 AM
SolutionHowever, because you're using JetDirect, it is really easy to create several print queues, each with a different set of options. Start by creating a standard queue for the printer. Since it is so simple, I just use addqueue. If you installed the HPPI product for JetDirect printers, your default PATH will have /opt/hpnpl/bin towards the end of the list. You add the printer like this:
addqueue -h 12.34.56.78 -q printer
addqueue -h 12.34.56.78 -q printerA4
addqueue -h 12.34.56.78 -q printerA3
It sounds like you want is a print queue that always selects the A4 printer tray and another always prints to the A3 tray. That will be easy.
cd to the interface/model.orig directory for lp. There will be 3 scripts in the model.orig directory, each with the name of the printer. Use vi to edit the file and look for the default settings section. You'll see a media source variable which you change from "" to "A3" in the printera3 script and "A4" in the printera4 script. No need to shutdown the spoolere, just print a simple test page to each queue to see that the new default works in each queue. Note that model.orig is for custom printer scripts. It's a good idea to document what you did for each qwueue.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 04:37 AM
04-24-2006 04:37 AM
Re: configuring a printer on hp-ux
Regards,
Ziad