- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Local Printer Problems - 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
Forums
Discussions
Discussions
Discussions
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
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-02-2005 02:09 AM
03-02-2005 02:09 AM
Local Printer Problems - HP-Ux
It is not clear to me why printer pr0 is not in our main print queue. It bothers me that the lp -d command does not work. Because I do not want to whack anything, I do not want to add it to the queue if a local printer does not belong there.
This box is an HP-9000 E45 running HP-Ux v10.01.
Suggestions would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 02:43 AM
03-02-2005 02:43 AM
Re: Local Printer Problems - HP-Ux
Look at the script in /etc/lp/interfaces/pr0
What does "lpstat pr0" give you.
What is listed with
find /etc/lp -name pr0
Can the printer pr0 be listed within hppi?
If it was setup with Jetdirect(hppi) then
make sure you are using the correct driver.
The software does not always have all of them. You have to download the others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 02:44 AM
03-02-2005 02:44 AM
Re: Local Printer Problems - HP-Ux
Does it work??
How the print file looks like?? Just ascii data?? What if you print some other file??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 03:08 AM
03-02-2005 03:08 AM
Re: Local Printer Problems - HP-Ux
I do not know how it was setup originally. That was before my time here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 03:25 AM
03-02-2005 03:25 AM
Re: Local Printer Problems - HP-Ux
1. The script in /etc/lp/interfaces/pr0 is
a file, 0 bytes in size.
2. "lpstat pr0" yields... "no entries"
3. cd /etc/lp
find . -name pr0 yields...
/member/pr0
this thing has...
/dev/c1t0d0_lp
4. I presume that I would need another
ARGUMENT with
lp -oraw -d pr0 PRINT.TEST
5. The attachment is just several rows of
abc...z 0123456789
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 09:36 PM
03-02-2005 09:36 PM
Re: Local Printer Problems - HP-Ux
The print script is 0 bytes
This is what does the work thus only a
carriage return from the spooler
vi /etc/lp/interface/pr0
:r /var/spool/lp/model/dumb
:wq
Try again
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 08:10 AM
03-04-2005 08:10 AM
Re: Local Printer Problems - HP-Ux
Upon trying "dumb" the P300 prints out...
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
pwget :option requires an argument --n
usage : pwget [-n name | -u uid]
Request id: Printer: dumb
Thu Mar 3 10:39:16 EST 2005
Upon trying "dumbplot" the P300 prints out...
/var/spool/lp/model/dumbplot[25] : test: Specify a parameter with this command.
I tried scaling back the "driver" file per the attachment.
Thanks to those who have responded. Further suggestions would be very much appreciated.
--Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 08:12 AM
03-04-2005 08:12 AM
Re: Local Printer Problems - HP-Ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 09:19 AM
03-04-2005 09:19 AM
Re: Local Printer Problems - HP-Ux
I would start with a check of the lp subsystem sofware using swverify. Someone may have tried to 'improve' HP-UX permissions and ownerships.
As far as a local parallel printer in with all the other printers, that's fine. Use lpstat -v to show all the printers and lpstat -t to report on more details. Try printing direct to the parallel device file using ux2dos as in:
dos2ux /etc/hosts > /dev/
If all that works, then delete and re-add the Printronix printer.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 03:22 AM
03-07-2005 03:22 AM
Re: Local Printer Problems - HP-Ux
/var/spool/uv/PR0.drvr
In this file is...
slp -c132 -i0 -n <&1
cat -
man slp specifies that there are some incompatibilities between the spooler and slp.
slp is a way to specify parameters for a "non-serial" printer.
Thus, I hope to send print jobs to this "slp" printer from the newer hp-ux box here. It is not clear to me that it is possible or that this is the best way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 09:37 AM
03-07-2005 09:37 AM
Re: Local Printer Problems - HP-Ux
#/usr/bin/sh
cat - | lp -dpr0 -onb
Be sure that this new file is 755 permissions. Universe is simply calling slp to perform no formatting (-i0 = no indent, -n = no auto-formfeed) so lp -dpr0 works fine. The -onb turns off the banner (separator) page if it is the default. The lp subsystem will handle your ASCII file formatting. Use the dumb model script when adding the printer. Make sure that lp can print ASCII files correctly first. ASCII files have just a signle LF at the end of each line so it is up to the printer script to add the CR to make the printer carriage return to the beginning of the next line. Or you can modify the above script to:
#/usr/bin/sh
ux2dos - | lp -dpr0 -onb
Bill Hassell, sysadmin