AIX Printer Tips: Network Print to IBM 3930 from AIX
Contents
About This Document
Overview and Prerequisites
Installing the Ethernet Backpack
Steps to Configure Printer
Creating Queues from AIX
Printing and Status
Printing with FTP and TFTP
This document describes how to print from an RS/6000
running AIX to an ethernet-attached IBM 3930 page printer with the integrated
ethernet attachment.
This document is supported under AIX 3.2.5 and AIX 4.
Overview and Prerequisites
The IBM 3930 Page Printer Models 03D and 03S support both direct connection
and ethernet network attachment when equipped with the Ethernet Attachment
Feature. The printer supports both 10BASE2 and 10BASE5 Ethernet connections.
The Ethernet Interface on the 3930 is described in the 3930 Page
Printer, Models 03D and 03S, Programming Reference for ASCII Attachment,
GA24-4381-01, on Page 63 and following. The AIX system must have either
an integrated ethernet adapter or one of the standard ethernet cards.
The interface supports the following network applications:
-
FTP
-
LPR/LPD - Used by AIX as a remote queue
-
TCPF
-
SNMP
-
TFTP
The manual describes how to print from HP-UX and BSD systems, but does
not mention AIX. This document describes how to print to the printer
with tftp, ftp, and lpr/lpd.
SNMP is used by
NetView and is not covered in this document.
Installing the Ethernet Backpack
Installing the Ethernet Attachment Feature is described in Chapter
6 of 3930 Page Printer, Models 02d, 02S, 03D, and 03S User's Guide
SA24-4392-01.
The basic installation steps are as follows (use with manual):
-
Turn off the printer (Section 1).
-
Set Host Interface Card DIP switches to RS-422A interface (Section
2).
-
Verify the BNC or ThickNet jumper positions (Section 4).
-
Connect the Ethernet Cable to the Backpack before installing (Section
5).
-
Place backpack in holes on rear of printer (Sections 6-9).
-
Attach RS422, DC, and two ground wires to back of 3930 (Sections
10-13).
-
Load new diskettes into drives (Section 14-19).
-
Enter Disk Utilities (Page 14-1).
-
Press start. Make sure no jobs are printing.
-
Press stop
-
Press stop again. Configuration Data will Print.
-
Wait until configuration data finishes printing. Display should show CONFIGURATION
TASK MENU.
-
Press Cancel or Test to scroll and select DISK UTILITIES.
-
Press Start to select the Disk Utilites Menu.
-
Install the Ethernet Software (Page 6-9).
-
Dual floppy drive system - Option 11 (Page 14-15)
-
Press Cancel or Test to scroll and select
DISKETTE UPDATE.
-
Press Start, and wait for message INSERT DISKETTE.
-
Open front cover; remove diskette from diskette drive B.
-
Move diskette from drive A to drive B.
-
Insert ethernet update diskette in drive A.
-
Close front cover.
-
Wait till next prompt or until PLEASE STAND BY goes away. This
did not appear in IBM testing.
-
Press Start to begin update. The display will show
UPDATING.
-
Wait for PRESS START TO EXIT or DISK OPERATION COMPLETE message.
-
Open the front cover and replace the original diskettes. The A diskette
is now updated.
-
Close the front cover.
-
Scroll to SAVE, PRINT & EXIT and hit start.
-
The printer will print the new configuration including the ethernet
information.
-
Hard drive system - Option 8 (Page 14-11).
-
Press Cancel or Test to scroll and select
HARD DISK UPDATE.
-
Press Start and wait for message INSERT DISKETTE.
-
Open front cover and insert ethernet diskette in Drive A.
-
Close cover and if PLEASE STAND BY is not displayed, press START.
-
Wait until UPDATING message goes away.
-
Repeat for second diskette.
-
Scroll to SAVE, PRINT & EXIT and hit start.
-
The printer will print the new configuration including the ethernet
information.
Steps to Configure Printer
It is important that your printer be assigned an address by the company
network coordinator. Be sure to have this number before you proceed.
-
Change Host Interface to ethernet.
-
Press stop.
-
Press stop again. Configuration Data will Print.
-
Wait until configuration data finishes printing. Display should show CONFIGURATION
TASK MENU.
-
Press Cancel or Test to scroll and select CHANGE SETTINGS.
-
Press Start to Enter Change Settings mode.
-
Press Cancel or Test to scroll and select
c005 Host
Interface settings.
-
Press Start to go to submenu.
-
Press Cancel or Test to scroll and select
004 for
Ethernet attachment.
-
Press Start to set the new setting.
-
Scroll and exit as before.
-
Assign Ethernet Addresses, and Internet Subnet mask. See Section
12-21 for details.
-
Press stop.
-
Press stop again. Configuration Data will Print.
-
Wait until configuration data finishes printing. Display should show CONFIGURATION
TASK MENU.
-
Press Cancel or Test to scroll and select CHANGE SETTINGS.
-
Press Start to Enter Change Settings mode.
-
Press Cancel or Test to scroll and select options c120
to c123 one at a time.
-
Press Start to go to submenu.
-
Press Cancel or Test to scroll and select the address for
the portion of the ethernet address.
-
Press Start to set the new setting.
-
Repeat for options c134 to c137 to set the bytes of the Internet
Subnet mask.
-
Scroll and exit as before.
Confirm that the test page has printed out the correct IP address.
Creating Queues from AIX
The setup of the ethernet adapter is beyond the scope of this document. It
is important that you have either a 10Base2 or 10Base5 ethernet adapter
and have tcp/ip running on your system.
For creating queues in AIX to print to the 3930, the easiest way is
to use the remote printing subsytem. This system uses a print queue
backend called rembak to print to the printers lpd.
Add the printer host name into the /etc/hosts file or on the network
name server before proceeding.
The 3930 LPD does not function in the capacity to format data in any
way and does not accept any command line flags. This means that the file
must be formatted before being sent from the AIX system. In AIX 4, this
capability is built into the operating system by creating a remote queue
with local formatting. In AIX 3 you must trick the system. One way
to do this is to use double queues. First you create a remote queue that
prints directly to the printer. Next you create a virtual printer that prints
to a file. Finally you modify the virtual printer to send the output to
the remote queue.
The 3930 LPD does not care what you call the queue name on the LPD server
in your setup. Experiment and decide what give you a status line that you
like the best.
Test the interface
ping 3930_hostname
Resolve network issues, if any, before continuing.
Remote Queue setup steps in AIX 3.2
-
smitty spooler
-
Choose: Manage Remote Printer Subsystem
-
Choose: Client Services
-
Choose: Remote Printer Queues
-
Choose: Add a Remote Queue
-
Fill in the following:
-
NAME of queue to add:
remque
-
DESTINATION HOST for remote jobs:
This is HOSTNAME of the 3930.
-
Pathname of the SHORT FORM FILTER:
Use /usr/lpd/bsdshort.
-
Pathname of the LONG FORM FILTER:
Use /usr/lpd/bsdlong.
-
Name of QUEUE on remote printer:
Use same name as queue name.
-
NAME of device to add:
Use 3930d.
-
Hit enter or Do to add the queue.
Virtual Printer setup steps in AIX 3.2
- Create a new empty lock file. This can be done by
redirecting nothing into a file by starting the
command with a greater-than sign as shown below. Another way
to do this is to copy /dev/null to the new file. If the
file doesn't exist already, you can use the touch /dev/lpx1
command to create the file.
> /dev/lpx1
- Create a virtual printer.
mkvirprt
-
Choose: Printer or Plotter Attached to Local Host.
-
For Device enter lpx1 (lock file name).
-
Choose: Printer Type: Hewlett-Packard LaserJet IIIsi.
-
Add queue names and respond to header and trailer questions.
-
Change the virtual printer mo attribute as follows:
-
chvirprt -q queue_name -d qdev_name -a "mo=enq -Premque"
Queue setup steps in AIX 4
In AIX 4, the process of setting up a remote queue
and a virtual printer can be done in one step as described here:
-
smitty mkpq
-
Choose: remote
Printer Attached to Remote Host
-
Choose: Local filtering before sending to print server
-
Choose: Printer manuf.
IBM - or - HP. If you have installed the drivers from the supplied
diskette, you can use IBM.
-
Choose: Printer model
3930 - or - Hewlett-Packard LaserJet IIIsi
-
Enter the following items:
-
Names of NEW print queues to add:
Fill in as needed. These are the queues that you will print to with
lpr, lp, enq or qprt.
-
HOSTNAME of remote server
This is HOSTNAME of the 3930.
-
Name of QUEUE on remote server
Use same name as queue name.
-
TYPE of print spooler on remote server:
BSD
-
Send PASS-THROUGH FLAG to queue
Choose 'no'.
-
Hit enter or Do to add the queue.
Printing and Status
Print to the queues with any of the standard AIX print commands.
-
qprt -P3930pcl /etc/motd
Gives full access to AIX virtual printer flags
-
enq -P3930pcl /etc/hosts
Interface to AIX qdaemon; called by the other three print commands, as
well as status commands
-
lp -d3930pcl /etc/hosts
Returns the job number at AIX 4
-
lpr -P3939pcl /etc/hosts
By default, this gives a header page and spools data through
/var/spool/qdaemon.
The status of remote queues consists of two lines. Line one is the status
of the queue on AIX. Line two is the status of the job on the printer.
Some of the queue status commands are:
To see only the local queues, use:
-
enq -sA at AIX 3
-
enq -isA at AIX 4
Printing with FTP and TFTP
We will assume the hostname is ibm3930 and that this name has been entered
into the /etc/hosts file or on the nameserver. To FTP and TFTP, enter the
name also in the user .netrc file.
-
machine (ibm3930) login (ftp)
To print a file using interactive tftp do:
-
tftp
AIX will give a tftp> prompt.
-
tftp> connect ibm3930
Connect to the 3930.
-
tftp> binary
Faster transfer mode
-
tftp> put /etc/qconfig
Send the file.
-
tftp> quit
Back to the command line
Using tftp with a single command line:
-
tftp -p /home/jeanne/test ibm3930
Printing with ftp interactively
-
ftp ibm3930
-
binary
-
put file
-
quit
Network Print to IBM 3930 from AIX: AIX Printer Tips: 3930net.html ITEM: FAX
Dated: 99/01/29~00:00 Category: zap
This HTML file was generated 99/06/24~12:42:11
Comments or suggestions?
Contact us