The procedures in this section describe what to do at the UNIX* host to use NetWare® bidirectional printing.
Remote computers supporting LPR protocol can send files to NetWare printers by using the UNIX--to--NetWare print service. In addition to setting up this print service, as described in the section on "Managing Print Services" under “Managing”, you need to configure your host machine.
Before you proceed, make sure the name and IP address of the NetWare server is listed in the /etc/hosts file on your AIX host.
AIX supports LPD. However, instead of using the /etc/printcap file for configuration, AIX uses SMIT to configure printing. To configure printing using SMIT, perform the following:
Log in to the AIX host as root.
Start SMIT by entering the following command:
smit <Enter>
To add a remote print queue, select the following options from the SMIT menu:
A form appears asking you to define a remote print queue.
Enter information into the following fields. All other fields should use the default value.
NAME of queue to add---the name of the local print queue. Print jobs sent to this queue are passed to the NetWare print queue. Enter a name of seven characters or less.
DESTINATION HOST for remote jobs---the name of the NetWare Server. This hostname must also be contained in the /etc/hosts file.
Name of QUEUE on remote printer---the name of the NetWare queue exported by using the PLPDCFG.NLM. Enter a name of seven characters or less.
NAME of device to add---a device name that is required by AIX but has no effect on the UNIX--to--NetWare print service. Enter any name of seven characters or less. The name does not need to be an existing device, nor does it need to be unique.
Start the lpd subsystem with SMIT:
Start the qdaemon by entering the following command:
startsrc -s qdaemon <Enter>
Try printing to the NetWare printer by issuing the following command:
lpr -Pprinter filename <Enter>
Examine the NetWare exported queue on the NetWare server by issuing the following command:
lpq -Pprinter <Enter>
or
enq -q -Pprinter <Enter>
If you have any problems printing to a NetWare printer, try the following procedures.
Check the local QUEUE setup with SMIT as follows:
Stop the local queue by entering the following command:
enq -Pprinter -D <Enter>
Restart the local queue by entering the following command:
enq -Pprinter -U <Enter>
Stop the lpd remote printer subsystem by entering the following command:
stopsrc -c -s lpd <Enter>
Restart the lpd remote printer subsystem by entering the following command:
startsrc -s lpd <Enter>
Verify that qdaemon is running by entering the following command:
lssrc -s qdaemon <Enter>
If Status is Active, continue with the next step. If Status is Inoperative, start qdaemon by issuing the following command:
startsrc -s qdaemon <Enter>
Check /usr/lpd/stat for device creation. You should see a file with a name similar to s.device_name.
Check /usr/lpd/qdir for queued files.
Check /usr/spool/qdaemon for temporarily spooled files.
Check /usr/lpd/qconfig for correct remote printer creation and configuration. You should see an entry in this file that looks like this:
printer_name:
device = lpdev
up = TRUE
host = NetWare_server_name
s_statfilter = /usr/lpd/bsdshort
l_statfilter = /usr/lpd/bsdlong
rq = NetWare_queue_for_export
NOTE: Only LP is fully implemented. Using QPRT will not support print control options such as Form Feed suppression.
Before you proceed, ensure the following prerequisites are met.
AIX supports LPD. Instead of using the /etc/printcap file for configuration, AIX uses SMIT to configure printing. To configure printing using SMIT, perform the following procedure:
Start SMIT by entering the following command:
smit <Enter>
To add a local queue, select the following options from the SMIT menu:
A form appears asking you to define a local print queue.
Enter information in the following fields. All other fields should use the default value.
To specify the name of the NetWare server that will spool print jobs to your AIX host, select the following options from the SMIT menu:
You are prompted for the name of the remote host.
Type in the name of the NetWare server.
Try printing to the UNIX printer by entering the following command:
nprint filename /q=nw2unix /name=username
For username, use a valid login name on the AIX host.
NOTE: When printing to AIX printers from NetWare, you must specify the use of banners. This implies that you should not use the /NB option with either CAPTURE or NPRINT. Also, you should specify an AIX username with the /NAME= option when using CAPTURE or NPRINT. Otherwise, the print jobs will queue up on the AIX machine in the /usr/spool/qdaemon directory, but the lpq command will not show these jobs and they will not be printed.
If you have any problems printing to a NetWare printer, perform the following procedure at your AIX host.
Stop the local queue by entering the following command:
enq -Pprinter -D
Restart the local queue by entering the following command:
enq -Pprinter -U
Stop the lpd remote printer subsystem by entering the following command.
stopsrc -c -s lpd
Restart the lpd remote printer subsystem by entering the following command
startsrc -s lpd
Stop the qdaemon by entering the following command.
stopsrc -s qdaemon
Restart the qdaemon by entering the following command:
startsrc -s qdaemon
Try the troubleshooting techniques in "Troubleshooting" for configuring UNIX--to--NetWare printing.
If you need additional help configuring the local printer subsystem using SMIT, consult your IBM* support representative.