- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX Printer setup
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
01-30-2007 01:46 AM
01-30-2007 01:46 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 01:54 AM
01-30-2007 01:54 AM
Re: HP-UX Printer setup
See if they are the same.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:08 AM
01-30-2007 02:08 AM
SolutionNote: "good" and "bad" are the queue names in question.
cd /var/spool/lp/interface
cp -p bad bad.save
cp good bad
Now edit bad and look for a line
PERIPH=goodhostname_or_ipaddress
and change it to
PERIPH=badhostname_or_ipaddress
then save the file.
# You can look in bad.save if you don't know the old hostname
cd model.orig
cp -p bad bad.save
cp good bad
Now the behavior of "bad" should match that of "good". There is no need to stop and restart the spooler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:11 AM
01-30-2007 02:11 AM
Re: HP-UX Printer setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:36 AM
01-30-2007 02:36 AM
Re: HP-UX Printer setup
For a direct connected printer (the printer is usually next to the computer because cables must be short), use the command:
lpstat -v
You'll see /dev/null for printers that are on the network but /dev/somethingelse for direct-connect printers. These are very uncommon because of the short cable lengths.
The easiest way to tell if the printer uses an HP LAN card is to run the hpnpadmin command as in:
hpnpadmin -v 12.34.56.78
(use your printer's IP address) If the program reports that it is an HP LAN card then it *may* have been setup with hppi (the preferred method) or as a 'remote' print server. To determine whether the printer was setup as a remote printer, cd to /etc/lp/interface and list the first 5 lines of each printer script:
cd /etc/lp/interface
head -10 *
For a remote printer, you'll see a line like this:
#Note: These options must be preceded by "BSD"
For an HP network printer, you'll see:
# $Header: /users/hpnp/odyssey/repository/sh/hpnp.model.psh
For a direct connected printer, there are dozens of possible printer scripts but you can use lpstat -v to see that a real device file is being used (not /dev/null as mentioned above).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 07:13 AM
01-30-2007 07:13 AM
Re: HP-UX Printer setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 07:18 AM
01-30-2007 07:18 AM