- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP LAserjet 4250 -document not printing
Operating System - HP-UX
1819795
Members
3014
Online
109607
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
Discussions
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
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
08-12-2010 03:35 PM
08-12-2010 03:35 PM
HP LAserjet 4250 -document not printing
I added HP Laserjet 4250 using /usr/sbin/lpadmin -ptest3 -v/dev/null -mrmodel -ormtest3 -orptest3 -ocmrcmodel
the document got printed but it's not printing landscape style.
I tried added the laserjet model instead of the default one and used
/usr/sbin/lpadmin -ptest4 -v/dev/null -mlaserjet4 -ormtest4 -orptest4 -ocmrcmodel
Now the log file shows the document is sent to the printer but i actually dont see the physical copy of the document at the printer.
Any ideas what the reason and how to solve this?
the document got printed but it's not printing landscape style.
I tried added the laserjet model instead of the default one and used
/usr/sbin/lpadmin -ptest4 -v/dev/null -mlaserjet4 -ormtest4 -orptest4 -ocmrcmodel
Now the log file shows the document is sent to the printer but i actually dont see the physical copy of the document at the printer.
Any ideas what the reason and how to solve this?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2010 03:17 AM
08-16-2010 03:17 AM
Re: HP LAserjet 4250 -document not printing
/usr/sbin/lpadmin -ptest3 -v/dev/null -mrmodel -ormtest3 -orptest3 -ocmrcmodel
This uses the LPR/LPD remote printer protocol (RFC 1179). This protocol assumes it's printing to another Unix system, which can do any final formatting required by the actual printer. This is why generic "remote" model script is used.
>/usr/sbin/lpadmin -ptest4 -v/dev/null -mlaserjet4 -ormtest4 -orptest4 -ocmrcmodel
To understand why this didn't work, you'll need to know a bit about how a traditional Unix print spooler works.
Originally, the Unix print spooler system dealt with local printers only. It allowed the use of filter programs to modify the print jobs, but eventually the result was piped into some device file (a parallel port, or a serial port/MUX device).
Remote printing was added to some traditional spoolers through the filter functionality: a special filter binary was written to send the output to a remote spooler instead of doing any local filtering at all. Because the spooler still expects a device name, /dev/null was used as the device.
The "remote printer" functionality on HP-UX print spooler still works as described above. When you replaced the "-mrmodel" with "-mlaserjet4", you replaced the special remote printing filter with an ordinary LaserJet 4 printing filter. This filter only adds & modifies some printer control sequences (as per print job options) and then lets the job pass on to the device specified in the spooler configuration... which, in your case, is /dev/null so the formatted print job won't actually print on any printer.
For printing to network-attached HP printers from HP-UX, a better solution would be to install the HPPI (HP Network Printer Installer):
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=18922&prodTypeId=18972&prodSeriesId=27349&swLang=8&taskId=135&swEnvOID=7
It enables a new type of print queue: "Network Printer". It allows you to use model scripts with network-attached printers.
You can also download a specific model script for LaserJet 4250 from HP:
http://www.hp.com/pond/modelscripts/index2.html
http://www.hp.com/pond/modelscripts/net_lj4250.sh.Z
MK
This uses the LPR/LPD remote printer protocol (RFC 1179). This protocol assumes it's printing to another Unix system, which can do any final formatting required by the actual printer. This is why generic "remote" model script is used.
>/usr/sbin/lpadmin -ptest4 -v/dev/null -mlaserjet4 -ormtest4 -orptest4 -ocmrcmodel
To understand why this didn't work, you'll need to know a bit about how a traditional Unix print spooler works.
Originally, the Unix print spooler system dealt with local printers only. It allowed the use of filter programs to modify the print jobs, but eventually the result was piped into some device file (a parallel port, or a serial port/MUX device).
Remote printing was added to some traditional spoolers through the filter functionality: a special filter binary was written to send the output to a remote spooler instead of doing any local filtering at all. Because the spooler still expects a device name, /dev/null was used as the device.
The "remote printer" functionality on HP-UX print spooler still works as described above. When you replaced the "-mrmodel" with "-mlaserjet4", you replaced the special remote printing filter with an ordinary LaserJet 4 printing filter. This filter only adds & modifies some printer control sequences (as per print job options) and then lets the job pass on to the device specified in the spooler configuration... which, in your case, is /dev/null so the formatted print job won't actually print on any printer.
For printing to network-attached HP printers from HP-UX, a better solution would be to install the HPPI (HP Network Printer Installer):
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=18922&prodTypeId=18972&prodSeriesId=27349&swLang=8&taskId=135&swEnvOID=7
It enables a new type of print queue: "Network Printer". It allows you to use model scripts with network-attached printers.
You can also download a specific model script for LaserJet 4250 from HP:
http://www.hp.com/pond/modelscripts/index2.html
http://www.hp.com/pond/modelscripts/net_lj4250.sh.Z
MK
MK
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP