GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change the default tray when you create the pr...
Operating System - HP-UX
1847346
Members
3055
Online
110264
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-17-2007 09:51 PM
04-17-2007 09:51 PM
Change the default tray when you create the printer queue
Hi,
Is it possible to change the default tray when you create the printer queue in HPUX 11i?
Is it possible to have the tray option in "lp" command.
The printer model is Ricoh Aficio 2045e.
Thanks in advance.
Sujeet
Is it possible to change the default tray when you create the printer queue in HPUX 11i?
Is it possible to have the tray option in "lp" command.
The printer model is Ricoh Aficio 2045e.
Thanks in advance.
Sujeet
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 10:23 PM
04-17-2007 10:23 PM
Re: Change the default tray when you create the printer queue
All printers in HP-UX are run with printer scripts. For directly connected printers, the tamplate scripts are in /usr/lib/lp/model. For printers connected using an HP network card or adapter (called JetDirect), the scripts are in /opt/hpnpl/sh. However, there are no scripts for non-HP printers except generic/dumb scripts and it is highly likely you connected the Richo with it's own built-in LAN card. This card emulates the lpd/lpr protocol which does not allow any -o options to work, thus no way to select any tray or other options like landscape mode. The same is true if the printer is actually connected to anotner, non-HP-UX system.
Now if the printer is using an HP JetDirect network card, you can modify the printer script in the directory /etc/lp/interface/model.orig where you will see the script has the same name as your printer. If the Richo uses HP's PCL/PJL language, you can set the default paper tray in the default section of the script. If you do not see the printer's script in this directory then it is not a JetDirect connection and the actual script is one level up in /etc/lp/interface, most likely the generic rmodel script which just sends the job to the printer, no options.
Bill Hassell, sysadmin
Now if the printer is using an HP JetDirect network card, you can modify the printer script in the directory /etc/lp/interface/model.orig where you will see the script has the same name as your printer. If the Richo uses HP's PCL/PJL language, you can set the default paper tray in the default section of the script. If you do not see the printer's script in this directory then it is not a JetDirect connection and the actual script is one level up in /etc/lp/interface, most likely the generic rmodel script which just sends the job to the printer, no options.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 10:53 PM
04-17-2007 10:53 PM
Re: Change the default tray when you create the printer queue
Hi,
Thanks for the help.
Printer is using Jetdirect card and script we are using is ljx000.
I have checked the path as mentioned and opened that printer queue name script but I am not able to find out the Tray option in that file.
Please help me.
Thanks,
Thanks for the help.
Printer is using Jetdirect card and script we are using is ljx000.
I have checked the path as mentioned and opened that printer queue name script but I am not able to find out the Tray option in that file.
Please help me.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2007 01:30 PM
04-18-2007 01:30 PM
Re: Change the default tray when you create the printer queue
Excellent. The man page for net_ljx000 gives you the command line option. For example:
lp -dmyricoh -otray4 some_file
If that works OK, then the defaults are found in the script. NOTE: there are several tray options, source paper tray, destination tray, banner page tray. The variables are named:
mediasrc="def"
bannerpagesrc="def"
mediadest="def"
These variables are defined at about line 1190 of the current version of the script, but just search for those lines and change "def" to the number you'd like to use. You'll have to figure out (or experiment) what number triggers which tray in your Richo. Change the script in the model.orig difrectory (not the template in /opt/hpnpl/sh). You can override the new default by using -o options.
Bill Hassell, sysadmin
lp -dmyricoh -otray4 some_file
If that works OK, then the defaults are found in the script. NOTE: there are several tray options, source paper tray, destination tray, banner page tray. The variables are named:
mediasrc="def"
bannerpagesrc="def"
mediadest="def"
These variables are defined at about line 1190 of the current version of the script, but just search for those lines and change "def" to the number you'd like to use. You'll have to figure out (or experiment) what number triggers which tray in your Richo. Change the script in the model.orig difrectory (not the template in /opt/hpnpl/sh). You can override the new default by using -o options.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP