Sponsored Content
Operating Systems HP-UX [Solved] a way to tell printer used by configured print queue? Post 302651689 by vbe on Wednesday 6th of June 2012 04:42:35 AM
Old 06-06-2012
What OS version / platform ?
Is /etc/lp/interface/ (HPUX11.11 parisc...) what you are looking for?

e.g.
Code:
ant:/etc/lp/interface $ ll
total 270
drwxr-xr-x   3 lp         bin           1024 Nov 19  2008 .
drwxr-xr-x   8 lp         bin           1024 Nov 19  2008 ..
-rwxr-xr-x   1 lp         lp           11534 Nov 11  2008 LJ_3b1
-rwxr-xr-x   1 lp         lp           11535 Nov 11  2008 LJcolor
-rwxr-xr-x   1 lp         bin          11555 Nov 19  2008 cm6040
-rwxr-xr-x   1 lp         lp           11531 Nov 11  2008 lp0
-rwxr-xr-x   1 lp         lp           11531 Nov 11  2008 lp3
-rwxr-xr-x   1 lp         lp           11531 Nov 11  2008 lp8
-rwxr-xr-x   1 lp         lp           11531 Nov 11  2008 lp9
-rwxr-xr-x   1 lp         lp           11540 Nov 11  2008 lpdgas
-rwxr-xr-x   1 lp         lp           11542 Nov 11  2008 lpjtest
-rwxr-xr-x   1 lp         lp           11541 Nov 11  2008 lpvbe
drwxr-xr-x   2 lp         bin           1024 Nov 19  2008 model.orig
ant:/etc/lp/interface $ grep PRINTER lpvbe
PRINTERCFG=/opt/hpnpl/admin/printers/257.cfg


Last edited by vbe; 06-06-2012 at 05:47 AM..
This User Gave Thanks to vbe For This Post:
 

10 More Discussions You Might Find Interesting

1. AIX

Can you set up a networked printer as a local print queue?

Fairly simple question, I think. Still trying to get my head around AIX print queues. Most of our problems seem to stem from print queues going down. This generates help-desk calls when users call up to get their queues started or to get rid of the emails that qdaemon sends them. Looking at... (0 Replies)
Discussion started by: alexop
0 Replies

2. AIX

Printer Queue not getting created

When I try to create first print queue in this system with the command line argument, find the output also... # /usr/lib/lpd/pio/etc/piomkjetd mkpq_jetdirect -p 'generic' -D pcl -q 'AR06_Workcenter_32' -h 'AR06_Workcenter_32' -x '9100' 0782-606 /usr/lib/lpd/pio/etc/piomgpdev: Error 'A file or... (1 Reply)
Discussion started by: giribt
1 Replies

3. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

4. AIX

Problem with Queue of the Printer

Guy's This is the Queue of the printer ... >lpstat -pTOPPRINTER Queue Dev Status Job Files User PP % Blks Cp Rnk ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- --- TOPPRIN @TOPP DOWN QUEUED ... (1 Reply)
Discussion started by: ITHelper
1 Replies

5. HP-UX

[Solved] Problem creating print queue HP-UX -to- HP4100N

Hi all, I am new to HP-UX, using SAM I cannot make a print queue on my test server. From my test & live server as the user required and as root I can ping my printer. I have tried to clone the test print queue using the exact same options use on my live system that prints just fine. Can anyone... (9 Replies)
Discussion started by: KmJohnson
9 Replies

6. Shell Programming and Scripting

print all configured nics in one line with awk?

Hi all: I need to print all configured nics in one line with "|" separating them. So I use netstat -i since it don't mess with subinterfaces (work like I want) so with + cut + tail I get rid of the superfluous data netstat -i |cut -f 1 -d" " |tail +3 this gaves me e1000g1 e1000g2 Then ... (4 Replies)
Discussion started by: rbadillarx
4 Replies

7. UNIX for Advanced & Expert Users

[Solved] remove all print jobs from a print queue

Hello, Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one. Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one? My AIX system is 5.3 Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies

8. AIX

Get details of the existing configured printer

I need to get the domain under which a printer is configured in an AIX machine. I have the IP address of the printer. Could you please help me with that? (3 Replies)
Discussion started by: Pandee
3 Replies

9. UNIX for Dummies Questions & Answers

Printer queue not clearing

Hi I have installed an HP X451dw printer on our network and want to print from Sco Openserver v6 The printer produces correct output but then repeats until the queue is manually stopped. :confused: It is using a netcat/dumb interface Any advice on how to persuade it to only print once... (5 Replies)
Discussion started by: David Holmes
5 Replies

10. UNIX for Beginners Questions & Answers

Remote print from SLES (SAP) to AIX 7.1 04 sp2 virtual printer queue gets down

Hello Administrators. I have a bit difficult problem. I have local virtual printer that has backend defined in /etc/qconf to script which in turns sends the spool to the real device. whenever I print locally (from sap) the print works as it should. The printer queue after the print is done... (6 Replies)
Discussion started by: Deneth
6 Replies
LPC(8)							    BSD System Manager's Manual 						    LPC(8)

NAME
lpc -- line printer control program SYNOPSIS
lpc [command [argument ...]] DESCRIPTION
lpc is used by the system administrator to control the operation of the line printer system. For each line printer configured in /etc/printcap, lpc may be used to: o disable or enable a printer, o disable or enable a printer's spooling queue, o rearrange the order of jobs in a spooling queue, o find the status of printers, and their associated spooling queues and printer daemons. Without any arguments, lpc will prompt for commands from the standard input. If arguments are supplied, lpc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing lpc to read commands from file. Commands may be abbreviated; the following is the list of recognized commands. ? [command ...] help [command ...] Print a short description of each command specified in the argument list, or, if no argument is given, a list of the recognized com- mands. abort { all | printer } Terminate an active spooling daemon on the local host immediately and then disable printing (preventing new daemons from being started by lpr(1)) for the specified printers. clean { all | printer } Remove any temporary files, data files, and control files that cannot be printed (i.e., do not form a complete printer job) from the specified printer queue(s) on the local machine. disable { all | printer } Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr(1). down { all | printer } message ... Turn the specified printer queue off, disable printing and put message in the printer status file. The message doesn't need to be quoted, the remaining arguments are treated like echo(1). This is normally used to take a printer down and let others know why lpq(1) will indicate the printer is down and print the status message. enable { all | printer } Enable spooling on the local queue for the listed printers. This will allow lpr(1) to put new jobs in the spool queue. exit quit Exit from lpc. restart { all | printer } Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly, leaving jobs in the queue. lpq(1) will report that there is no daemon present when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon). start { all | printer } Enable printing and start a spooling daemon for the listed printers. status { all | printer } Display the status of daemons and queues on the local machine. stop { all | printer } Stop a spooling daemon after the current job completes and disable printing. topq printer [ jobnum ... ] [ user ... ] Place the jobs in the order listed at the top of the printer queue. up { all | printer } Enable everything and start a new printer daemon. Undoes the effects of down. FILES
/etc/printcap printer description file /var/spool/output/* spool directories /var/spool/output/*/lock lock file for queue control DIAGNOSTICS
?Ambiguous command abbreviation matches more than one command ?Invalid command no match was found ?Privileged command you must be a member of group "operator" or root to execute this command SEE ALSO
lpq(1), lpr(1), lprm(1), printcap(5), lpd(8) HISTORY
The lpc command appeared in 4.2BSD. BSD
April 28, 1995 BSD
All times are GMT -4. The time now is 02:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy