- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Enable duplex printing 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
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
тАО11-12-2009 06:25 AM
тАО11-12-2009 06:25 AM
I have a requirement to enable duplex printing on one of the network print queue.
If i am not wrong, we need to do this via the model script available in /etc/lp/interface/
But not sure which options and syntax to be included in the model script. Currently i don't see any keyword like duplex in the script.
/etc/lp/interface# grep -i duplex madprt0014
/etc/lp/interface#
Could someone help to make it work?
Another doubt is that, will this option work in canon printers ?
Waiting for your replies...
Ganesh.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 06:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 07:05 AM
тАО11-12-2009 07:05 AM
Re: Enable duplex printing on HP-UX
Meanwhile if others knows any other options like modifying the script, etc.. please let know..
Thanks in advance.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 08:29 PM
тАО11-12-2009 08:29 PM
Re: Enable duplex printing on HP-UX
To see if your printer script supports duplex, run this test page:
lp -dmadprt0014 -ooptions /etc/issue
The options page will show the available options. If duplex is available, then test with something like:
man terminfo | head -500 | lp -dmadaprt0014 -oduplex
If you need to make the change permanent, you can edit the script. Look for:
duplex="def"
and change this to:
duplex="vduplex"
Note that this is for portrait mode printing. If you print in landscape mode, use the option -ohd as in:
lp -dmadprt0014 -olandscape -ohd
which will print the reverse side in the proper orientation.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2009 01:35 AM
тАО11-13-2009 01:35 AM
Re: Enable duplex printing on HP-UX
Pete, I don't see the Duplex settings in additional options. I could see only these options.
Options: Current Settings:
-------- -----------------
1) Job Recovery [ON]
2) True End-of-Job [ON]
3) Banner Page [ON]
4) Default Printing Language [AUTO]
5) PostScript Level [Level 2]
Bill, need a clarification from you. Which model script will be used by the print queue?
Is it /etc/lp/interface/
first one doesn't contain the keyword "duplex" whereas the second one contains the below.
/etc/lp/interface/model.orig# grep -i duplex madprt0014
echo "dpi#, simplex, duplex, hduplex, topaz, yb, nb, job, nojob"
echo "dpi#, simplex, duplex, hduplex, topaz, yb, nb, job, nojob"
echo "dpi#, fuser
duplex="def" # CHANGE DEFAULT DUPLEX MODE
# duplex
duplex="simplex";;
vd | duplex | double | d) # vertical binding
duplex="vduplex";;
hd | hduplex) # double side, horizontal binding
duplex="hduplex";;
md | mduplex) # duplexing manually
manuald="" # invalidate manual duplex
Should i need to modify only /etc/lp/interface/
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2009 06:15 AM
тАО11-13-2009 06:15 AM
Re: Enable duplex printing on HP-UX
This is an artifact of the JetDirect (hppi) software. For these printers, the /etc/lp/interface directory will contain a generic network script which is responsible to transfer the filtered job to the printer. This script is virtually the same for all printers except internally, it is personalized for the printer's IP address or hostname.
This generic script actually passes the print job to the model.orig script which does the filtering by pre-pending and post-pending escape sequences to the file. The output of the model.orig script is what is sent to the printer.
So as you have seen, the duplex options are indeed in the model.orig/madprt0014 file and that is where you would change the default value. Note that once you change the script, all jobs will print double sided. If you want a single sided printout, just use the -osimplex option to lp and that will override the added duplex=hduplex line.
Bill Hassell, sysadmin