Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network Printer

Status
Not open for further replies.

copperslim

Technical User
Dec 13, 2002
101
GB
How can I tell from the print queue if the queue is pointing to a network printer or what is the command to display a network printer queue on a server?
 
You ca usually tell if the printer is a network one by looking in the /etc/hosts file. If the printer name is there, with an IP address, it's networked.
 
hi,
everyone use the term "network printer" as he thinks.

Microsoft use for "network printer" those attached to a computer and shared, while a printer with a network card
goes configured as local (+ a port)

In AIX, the printer shared from a remote computer
goes under the name "remote queue" while those with
a nic, goes under "hpJetDirect" or a specific software
installed by smit

Wich is for you a "network printer" ?

A) remote printer (attached to another computer on parallel
port or via hpJetDirect).

B) a printer with a nic.


case A)
go at remote host and take the name of the queue :
give lpstat command or smitty spooler | List ...
(lpstat return only first n character of the name)

Ensure that lpd daemon is active

lssrc -g spooler

if inoperative enter

smitty spooler | Manage Print Server | Start ... [both]


Ensure all users can print:

smitty spooler | Manage Print Server | List all Remote...
If empty use Add Print Acess ... and put a '+' (all
user) or usernames comma separated

Ensure that client name (host) is in /etc/hosts or
in the current name resolution data-base (dns or nis)

In the client enter
smitty spooler | Add Pr. Queue | remote | Standard..
and enter :
Local Queue name ( simply = the remote one )
Host name of remote computer
Remote q. name (that you had noted at the server by lpstat)
(if you want at client site specify the type of printer
use Local filtering... instead Standard... )

give an lpstat and hope..


case B) printer with a nic

a) put in /etc/hosts a name ie print1 with its ip-addr.
b) smitty spooler | Add printer Que | hpJetDirect
(if it does not compare, install it from AIX CDs)
c) choice a printer type (also Other... if you dont find it)
d) choice Do not make this system BOOTP...
e) enter a quename in one or more fields
ascii GLEmul PCL PS
(if you fill than 1, use diff names as
mypra,myprgl,myprps...)
f) enter in 2HOSTNAME of the JetDi..." the name you put in
/etc/hosts (you cannot use ip-address here)
g) leave 9100 if the printer has a nic or choice
9101 or 9102 (using F4) if the printer is on
a printer server and is not on the 1st port but
respectively in the 2nd or th 3th.

The problems begin here: managemet of printer in AIX
do not have the capability (tray, rotation...) that
we have in a DeskJet Windows driver printer.


bye
 
If you use two commands you can know for sure:
- Use lsque to find the queue device name
$ lsque -q net20a
net20a:
device = ibm@9
Then use lsquedev with the queue name and device name

$ lsquedev -q net20a -d ibm@9
ibm@9:
file = /var/spool/lpd/pio/@local/dev/ibm@9.19.140.67#ibmNetPrinter
header = group
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/pioibmnpm 9.19.98.24

This gives you the 'backend' program which tells you if it
is local or remote.

Local backend will usually be 'piobe'
Network backends
pioibmnpm - IBM Network Printer
piojetd - HP JetDirect Printer
rembak - LPR based network printer
piorlfb - LPR based network printer with local format
- Note the backend line will also include the hostname or the IP address of the network printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top