AIX Printer Tips: Digital Products NETPrint and JETXPrint Printing
Contents
About This Document
Digital Products Inc. References
Hardware Setup
Printing to NETPrint at AIX 4
Printing to NETPrint at AIX 3
Setting Up AIX as a bootp Server
Setting Up as an AIX ARP Server
Telnet Configuration of the NETS/JETX Box
Additional Information
This document describes methods for setting up remote queues to print
to printers attached to Digital Products NETPrint and JETXPrint print
servers. This information is provided to assist you in the setup, but
the print servers are not part of the IBM product set and are not
supported by AIX. These instructions do not provide an endorsement of
the Digital Product print servers.
This document applies to all levels of AIX.
The NETPrint and JETXPrint print servers are manufactured by
Digital Products, which provides support for these products on AIX.
In most cases you will simply set up the NETPrint print server as
a remote queue. If it has multiple ports, use the queue names
PORT1, PORT2, and so on.
Digital Products offers both external boxes - X designation, and
cards that fit in some Hewlett-Packard printers.
In some cases you will need to set up AIX as a bootp server for
the NETPrint. I have included the Digital Products, Inc., Technical
Support Bulletin, TSB 2002, at the end of this document. This
describes how to do this with Windows NT, but the process is very similar
to AIX. You can either make an entry into the /etc/bootptab file
or use the arp -s command as described at the end of the document.
The following is information on how to find technical support
assistance:
The setup should look like this:
/
/
+-------------+ connected +-------------+ /
| Client | via | NETPort | +---------+
| RISC System |--------------| Print |-----| printer |
| hostname: A | TCPIP | Server | | |
+-------------+ +-------------+ +---------+
Overview
Since the NETPrint box supports the LPD protocol, the setup simply involves
setting up the printer as a remote printer. The remote queue name that
you use will indicate the port on the server (PORT1, PORT2, and so on). These
instructions describe how to create the remote queue to print to the
NETPrint box with AIX virtual printer support to control attributes like
pitch and paper drawer. This assumes that the NETPrint box has an IP
address. If it does not have one, contact Digital Products on how to
set one up. The box does support a BOOTP protocol, and this document describes
how this MIGHT work from AIX. The latter procedure has not been tested.
Setup Instructions
The following instructions should allow you to set up an AIX queue to print
to a NETPrint server. This assumes the NETPrint has an IP address and
is attached to a printer. You should be able to print a test page to
the printer before following these instructions. The test page should
contain the IP address of the NETPrint box.
- Add an entry to the /etc/hosts file as follows:
123.1.1.2 netp1
- 123.1.1.2 should be changed to the Printer IP Address from the test page.
- Change netp1 to the printer hostname you will give the NETPort box.
- Test the TCP/IP connection:
ping netp1
If this does not show a successful connection, fix the communication
problems before continuing with adding a printer.
- Add the remote queue:
smit mkpq
Choose: remote (Printer Attached to Remote Host)
Choose: Local filtering before sending to print server
Choose: Printer Manufacturer: (Example: Hewlett-Packard)
Choose: Printer Model: (Example: hplj-4)
Fill out the following screen:
Add a Remote Print Queue with Local Filtering
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Description Hewlett-Packard LaserJ>
Names of NEW print queues to add
PCL [pcl1] <- Enter ASCII queue
PostScript [ps1] <- Enter PostScript
queue name
HP-GL/2 []
Remote server characteristics
HOSTNAME of remote server [netp1] <- Enter /etc/hosts
printer name
Name of QUEUE on remote server [PORT1] <- Enter port # case
sensative.
TYPE of print spooler on remote server BSD <- Use BSD selection
Send PASS-THROUGH FLAG to queue no <- Set this to off
on remote server?
NOTE: The remote server queue PORT1 or PORT2 determines port on
NETPort box.
Hit Enter to add the queue.
- Test print to the queue.
lptest 10 10 | qprt -Ppcl1
- Customize your settings using smit. For example, to change the pitch to 17:
smit chpq
PRINT QUEUE name: pcl1
Choose: 2 Default Print Job Attributes
Move cursor to: TYPESTYLE and PITCH
Hit F4 or Select
Choose: courier 17
or lineprinter 17
Hit Enter or DO - to set 17 in main menu.
Hit Enter or DO again to make change
Exit smit
You should now have a working queue to print to your NETPort attached printer.
Overview
Setting up printing for AIX 3 is a two-step process.
- Create a remote queue to print to the box.
- Set up a virtual printer to print to the remote queue.
Creating a Remote Queue at AIX 3
- Add an entry to the /etc/hosts file as follows:
123.1.1.2 netp1
- 123.1.1.2 should be changed to the Printer IP Address from the test page.
- Change netp1 to the printer hostname you will give the NETPort box.
- Test the TCP/IP connection:
ping netp1
If this does not show a successful connection, fix the communication
problems before continuing with adding a printer.
- smit spooler - short path is smit mkrque
- Select: Manage Remote Printer Subsystem
- Select: Server Services
- Select: Host Access for Printing
- Select: Add a Remote Host
- Fill in the screen:
Add a Remote Queue
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* NAME of queue to add [netp1]
ACTIVATE the queue? yes
Will this become the DEFAULT queue? no
Queueing DISCIPLINE first come first serve
ACCOUNTING FILE pathname []
* DESTINATION HOST for remote jobs [netp1]
* Pathname of the SHORT FORM FILTER for queue [/usr/lpd/bsdshort]
status output
* Pathname of the LONG FORM FILTER for queue [/usr/lpd/bsdlong]
status output
* Name of QUEUE on remote printer [PORT1]
* NAME of device to add [netpd]
* BACKEND PROGRAM pathname [/usr/lpd/rembak]
You should add the following information as indicated in the preceding
discussion.
- Name of queue:
This is the queue that will send data to the printer.
This is NOT the queue you will print to.
You will set virtual printers to print to this queue.
- DESTINATION HOST: Host name from /etc/hosts entered in step 2.
- Change the FILTER names to reflect BSD and not AIX.
- The remote server queue PORT1 or PORT2
determines the port on the NETPort box.
- The device name is a dummy name; keep it 5 or fewer characters in length.
- Hit Enter to add the queue.
- Test print to the queue.
lptest 10 10 | qprt -Pnetp1
You should be able to print, but there is no virtual printer.
You will add the virtual printer to control attributes next.
Creating a Double Queue at AIX 3
Overview
Although you should be able to print fine, it is often desirable to add
a virtual printer to control output to the printer such as pitch,
paper drawer, or landscape printing. This can be done by double
queueing. Create a virtual printer that sends its output
to the remote queue that you just created.
Setup
- Create a unique file in the /dev directory for a lock file.
touch /dev/netp1
Don't use /dev/null as prescribed in the Digital Products
instructions. This blocks queues on multiple boxes if they
are all set up this way.
- mkvirprt
- Choose: 1--Printer or Plotter Attached to Host
- Enter device name (or, ! to exit): (lp4) -> netp1
Use the file you created in /dev. Don't type /dev/.
- Choose: Printer Type: (Example: IBM 4039)
- Header pages wanted? Enter: n, a, or g.
- Trailer pages wanted? Enter: n, a, or g.
- Enter print queue name (or, ! to bypass configuration): -> (ps) ps1
- Do you want this to be the default queue - y or n
- Enter print queue name (or, ! to bypass configuration): -> (pcl) pcl1
- Do you want this to be the default queue - y or n
- Hit ENTER to add the queue.
- Change the virtual printer to print to the remote queue.
lsvirprt
Choose the pcl1 created earlier.
Change the mo attribue as shown below where netp1 is remote
queue added earlier.
To LIST attributes, enter AttributeName1 ... (* for all attributes)
To CHANGE an attribute value, enter AttributeName=NewValue
To FORMAT and EDIT an attribute value, enter AttributeName~v
To EDIT the attribute file, enter ~v
To terminate, press Enter: mo=qprt -Pnetp1
- Test print to the queue.
lptest 10 10 | qprt -Ppcl1
- Make any other changes such as changing the pitch to 17 using lsvirprt
as described earlier:
To LIST attributes, enter AttributeName1 ... (* for all attributes)
To CHANGE an attribute value, enter AttributeName=NewValue
To FORMAT and EDIT an attribute value, enter AttributeName~v
To EDIT the attribute file, enter ~v
To terminate, press Enter: p=17
Name Description Value
_p Pitch (characters per inch) 17
You should now have a queue to which you can print and make changes.
Caveat: This has not been tested.
Overview
AIX can act as a bootp server to deliver an address to the NETPort or
any other bootp client. When the NETPort is turned on, if it is set
to get its address through bootp, it will send out a bootp request.
This request contains a hardware address. If AIX has the hardware
address in its /etc/bootptab table and is set up to respond to bootp
requests, then it will send a ip address, ip gateway, and subnet mask
to the hardware address that made the request. The /etc/bootptab
file documents itself fairly well. Some clients also want a
bootp download file. AIX can deliver the file, but the file would
have to come from Digital Products. It is not known if this is
required in this case.
Setup
- Edit /etc/bootptab and add the following entry:
netp1:hn:ht=ether:ha=0800095e9e10:ip=5.1.1.5:
sm=255.255.255.0:gw=5.1.1.152:
- If there is a file to download, include it with: bf=/usr/local/NETPboot:
- The ht will have to be changed to tok for token ring.
- The ha is the hardware address from the NETPbox test page.
- ip is the ip address.
- gw is the gateway.
- sm is the subnet mask.
- Enable bootpd and tftp in the /etc/inetd.conf file by uncommenting these
lines.
Remove the # sign from the front of the line.
bootps dgram udp wait root /etc/bootpd bootpd
tftp dgram udp wait nobody /etc/tftpd tftpd -n
- Refresh the inetd daemon:
inetimp (only needed at AIX 3)
refresh -s inetd
- Turn on and off the NETPort box.
- Print a test page to see if the ip address was loaded.
If the address did not get loaded, you will have to stop bootpd
and rerun bootpd with debug mode turned on. The most common
problem is entering the wrong hardware address. The debug
mode will show you the address being broadcast.
- ping the address.
AIX will also support ARP download of ip addresses. Use:
- arp -s (IP address of NETS\JETX) (LAN Address of NETS\JETX)
For Example:
arp -s 192.00.20.10 01-12-23-FE-A2-00
NOTE: You must use dashes (-) to separate the numbers of the LAN Address.
In this example the IP address 192.00.20.10 is the IP address we are
assigning to the NETS\JETX unit.
- See the arp table with arb -a.
- ping 192.00.00.10. At this time there may be no reply.
- Reset the NETS/JETX by resetting the power.
- ping 192.00.00.10. This time there should be a reply.
Once you get a successful ping, the NETS/JETX has its ip address.
- Go to the $ or # prompt in AIX and telnet to the NETS/JETX.
- Execute tn netp1 where netp1 is the host name of the NETS/JETX box.
- (The login and password is sysadm.)
- When the main menu appears, select option (1) to configure the remaining
IP parameters (subnet mask and default gateway if applicable).
- Hit [Enter] to get back to main menu.
- Choose option (3) to disable any protocols that you are not using.
- Go back to the main menu, and choose option (2), LPD Printers, to set type
of
output (if you receive garbled output, increase the strobe to 5 or 10
microseconds).
- Save changes and reset the NETS/JETX. You should now be ready to proceed
with the AIX setup steps.
AIX support is only responsible for setting up the remote queue.
Digital Products is responsible for making this work with their
product.
Some of the information needed was obtained from Digital
Products Technical Support Bulletin TSB 2004, TSB 2011,
and TSB 2002, obtained
from the web page listed in the References section.
Digital Products NETPrint and JETXPrint Printing: AIX Printer Tips: netprint.html ITEM: FAX
Dated: 99/02/23~00:00 Category: zap
This HTML file was generated 99/06/24~12:42:11
Comments or suggestions?
Contact us