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 a system
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 until 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, also enter the
name in the user .netrc file.
machine (ibm3930) login (ftp)
To print a file using interactive tftp:
- Enter the following command:
tftp
- To connect to the 3930, enter:
tftp> connect ibm3930
- Next, enter:
tftp> binary
- To send the file, enter:
tftp> put /etc/qconfig
- To exit, enter:
tftp> quit
Using tftp with a single command line:
tftp -p /home/jeanne/test ibm3930
Printing a file with ftp interactively
- To begin ftp, enter the following command:
ftp ibm3930
- Enter the following:
binary
- To send the file, enter:
put file
- To exit, enter:
quit
[ Doc Ref: 91747111317392 Publish Date: Feb. 13, 2001 4FAX Ref: 6455 ]