- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HowTo add printcontrol "&a180P" to my spoolreq...
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
тАО03-26-2011 01:05 PM
тАО03-26-2011 01:05 PM
HowTo add printcontrol "&a180P" to my spoolrequest?
I want all the output, produced by a HPLJ 9050n, to be rotated 180 degrees. Not upside down, but just a horizontal rotation.
Manually adding the lp option "-orotate" does the trick with plain textfiles, but not with files containing any barcodes.
This printer is configured as a remote printer, with the remote host being its IP Adress. That's probably the reason why I cannot find a modelscript residing in "/etc/lp/interface/model.orig" with my printername.
All printers created as a Network-Based printers connected to HP Jetdirect, have an associated modelscript (model.orig), in which I then could state: rotate="yes".
Yes:-)I first thought this would be the solution and I configured the printer using the JetDirect interface. But with the rotate="yes" option, all output is completely garbled, and instead of 1 page of output it sends out 20 or more empty pages for every spoolrequest.
So this option is not valid/useable.
So being a remote tcp printer, another option would be: adding the printcontrol "&a180P" to any spoolrequest.
But the lp interface for remote spooling in "/etc/lp/interface/
Has anyone experience with adding the rotation-option to the lp interface ecspecially for remote tcp-printers?
I would be very gratefull if someone could help me out and give me a hint.
Waldemar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 01:28 PM - last edited on тАО08-04-2011 10:00 AM by Kevin_Paul
тАО03-26-2011 01:28 PM - last edited on тАО08-04-2011 10:00 AM by Kevin_Paul
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
Take a look at these threads about printer model scripts:
http://h30499.www3.hp.com/t5/System-Administration/using-model-script/m-p/4234554#M329114
http://h30499.www3.hp.com/t5/General/11i-v1-and-LaserJet-4050/m-p/4761005#M147567
http://h30499.www3.hp.com/t5/General/Remote-Printer-not-printing-in-landscape/m-p/4728701#M147112
http://h30499.www3.hp.com/t5/General/Remote-printer-to-print-condensed-mode/m-p/4701104#M146720
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 01:46 PM
тАО03-26-2011 01:46 PM
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
Thx anyway.:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 02:47 PM
тАО03-26-2011 02:47 PM
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
Exactly. When you configure a "remote printer" you lose all of the -o options and there will be no modifications to the print job. A remote printer is assumed to be connected to some PC server. So all you can do is to modify the printjob before it is printer, like this:
cat /etc/rotate.conf /someplace/myprintfile | lp -oremoteprn
Did you download and install the LJ 9050 model script? All the new model scripts are located here:
http://www.hp.com/pond/modelscripts/index2.html
Note also that "&a180P" will not work. This is a PCL escape sequence so the correct string requires the ESCAPE character. When you insert an escape sequence like this, it must not be followed by model script initialization like a printer reset.
> barcodes...
This sounds like you are creating fairly complex PCL documents, and barcodes are special graphics forms that may not survive a &a180P effects. You'll need to consult the PCL manuals for better explanations:
http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf
http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13211/bpl13211.pdf
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 04:18 PM
тАО03-26-2011 04:18 PM
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
>Did you download and install the LJ 9050 model script?
Yes I did download "net_ljM9050MFP" and...
1)Configured the printer correspondingly as a networking-based printer.
- set rotate="yes" fixed value.
- testprints Unix shell were fine
2)Configured the printer, connected to a remote Windows Spool Server. No need to adapt the modelscript. Windows driver has its 180 degrees page-orientation on-board:-(
- testpages Windows were fine too.
>So all you can do is to modify the printjob before it is printer, like this:
>cat /etc/rotate.conf /someplace/myprintfile | lp -oremoteprn
Correct, adding/concatenating the original printfile with the "rotate option" for sure would solve the problem.
However then I should be able to intercept the printfiles before they are sent (from SAP) to the Unix spool, or.... as soon as they're created in "var/spool/lp/requests"?
>"&a180P" will not work
Correct, must be "[&a180P"
I cannot find a way to intercept the spoolfiles, because they're created within a SAP application which I cannot temper with.
Any further ideas how to handle my issue?
Waldemar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2011 09:13 PM
тАО03-26-2011 09:13 PM
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
If it uses lp(1) or a model script, you can fiddle with those. The latter was what some of those threads were about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2011 05:06 AM
тАО03-27-2011 05:06 AM
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
Yes SAP uses our lp spooler.
manual action (root):
- disabled printer
- added the escapesequences to the top of the spoolrequest
- enabled printer
- output correct(slightly:-))
Question: How can I "fiddle" with lp and perform above (manual)actions automatedly?
Waldemar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2011 12:06 PM - last edited on тАО08-04-2011 10:01 AM by Kevin_Paul
тАО03-27-2011 12:06 PM - last edited on тАО08-04-2011 10:01 AM by Kevin_Paul
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
>How can I "fiddle" with lp and perform above (manual) actions automatically?
By modifying the model script to add that escape sequence. Perhaps this thread may help:
http://h30499.www3.hp.com/t5/System-Administration/Modification-of-the-Banner-Page-in-HP-UX-11-31/m-p/4750211#M388165
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2011 02:39 AM - last edited on тАО08-04-2011 10:02 AM by Kevin_Paul
тАО03-28-2011 02:39 AM - last edited on тАО08-04-2011 10:02 AM by Kevin_Paul
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
Dennis, i owe you an apology.
Adapting the modelscript (configured as networkprinter) I tried before I posted this case.
Indeed the last url (your first answer)
http://h30499.www3.hp.com/t5/General/how-to-direct-print-job-to-a-particular-tray-from-Unix-using/m-p/4145845#M133579
resembles almost 98% my case.
SAP overrides all changes in the modelscript.
so I'm stuck:-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2011 07:18 AM
тАО03-28-2011 07:18 AM
Re: HowTo add printcontrol "&a180P" to my spoolrequest?
On the other hand, if SAP embeds ESC-E (reset) into the print job, you are indeed out of luck. You'll have to replace the printer with a model that works OK.
Bill Hassell, sysadmin