HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: interface scripts for remote printer
Operating System - HP-UX
1834139
Members
2616
Online
110064
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
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
05-08-2005 11:10 PM
05-08-2005 11:10 PM
interface scripts for remote printer
hi
I have configured a remote printer that is connected to the network through jetdirect adapter. this printer has a third party flash memory to print arabic reports. I faced a problem in the output that there is extra two pages of garbage, when I asked the vendor of the flash memory he told me that i need to use a standard UNIX printer definition called Line dump printer, other, or ASCII printer type. and disable local filtering.
how can I do that, known that the OS HP-UX 11i
the printer is HP laserjet 4050
Regards
Burhan
I have configured a remote printer that is connected to the network through jetdirect adapter. this printer has a third party flash memory to print arabic reports. I faced a problem in the output that there is extra two pages of garbage, when I asked the vendor of the flash memory he told me that i need to use a standard UNIX printer definition called Line dump printer, other, or ASCII printer type. and disable local filtering.
how can I do that, known that the OS HP-UX 11i
the printer is HP laserjet 4050
Regards
Burhan
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 03:34 AM
05-09-2005 03:34 AM
Re: interface scripts for remote printer
If the printer was added via SAM to be a remote printer, you do not have choice on the model/driver.
If the printer was added via JetAdmin then you would have a choice. Typically most HP printers will communicate back to JetAdmin and say "this is the model/driver to use". Before you press the "0" key to complete the process, the JetAdmin will display the selections that have been made and give you the opportunity to change. Select the "model" and there should be a Dumb Model available.
If the printer was added via JetAdmin then you would have a choice. Typically most HP printers will communicate back to JetAdmin and say "this is the model/driver to use". Before you press the "0" key to complete the process, the JetAdmin will display the selections that have been made and give you the opportunity to change. Select the "model" and there should be a Dumb Model available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 02:02 PM
05-09-2005 02:02 PM
Re: interface scripts for remote printer
As mentioned, if the printer was added with lpadmin or SAM as a "remote" printer, there is no printer script, so data is sent in "Line dump printer" mode, also known as raw. Nothing is appended in HP-UX. You can verify that it is a remote printer with:
lpstat -v
Now if it was added to HP-UX with hppi (or the obsolete/deprecated jetadmin software), then there is indeed a model script. But it is really easy to bypass everything. Just print with lp -oraw or lp -orelay and that will remove any formatting. If that works OK, then you're all set *unless* you have special applications that do not allow and lp options. These programs commonly assume BSD printing and do not provide options for lp.
The alternative for these canned programs is to create a new printer with a do-nothing script. HP has one called dummy although it does have some code for banner pages. So here's a truly dumb script:
#!/usr/bin/sh
# Truly dumb model script
# No options are used or recognized including copy count
# Does not support serial printers where the baud rate must be set
export PATH=/usr/bin
export PATH
# These are just for documentation - not used
JOB="$1"
NAME="$2"
DEV="$3"
TITLE="$4"
COPIES="$5"
OPTIONS="$6"
COPIES=$4
shift 5
FILES="$@"
# Print the spooled files
for LPFILE in $FILES
do
cat "$LPFILE" 2>&1
echo "\014\c" # this is a formfeed, optional for some printers
done
exit
---
Create another hppi copy of the same printer, then copy the above script on top of this new printer's script in /etc/lp/interface/model.orig
Bill Hassell, sysadmin
lpstat -v
Now if it was added to HP-UX with hppi (or the obsolete/deprecated jetadmin software), then there is indeed a model script. But it is really easy to bypass everything. Just print with lp -oraw or lp -orelay and that will remove any formatting. If that works OK, then you're all set *unless* you have special applications that do not allow and lp options. These programs commonly assume BSD printing and do not provide options for lp.
The alternative for these canned programs is to create a new printer with a do-nothing script. HP has one called dummy although it does have some code for banner pages. So here's a truly dumb script:
#!/usr/bin/sh
# Truly dumb model script
# No options are used or recognized including copy count
# Does not support serial printers where the baud rate must be set
export PATH=/usr/bin
export PATH
# These are just for documentation - not used
JOB="$1"
NAME="$2"
DEV="$3"
TITLE="$4"
COPIES="$5"
OPTIONS="$6"
COPIES=$4
shift 5
FILES="$@"
# Print the spooled files
for LPFILE in $FILES
do
cat "$LPFILE" 2>&1
echo "\014\c" # this is a formfeed, optional for some printers
done
exit
---
Create another hppi copy of the same printer, then copy the above script on top of this new printer's script in /etc/lp/interface/model.orig
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 2025 Hewlett Packard Enterprise Development LP