- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printers on HP-UX Version 11
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-2009 12:19 PM
тАО03-26-2009 12:19 PM
Ive just added an HP2564B printer to our unix box using SAM and add printer option etc.
The printer is connected to a JetDirect box and vi TCP/IP.
When i use the lp -dPRINTER filename for a text based document it just line feeds and prints nothing. Are there other commands needed for these sort of printers.
We used to print via HP3000 Spoolmate without problems.
Hope someone can help.
THanks
Mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 12:59 PM
тАО03-26-2009 12:59 PM
Re: Printers on HP-UX Version 11
2) from what I can find, its 10-15 years old?
"...HP2564B printer to our unix box using SAM and add printer option etc..."
well, the "add printer option etc..." is the important part. what kind of printer (local, remote, networked) did you add in sam? What model script did you use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 06:01 PM
тАО03-26-2009 06:01 PM
SolutionNow to see if the printer will work at all, use the hpnpf command like this:
hpnpf -x 12.34.56.78 -N /etc/profile
where: 12.34.56.78 is the JetDirect address. If this works, delete the printer and use addqueue to add the printer like this:
addqueue -h 12.34.56.78 -q my2564b -i 1020 -r off -t off -b off
If you want separator (banner) pages, use -b on. To find the model script ID number, use addqueue -l
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 02:57 AM
тАО03-27-2009 02:57 AM
Re: Printers on HP-UX Version 11
That worked a treat using hpnpf
If I use addqueue to add the printer, do I need to add it to the host file. Also would you use hpnpf to print or lp. Would you use lpstat to display the printer.
Hope you can help.
Thanks
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 02:11 PM
тАО03-27-2009 02:11 PM
Re: Printers on HP-UX Version 11
hpnpf is the underlying network communication program for JetDirect software.
> If I use addqueue to add the printer, do I need to add it to the host file.
I am not a fan of printer hostnames. The IP address is what will ultimately be used to communicate with the JetDirect box and hostnames can get messy when the hostname resolver is not well understood or managed. The files /etc/nsswitch.conf, /etc/resolv.conf and /etc/hosts (and others) control where the symbolic name can be translated into an IP address. Usually, DNS, NIS and LDAP services are managed by other groups and they don't always keep things up to date. Since printers are typically added once, using the IP address results in more success.
> Also would you use hpnpf to print or lp. Would you use lpstat to display the printer.
hpnpf just prints simple ASCII files with no special features like landscape, duplex, compressed format, etc. You use the lp command so you can take advantage of the printer script's options. lpstat is a very primitive tool and is only useful to see if anything is queued up for the printers.
Bill Hassell, sysadmin