- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- network printer
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
10-13-2008 01:30 PM
10-13-2008 01:30 PM
I have a few questions regarding network print queue on hpux11.23.
1. using "lpstat -t" I get:
device for fjet2_1: /dev/null
fjet2_1 accepting requests since Jan 8 09:08
printer fjet2_1 is idle. enabled since Jan 8 09:08
fence priority : 0
but when I ping or nslookup the printer name this is what I get and also we can't print to the printer:
# nslookup fjet2_1
Using /etc/hosts on: simpk400
looking up FILES
Trying DNS
*** sadc1.stec-inc.ad can't find fjet2_1: Non-existent domain
Is it correct to assume that this printer is configured but not on the network?
2. I don't quite understand how the print queue and printer name work for example:
#lpstat -t
device for jet11_1: /dev/null
jet11_1 accepting requests since Jan 8 09:08
printer jet11_1 is idle. enabled since Jan 8 09:08
but the printer name is:
looking up FILES
Name: jet11
Address: 172.17.4.50
and not:
# nslookup jet11_1
Using /etc/hosts on: simpk400
looking up FILES
Trying DNS
*** sadc1.stec-inc.ad can't find jet11_1: Non-existent domain
Please explain.
Thank you in advance for any assistance.
Kathy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2008 01:41 PM
10-13-2008 01:41 PM
SolutionNetwork based printers ( those with some type of jetdirect or equivelant ) IP information is found in the interface file for the printer.
So in this case:
grep PERIPH= /etc/lp/interface/jet11_1
PERIPH with either be set to an IP address or a hostname found in /etc/hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2008 01:58 PM
10-13-2008 01:58 PM
Re: network printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2008 04:02 PM
10-13-2008 04:02 PM
Re: network printer
lpstat provides no information about the destination printer, only status for the local print queues.
There are two very different ways to connect a printer and unfortunately, lpstat won't tell you the difference. One method is where the printer is served by some other computer (a PC, Linux, non-HP LAN card) and this is called a remote printer. A remote printer has no -o options making it quite awkward to use.
The other printer (mentioned above) is a network printer (SAM's wording) and connects directly to HP-UX. All the "network" printers are listed in the /etc/lp/interface/model.orig directory. If model.orig does not exist, all your printers are "remote" (or connected with cables). With "network" printers (virtually all will be HP) you can use hpnpadmin -v IP.address to find details.
In either case, there is a print queue name which is what you use with the lp command. Whether the printer was added with a hostname or IP address is irrelevant.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2008 04:05 PM
10-13-2008 04:05 PM
Re: network printer
thank you great pointers. unfortunatly all the printers are in fact network and been added using names. allot of them i'm told are no longer in service or the ip has changed and my project is to cleanup the spooler on this system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2008 05:24 PM
10-13-2008 05:24 PM
Re: network printer
Make sure /opt/hpnpl/bin is in your PATH. Then use hpnpadmin
Then, use removequeue -q prn_queue followed by:
addqueue -h 12.34.56.78 -q prn_queue -t off -b off -r off
You can batch all these addqueue's together and remove/add them at one time with the spooler stopped. Each remove/add will take 2-5 seconds. And now you'll have only the working printers with the latest printer scripts.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2008 05:38 PM
10-13-2008 05:38 PM
Re: network printer
Just the one or all systems? Do you use NIS?
We use a NIS map for printers so all systems can be made the same:
$ ypcat -k printers
colorlj1 adlprt01
...
And have a simple script that deletes all printers and adds only those back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 08:16 AM
10-14-2008 08:16 AM
Re: network printer
thank you both.
the printers are on one system. i don't think we are using nis for them. but any script would help.
best regards,
kathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 09:28 PM
10-14-2008 09:28 PM
Re: network printer
What you need is a table of IP and printer names. Once you have that, it should be a simple matter to execute Bill's addqueue on each entry.
while read PRINTER IP JUNK; do
removequeue -q $PRINTER # remove old
addqueue -h $IP -q $PRINTER -t off -b off -r off
done < printer_table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 08:21 AM
10-15-2008 08:21 AM
Re: network printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 12:45 PM
10-15-2008 12:45 PM