Академический Документы
Профессиональный Документы
Культура Документы
SG24-5212-00
SG24-5212-00
Take Note!
Before using this information and the product it supports, be sure to read the general information in Appendix D, Special
Notices on page 259.
Contents
Figures
Tables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xiii
Preface . . . . . . . . . . . . . . . .
The Team That Wrote This Redbook
Comments Welcome . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1. Overview . . . . . . . . . . . . . . . . . . . . .
1.1 History . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Release 3 Print Support . . . . . . . . . . . . . . . . .
1.3 Particularities of the IBM Network Station . . . . . . .
1.4 Configuration Using the IBM Network Station Manager
1.5 What This Document Contains . . . . . . . . . . . . .
Chapter 2. A Few Concepts . . . . . . . . . . . . . . . .
. . . . . . .
2.1 What Are Printer Queues and Spooling?
2.2 What Are Printer Data Streams? . . . . . . . . . . . .
2.2.1 ASCII-Based Printer Data Streams . . . . . . . .
2.2.2 EBCDIC-Based Printer Data Streams . . . . . . .
2.3 What Are Printer Drivers? . . . . . . . . . . . . . . . .
2.4 What Are LPRs and LPDs? . . . . . . . . . . . . . . .
2.4.1 What Is Streaming Mode LPR/LPD? . . . . . . .
2.4.2 LPR/LPD Subcommands . . . . . . . . . . . . . .
2.4.3 What Is Non-Streaming Mode Send and Receive?
2.4.4 What Is Streaming Mode Send and Receive? . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
xv
xv
xvi
1
1
1
4
5
6
9
9
12
13
14
14
16
18
18
19
20
23
23
23
25
27
30
32
32
34
35
36
36
38
40
43
47
49
50
51
52
53
56
iii
. . . . . . . . . . . . . . . . . . . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
iv
. . . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
56
57
59
59
65
72
72
74
80
82
93
98
99
107
113
113
115
116
117
118
118
119
121
122
125
126
126
129
130
133
135
136
137
138
138
139
139
139
144
144
145
146
146
146
150
151
151
152
152
. . . . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
Contents
154
154
155
159
159
159
159
159
159
161
161
163
164
164
165
166
166
166
167
168
168
169
173
177
179
179
179
180
180
180
181
181
181
182
182
183
188
191
194
194
194
197
198
201
201
212
213
213
213
216
218
218
. . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
218
218
219
. . . . . . . . . .
221
221
221
221
. . . . . . . . . . . . . . . . . . . . . . .
225
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . .
229
. . . . . . . . .
237
. . . . . . . . . . . . . . . . . . . . . . . . . . .
259
. . . . . . . .
. . . . . . . . .
. . . . . . . . .
261
261
261
261
. . . . . . . . . . . . . . . . . .
263
263
264
265
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
267
vi
. . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
269
Figures
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
Copyright IBM Corp. 1998
. .
. .
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2
3
4
5
6
10
11
12
12
15
16
17
20
21
24
26
28
31
33
33
34
34
39
40
41
42
44
47
48
50
51
52
53
53
56
57
58
60
60
61
62
62
63
64
65
65
66
67
67
68
vii
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
viii
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
69
69
70
71
72
73
73
74
74
75
75
76
76
77
77
78
78
79
79
80
81
82
84
85
85
86
87
88
88
89
90
90
91
91
92
93
94
94
95
95
96
97
97
98
99
100
101
102
103
103
104
105
105
106
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
106
107
107
107
108
109
110
111
112
112
113
114
114
115
116
118
119
121
123
124
125
126
127
128
129
130
130
131
132
133
134
134
135
137
138
140
140
141
142
142
143
144
145
146
148
149
149
151
152
152
153
153
154
ix
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
155
155
156
156
157
157
158
158
162
163
165
166
167
168
169
170
171
172
172
173
174
175
176
176
179
182
182
183
184
185
185
186
187
188
189
189
190
190
191
192
192
193
193
194
198
198
199
199
199
200
200
204
204
205
Figures
205
206
207
208
209
210
211
212
213
214
215
216
217
217
226
227
228
233
234
235
xi
xii
Tables
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
25
25
27
27
29
30
37
229
229
230
230
230
xiii
xiv
Preface
This redbook describes the printing capabilities of the IBM Network Station. It
applies to Release 3 of the IBM Network Station software, and to previous
releases.
It is designed to help the reader understand how printing works on the IBM Network
Station by discussing some of the basic concepts involved, illustrating the major
components of the printing subsystem, providing examples of how local applications
print to local printers and/or send printer output to remote print servers, as well as
how remote applications can send print jobs to local printers.
These examples are provided for many platforms, such as OS/390, OS/400, AIX,
Windows NT and WinCenter, and they include instructions on how to prepare these
systems to receive print jobs from an IBM Network Station.
Details are also provided on the configuration requirements of the IBM Network
Station, how to use the IBM Network Station Manager program to manipulate these
configuration parameters, and a few tools, tips and techniques helpful in performing
problem determination.
xv
Comments Welcome
Your comments are important to us!
We want our redbooks to be as helpful as possible. Please send us your
comments about this or other redbooks in one of the following ways:
Fax the evaluation form found in ITSO Redbook Evaluation on page 269 to
the fax number shown on the form.
Use the electronic evaluation form found on the Redbooks Web sites:
For Internet users
For IBM Intranet users
http://www.redbooks.ibm.com/
http://w3.itso.ibm.com/
xvi
Chapter 1. Overview
Our objective in this chapter is to provide you with a summary of the information
you need to understand the printing facilities that are available on the IBM Network
Station.
Hopefully, we can accomplish this in just a few pages, leaving you to rummage
through some of the other chapters when you require additional levels of detail.
From the start, we assume that you are already familiar with what the IBM Network
Station is, and how it functions generally. Our focus here is specifically, and only,
on the printing functionality of the IBM Network Station.
Our aim is to answer questions such as:
Which local applications are able to print?
Can applications print to the native serial or parallel port on the IBM Network
Station?
Can local applications send printer output to remote print servers?
Can host-based applications send printer output to an IBM Network
Station-attached printer?
Can WinCenter applications print locally on the IBM Network Station?
1.1 History
The IBM Network Station history only goes back to the end of 1996, at which time
the IBM Network Station only had what could be called rudimentary print support.
At that time, only the IBM Network Station browser and the local ASCII terminal
emulator were able to print to a locally attached printer. Some remote systems,
such as a WinCenter server, had the ability to send a print job to the local printer
as well by directly accessing the local daemon controlling the serial and parallel
ports.
In a second release of the support software at the end of 1997, these capabilities
were only marginally improved by the addition of a 5250 emulator which could print
to the local printer.
However, it is with the advent of the Release 3 of the software in the summer of
1998 that the printing capabilities of the IBM Network Station were significantly
enhanced with the addition of LPR/LPD capabilities.
Note that print requests can only come from local applications. Print requests
originating on remote hosts, and received by the LPD on the IBM Network
Station cannot be routed back to another remote host through the use of the
LPRD daemon.
Printer Selector
In the top right-hand corner of the IBM Network Station, notice the Printer
Selector component. This component is called by local applications when the
user elects to print data, in order to provide the user with a choice of printers to
select from.
The printers listed in the Selector can be either the printers attached locally to
the network station or can be printers on remote hosts. Since all print requests
from local applications go through the print API, the API routes the request to
either the SERIALD component, which handles local printers, or to the LPRD
component if the requested printer is a remote printer.
Here are examples of the panels displayed to the user, on the IBM Network
Station, when he or she elects to print. The user first gets a Print Dialog panel,
such as the one illustrated below, on which he or she gets to choose a few
characteristics of the print job such as the number of copies, or paper size. The
entries available on this particular dialog panel varies dependent on the
application used.
If the printer selected by default is not appropriate, and the user wants to make
another choice, clicking on the Browse button or Select Printer button brings
up the Printer Selector panel, a sample of which appears in the figure below.
Chapter 1. Overview
This panel looks the same for all applications. Notice that this one shows a
local parallel printer, a local serial printer as well as some remote printers,
some being PostScript-capable, some being PCL-capable.
The list of printers appearing in this panel is configured by the Administrator
using the IBM Network Station Manager and are loaded by the IBM Network
Station at boot time. Since the administrator has the ability to configure
printers for all users, or for certain specific workstations, or for certain groups of
users and finally for specific users, this list of printers can be different for every
user dependent on who he or she is, on the group he belongs to and on the
specific IBM Network Station that he or she is using.
Local parallel and serial port
Although not shown in the summary diagram of the Release 3 capabilities, the
print APIs now allow applications to print to either the local serial port or to the
local parallel port, as demonstrated by the entries available in the Print Selector
panel.
DBCS conversion
Also not shown in the diagram is the ability for local applications to invoke a
data conversion program to convert ASCII data streams containing DBCS
characters into bitmap images that can be sent to printers that do not have
DBCS fonts loaded.
This provides the IBM Network Station with the ability to stream print output to a
local printer without having yet received the whole job, or to stream output to a
remote host without having generated the whole print job yet, assuming that the
remote print server also implements streaming mode.
The second part of that same panel is shown below, where remote printers can be
added to the list of available printers, and where the local printers can be specified
as available or not.
Chapter 1. Overview
Remote printers can be configured not only at the system default level but also at
the workstation, group and user defaults levels.
Chapter 1. Overview
As computers became more powerful and processor time and storage became less
expensive, operating systems came into being in order to help manage all the
resources attached to the computer, including printers, and to allow multiple
operations to be done simultaneously.
It became economical for the printer to be attached to the computer; however,
since printers were still slow devices, it was still desirable to use spooling, so that
the application producing the printed output did not have to wait for the printer, but
executed more rapidly by sending its printed output to a faster device such as tape
(or disk later on). That printed output could then be sent to a printer by another
application, processing either in the background as a lower priority application or at
night.
This technique evolved considerably over time with the availability of faster and
larger disk storage capabilities and the sophistication of multitasking operating
systems.
Today, even the personal computer operating systems have printing subsystems,
whose job it is to manage any output produced by an application and destined for a
printer, whether that printer is locally attached or attached to a remote computer.
The proliferation of the types of printed output created by applications as well as
the different types of printers available also created the need to dissociate even
more the link between an application and the physical printing device and gave rise
to printer queues.
Printer queues are a mechanism allowing print jobs (a print job consisting of the
output data produced by an application) to be held in storage in a wait area which
has certain characteristics. These characteristics are usually representative of the
10
printer which will be used to print these specific jobs and allows a much finer
control and management over the print jobs than a general spooling area.
For example, some systems allow an application to give a priority to output, so that
some reports can always jump to the front of the queue or wait at the back of the
queue. In addition, some queues can be aware of different form types, so that if
different applications use different preprinted forms, the queue can print all spool
files of one type before prompting the printer operator to load the next form type. If
multiple printers are available, they can each have an individual queue so that
different types of reports can be sent to different printers.
This mechanism is illustrated in the diagram below.
In the figure above, the application, when printing, usually sends its data to a
specific queue which represents a (logical) printer.
As jobs accumulate in a queue, an application called a print manager or job writer
(the terminology used varies by platforms) takes these jobs one at at time and
sends them to a printer.
If a printer becomes unavailable, the operator has the ability to reassign the queue
to another printer. The operator also has the ability to move jobs from one queue to
another.
In some cases, more than one queue can be assigned to a single printer, or
multiple printers can be assigned to one queue, sometimes called printer pooling.
11
12
This is typical of large systems such as S/390 and intermediate systems such
as AS/400.
13
2.2.1.4 PostScript
PostScript was developed by Adobe, and was first introduced in 1985. It is a
language that describes how a printed page should appear. The language is very
similar to a high-level programming language and describes in detail what the page
should look like when printed. Each print file that is created is like a program. This
program is then sent to the printer, which generates the page based on the
instructions it is given. For example, the command to instruct the printer to use
portrait page orientation is:
%%Orientation: Portrait
14
The application can specify the page layout it requires, and then pass this
information to a printer driver. The printer driver is then responsible for producing a
printer-specific data stream which can then be sent to the printer.
There are two main advantages of using printer drivers:
The application does not have to have print routines for every possible printer
that it may use.
The routines to convert the application output into printer-specific output only
need to be written once. Once the driver is written, it can be used by any
application.
There are two main ways in which printer drivers can be used by applications:
1. Some systems need the driver to be used at the time the application prints, as
illustrated in the figure below:
As is shown above, since the application uses the printer driver at the time that
it generates the print data, this data is then printer-specific, in the sense that it
already contains all the commands that are applicable only to the printer that
corresponds to the printer driver that was used. Notice that the application
could also, if it was written to do so, generate printer-specific data directly
without using a printer driver, but this would be rare today.
The main disadvantage of this method is that, once created, it is not possible to
redirect the output to another printer because the print file is printer-specific.
2. A preferred method is to have the application create generic print data
(sometimes called a metafile) which is not specific to any printer. This case is
illustrated in the figure below.
15
Figure 11. Using the Driver at the Time the Output Is Sent to the Printer
As shown in the figure, the print data is then put in a queue, and it is only when
the data is taken from the queue and sent to a printer that a printer driver is
used by the job writer or print manager responsible for emptying the queue.
The conversion to printer-specific data only takes place at the last stage.
The main advantage of this method is that the print data generated by the
application, once in a queue, can be moved to different queues and printed on
different printers.
16
Once the request is received, the printer output is placed onto a printer queue on
the receiving system. (The printer queue is identified in the incoming request.) On
computer systems with many printer queues, the printer queue name ensures that
the output is placed on the correct output queue.
There are printer adapter devices available, such as the IBM Network Print Server,
which have several printer ports, and the printer queue value is used to differentiate
between the various ports available. When printing to such devices it is important to
know what the correct printer queue name is.
LPD itself does not do any data stream conversion; it sends whatever it receives to
the printer, as is. It is the responsibility of the sending machine to ensure that the
data is suitable to be sent to the printer.
When sending a spool file using LPR, the sending system sends two parts to the
receiving system:
1. A control file
The control file contains details about the print job such as the number of
copies requested, the type of formatting (PostScript, or passthrough mode,
etc.), the user ID of the print job, job name, banner request or forced banner,
etc.
2. A print file
This is the actual print data.
The original version of LPR/LPD was in BSD UNIX where the flow of information
was always to send the data file first followed by the control file. Because BSD
UNIX was used as the initial source of different varieties of UNIX, most
implementations of LPR/LPD chose to maintain the same ordering of the two files.
17
Several years later, RFC 1179 was issued to document the existing
implementations of LPR/LPD in an attempt to standardize how print clients and
print servers communicate. However, RFC 1179 chose not to restrict the order of
data and control files. Specifically, the RFC states that "LPR servers must be able
to receive the control file subcommand first and should be able to receive the data
file subcommand first". Effectively this says that the control file and data file can be
sent in either order. Therefore, when new versions of LPR/LPD were developed
after RFC 1179 was issued, some of them chose to reverse the order used in
defacto implementations of LPR/LPD and decided to send the control file before the
data file.
18
19
20
1. The application requests to send data to the LPR component. The LPR first
creates the control file for this data.
2. The LPR establishes a session with the LPD and requests to send the control
file first, using the RCFF subcommand. The LPD receives the control file and
stores it.
3. LPR then sends the Receive Data with Unspecified Length to the LPD,
requesting that the LPD starts accepting data without knowing the size of the
entire file.
4. Upon acceptance from the LPD, the LPR starts receiving data from the
application and immediately starts sending it to the LPD.
5. The LPD receives the data, and starts printing the data based on the
specifications of the control file received earlier.
This process is illustrated in the figure below where we use water as an analogy to
explain streaming.
This process minimizes the amount of storage required to hold the data in both the
sending system and receiving nodes.
Streaming is not supported by all implementations of the LPR/LPD. Systems that
can use streaming mode send will usually attempt to use streaming first. If the
receiving system does not implement streaming, it either rejects the streaming
request, returns an error, or sometimes just waits. When this occurs, the sending
system recognizes the error and reverts to using normal (non-streaming) mode.
See 3.6, How the IBM Network Station Implements LPR/LPD on page 36 for
additional details on how streaming mode the LPR/LPD is implemented on the IBM
Network Station.
21
22
23
The following diagram provides a visual summary of the Release 1 print capabilities
and the tables that follow the diagram describe the same functions in tabular format
for local applications and for host-based applications.
For the local applications, Table 1 on page 25 shows whether or not the
application uses the print APIs, whether or not the application can print on serial or
parallel printers, whether or not the application can print to remote printers, and
what print data streams are generated by the application.
24
Uses API
Local Print
Remote Print
Data Streams
5250 Emulator
No
No
No
N/A
3270 Emulator
No
No
No
N/A
Spyglass Browser
Yes
Yes (1)
No
PostScript
Java Applications
No
No
No
N/A
VTxxx Emulator
No
Yes (2)
No (3)
ASCII
Notes:
(1) Although the application can print locally, it is limited to using only the parallel port.
(2) The emulator does not use the APIs but uses SERIALD to send data to either the serial or parallel port.
(3) There is a way for the VTxxx emulator to send jobs to remote print servers using instructions from NCD Inc.
See also Appendix B, Printing from the VTxxx Emulator to a Remote IBM Network Station on page 233 for an
example.
NS-Attached Printing
Host-Attached or
LAN-Attached Printing
Printers/Data Streams
OS/400
Yes
Yes
OS/390
No (1)
Yes
VM/ESA
No
Yes
Any VM Printer
AIX
No (2)
Yes
OS/2
N/A
N/A
N/A
Windows NT
No
No
WinCenter
Yes (3)
Yes
Notes:
(1) Using IP PrintWay, OS/390 can print directly to the IBM Network Station's serial or parallel port. Additionally,
an AFP-capable printer must be attached to that port.
(2) AIX has the ability to print directly to the IBM Network Station serial or parallel port, but there are no
instructions telling a user or system administrator how to do it.
(3) WinCenter has the ability to print directly to the IBM Network Station SERIALD daemon by defining, on the
WinCenter Server, a WinStation printer.
25
For Release 2, the NC Navigator Browser became available on the client. The
initial version of NC Navigator did not make use of the print APIs. Instead, it used
the same process as the VTxxx emulator to print directly to the parallel port on the
IBM Network Station The NC Navigator Browser cannot print to the serial port or to
remote printers in release 2.
From the host perspective, the only change in the time frame for Release 2 was for
AIX and OS/390. Now there are published instructions for configuring a print queue
on AIX that can print directly to either the serial or parallel port on the IBM Network
Station; for the OS/390 server, the NetSpool support can receive 3270 application
print data and the IP PrintWay can then print these 3270 application print files
directly to the IBM Network Station parallel port.
The following diagram provides a visual summary of the Release 2 printing
capabilities, and it is followed by tables that provide the same information in tabular
format for local applications and for host-based applications.
For the local applications, Table 3 on page 27 shows whether or not the
application uses the print APIs, whether or not the application can print on serial or
parallel printers, whether or not the application can print to remote printers, and
what print data streams are generated by the application.
26
Uses API
Local Print
Remote Print
Data Streams
5250 Emulator
Yes
Yes (1)
No
ASCII
3270 Emulator
No
No
No
N/A
Spyglass Browser
Yes
Yes
No
PostScript
NC Navigator Browser
No
Yes (2)
No
PostScript
Java Applications
No
No
No
N/A
VTxxx Emulator
No
Yes (3)
No (4)
ASCII
Notes:
(1) The 5250 emulator can now print to both the serial and parallel ports using the print APIs.
(2) The NC Navigator browser can print to the local parallel port only. Additionally, NC Navigator does not use
the print APIs.
(3) The emulator does not use the APIs but uses SERIALD to send data to either the serial or parallel port.
(4) There is a way for the VTxxx emulator to send jobs to remote print servers using instructions from NCD Inc..
See also Appendix B, Printing from the VTxxx Emulator to a Remote IBM Network Station on page 233 for an
example.
NS-Attached Printing
Host or LAN-Attached
Printing
Printers/Data Streams
OS/400
Yes
Yes
OS/390
No (1)
Yes
VM/ESA
No
Yes
Any VM Printer
AIX
Yes
Yes
OS/2
N/A
N/A
N/A
Windows NT
No
No
WinCenter
Yes (2)
Yes
Notes:
(1) Using IP PrintWay, OS/390 can print directly to the IBM Network Station's serial or parallel port. Additionally,
an AFP-capable printer must be attached to that port.
(2) WinCenter has the ability to print directly to the IBM Network Station SERIALD daemon by defining, on the
WinCenter Server, a WinStation printer.
27
28
5. The SERIALD daemon (which was the only component to which print requests
could be directed at prior to Release 3) is still present and can still accept direct
requests from applications that are able to connect directly to the SERIALD's
ports, such as WinCenter.
6. The addition of a DBCS converter module that can be used to send ASCII text
with DBCS code point to printers that do not have DBCS code points loaded.
The following tables provide information for what print capabilities are available for
local applications and for host-based applications.
For the local applications, Table 5 shows whether or not the application uses the
print APIs, whether or not the application can print on serial or parallel printers,
whether or not the application can print to remote printers, and what print data
streams are generated by the application.
Table 5. Local Applications in Release 3
Application
Uses API
Local Print
Remote Print
Data Streams
5250 Emulator
Yes
Yes
Yes
PostScript,
PCL, ASCII
3270 Emulator
Yes
Yes (1)
Yes
PostScript,
PCL, ASCII
NC Navigator Browser
Yes
Yes
Yes
PostScript
Java Applications
Yes
Yes
Yes
PostScript
VTxxx Emulator
No
Yes (2)
No (3)
ASCII
Notes:
(1) The 3270 emulator only provides print screen support. It does not include 3270 LU1/LU3 client printing
support at this time.
(2) The emulator does not use the APIs but uses SERIALD to send data to either the serial or parallel port.
(3) There is a way for the VTxxx emulator to send jobs to remote print servers using instructions from NCD Inc.
See also Appendix B, Printing from the VTxxx Emulator to a Remote IBM Network Station on page 233 for an
example.
29
NS-Attached Printing
Host or LAN-Attached
Printing
Printers/Data Streams
OS/400
Yes
Yes
OS/390
Yes
Yes
VM/ESA
Yes
Yes
Any VM Printer
AIX
Yes
Yes
OS/2
Yes
Yes
Windows NT
Yes
Yes
WinCenter
Yes (1)
Yes
Note:
(1) Applications on a WinCenter server can now use the LPR/LPD print support but also retain the capability to
use a WinStation Printer to print directly to the SERIALD daemon.
30
An IBM Network Station application always goes through the print APIs whenever it
needs to print, whether it is to a local printer or to a remote printer.
The application obtains from the print APIs a list of available printers and also an
indication of a default printer.
The user is presented with that information, and after he or she selects a target
printer, the print request is directed at the print APIs.
If the target printer is local, the print API forwards the print request to the SERIALD
daemon which controls the local parallel and serial ports. If the target printer is
remote, the print API forwards the print request to the LPRD daemon, which opens
a connection with the destination print server and the proper print queue on that
server.
31
32
From the NC Navigator Browser, the Print... option causes the following dialog box
to be displayed:
From an emulator session, the Print... option causes the following dialog box to be
displayed:
33
The printers that appear in this list have been configured by the administrator using
the IBM Network Station Manager, and they have been read by the IBM Network
Station at boot time when reading the configuration files. When an application
34
needs to display the list, it queries the API which retrieves the list from the
configuration files.
Print Queue
This identifies the location of the printer, in the form of:
printer queue @ remote location
For example, prt07 @ as400b.austin.ibm.com would indicate that the
printer is connected to a system called as400b, and that the remote
printer queue prt07 is to be used. If the printer is local to the IBM
Network Station, a print queue name of PARALLEL1 or SERIAL1 is
used.
Description
This is a text description used to identify the printer with a name
meaningful to the user. This value does not affect printing; it is purely to
assist the user in choosing a printer. For example, it could say
something such as IBM Network Printer 17 on AS4B.
Set as system default
This specifies that the selected printer should be marked as the system
default printer. In other words, if an application requests the name of
the default printer, this is the printer name that is returned by the API, in
the current boot cycle of the IBM Network Station.
However, please note that if an application is already running, and if that
application has been designed to retain the last printer that was chosen
by the user as the application default printer, that application may elect
to use this printer as the default, instead of the system default printer,
the next time that a user initiates a print request.
So, setting a printer as the system default is not a guarantee that this
printer will indeed be selected as the default, when the application has
the ability to retain an application default printer.
Once a printer is selected, we can click OK to use the new selection, or Cancel to
keep the printer that was originally selected.
35
Description
Some DBCS related information
Banner page requirements (remote printers only)
Whether the printer is the default printer
See Chapter 4, Configuration Using the IBM Network Station Manager on
page 47 for details on the configuration of this table using the IBM Network Station
Manager.
36
generated. This is very useful for a print client or print server that has little or no
storage, such as the IBM Network Station. Although the streaming mode proposal
was never accepted, some vendors are adding support; within IBM, the OS/400
and AIX already support streaming mode and S/390 as well through the Print
Server product.
The following table (Table 7) gives a snapshot of the current LPR/LPD support
across major platforms. The information was accurate, to the best of our
knowledge, at the time that the table was built, but is very likely to change in the
near future.
Please note that the last column entitled LPR/LPD Streaming refers to the draft
revision of RFC 1179 dated March, 1992 by Glenn Trewitt (Line Print Daemon
Protocol with streaming extensions); it does not have anything to do with the
upcoming IPP standards work in process.
Table 7 (Page 1 of 2). LPR/LPD Support on Major Platforms
OPERATING
SYSTEM
HARDWARE
VERSION
AIX
RS/6000
3.2.5
N/A
No
AIX
RS/6000
4.1.5
N/A
No
AIX
RS/6000
4.2.1
N/A
No
AIX
RS/6000
4.3(10/97)
N/A
Yes
OS/2
PC Server
2.1.1
No
OS/2
PC Server
N/A
No
OS/2
PC Server
Warp 4.0
N/A
No
OS/2
PC Server
N/A
Yes
WorkSpace On
Demand R2
ADDL. SW.
LPR/LPD
STREAMING
OS/390(1)
S/390
1, 2, 3, and 4(9/97)
N/A
No
OS/390
S/390
5 (3/98)
Yes
VM/ESA
S/390
VM TCP/IP Version
2 (3)
No
VM/ESA
S/390
VM TCP/IP Version
2 (3)
No
VM/ESA
S/390
2.3.0(1Q98)
N/A
No
OS/400 (RISC)
AS/400
3.6,3.7,4.1,4.2
N/A
YES
OS/400
(NON-RISC)
AS/400
3.1,3.2
N/A
YES
Windows NT
PC Server
3.51
N/A
No
37
HARDWARE
PC Server
VERSION
ADDL. SW.
LPR/LPD
STREAMING
4.0
N/A
No
Notes:
(1) OS/390 in Versions 1-4 has RFC 1179-compliant LPD/LPR support. However, they cannot handle PostScript
files received via LPD due to ASCII/EBCDIC conversion problems. This is resolved in Version 5 with an optional
product called Print Server.
(2) Print Server is a separately priced product. It includes IP PrintWay and NetSpool, along with several other
print-related packages. This product supplies both streaming LPR and LPD support. Please see
www.printers.ibm.com for more information.
(3) RSCS Version 3 Release 2 provides enhanced LPR and LPD services that can be used instead of those that
are provided with the VM TCP/IP product.
38
39
7. The LPD then uses the control file information to print the data file.
The target LPD node supports streaming mode.
This situation is illustrated in the figure below:
1. The LPD accepts the RCFF, receives the control file, and stores it in the
print buffer.
2. The LPR sends a receive data file with unspecified length.
3. The LPD accepts the RDFUL and receives the data file as it is still being
generated by the application.
4. The LPD can then start printing the data file as it is received.
40
The LPD on the IBM Network Station only sends data to the local parallel or
serial-attached printers. It is not possible to configure the IBM Network Station to
take a print job request that is received by the LPD and to forward it on to the
LPRD component in order to reroute it to a remote printer. This is because the
IBM Network Station is not really suited to act as a print job router.
The only two remote printer queues that can be accessed by an incoming LPR
request are:
PARALLEL1 - This uses LPD passthrough to the parallel port printer.
SERIAL1 - This uses LPD passthrough to the serial port printer.
If print access control has been enabled on the IBM Network Station, it verifies
whether the sending system is authorized to print on the IBM Network Station. The
options for selecting print access control and updating the authorization table are
configured in the IBM Network Station Manager. These options are discussed in
3.5, Printer Access Control (Security) on the IBM Network Station on page 36.
On the receive side, the IBM Network Station also has a print buffer size which can
be configured to hold incoming print requests. By default this is also 10% of the
free memory at the time that the print request is received.
Chapter 3. How Printing Works on the IBM Network Station
41
See the figure below for an illustration of the LPD streaming mode receive process:
If the received data file exceeds the available buffer size, then the IBM Network
Station has the ability to begin emptying the data onto the printer before the entire
file is received. This is sort of an internal streaming mode capability which can be
used even if the streaming protocol is not used between the remote LPR and the
local LPD.
In fact, even if non-streaming mode receive is used by the LPD, it still has the
ability to begin printing the data file even if the entire file has not yet been received
and even if the control file has not been received.
One of the reasons is that, at the moment, the LPD on the IBM Network Station
does not use the specifications present in the control file. Because of the special
nature of the IBM Network Station and the limited amount of storage, it is not
currently set up to do more print management functions and does not support such
functions as multiple copies, or banner page, or job ID, job class, job title, etc.,
which are specified in the control file. It can therefore start printing without waiting
for the control file.
If internal streaming (to start printing when the print buffer is exceeded) is not
desired, there is a configurable parameter called Bypass Print Buffer that can be
set to NO. In that case, if a request is received which exceeds the print buffer, the
job fails.
If the LPD buffer size is configured as zero, then the Bypass Print Buffer is
automatically set to YES. Setting it to NO when the LPD buffer size is set to zero
causes print jobs to fail.
Following is a simplified description of the flow when receiving a print job from a
non-streaming send node.
42
1. The LPD receives a receive data file (RDF) from a remote LPR requester which
contains the size of the data file.
If the data file is small enough to fit into the print buffer, the job is accepted
and the data is read into the print buffer.
If the job is too large to fit into the print buffer, and the Bypass Print Buffer
configuration option is set to NO, the print job request is rejected.
If the job is too large to fit into the print buffer, but the Bypass Print Buffer
configuration option is set to YES, the job is accepted, received, and
emptied onto the printer as it is being received.
2. The remote LPR then sends a receive control file (RCF) which is accepted and
the control file is read into the print buffer.
If the sending node is a streaming mode node, then the flow is as follows:
1. The LPD receives a Receive Control File First from a remote LPR, indicating
that the remote node wants to use streaming mode.
2. The control file is received by the LPD.
3. The LPD then receives a Receive Data File with Unspecified Length (RDFUL),
accepts it and the data file is streamed to the printer.
43
Figure 27. Port Numbers Associated with Printing on the IBM Network Station
For implementing new applications it is preferable to send print requests to the IBM
Network Station using LPR requests. However, for special applications such as
WinCenter using WinStation printers, or for special needs, or for those still
operating at a software level prior to Release 3, SERIALD is still available to allow
compatibility.
The ports available to communicate with SERIALD are:
Serial interface uses port 87 or 6461
If port 6461 is used, command mode is always used, whereas port 87 uses
command mode if the Use Serial Protocol option is set to true and it uses
passthrough mode if the Use Serial Protocol option is set to false.
See 9.9.3, Parallel and Serial Port Configuration Parameters on page 191 for
details on how to verify and set these parameters.
Parallel interface uses port 5964 or 6464.
44
If port 6464 is used, command mode is always used; whereas port 5964 uses
command mode if the Use Parallel Protocol option is set to true and it uses
passthrough mode if the Use Parallel Protocol option is set to false.
See 9.9.3, Parallel and Serial Port Configuration Parameters on page 191 for
details on how to verify and set these parameters.
An example of a remote application that currently sends print data directly to
SERIALD's port 5964 is WinCenter. This is described in 5.3, Printing from a
WinCenter Host on page 80.
We also provide examples for printing from the RS/6000 and AS/400 directly to port
6464.
45
46
You must be provided with the address (the URL) of the IBM Network Station
Manager by the administrator in order to connect your browser to the proper Web
server and application. Once connected, you are asked for a user ID and
47
password, after which, if properly authenticated, you are presented with the main
panel of the IBM Network Station Manager.
On the left-hand side of the main panel, there is a list of tasks identified as Setup
Tasks. If you click on Hardware, it expands into two choices: Workstations and
Printers.
Selecting Printers displays the panel as shown below, which is the main panel for
working on Printer Configuration parameters.
Figure 29. The IBM Network Station Manager Printer Defaults Configuration Panel
Notice that it shows four levels at which you can configure printer-related
parameters:
System Defaults
Parameters configured at this level apply to all workstations and all users. Any
printers defined here appears on the printer selection list for any user on any
48
The
The
The
The
The
The
Workstation Defaults
Parameters configured at this level apply to a particular workstation. All
parameters that can be configured at the system defaults level are also
configurable at the workstation defaults level, but they apply only to the specific
identified workstation.
Group Defaults
This is new in IBM Network Station Manager for Release 3, and it allows
parameters to be configured for a group of users. At this level, only the Printer
Table and Default Printer can be configured. This is so that certain printers can
be identified as being available to only certain users. For example, a printer in
the accounting office may be reserved for use only by the members of the
accounting department.
User Defaults
Parameters at this level apply to a single individual user. Here also, only a
Printer Table and a Default Printer can be configured, and this would be used
for example if a printer needs to be dedicated and available only to a specific
user.
Entries configured in the printer table are cumulative. In other words, a specific user
will see, when presented with a list of printers to choose from, printers defined at
the system level, and those defined for his or her workstation (if any), and those
defined for the group to which he or she belongs and those defined specifically for
his or her user ID. He or she will not see printers defined for other groups, other
users or other workstations.
49
50
51
the parameter Bypass print buffer when file exceeds buffer size, which is located
just below the Maximum LPD Buffer Size.
If the Bypass print buffer parameter is set to Yes, then the IBM Network Station
begins passing the print file to the printer before it has received the complete file.
However, if however the Bypass print buffer parameter is set to No, then the print
job fails, and the message log contains an NSC6216 error message, as shown
below:
52
Note that this option controls access to both the LPD daemon and the SERIALD
daemon. So whether the print request is received by the LPD daemon from an LPR
requester, or by the SERIALD daemon on a specific port such as 87 or 5964, the
access control list is used if it is enabled.
All printers that are defined on this list, since this is at the System Defaults level,
are available to all IBM Network Station users.
Notice that the first two entries are already pre-specified for the local printers, which
might be using the serial or parallel port and that the queue names are fixed to
53
either PARALLEL1 or SERIAL1. These two entries are in the default printer table
shipped with Release 3. Their stream types are pre-specified as PS for PostScript.
Note that these default entries can also be removed if needed by blanking out all
the fields and specifying None attached. This might be needed if none or most of
the IBM Network Stations have local printers attached and you do not want these
entries to take up space in the Printer Selector panel which gets displayed to the
user when selecting a printer to use.
These entries for local printers are only available at either the System Defaults level
or the other Workstation Defaults level.
The last entry is for defining one or more remote printers.
Let us examine each of the parameters that can be specified here, starting with the
Local parallel printer line.
Local Parallel printer
Default Printer
Notice that there is a radio button besides each entry. This is to
indicate which printer, of all those that are defined here, should be
considered the default printer. Once a printer is indicated as being
the default one, it is this printer which appears as pre-selected in the
Printer Selector list that the user gets when selecting a printer to
use.
Printer
There are only two choices here, either None attached as shown
here or Printer attached to indicate that there is a printer physically
attached to this port or not.
Queue Name
This is fixed to either PARALLEL1 (or SERIAL1 in the case of the
printer attached to the serial port).
Stream Type
The three choices are PostScript, PCL or ASCII.
Description
A meaningful description to identify the printer. This is the
description that is displayed in the Printer Selector panel from which
the user chooses a printer.
Banner Page
This option is not supported for local printers.
ASCII Options...
This button presents an additional panel where additional values
relative to DBCS are specified when using DBCS conversion
processing.
These values are used by the 3270 and 5250 emulators to provide
Double Byte Character Set (DBCS) support and convert the symbols
on the screen into bitmaps suitable for the printer. The parameters
describe attributes of the printer such as dots per inch and the
printer control language. These parameters are only used by the
3270 and 5250 emulators, when using DBCS. They are discussed
in more detail in Chapter 11, DBCS Considerations on page 225.
54
55
56
Figure 36. Printing from Host Applications to the IBM Network Station Printer
In these examples, we are not concerned about applications residing in the IBM
Network Station wishing to print to the local printer or to a remote printer, but only
about applications residing on a host, remote from the IBM Network Station, and
wishing to print on a printer attached to the IBM Network Station.
57
There are two methods that applications can use in this situation:
1. Use the TCP/IP LPR/LPD facilities. In this case, an LPR request is sent by the
requesting system to the LPD daemon on the IBM Network Station.
This is the recommended method to use as of the availability of Release 3.
2. Print directly to the SERIALD daemon using ports such as 87, 5964, 6461 or
6464.
This method is the only one that can be used with IBM Network Station
operating at a release earlier than Release 3 since LPR/LPD was not availble
prior to Release 3.
This method is also used by a WinCenter server for example, when using
WinStation printer definitions on the server to represent the printer attached to
a client such as an IBM Network Station. It can also be used by systems that
have the capability to address these ports directly, such as OS/400 or IP
Printway on an S/390.
We provide some examples of how this is accomplished in the following
chapters, when discussing the individual platforms that support this option.
These two methods are summarized in the figure below, where we highlight the
components involved by greying out some of the other components.
Notice that the LPD daemon receives print requests from LPR requesters on
remote hosts and forwards these requests to the print API, which in turn, transmits
these to the SERIALD daemon for printing. On the other hand, certain systems
can also access the SERIALD directly through some specific ports.
58
The recommended, and easiest method is to use the LPR/LPD facility. In fact, with
the availability of the LPD daemon on the IBM Network Station, any application on
the network that can issue LPR requests can now print on the IBM Network Station
attached printer. The other method should only be used in cases where the
LPR/LPD facility cannot be used.
From remote hosts, it is only possible to send printer output to the IBM Network
Station for printing on the local printer(s) attached to the serial or parallel port. In
other words, the IBM Network Station cannot be used to receive a print request on
the LPD and send it back out to another remote hosts through the LPRD. Such
intermediate routing capability is applicable only to systems which have the ability
to spool locally in order to store and forward, which cannot be done on the IBM
Network Station because of the lack of sufficient storage.
In the text that follows, we use scenarios to give an example of the configuration
steps required in order for applications to be able to send printed output to a IBM
Network Station-attached printer. The objective is not a detailed tutorial on how
printing is implemented on each of the platforms discussed but only to give the
essential steps required to successfully implement printing from these platforms.
59
60
61
62
In that case, follow the online instructions to load the relevant printer support
software package.
In this example, the printer support was already installed on the system, so we
proceed to the next step.
6. Specify a remote host name and queue name.
In this step, we identify the characteristics of the remote print queue.
63
64
65
When the data is sent to the port directly, TCP/IP port 9100 is used. This is very
similar to the IBM Network Station, which can send data to the parallel port directly
using port 6464 (or 87). We can take advantage of this similarity, and use a
modified JetDirect printer queue to print to the IBM Network Station printer through
port 6464 (or 87). To do this, we need to create a JetDirect queue, and modify it.
66
Next we are prompted to select a printer type and model. In this example, we
are using a Hewlett-Packard LaserJet 4 printer, so we select Hewlett-Packard
on the first panel and hplj-4 on the second panel.
67
68
Once the queue has been added successfully, it can be changed to use the IBM
Network Station SERIALD port (6464 or 87) instead of JetDirect port (9100).
69
5.1.2.3 Changing the JetDirect Queue for Use with IBM Network
Station
These steps detail how to change the JetDirect Queue which was created in
5.1.2.2, Creating a JetDirect Queue on page 66.
1. Start SMIT.
Start SMIT, and at the System Management menu, select Print Spooling
Programming Tools Queues and Queue Device Queue Devices
Change/Show Characteristics of a Queue Device.
2. Select the queue to work on.
We see the Change/Show Characteristics of a Queue Device screen. Enter
the name of the queue we just created into the QUEUE to which device is
attached field:
70
71
72
Select the Services tab and click on Add to get the next panel:
Select TCP/IP Printing Services, click on OK and follow the rest of the
instructions.
73
On the above screen, select that the printer should be controlled from our computer
by selecting My Computer, and then clicking Next.
Note: You might be tempted to choose the Network Printer Server instead,
because the description states Connect to a printer on another machine, but that
refers to a printer that has already been defined on another server.
On the above panel, click on Add Port, which brings up the following panel:
74
Enter the hostname or IP address of the host to which the printer is attached; in
this case, it is the address of the IBM Network Station which, in our example, is
9.24.104.189. Also enter the name of the printer or print queue on that host. Since
our destination printer is on an IBM Network Station we need to use a print queue
names, which in our case is PARALLEL1. For a serially attached printer we would
use SERIAL1.
Note: If our destination was another Windows NT server for example, that name
would be a printer name, which represents a queue on a Windows NT system.
Click on OK to return to the Add Printer Wizard panel which lists the available
ports, and where you should now see the port that was just added. In our case, this
shows up in the list as 9.24.104.189:PARALLEL1.
75
Click on Next to get to the next panel where we need to assign a name to the
printer we just finished defining.
76
A click on Next brings us to a panel where we are asked if we wish to print a test
page. If we choose to generate a test page, it automatically sends a test page to
77
the printer. It is useful to produce a test page, to ensure that we have configured
the printer correctly.
Click on Finish to complete the process. If we selected to print a test page, the
following screen is displayed.
Check to see if the printer produced any output, and whether the output is correctly
formatted. If the test is successful, the test page should appear as shown below:
78
If the test page prints correctly, click Yes. The printer is now installed and appears
in the Printers folder, illustrated below:
If the test page does not print correctly, one of the possible causes is that we have
selected an incorrect driver for the printer. When that happens, a click on No
automatically brings up a Help panel to offer suggestions, as illustrated below:
79
80
With the availability of the LPR/LPD print support on the IBM Network Station,
applications on remote hosts wishing to print to the printer attached to an IBM
Network Station can use the standard TCP/IP LPR/LPD print facility to send print
output request to the LPD port (port 515), as illustrated in the figure below:
81
The LPR request is received and processed by the LPD daemon on the remote
IBM Network Station and the output directed at the print API by the LPD
component.
However, WinCenter applications also have the ability to print directly to the
SERIALD module of the IBM Network Station using either port 5964 for the parallel
port or port 87 for the serial port. This is accomplished by defining a WinStation
printer on the WinCenter server to represent the printer attached to the IBM
Network Station. We describe both of these methods in more detail below, starting
with the WinStation method.
82
the output is already in the correct format for that printer, it is simply passed
through by the SERIALD module to the actual physical printer.
83
One of these printers is the one called claudea#LPT1 which has been defined by
user claudea to represent the IBM 4029 printer attached to his IBM Network
Station. This identifies the printer driver that should be used and where the print
output should be sent. In this case, the destination is client/LPT1, which is an
indication to WinCenter that the printer is at a remote IBM Network Station, for
which WinCenter knows the IP address (since this is the client currently connected
as user claudea).
This triggers the establishment of a TCP connection to port 5964 of the IBM
Network Station and print output is sent on that connection, where the SERIALD
daemon passes it through to the parallel port and hence to the IBM 4029 printer.
In the following few pages, we illustrate the steps above by taking you through the
required configuration panels.
84
Before you make modifications to the WinStations' configuration, you must ensure
that no other users are logged on. To do so, double-click on the WinStation
Administration icon in the Administrative Tools folder, and view users. If some
users are actually logged on, you can send them a message asking them to log off
or you can force them off by selecting their names and clicking Logoff.
The figure below illustrates the main WinStation Configuration panel which lists the
currently configured WinStations. In this example, we happen to have configured
six WinStations (numbered WinCenter#001-006) which use a transport mode of
WinCenter, and we also have configured four WinStations to use a transport mode
of tcp and type of Citrix ICA. In other words, six of these WinStations connect into
the WinCenter server using NCD's WinCenter protocol and four use the Citrix ICA
protocol. (We used those in our tests with Citrix Java ICA client running on the
IBM Network Station.) Notice that the console is also listed as a separate entry.
85
86
On the panel above, the only information we need to focus on at this point is the
section labeled Client Devices in the bottom left-hand corner of the panel.
If every IBM Network Station using this WinCenter server has a printer attached
and you want users on that IBM Network Station to be able to use this printer when
they log on, then the entries in this section should be selected (which is the default)
the entry labeled inherit user config should not be selected.
On the other hand, if only a few IBM Network Station have a printer attached, then
you might want to set the default here for every IBM Network Station to NO (do not
connect client printer at logon) but instead use the inherit user config button to
indicate to WinCenter that it should look up the user configuration information
instead to determine whether a printer is attached or not. This latter case is the
one we chose to illustrate in our example.
87
In the above panel, double-clicking on the user claudea for example opens up the
User Properties panel, as illustrated in the following figure.
On this panel, notice on the bottom the button labeled Config located to the right of
the Groups button. This button is specific to WinFrame/WinCenter and allows us to
configure characteristics similar to the ones in the WinStation Configuration panel
we saw earlier, except that this panel is specific to a particular user.
Clicking on the Config button displays the panel illustrated below entitled User
Configuration.
88
Once more, the only area of interest at this point, if we talk about printing, is the
section in the bottom left-hand corner labeled Client Devices. Notice that it is
identical to the one we saw earlier in Figure 77 on page 87 except that in this case
there is no inherit user config since the user configuration is what we are looking at
now.
So in the case of this user, we do select the entries indicating that there is a printer
attached to the IBM Network Station that we want connected when this user logs
on.
89
On the above panel, leave the Printer Name field empty; it will be filled
automatically when you set the Print to field. In the Driver field, select the printer
driver that corresponds to the physical printer attached to your IBM Network
Station, and in the Print to field, select CLIENT/LPT1 for a printer attached to the
parallel port or CLIENT/COM1 for a printer attached to the serial port. Click OK to
complete.
Other characteristics can be set by clicking on the Details button, which brings up
the panel shown below.
90
Once this printer is defined, it can be managed through the Print Manager
application, as shown in the figure below. Notice that the Print Manager shows two
printers defined, one for user claudea and one for user Administrator.
Currently, the claudea#LPT1 printer is processing a print job originating from a
Freelance Graphics application.
91
In the figure above, verify that the Use Parallel Protocol value reads False and that
the TCP Port shows as 5964, since this is the port that WinCenter uses to access
the print daemon.
If the serial port is the one used instead of the parallel port, then select the entry
called Serial in the Change Setup parameters menu, which brings up the panel
shown below.
Verify the entries in the Serial Daemons table to ensure that Use Serial Protocol
shows as false (it is set to true, by default, in the example above) and that the TCP
port is 87.
In the Serial Interfaces Table, the Port Use at Boot and the Current Port Use
should both be set to printer. As well, settings for Baud rate, Data Bits, Stop Bits,
Parity and Handshake should match the settings recommended for the attached
printer.
If these values are not correct, then the administrator in charge of the configuration
files for your network station should be asked to correct these values.
For test purposes, these values can be changed temporarily through the IBM
Network Station console setup panels, but remember that these changes are
temporary and will be overwritten when the configuration files are read again.
For additional details on the settings of these parameters, and for an example of
the settings of the parameters in the configuration files and how to do problem
determination, please refer to 9.9.3, Parallel and Serial Port Configuration
Parameters on page 191.
92
93
In this example, we create a printer for the IBM 4029 printer attached to a network
station at 9.24.105.189, so we name the printer NS4029, select the IBM 4029
Laser Printer driver or a compatible driver, enter a description and select Other in
the Print to field.
This brings up the Print Destination panel on which we select LPR Port. This is
illustrated in the figure below:
94
In the next panel, enter the host name or IP address of the destination host, and in
the field titled Name of printer on that machine enter the queue name on the IBM
Network Station, which can only be PARALLEL1 or SERIAL1, dependent on
whether the physical printer is attached to the parallel or serial port.
Back on the Create Printer panel, clicking on Details brings up the following
information.
95
When wishing to print from an application, clicking on the Print button brings up the
following panel where one can use the pull-down to choose a specific printer. In
this example, we chose our NS4029 printer; notice that the Where field displays
9.24.105.189:PARALLEL1.
96
In the Print Manager window shown below, our NS4029 printer appears with an
active entry spooled. Notice the other printer called claudea#LPT1, which is the
WinStation printer we used in the other method of printing to the IBM Network
Station.
Both claudea#LPT1 and NS4029 represent the same physical printer except that
the method of sending the printed output from the WinCenter server to the physical
printer differs dependent on which printer queue is chosen. This is illustrated in the
figure below.
Chapter 5. Host Applications Printing to IBM Network Station Local Printer
97
Notice that when the application chooses the NS4029 printer/queue, which is
defined as an LPR port, the output is routed to the LPR requester which makes a
connection to the LPD daemon on the IBM Network Station and the output is
routed to the physical printer attached to the IBM Network Station.
Similarly, if the application chooses the claudea#LPT1 printer/queue instead, then
the output is routed through the WinStation Printer mechanism of WinCenter, which
establishes a connection directly with port 5964 of the SERIALD daemon, which
routes the output to the same physical printer attached to the IBM Network Station.
Notice that in both cases, an IBM 4029 printer driver is used on the WinCenter
machine to produce an output that is compatible with the real printer used.
98
99
Then use the Page Down key to get the next panel.
Connection type
Change this to *IP.
Destination type
This parameter is used by the AS/400 to identify the type of LPD that is
implemented on the receiving node (in other words, does the receiving
side support streaming or not).
Streaming mode
If this is set to *OTHER, it indicates a basic LPR implementation
which does not support streaming.
If this is set to *OS400, it uses an implementation suitable for talking
to other AS/400s, which includes support for streaming. This
implementation is also suitable for use with the IBM Network Station
since streaming is supported by the IBM Network Station.
In this particular example, we use *OTHER, which does not use
streaming mode.
100
101
102
Then page down to the last panel where we enter a text description for the printer:
Press Enter and the remote output queue is created. We see the message Object
NS429 type \OUTQ created in library QUSRSYS at the bottom of the screen:
Chapter 5. Host Applications Printing to IBM Network Station Local Printer
103
104
105
Font identifier
In this example we use 11 which represents a Courier font at 10 CPI. A
font is required, as some applications use the default printer font. An
alternative font ID can be specified if required. For a list of font IDs
available on the AS/400, please refer to the AS/400 Printer Device
Programming, SC41-5713 which has an appendix listing the font
identifiers.
When we have finished changing these fields, we can press Enter.
When this command is run, a dummy device description is created in the QSYS
library. In addition, we receive a message Output queue NS429 in QUSRSYS
already exists This is because the CRTDEVPRT command usually creates:
A device description in QSYS library
An output queue, with the same name as the device description, in the
QUSRSYS library
The CRTDEVPRT command finds that there is already an output queue with the
same name as the device description in QUSRSYS. This is normal because we
have already created a remote output queue in QUSRSYS, containing all of the
details for printing to the IBM Network Station printer using the LPR, and the
CRTDEVPRT command cannot create a new output queue.
When this command is run, we see a message at the bottom of the screen that
says Reader or writer xxxxxx/xxxxxxx/xxxxxx submitted to job queue QSPL in
lib..., as shown below:
106
When this command is run, a message at the bottom of the screen says Writer
xxxxxx/xxxxxxx/xxxxxx in process of ending, as shown below:
107
Device description
In this example, we use the name 'NS4029'.
Device class
Enter this as \LAN because we connect to the printer through a network.
Device type and model
For the Device type, enter 3812 and Device model 1:
Press Enter to see a new parameter appear called LAN attachment. We specify
\IP, as we need to use the TCP/IP protocol.
Press Enter to see additional parameters.
108
Port number
This refers to the port number on the IBM Network Station. Enter 6464
for a parallel-attached printer, or 87 for a serial-attached printer. These
port numbers are explained in 3.7, What is SERIALD? on page 43. If
a printer is attached to the serial port, then it is necessary to ensure that
the printer serial port settings match the IBM Network Station serial port
settings.
Font identifier
For Font Identifier, enter 11 which represents a Courier font at 10 CPI.
A font is required, as some applications use the default printer font. We
could use a value other than 11, if required. For a list of font IDs
available on the AS/400, please refer to AS/400 Printer Device
Programming, SC41-5713, which has an appendix that lists the font IDs.
Press Enter for more parameters and then page down to see the panel below:
109
Inactivity timer
110
111
112
Once the device is in VARIED ON status, use the STRPRTWTR command to start
a printer writer.
To end the printer, end the writer using the ENDWTR command, and then vary it
off.
LPR
The option binary is used so that the data stream will not be converted from
EBCDIC to ASCII, since the data is already in ASCII format, as produced by
BookMaster.
113
Simultaneously, the message log on the network station displays the following
messages:
Figure 117. IBM Network Station Message Log for Print Job from VM
114
One way to get around this is to use a program on the host which processes the
text data in the proper format before invoking the LPR program to send it (as we
did in the preceding PostScript example).
Another possible solution is to set the printer Auto CR after LF mode, assuming
that the printer has this capability.
115
Another way is to use an intermediate spool system that has been configured with
a printer driver corresponding to the printer attached on the IBM Network Station.
This is illustrated in the figure below:
In the case above, the text data send by the LPR program on the VM host is
received by the intermediate spooling system, and since it is directed at the queue
corresponding to the printer which is attached to the IBM Network Station, any data
in that queue is forwarded to the destination printer on the IBM Network Station, but
before it is sent, it is processed using the printer driver, thereby adding the required
carriage return (CR) at the end of each line.
The text data should then print normally, as expected, because of the extra
processing by the printer driver.
116
The first link definition is for a PostScript type printer. The EXIT=LPRXPSE is used
indicating that the data is binary. For a TEXT type of link, use EXIT=LPRXONE as
in the third definition.
Notice the NSTATION link definition which points to the PARALLEL1 port of a
network station at 9.24.105.189.
Once these link definitions are in place and activated, the VM user can use the
following commands to direct print output to the NSTATION spool queue.
Instead of using the LPR command, the print command then sends the output to
RSCS which takes care of issuing the LPR request to the remote print server.
117
118
IP Printway also allows you to print directly to the port 6464 of SERIALD daemon of
the IBM Network Station. However, there should now be little use for that particular
function since LPD support is now available on the IBM Network Station.
For additional details on how to use the LPR/LPD facility in an MVS environment,
please see IBM TCP/IP V3 Release 2 for MVS Implementation Guide,
SG24-3687-03, Chapter 13 entitled Printing in a TCP/IP Network, from which the
above figures on NOF and IP PrintWay have been taken.
119
The LPD server on OS/2 can be started either from the command line, at which
time you can specify a few startup options, or it can be started using INETD which
does not allow startup options to be specified. There are a few options available.
For additional details on how to use the LPR/LPD facility in an OS/2 environment,
please refer to TCP/IP Implementation in an OS/2 Warp Environment, SG24-4730,
Chapter 10 entitled Remote Printing.
120
In summary, the capabilities are as follows, and are illustrated in the diagram
above:
All applications, except the VTxxx emulator, can select either a local or remote
printer.
Java applications and browsers generate only PostScript output. The printer
selected by these applications must therefore support PostScript, unless you
use the transform capabilities of another host. See 8.2, Using the Transform
Capabilities of Other Hosts on page 163 for more details and an example.
The 3270 and 5250 emulators have the capability to generate either PostScript,
PCL or ASCII output.
Copyright IBM Corp. 1998
121
When selecting a printer, the emulator looks at the data type indicated for the
selected printer and generates the output according to the data type of the
selected printer.
Note that the 3270 emulator only supports Print Screen at this time.
Note equally that these emulators can produce ASCII output and take
advantage of DBCS conversion capabilities. See Chapter 11, DBCS
Considerations on page 225 for more details.
The VTxxx emulator does not use the print APIs but sends its output directly to
the SERIALD daemon. There is a way to send output to a printer on a remote
IBM Network Station; see Appendix B, Printing from the VTxxx Emulator to a
Remote IBM Network Station on page 233 for details.
122
When printing on the host, it is necessary to ensure that the host is correctly
configured. For example, on the AS/400, the Print Key Output will use the
QSYSPRT printer file to decide which output queue the screen print will be spooled
on.
When printing screens locally on the IBM Network Station, the user is prompted to
choose printer settings, such as Orientation and/or Form Feed, as shown in the
figure below:
123
The user may also select a different printer, by clicking the Select a Printer button.
The emulator produces either a PostScript, PCL or ASCII data stream, depending
on the value set in the printer table, either ps, pcl or asc. This value is
automatically picked up when a user selects a printer in the Printer Selector and is
configured by the administrator using the IBM Network Station Manager. See
Chapter 4, Configuration Using the IBM Network Station Manager on page 47 for
details on how to configure printers.
If the selected printer is ASCII and DBCS conversion is required, see Chapter 11,
DBCS Considerations on page 225 for additional details on DBCS.
Select a Printer
This shows the printer that is currently selected. If the button is
selected, the Printer Selector is displayed, and a different printer may be
chosen. The Printer Selector is discussed in more detail below.
Orientation
This specifies the page orientation to use, either landscape or portrait.
Form Feed
The Form Feed option is only used for printers defined as PCL or ASCII.
(To see how to define a printer as an ASCII or PCL printer, please see
4.2, Adding Printers to the Printer List on page 53.) If the Form Feed
parameter is set to Yes, then a Form Feed is issued at the end of the
printout.
Form Feed is a command that can be sent to the printer. On a laser
printer, the Form Feed command tells the printer that all the data for the
page has been received, and that the page can be printed.
If a laser printer does not receive a Form Feed command, it may display
a status of Waiting, and a button on the printer needs to be pressed in
order to print the page.
124
For example, on the IBM 4029, the printer displays 2 Waiting PCL5
and it is necessary to press the Print Buffer button on the printer to get
the printer to continue.
On a line printer, the Form Feed command tells the printer to advance
the continuous paper to the start of the next page.
Print
This accepts the print settings, and causes the emulator to print to the
selected printer.
Cancel
Ignore the changes that were made, and return to the emulator without
printing.
125
126
Note that the NC Navigator browser is only capable of printing using the PostScript
data stream.
When you use the File pull-down and select Print, the NC Navigator Browser's
Print dialog is displayed, as shown in the figure below:
127
128
The IBM Network Station browser had a print dialog which was substantially
different from the NC Navigator browser. Below is the representation of the IBM
Network Station print dialog in Release 2:
129
There is a button labeled Printers under the caption Current Printer: Local parallel
attached printer. Clicking on that button brings up an additional panel entitled
Printer List on which there is only one choice, which is Local parallel attached
printer as shown below.
130
Copies
This specifies the number of copies to be printed.
Print to
The user can choose between:
Printing to a Printer.
131
In addition, using the Printer Selector means that users have the ability to print to
any of the printers that have been made available to them by the administrator.
They can print to local or remote printers.
132
All printing using Java generates a PostScript data stream on the IBM Network
Station.
Page layout is the responsibility of the application, not the IBM Network Station.
This is the same in all implementations of Java.
Note that Java applications do not have any restrictions, security-wise, when it
comes to printing. However, printing from applets instead of applications does come
with some restrictions.
This is because applets are usually loaded over the network and are therefore
considered to be untrusted. For this reason, Web browsers and applet viewers
restrict what an applet is allowed to do. For example, one of the restrictions is that
they are prevented from creating print jobs, as they would have the ability to print
anything to the printer. This is a restriction imposed by the Java APIs, not by the
IBM Network Station implementation.
In Java 1.1 however, you can get around these restrictions by using a digital
signature on the JAR file, which is an archive file that contains the applet or
applets. When a JAR file is signed by a trusted entity (the user specifies what is a
reliable source), the applet may then be allowed to perform operations, such as
printing, that are not available to unsigned applets.
A Java application can be written to keep the printer settings used, by storing the
returned data from the print function. This enables an application to remember
which printer and paper size and orientation it last used, and to store this
information. Next time the user signs on to the application, he or she can retrieve
these settings, and set them as the defaults for the next print request. This can be
extremely useful in countries that use A4 paper; the user only has to change the
Letter paper size to A4 once, and the application stores this setting as the default.
When users click on the Print button, they see the Print Dialog, and from here are
able to browse the printers and select the desired printer.
133
The output for the printer is produced in PostScript. Here is what the output looks
like when printed on an IBM 4029 printer:
When the output is printed, it is possible that some of the output may be missing
near the edge of the page, as it appears in the figure above. This is due to
unprintable borders that are a limitation of the printer used, and the size of the
unprintable borders vary between different models of printer. Unprintable borders
are an effect of the hardware design of the printer.
Note that it is the responsibility of the Java application developer to take into
account the unprintable area. Advanced Java applications, such as eSuite for
example, take the unprintable area into account and produce high quality print
output from Java.
In fact, if the same output was sent to a file instead of directly to the printer, and
then the output is examined with a program like GSView32 for example, the output
looks like it should normally, as illustrated below. This is also how it prints when
printed on an IBM3130 printer for example.
Here is the source code for the very simple Java program called SimplePrint which
we used to test printing from Java on the IBM Network Station, as we just
illustrated above:
134
import java.awt.\;
import java.awt.event.\;
public class SimplePrint extends Frame {
Button printButton, closeButton;
public SimplePrint() {
add(new Label("A Simple Java Printing Application"), "North");
add(printButton = new Button ("Print"), "West");
printButton.addActionListener( new PrintCommand() );
add(closeButton = new Button ("Close"), "East");
closeButton.addActionListener( new CloseCommand() );
pack();
}
public static void main (String args[]) {
SimplePrint sP = new SimplePrint();
sP.show();
}
class CloseCommand implements ActionListener {
public void actionPerformed (ActionEvent e) {
System.exit ();
}
}
class PrintCommand implements ActionListener {
public void actionPerformed (ActionEvent e) {
PrintJob pjob = getToolkit().getPrintJob(SimplePrint.this, "Simple Print", null);
if (pjob != null) {
Graphics pg = pjob.getGraphics();
if (pg != null) {
printAll(pg);
pg.dispose();
}
pjob.end();
}
}
}
}
135
136
However, note that all these systems also have the ability to have printers queues
defined that represent printers located on other remote print servers. Therefore, a
print job can be spooled locally on a remote print server, and then re-routed to a
further remote print server. An example of this situation is provided in Chapter 8,
Practical Examples on page 161.
Generally, to print from the IBM Network Station to a remote system, it is necessary
to:
1. Ensure that an LPD daemon is started on the remote system.
Since the IBM Network Station uses LPR requests to send print jobs to remote
hosts, any host that runs an LPD daemon is able to receive print requests from
the IBM Network Station.
2. Ensure that the remote system is configured to accept print requests (access
control) from the sending IBM Network Station.
On some host systems, it is possible to control access to the LPD daemon
based on an IP host name for example. However, if such an access in not a
137
configurable item, then basically any remote host is allowed to send print
requests.
3. Know the queue name on the remote system of the printer to be used as a
target printer.
Most systems define in their print subsystems, multiple logical printers or
queues. These queue or printer names must be specified in the print job
requests in order for the target system to route output to the appropriate printer.
4. Know the IP address or Host Name of the remote print server.
5. Configure remote printers using the IBM Network Station Manager so that they
appear in the Printer Selector panel on the IBM Network Station where the user
chooses a target remote printer.
If TCP/IP printing is installed, a TCP/IP Print Server entry appears in the Services
list, as illustrated in the figure above.
However, it may be that the TCP/IP print services are installed but that the LPD
daemon (print server) has not been configured to start automatically, or has been
shut down.
138
If the status is not indicated as Started, then select the TCP/IP Print Server entry
and click on Start. It is also possible to ensure that the TCP/IP print server starts
automatically at Windows NT boot time by selecting the Startup... button, and
selecting a Startup Type of Automatic in the Service dialog box.
If the Services panel does not have a TCP/IP Print Server entry, then you need to
install the TCP/IP Print Services. The procedure for installing this component is
described in 5.2.1, Installing TCP/IP Printing Services on page 72.
139
Select My Computer, which is the default, and you are presented with a list of
ports to select.
In this case, this is a local printer attached to the parallel port so we select LPT1
and click on Next, which displays the panel to select a specific printer type.
140
In this case, we select an IBM 4029LaserPrinter. Since this is a printer type for
which we already had a driver installed, we get a question as to whether we want
to keep the same driver, to which we reply Yes.
The next panel asks us to name the printer. This is the name that is specified by
remote LPR requesters as the target queue name when they want to send printer
output to this printer.
141
You can also specify here whether that printer is now the default printer on this
machine. We selected No.
The next panel is to specify whether we want to make this printer available on the
network as a shared printer. We reply No because we intend to make this printer
available through the TCP/IP LPD service as opposed to using the NetBEUI facility.
142
This task of defining a new printer is basically completed. You get asked if you
want to print a test page. We select No, and the printer gets added to our Printers
folder.
That procedure was for a local parallel port attached printer. If you want to define a
network printer instead, select Network Printer Server on the first Add Printer
Wizard panel (Figure 140 on page 140), which then presents you with the following
panel:
Here, you have a choice of directly entering the name of the network printer, if it is
known, in the Printer field. This has the format \\servername\printername. In this
example, we chose the IBM4029 printer defined on the NSTATIONSERVER
machine.
The other alternative is wait for Windows NT to expand the list (assuming the
Expand by Default check box is selected) and to display a list of shared printers on
the network.
Notice that our IBM4029 appears in the list. It has a share name of IBM4029CB
and is located on the NSTATIONSERVER machine in the NSTATIONDOMAIN
domain. Selecting it automatically fills the Printer field with the correct network
name.
Notice that this share name is what you were being asked about when we defined
a local printer in the previous example. If we had indicated that we wanted this
printer shared, and specified a share name of IBM4029XX, then this printer would
143
appear in this list under the name \\servername\IBM4029XX when other machines
on the network search for shared printer resources.
This printer is then added to the Printers folder with the name IBM4029 on
NSTATIONSERVER.
Figure 146. Work with Active Jobs, Showing QTLPDxxxxx Jobs Running
144
We see two attributes, Autostart servers and Number of initial servers. We can set
Autostart servers to \YES in order to specify that LPD jobs should start automatically
when STRTCP is run. The Number of initial servers is used to specify the number
of LPD servers to start when the STRTCP command is executed. This can be set
at a low value since OS/400 automatically starts extra LPD jobs if it determines that
they are needed. In this example, we have set Number of initial servers to 2.
Once this has been configured, the STRTCP command starts LPD with the number
of jobs we specified.
145
Simply make note of the appropriate queue that you want to use and specify that
name in the remote printer entries that you configure in IBM Network Station
Manager.
146
More information on this topic can be found in AS/400 Printer Device Programming,
SC41-5713 and in AS/400 Printing V, SG24-2160.
The IBM Network Printer used in the example has a host name of
astnp17.havant.ibm.com and is loaded with A4 paper.
Type CRTDEVPRT and press F4 to bring up the Create Device Desc (Printer) screen.
Enter the values below for the fields shown. Leave all of the other parameters as
the defaults.
Device description
This is the name which will be given to the printer. In this example, we
have used HAVANTNP17.
Device class
This is the type of connection used for the printer. For a printer
attached to the token-ring we use \LAN.
Device type
We use 3812. For an explanation of why we use this value, please see
5.4.1.2, Creating a Dummy Device Description on page 104.
Device model
We use 1.
LAN attachment
We are using TCP/IP, so we use \IP for this value.
Port number
This is the IP port number for the Printer Job Language (PJL) interface.
In the case of the IBM Network Printer, this is port 251.
Font Identifier and Point Size
We use 11. For an explanation of why we use this value, please see
5.4.1.2, Creating a Dummy Device Description on page 104.
Form feed
The IBM Network Printer uses trays of cut sheet paper, so we use
\AUTOCUT.
147
Activation timer
The amount of time in seconds to wait for the device to respond. If it
does not respond in this time, an error will be generated. We use the
default value of 17.
Inactivity timer
The amount of time the AS/400 will keep a connection to the printer
when it has finished printing all the jobs on the printer queue. We use
the value of \SEC15 for 15 seconds.
Host Print Transform
This value determines whether EBCDIC spool files (such as, SCS and
AFPDS) should be converted into ASCII by the AS/400. In this
example, we use \YES.
Manufacturer type and model
We use the value for the IBM Network Printer 17, which is \IBM4317.
Paper source 1 and 2
The printer is loaded with A4 paper, so we specify \A4.
Image configuration
This specifies the type of data stream which this queue should produce.
In this example, we are using an IBM Network Printer 17 which supports
PCL at 600 DPI, so we use \IMGA2. For a more detailed explanation of
the Image configuration parameter, please see 7.2.6, Data Stream
Conversion on the AS/400 on page 150. By specifying this value, we
enable a feature of the AS/400 which converts printer data streams. If
PostScript data is sent to this queue, it can be converted to PCL
automatically by the AS/400.
148
Remote location
This is the IP address or the host name of the printer. In this example,
it is astnp17.havant.ibm.com.
System driver program
To control an IBM Network Printer, we use \IBMPJLDRV.
Text 'description'
This is a meaningful description of the printer. In this example, we use
IBM Network Printer 17 in Havant.
149
Once the device description is created, it is necessary to vary it on, using either
VRYCFG or WRKCFGSTS. For example:
VRYCFG HAVANTNP17 \DEV \ON
Once it is varied on, the print writer must be started using STRPRTWTR. For
example:
STRPRTWTR HAVANTNP17
If it is necessary to turn the printer off, we end the writer, using ENDWTR
HAVANTNP17, and then vary the printer off, using VRYCFG HAVANTNP17 *DEV
*OFF.
150
Figure 152. Changing Remote Output Queue to Allow Conversion from PostScript to PCL
For more information on Image Print transform, please refer to IBM AS/400 Printing
V, SG24-2160.
151
152
Select List all Remote Clients with Print Access to bring up a panel where we
can verify that the IBM Network Station is listed as a client that has print access to
AIX. In the example below, there is only one entry (itsonct1.itso.ral.ibm.com).
153
Simply enter the host name of the client being granted access.
154
From this list, choose a PRINT QUEUE name and use that name in IBM Network
Station Manager as the queue name of a remote printer definition.
155
Say we want to define an IBM 4039 Laser Printer attached to the parallel port.
Select the attachment type as Local, and you get a list of printer types, as shown
below:
In this case, select IBM and you get a list of different printers to choose from.
Select the IBM 4039. At this point, if the proper software to support this printer is
not installed, you are asked if you want to proceed with the installation of the
required software. You must have access to the source files for these printer
drivers and you can follow the instructions for the installation.
If the proper drivers are already installed, you are asked for the interface to which
the printer is attached.
156
In our example, we choose Parallel, which brings up the next panel asking for the
parent adapter.
There is only one choice so we press Enter to get the next panel.
157
Since this printer supports both PostScript and PCL, we have entered a queue
name for each of these options. We used the names IBM4039PS for the PostScript
queue and IBM4029PCL for the PCL queue.
Pressing Enter displays a panel that shows the command to create the queue is
running. When it completes, the printer we just added shows as Added printer lp0
along with the two queue names we created for this local printer.
The queue names of IBM4039PS and IBM4029PCL can now be used as target
queues when defining remote printers in the IBM Network Station Manager.
158
159
160
161
In the figure above, a local application on the IBM Network Station wishes to print
to the local printer. If the user selects, in the Printer Selection window, the local
PARALLEL1 printer, the printed output is sent to the API for local printing, as
indicated by the circle labeled 1 in the diagram.
Instead, we have prepared a printer definition on a Windows NT server to represent
the printer on the IBM Network Station. We have done this by defining an LPR
port, giving it the name NS4029, associating an IBM 4029 printer driver to it, and
indicating that the destination of this LPR port is the LPD residing on the network
station host and queue PARALLEL1.
See 5.2, Printing from a Windows NT Host on page 72 for an example of how to
define an LPR port on a Windows NT server to represent a printer attached to a
IBM Network Station.
See also 7.1, Printing to a Windows NT Server on page 138 and 7.1.1, Is the
LPD Installed and Running? on page 138 for instructions on how to prepare a
Windows NT system to receive print jobs through LPD.
This printer definition (NS4029 on the Windows NT Server host) has been added
by the administrator as a selectable printer destination on the IBM Network Station.
Therefore, when the user wishes to print, he or she selects the NS4029 printer
definition, which causes the IBM Network Station to send the output to the LPR
daemon, which transmits it to the LPD daemon on the Windows NT server. At that
point, the print job is queued for the NS4029 destination. When the printer becomes
available, the job is spooled to the LPR port thereby making its way back to the
162
IBM Network Station via the LPR on the Windows NT system and the receiving
LPD on the IBM Network Station, and printed on the IBM Network Station printer.
The result is that the user has been able to send multiple print jobs, in succession,
without waiting each time for the previous print job to terminate. Therefore he or
she is using the Windows NT server as a buffer, accumulating print jobs, large or
small, and delivering them automatically as the printer becomes available.
A variation of the previous example might be an office with many IBM Network
Stations but with only one of the network stations having a printer attached.
In this situation, all IBM Network Station users direct their printed output to a
specific queue on the remote print server/spooler, which manages all jobs going to
the shared office printer, as opposed to each individual IBM Network Station user
sending his or her print output directly to the IBM Network Station to which the
office printer is attached.
This is illustrated in the diagram below:
163
164
165
.
.
.
.
.
.
.
.
.
.
.
.
DEVD
DEVCLS
TYPE
MODEL
LANATTACH
PORT
FONT
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. SYSDRVPGM
. TEXT
FORMFEED
ACTTMR
INACTTMR
TRANSFORM
MFRTYPMDL
IMGCFG
RMTLOCNAME
PAYNP17
\LAN
3812
1
\IP
251
11
\NONE
\AUTOCUT
17
\ATTACH
\YES
\IBM4317
\NONE
PAYNP17.BLUNDIES.COM
\IBMPJLDRV
'Payroll Network Printer'
166
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
OUTQ
RMTSYS
RMTPRTQ
CNNTYPE
DESTTYPE
TRANSFORM
MFRTYPMDL
IMGCFG
TEXT
PAY429
QUSRSYS
PAYNS1.BLUNDIES.COM
PARALLEL1
\IP
\OS4
\YES
\IBM429HP
\IMGA1
'Marvins IBM 429'
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
DEVD
DEVCLS
TYPE
MODEL
ONLINE
FONT
. . . . . . .
. . . . . . .
PAY429
\VRT
3812
1
\YES
11
\NONE
The AS/400 can now send spool files to all three printers when the following
queues are used:
PAY6400 to use the IBM 6400 printer
PAYNP17 to use the IBM Network Printer 17
PAY4029 to use the IBM 4029 printer
167
We may need to make changes to the user profiles to allow them to use the IBM
Network Stations, but we can also create a group profile called PAYGRP, and
make the users members of this group. We can use this to make changes to the
Group defaults, instead of changing each individuals user defaults.
We then use IBM Network Station Manager to add the Marvin, Ravi, Linna and
Michael users to the group PAYGRP.
The Select User's Group panel appears, and we are prompted to choose the user
to add to the group. We can either enter the name directly, or click on Browse...
and select a name from the list. Once we have chosen the user, we need to click
on the Next button. In the example we are selecting Ravi's user profile.
We then see the Select Group for RAVI screen, where we can select PAYGRP, so
that the user profile RAVI now picks up the group defaults for PAYGRP:
168
Once we select PAYGRP, we click on the Finish button, and we are returned to
the Select User's Group screen where we can repeat the process for the other user
profiles, LINNA, MICHAEL and MARVIN.
169
PAYNS01 starts printing first. When PAYNS02 starts to print, the printer
cannot accept another connection, so the PAYNS02 returns an error to the
user that the printer is not available.
Note: This might not be true of all network printers as it is dependent on the
amount of buffer space and disk space that the network printer has in order to
accept print requests.
Now imagine that PAYNS01 and PAYNS02 both print to a queue on the
AS/400, PAYROLL. The queue that they send print to is set up to print to the
IBM Network Printer, PAYNP17. This is illustrated in Figure 174 on page 171.
170
Figure 174. Using the AS/400, PAYROLL, to Queue Print for PAYNP17
PAYNS01 starts printing first, and then PAYNS02 starts printing. The AS/400
has multiple LPD jobs running, so it is can handle both of the requests at the
same time. Both IBM Network Stations print jobs complete successfully, and
they then disconnect. The print is queued on the AS/400 which then sends the
print jobs to IBM Network Printer in turn. By doing this, the user on PAYNS02
does not get error messages, and does not have to wait for the printer to
become available before sending the print again; the AS/400 queue does this
on behalf of the user.
From the IBM Network Station Manager select Hardware Printers. On the
Printer Defaults screen, select the Group defaults for PAYGRP.
171
We click on Next to see the Printer Settings for PAYGRP screen where we add a
new printer definition to be used in the printer list. In this case we add the IBM
Network Printer. We use a remote location of payroll.blundies.com, which is the
AS/400, and a printer queue of PAYNP17 on the AS/400.
172
173
We have already configured the AS/400 queue to perform this transform for us
(8.3.5, Defining the PAY4029 Printer on page 166), so we now need to add this
printer queue to Marvin's User defaults so that it appears in his printer selector list.
From the IBM Network Station Manager we select Hardware Printers. On the
Printer Defaults screen, we select the User Defaults for MARVIN:
174
Figure 179. The Printer Defaults Screen, Selecting Marvin's User Defaults
We click on Next. We are now presented with the Printer Settings for MARVIN
screen. Here we must add the details of the printer.
Remote printer server
This is the host name of the LPD server, in this case, the AS/400. We
use payroll.blundies.com.
Queue name
The printer queue on the LPD server that output should be placed on.
In this case, it is PAY4029, the queue which was defined in 8.3.5,
Defining the PAY4029 Printer on page 166.
Stream type
This will only be used by the 5250 and 3270 emulators (see 6.1,
Printing from the 3270/5250 Emulator on page 122). The queue on the
AS/400 will convert output from PostScript to PCL, so we can leave this
as the default of PostScript.
Description
The Description field is optional, but we have specified it as Marvin's
4029.
175
We click on Finish.
Next time Marvin signs on, in addition to the System default printers and the group
printer, PAYNP17, he will also see his personal printer, PAY4029:
It is important to notice that the list contains the Group and User defaults. The list
is created by adding the System, Workstation, Group and User defaults, but since
there were no Workstation defaults defined, we only get the User, Group and
System defaults.
PARALLEL1 is shown because it is in the System defaults.
SERIAL1 is shown because it is in the System defaults.
PAYNP17 is shown because it is in the Group defaults for PAYGRP, and
Marvin is a member of this group.
PAY4029 is shown because it is in the User defaults for Marvin.
176
*SCS
*IPDS
*AFPDS
*USERASCII
One can see which type a spool file is by looking at the spool file attributes. Use
the command WRKSPLF, then opt8, and press Page Down once.
When *USERASCII is used, in general the AS/400 does not understand the data
stream (with the exception of Image Print Transform) and it is just passed through.
It cannot be displayed on the screen in the same way as the other data streams
can. Even the number of pages shown in WRKSPLF is an approximation only,
calculated by the AS/400 based on the size of the spool file.
There are two types of transforms that can take place:
1. Host Print Transform
Host Print Transform is used to convert AS/400 data streams into ASCII data
streams.
It takes SCS, IPDS and AFPDS data streams and transforms them into ASCII
data streams such as PCL (HP), PPDS (IBM) and ESC/2 (Epson), but not
PostScript. This only works for EBCDIC to ASCII, and cannot be used in
reverse.
The AS/400 looks at the Host Print Transform parameter in the printer queue
definition to see if it should transform the data. If the Host Print Transform
parameter is set to *YES, then it examines the Manufacturer Type and Model
field to see the transform that should be used, for example *HP5, *IBM4019,
*EPFXnnnn, etc.
2. Image Print Transform
Image Print Transform, which is new with R420 of OS/400, allows converting
data from GIF, TIFF, BMP and PostScript only. These data streams can be
converted into PostScript, PCL or AFPDS only.
In summary then,
Host Print Transform:
SCS
IPDS
AFPDS
PCL
PS
AFPDS
177
Please reference AS/400 Printing V, SG24-2160 for additional details on the host
print transform and image print transform capabilities of the AS/400.
178
179
also useful when we suspect that the data received by the printer is not the data
that was originally sent.
9.3 PING
PING is a command that sends a request to an IP address, asking for a response if
the command is received. This is a useful tool to verify that two devices are able to
communicate with each other on the network.
For example, to check that the device at IP address 9.24.104.189 can receive from
a PC, we could type the following command at the command prompt:
PING 9.24.14.189
The IBM Network Station responds to PINGs as soon as its network interface is up
and running. To ping from the IBM Network Station, click Test Network... from the
Utilities menu on the console.
180
To see the contents of the QSYSOPR message queue, we can type DSPMSG
QSYSOPR. Further help for any message can be obtained by putting the cursor
over the message and pressing F1.
A job log for the Printer Writer.
To see the job log for the writer, we can use the DSPJOBLOG command and
specify the details for the writer job, for example, DSPJOBLOG
JOB(xxxxxx/QSPLJOB/PRTxx).
If the job has ended, we may find a job log in the QEZJOBLOG output queue.
This can be displayed using the command WRKOUTQ QEZJOBLOG. The
most recently written logs will be at the bottom of the list, which can be reached
by pressing F18 (or SHIFT and F6).
181
182
There are three menu entries that give access to the configuration parameters. The
ones we deal most often with are under the Change Setup Parameters option. We
have listed in the figure below all the sections that we have access to from this
menu.
There are four of these sections that contain parameters directly related to printing.
They are:
Print
This contains the parameters related to the LPD and LPRD daemon, such as
the print buffers size specifications, the printer selection table and the access
control list for the LPD daemon.
Access Control
The Access Control parameters for the SERIALD daemon are located here.
Parallel
This is for the configuration parameters related specifically to the parallel port.
Serial
This is for the configuration parameters related specifically to the serial port.
183
At the top of the panel, notice the Lpd Cache Size and Lprd Cache Size which are
currently set to the default of 10%. These are the parameters that determine the
amount of free RAM dedicated to the print buffers for LPRD and LPD. The
minimum that can be specified is 0% (5 KB) and the maximum is 95%. If the user
enters a value outside of that range, it is automatically adjusted to be within the
allowable range.
The next entry is the Lpd Stream Large Jobs parameter, which is also referred to
as the Bypass Print Buffer parameter. When this is set to Yes, print jobs that
exceed the capacity of the print buffer automatically cause the LPD to begin
streaming out the data to the printer. If this parameter is set to NO and the print
buffer is exceeded while the LPD reads data in, the print job fails.
Next is the Enable Access Control and Print Access Control List configuration
parameters. These determine whether remote hosts that issue LPR requests to the
LPD daemon on the IBM Network Station are allowed to use the LPD service or
not. In the example here, the Enable Access Control is not set so that any host is
allowed to use the LPD daemon. If set to Yes, then the table should contain
entries listing the authorized hosts.
The figure below illustrates the configuration parameters as they appear in a
configuration file, for the items discussed above.
184
set print-lprd-cache-size = 1
set print-lpd-cache-size = 1
set print-lpd-stream-large-jobs = true or false
set print-access-control-enabled = true or false
set print-access-control-list = {
{ hostname1 }
{ hostname2 }
}
Figure 187. The LPRD/LPD Buffer Size Parameters
The next and perhaps most important and visible parameter is the Lpr Servers
table, or the printer table as it is sometimes referred to. (The actual parameter
name is print-lpr-servers.) This is the table containing the list of printers, local and
remote, to which local applications have access to. When an application requests
to print and the user clicks on Browse in the Print Dialog to see which printers are
available, the printers that get listed in the Printer Selector panel are supplied from
this table.
In the figure above (Figure 186 on page 184), we can only see the first two
entries, which are labeled localhost PARALLEL1
ps Local Parallel Printer
and localhost SERIAL1
ps Local Serial Printer, but the figure below
illustrates what the complete table looks like in the actual configuration parameter
that builds the printer table.
print-lpr-servers = {
{ "localhost" "PARALLEL1" "ps" "Local Parallel Printer" nil nil nil nil false true }
{ "localhost" "SERIAL1" "ps" "Local Serial Printer" nil nil nil nil false false }
{ "burkhart.austin.ibm.com" "locps" "ps" "ITSO Queue" nil nil nil nil true false }
{ "linna.austin.ibm.com" "javaps" "ps" "Remote AIX4.2.1 server" nil nil nil nil true false }
{ "9.53.113.131" "javaps" "ps" "Remote AIX4.2.1" nil nil nil nil true false }
}
The printer table contains a list of printers available, along with the characteristics
of each of these printers.
This table is configured by the administrator using the IBM Network Station
Manager, and he or she has the option of configuring printers that are available to
all users, or some that are available only to certain groups of users, or only to
specific users.
After the administrator configures the different printers using the IBM Network
Station Manager, this creates the actual print-lpr-servers table which is added to
one or more of the configuration files that get read by the IBM Network Station at
boot time.
The printer table contains the following information about the printers:
Location of the printer.
This can be a host name or IP address. If the printer is local to the IBM
Network Station, this will be localhost.
185
Transformation Module
DBCS Type
Printer Resolution
DBCS Font Encoding Method
Banner Page
Whether a banner page is required when printing to this printer. This
can be true or false and can be specified only for remote printers.
Banners are not supported for local printers.
Default printer
Whether the printer is the default printer. This can be true or false.
Below is a sample panel from the IBM Network Station Manager where the
administrator can configure remote printers.
Figure 189. The Printer Configuration Panel in IBM Network Station Manager
More details on using the IBM Network Station Manager for configuring this table
are given in Chapter 4, Configuration Using the IBM Network Station Manager on
page 47.
186
Then click on Finish. The next time that any user looks at the Printer Selector,
they no longer see the SERIAL1 or PARALLEL1 queues.
187
188
Figure 192. Access Control List for Serial and Parallel Ports
Note
This specific access control list controls the access to the SERIALD daemon, as
opposed to the access control list described above (Figure 186 on page 184) in
the Print section, which controls access to the LPD daemon.
Notice that in the example above, the Enable Serial and Parallel Access Control
button is not set, and therefore any host has access to the SERIALD daemon. If
this button was set to Enable, entries would appear or could be made in the Access
Control list.
The configuration parameters that control this are as follows, where hostname
represents the name or IP address of the host which is granted authority to access.
The parameter tcpip remains as tcpip and identifies the connection type over which
the host accesses the IBM Network Station.
189
There are also two configuration parameters for this access control list:
190
In the figure above, the Use Parallel Protocol value can be toggled from false to
true. When printing from WinCenter, the value under the heading Use Parallel
Protocol should read False. This puts the SERIALD daemon in passthru mode, so
that any data received on this port is simply passed through the daemon, without
any modification, and handed over to the parallel port. Since the printer driver used
on the WinCenter server is the one for the physical printer attached to this port, the
received print data stream is ready to be handed over directly to the print device.
If you leave the value of Use Parallel Protocol as true, this puts the daemon in
command mode, which triggers SERIALD to examine the incoming data looking for
commands such as a query of the port status, or setting port characteristics such
as baud rate, or parity, etc. This mode is used when the application needs to have
a finer control over the port as well as have the ability to monitor the status of the
data transmission.
These commands are imbedded in the data stream by the application and consist
of a 0xF0 character followed by some data.
191
If the sockets 6461 (serial) and 6464 (parallel) are used to connect to SERIALD,
command mode is always used. If sockets 87 (serial) and 5964 (parallel) are used,
SERIALD uses the command mode only if the Use Parallel Protocol option is set to
true, otherwise it uses passthrough mode.
If command mode is used but there are no commands in the data stream, then this
is the equivalent of passthrough mode since the SERIALD module will simply pass
the data through when there are no commands to act upon.
The port number under the heading of TCP Port should also be set to 5964, since
this is the port number that WinCenter will attempt to connect to in order to send
the print data stream.
These values are set by configuration statements in the configuration files on the
server from which the IBM Network Station reads its configuration data, and the
parameters for the parallel port are as follows:
set parallel-daemons-table = {
{ 1 false 5964 }
}
Figure 197. Parallel Port Configuration Parameters
If you are using WinCenter, verify the entries in the Serial Daemons table to ensure
that Use Serial Protocol shows as false (it is set to true in the example above) and
that the TCP port is 87.
In the Serial Interfaces Table, the Port Use at Boot and the Current Port Use
options should both be set to printer. As well, settings for Baud rate, Data Bits,
192
Stop Bits, Parity and Handshake should match the settings recommended for the
attached printer.
The configuration statements used in a configuration file to set the above values
are as follows:
set
{
}
set
{ 1
}
serial-daemons-table = {
1 false 87 }
serial-interfaces-table = {
printer printer 96 8 1 none dtr/dsr none }
Once you have verified that the parallel or serial port configuration is correct, there
are a few statistics that can be monitored to see if certain functions have been
activated.
One place to look is under the Statistics pull-down on the IBM Network Station
console, where choosing the Parallel Daemons entry brings up the panel below
where one can see the number of connections that have been accepted by the
parallel daemon. Each time a connection is made from WinCenter to the parallel
daemon to send printer output, this counter is incremented by one.
Another useful tool is the Connection Table, also located under User Preferences,
where one can see the local IP address and local port, remote IP address and port
as well as status for each TCP connection.
In the example below, notice the first line which shows an established connection
between 9.24.104.178 (this is the WinCenter Server) port 1859 and 9.24.104.189
(this is the IBM Network Station) port 5964.
193
cfANNNhost
dfCNNNhost
cfA
df
A letter uniquely identifying the data file within the print job. The first
data file uses the letter A, the second the letter B, and so on.
NNN
A print job number unique within the queue on the originating host.
host
The originating host name. For the IBM Network Station, if the
originating host does not have a host name, the LPRD generates a
name in the form IPnnn.nnn.nnn.nnn where nnn.nnn.nnn.nnn is the IP
address of the IBM Network Station sending the data.
194
Indent printing.
Used with the l and f print request options. Not used by the IBM
Network Station.
User identification.
Name of the user requesting the print job. Used for authentication when
using the remove job function and when reporting queue status via the
Send Queue State command. Built using the name of the user currently
signed on to the IBM Network Station.
Width of output.
Specifies the width (in columns) for the f, l, p and r print requests/filters.
Not used by the IBM Network Station.
195
Indent printing.
Ignored since filters are not supported by the IBM Network Station.
196
User identification.
Ignored.
Width of output.
Ignored.
197
4
5
6
7
8
9
A
41
4C
41
66
41
61
64
41
64
41
31
75
6D
53
6D
31
36
74
69
53
69
36
34
6F
6E
31
6E
34
42
65
69
A
69
42
45
78
48
73
4A
73
45
43
65
42
74
4A
74
43
48
63
45
72
4F
72
48
41
2E
43
61
42
61
41
52
62
48
74
54
74
52
44
61
41
6F
45
6F
44
A
74
52
72
53
72
A
4E
A
44
A
54
A
55
63
A
43
A
66
64
3A
5
43
4C
64
66
5C
HBECHARD.P
Administrator.CC
LASS1.JJOBTEST.L
Administrator.fd
fA164BECHARD.Udf
A164BECHARD.Nc:\
autoexec.bat..
If we lay out the information appearing in this frame, we get the following:
H
P
C
J
L
f
U
N
BECHARD
Administrator
CLASS1
JOBTEST
Administrator
dfA164BECHARD
dfA164BECHARD
c:\autoexec.bat
If the file to send is a binary file, such as a PostScript file, the command to use
should include the option -o l to indicate that this is not a TEXT file. For example:
LPR -S 9.24.14.24 -P IBM429 -o l -C CLASSX - J MINE c:\test.psbin
A sample of the resulting control file sent would be:
4
5
6
7
8
9
A
41
4C
69
3
39
74
64
41
6E
39
42
2E
6D
53
69
42
45
7
69
53
73
45
43
73
6E
58
74
43
48
62
69
A
72
48
41
69
48
73
4A
61
41
52
6E
42
74
4D
74
52
44
A
45
72
49
6F
44
A
43
61
4E
72
A
4E
48
74
45
A
55
63
41
6F
A
6C
64
3A
52
72
4C
64
66
5C
44
A
41
66
41
74
A
43
64
41
38
65
5
43
6D
38
3
73
HBECHARD.P
Administrator.CC
LASSX.JMINE.LAdm
inistrator.ldfA8
9BECHARD.UdfA8
9BECHARD.Nc:\tes
t.psbin..
Notice that the f option has been changed to l (position 7B in the above record)
indicating this file should be passthrough without any modifications.
198
Dev
Status
Job
Name
From
To
Submitted
Rnk Pri
Blks Cp
PP %
------- ----- ------- ----------- ------- ----- ral313 @ral3 DOWN
QUEUED 121
c:\autoexec.ba Administrator@ Administrator@
4/16/98 12:44:32
1 15
1
1
/var/spool/lpd/dfA891BECHARD
QUEUED 122
c:\autoexec.ba Administrator@ Administrator@
4/16/98 12:47:23
2 15
1
1
/var/spool/lpd/dfA288BECHARD
ral313 afccu READY
afccu2 pcl1 READY
It shows two jobs (the same print job) waiting in the queue.
If we execute the same command but this time to a target Windows NT server, the
output is as follows:
1
Administrat Waiting
c:\autoexec.bat
42
5
If we take a look at the actual printer queue called IBM4029 on the Windows NT
server where the target LPD resides, these entries appear as shown in the panel
below:
Figure 206. The IBM 4029 Printer Queue - Two LPR Jobs Paused
The same two files were sent to the remote printer where they are currently held
because the printer queue has been paused.
Notice, in the display output of the LPQ command, the Job-Id indicated here as
being 41 and 42. These numbers are the same that Windows NT used to store the
jobs in the spooler queue.
Chapter 9. Problem Determination Tools, Tips and Techniques
199
You can see these files, using your Windows NT Explorer, by looking at the
directory \WINNT\System32\Spool\Printers. This directory is displayed in the panel
below.
Notice that for each of the print jobs in the queue, there are two files. The
00041.shd is a header file which identifies the characteristics of this job. The
00041.spl is the actual data to be printed. If one uses an hex editor to look at the
contents of an shd file, the following figure would appear.
200
C:\>lpr /?
Sends a print job to a network printer
Usage:
lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d] filename
Options:
-S server
-P printer
-C class
-J job
-o option
-x
-d
By default, the command line version of the LPR sends f as the default control
command indicating that the data type of the file is TEXT.
However, the user can override this default, on a per job basis, by using the -o
option on the command line. For example, to send a PostScript file called
myfile.psbin to a remote printer called myqueue on a remote host called myprinter,
the user would use the command below causing the default f control flag to be
changed to the l control flag, indicating that the file is a binary file to be passed
through to the printer.
LPR
201
HKEY_LOCAL_MACHINE\
SYSTEM\
CurrentControlSet\
Control\
Print\
Monitors\
LPRPorts\
Ports\
portname\
ipaddress:portname
Insert a value named PrintSwitch, of type REG_SZ and enter the default control
command that you want this LPR port to use.
202
Print jobs received from the IBM Network Station should be processed correctly by
Windows NT because the IBM Network Station sets the proper flag in the control
file (the l flag).
However, should it become necessary to force the use of passthrough when
queuing LPR print jobs for a certain printer, this can be accomplished by making
changes to the Windows NT Registry to alter the way it behaves when receiving
spool files.
Using the Registry Editor
Using the Registry Editor incorrectly can cause serious system-wide problems
that may require you to reinstall Windows NT to correct them. Microsoft does
not guarantee that any problems resulting from the use of the Registry Editor
can be solved. Use this tool at your own risk.
In Windows NT 3.5, 3.51 and 4.0, the change affects all output that is received by
the LPD server. In Windows NT 4.0 Service Pack 2, it becomes possible to
configure LPD passthrough on a per-printer basis.
The following sections detail how to make the change in Windows NT versions
3.51, 4.0 and 4.0 with Service Pack 2 loaded. If after using these instructions,
Windows NT still prints incorrectly, please refer to 9.10.6.5, Forcing LPD
Passthrough on Windows NT on page 202.
203
From the Edit menu, we select Add Value... to get the Add Value dialog. In this
window we enter:
Value Name
SimulatePassThrough
Data Type
REG_DWORD
Once we have we entered this information, we click OK. The DWORD Editor
window will appear, and we can enter the Data as 1. A value of 0 for this will
mean that the LPD will assign data types according to the control commands. A
value of 1 will mean that the LPD will just pass the received data through, without
altering it.
We can now click OK, so that the Registry Editor now looks like this:
Figure 210. The Windows NT 3.51 Registry Editor with SimulatePassThrough Added
204
Windows NT 3.51 looks for this new registry entry in the LPD key, instead of the
LPDSVC key. We therefore need to create a new key called LPD, and copy the
contents of the LPDSVC key into it.
Still in the Registry Editor, find the window titled HKEY_LOCAL_MACHINE on Local
Machine. Select SYSTEM\CurrentControlSet\Services. Go to the Edit menu, and
select Add Key... The Add Key dialog appears. In this window, enter:
Key Name
LPD
Class
Leave this blank.
Once we have entered this data, we click on OK. Scroll down to see that there is a
new key called LPD which has just been created:
Figure 211. The Windows NT 3.51 Registry Editor with new LPD key created
Now we select the LPDSVC key, and then, from the Registry menu, choose Save
Key..., and save the key as LPDSVC.KEY. We have now saved a copy of the
LPDSVC key to disk.
Next select the LPD key, and then, from the Registry menu, choose Restore..., and
restore the LPDSVC.KEY key that was just saved. A warning message appears:
205
We now have an LPD key which is an exact copy of the LPDSVC key:
Figure 213. The Windows NT 3.51 Registry Editor with the LPDSVC Key Copied to the LPD
Key
In order for our changes to take effect, we need to stop and restart the printing
services. To get the Services tool we choose Program ManagerMainControl
PanelServices. The services that we need to stop and then start again are the
Spooler and the TCP/IP Print Server.
We have now configured Windows NT so that print files received on the LPR will
use passthrough, and will not be changed by Windows NT.
206
From the Edit menu, select Add Value..., to get the Add Value window. In this
window, enter:
Value Name
SimulatePassThrough
Data Type
REG_DWORD
Once this information is entered, click OK. The DWORD Editor window appears,
and we can enter the Data as 1. A value of 0 for this means that the LPD assigns
data types according to the control commands. A value of 1 means that the LPD
just passes the received data through, without altering it.
Now click on OK, so that the Registry Editor now looks like this:
207
Figure 215. The Windows NT 4.0 Registry Editor with SimulatePassThrough Added
Close the Registry Editor. For the change to take effect, we stop and start the
affected spooling services. To get the list of Services, use
StartSettingsControl PanelServices. The services that we need to stop
and then start are the Spooler and the TCP/IP Print Server.
We have now configured Windows NT so that print files received on LPR will use
passthrough, and will not be changed by Windows NT.
208
From the Edit menu, select Add Value to get the Add Value window. In this
window, enter:
Value Name
SimulatePassThrough
Data Type
REG_DWORD
Once this information is entered, click on OK. The DWORD Editor window
appears, and we can enter the value as 1. A value of 0 for this means that the LPD
will queue the print with a Data Type of TEXT, which means that it will change the
spool file. A value of 1 for this means that the LPD will just pass the received data
through without altering it.
Click on OK so that the Registry Editor now looks like this:
209
Figure 217. The Windows NT 4.0 Registry Editor with SimulatePassThrough Added
Close the Registry Editor. For the change to take effect, we need to stop and start
the affected spooling services. To get the Services list, click
StartSettingsControl PanelServices. The services to stop and then start
are the Spooler and the TCP/IP Print Server.
We have now configured Windows NT, so that print files received on LPR to this
printer will not be changed by Windows NT.
210
211
If the data type is RAW, then the changes to the Registry have taken effect.
If the data type is TEXT then the changes to the Registry have not taken effect,
and we need to:
Check in the Registry Editor to ensure that the SimulatePassThrough value
has been added correctly. It should read as:
SimulatePassThrough : REG_DWORD : x1
Ensure that the print services were stopped and restarted.
212
For the lpr parameters available in OS/2, use the lpr -? command.
At the time that you define a printer, you identify the printer driver to be used for
that logical printer, and you also identify the port to which this printer is connected.
For example, the IBM4029 printer illustrated in the figure below has been defined
as connected to port LPT1. This display is obtained by selecting the printer icon,
clicking the right mouse button and selecting Properties.
213
If we also had a printer attached to the LPT2 port, we could use the printer pooling
facility and assign this IBM4029 printer to both the LPT1 and LPT2 ports, which
causes jobs in this printer queue to be serviced by two printers.
This is done by selecting the Enable printer pooling button at the bottom of the
panel, which then allows you to click on LPT2. You have to click on OK before
these changes take place. If you then re-open Properties for that printer, you
should see the following display:
214
If on the other hand, what you need to do is assign a second printer queue to the
same LPT1 port, then open the other printer icon's Properties (in our example, we
also have a printer called NS4029), select the Ports tab, click on LPT1, and click
on OK.
When you re-open the properties for this printer or for any other printer, you will
see two printer names appear besides the LPT1 port, as illustrated in the figure
below:
215
If you noticed, we took the NS4029 printer, which was previously assigned to the
LPR port called 9.24.105.189:PARALLEL1 and we re-assigned it to LPT1, the same
port as the IBM4029 printer.
We had originally intended the NS4029 printer queue to send print jobs to our IBM
Network Station printer. Print jobs could have accumulated in the queue because
the remote printer at the IBM Network Station was down for example. In this case,
re-assigning the NS4029 printer queue to the LPT1 port allows us to reroute the
jobs in the NS4029 printer queue to the local LPT1 port and print them there
(assuming that the printer on LPT1 has the same capabilities as the one that is
attached to the IBM Network Station).
216
can be held in the local spool queue, if required (for example if our LAN connection
is not available at that moment), and later de-spooled to the LAN printer.
You can define such a local printer in a fashion similar to what we did earlier to
define an LPR port. If you look at Figure 60 on page 75, instead of selecting LPR
Port, select Local Port.
You are then presented with the following panel, on which we enter
\\servername\sharename. In this example, we used \\nstationserver\IBM4029CB,
and then gave that printer the name IBM 4029 Laser Printer in the next panels.
The result, after the printer is created, is as follows. If you select that printer, open
its Properties and select the Ports tab, you get a display similar to the one below:
217
218
It is possible to tell the printer to continue printing on the incorrect paper size
anyway, by using a button on the printer such as Continue.
The usual reason for this to occur is that many applications default to using U.S.
paper sizes, such as Letter, whereas many countries use different paper sizes,
such as A4. Some applications seem to always default to Letter status, while some
do "remember" the last setting that was used by the user.
219
220
getPrinterList
setDefaultPrinter
printOpen
printWrite
printClose
221
222
getPrinterList
setDefaultPrinter
This routine allows the user to indicate which printer from the
printer list should be the default printer for all local
applications.
getDefaultPrinter
printOpen
printOpenSerial
printWrite
printClose
printAbort
getPrintXAPIs
printerSelectorGUI
223
224
225
This facility, which is transforming DBCS print data from code points to character
bitmaps, has been added in Release 3. This is accomplished by a conversion
program that gets loaded and executed by the print APIs.
An application is now able to generate ASCII text with DBCS code points, send the
resulting output to a conversion program, which then sends the output to a printer
that does not have DBCS code pages loaded. The conversion program needs
certain information about the target printer to facilitate the transformation; this
information is stored in the printer list when configuring printers in IBM Network
Station Manager:
Transformation Module - This is the loadable module the print APIs will invoke.
For now only the DBCS conversion module is a choice but in the future,
additional conversion modules may be available.
DBCS Type - This is the type of DBCS output being generated by the
conversion program. The choices are ESC/P, IBM PS/55, IBM PAGES,
Cannon LIPS, NEC, KS, KSSM, and PCL.
Printer Resolution - This is the resolution, in dots per inch, of the target printer.
Resolution is needed to properly generate the bitmap image of the characters
226
being converted. Possible resolutions include 180, 300, 360, 600, 720, and
1200.
DBCS Font Encoding Method - This it the method used for encoding font
information in the output data stream. For Release 3, this field is not be used
by the DBCS converter. It is being reserved for future use. Possible font
encoding methods include BIG-5, 5550, shift-JIS, JIS, GB, GBK, KSSM, KS,
and TG.
For Release 3, the only applications generating ASCII text that can take advantage
of the DBCS conversion are the 5250 and 3270 emulators. The NC Navigator
browser generates PostScript data, so DBCS conversion is not possible.
These additional parameters from DBCS conversion processing are configured in
the IBM Network Station Manager when defining printers in the printer list. Please
refer to Chapter 4, Configuration Using the IBM Network Station Manager on
page 47 for general instructions on how to access the IBM Network Station
Manager and how to configure printers.
The figure below displays the panel on which the user defines printers. Notice the
button labeled ASCII Options... to the right of each entry in the panel.
When using DBCS conversion processing, this button allows the specification of the
parameters we discussed above, which are specific to DBCS processing. The next
figure is included for illustration purposes of the configuration of a DBCS printer; it
represents the panel displayed when a user clicks on the ASCII Options... button.
227
228
Printer
*IMGA01
*IMGA02
*IMGA03
*IMGA04
*IMGA05
*IMGA06
*IMGA07
*IMGA08
*IMGA09
Printer
*IMGB01
*IMGB02
*IMGB03
*IMGB04
*IMGB05
*IMGB06
*IMGB07
*IMGB08
*IMGB09
*IMGB10
*IMGB11
*IMGB12
*IMGB13
*IMGB14
*IMGB15
229
Printer
*IMGC01
*IMGC02
*IMGC03
*IMGC04
*IMGC05
*IMGC06
*IMGC07
*IMGC08
*IMGC09
*IMGC10
*IMGC11
Printer
*IMGD01
*IMGD02
*IMGD03
*IMGD04
*IMGD05
*IMGD06
*IMGD07
*IMGD08
*IMGD09
*IMGD10
*IMGD11
Table 12 (Page 1 of 3). Recommended Image Configuration Objects for Some Common Printers
Name
Printer
*IMGD01
Compaq Pagemarc 20
*IMGA01
*IMGA02
*IMGB10
*IMGB11
*IMGA04
HP Color Laserjet 5
*IMGD04
HP Color Laserjet 5M
*IMGA04
*IMGA01
230
Table 12 (Page 2 of 3). Recommended Image Configuration Objects for Some Common Printers
Name
Printer
*IMGA04
*IMGD04
HP Deskjet 1600CM
*IMGA09
*IMGB01
*IMGA01
*IMGD01
*IMGA02
*IMGD02
*IMGA02
*IMGD02
*IMGA02
HP Laserjet 6, 6P, 6L
*IMGD02
*IMGD02
*IMGA02
*IMGD02
*IMGC01
*IMGC02
*IMGC09
*IMGC01
*IMGC01
*IMGC10
*IMGC05
*IMGC05
*IMGA01
*IMGC06
*IMGA01
*IMGD01
*IMGC02
*IMGA09
*IMGB01
*IMGC06
*IMGA01
*IMGB02
*IMGA01
*IMGD07
*IMGA02
*IMGD02
*IMGB09
231
Table 12 (Page 3 of 3). Recommended Image Configuration Objects for Some Common Printers
Name
Printer
*IMGB05
*IMGC06
*IMGC06
*IMGA02
*IMGD02
*IMGC03
IBM InfoPrint 60
*IMGC05
*IMGC06
*IMGB05
IBM InfoColor 70
*IMGC05
*IMGC06
*IMGB02
Lexmark 4039Plus
*IMGD11
*IMGA02
Lexmark Optra E, E+
*IMGD02
Lexmark Optra N
*IMGD02
*IMGD02
*IMGD05
*IMGA01
*IMGA02
*IMGB12
*IMGD04
QMS Magicolor CX
*IMGB09
*IMGB04
*IMGB05
*IMGB05
*IMGB06
*IMGA01
Xerox 4219/MRP
*IMGA02
Xerox 4220/MRP
*IMGA02
*IMGA02
*IMGB13
*IMGD04
*IMGB08
*IMGB05
232
The VTxxx emulator on the IBM Network Station already has the ability to print to
the local serial or parallel port on the IBM Network Station where it executes. This
facility is used to normaly either print the content of the display (Print Screen), print
selected areas of the the display, such as a few lines of text in the message log for
example, or to print the content of the log buffer.
One can set some of the xserver-initial-x-resources parameter in such a way as to
configure a remote host on which to print the output of the VTxxx emulator.
As illustrated in the figure below, the required statement is:
set xserver-initial-x-resources =
"NCDterm\printerHost: itsonct1:5964
NCDterm\defaultPrintMode: Remote"
233
As a result, when the user starts the VTxxx emulator and uses the file pull-down,
the default entry Print to Remote is replaced by the entry Print on host:port as
shown in the figure below.
234
When this entry is selected by the user, instead of the normal Print on Parallel 1,
the output of the print command is sent to the remote host specified.
Appendix B. Printing from the VTxxx Emulator to a Remote IBM Network Station
235
236
237
GROUP print
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
print-access-control-enabled
Console=>Setup=>Change Setup Parameters=>
Print=>Enable Access Control
ncdPrintAccessControlEnabled
ncdPrint 4
BOOL
false
READ-WRITE
IMMEDIATE
NO
Indicates whether to check the access control list.
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
PERMISSION
EFFECT
NVRAM
DESCRIPTION
print-access-control-list
Console=>Setup=>Change Setup Parameters=>
Print=>Print Access Control List
ncdPrintAccessControlTable
ncdPrint 5
TABLE
READ-WRITE
IMMEDIATE
NO
Specifies the list of IP hosts that are allowed
access to the print daemon
index
ncdPrintAccessControlTableIndex
ncdPrintAccessControlTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
Index into the Print Access Control table
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
host
ncdPrintAccessControlTableHost
ncdPrintAccessControlTable 2
STRING
nil
READ-WRITE
IMMEDIATE
NO
Specifies the network name/address
of a node granted permission to
access the print daemon.
238
print-lpd-cache-size
Console=>Setup=>Change Setup Parameters=>
Print=>Lpd Cache Size
ncdPrintLpdCacheSize
ncdPrint 1
INTEGER
1
95
READ-WRITE
IMMEDIATE
NO
Maximum percentage of available memory LPD will allocate for
print job
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
print-lpd-stream-large-jobs
Console=>Setup=>Change Setup Parameters=>
Print=>Lpd Stream Large Jobs
ncdPrintLpdStreamLargeJobs
ncdPrint 3
BOOL
true
READ-WRITE
IMMEDIATE
NO
Indicates whether incoming jobs that overflow
the cache are switched to streaming mode
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
PERMISSION
EFFECT
NVRAM
DESCRIPTION
print-lpr-servers
Console=>Setup=>Change Setup Parameters=>
Print=>Lpr Servers
ncdPrintLprServersTable
ncdPrint 6
TABLE
READ-WRITE
IMMEDIATE
NO
Print server information
index
ncdPrintLprServersTableIndex
ncdPrintLprServersTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
Appendix C. Printing Related Configuration Parameters
239
NVRAM
DESCRIPTION
NO
Index into the Print Lpr Servers table
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
server
ncdPrintLprServersTableServer
ncdPrintLprServersTable 2
STRING
nil
READ-WRITE
IMMEDIATE
NO
server name
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
queue-name
ncdPrintLprServersTableQueueName
ncdPrintLprServersTable 3
STRING
nil
READ-WRITE
IMMEDIATE
NO
queue name
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
datastream-type
ncdPrintLprServersTableDatastreamType
ncdPrintLprServersTable 4
STRING
nil
READ-WRITE
IMMEDIATE
NO
datastream type
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
description
ncdPrintLprServersTableDescription
ncdPrintLprServersTable 5
STRING
nil
READ-WRITE
IMMEDIATE
NO
description
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
240
transform-file
ncdPrintLprServersTableTransformFile
ncdPrintLprServersTable 6
STRING
nil
PERMISSION
EFFECT
NVRAM
DESCRIPTION
READ-WRITE
IMMEDIATE
NO
full path to transform file
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
dbcs-type
ncdPrintLprServersTableDbcsType
ncdPrintLprServersTable 7
STRING
nil
READ-WRITE
IMMEDIATE
NO
DCBS type
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
print-resolution
ncdPrintLprServersTablePrintResolution
ncdPrintLprServersTable 8
STRING
nil
READ-WRITE
IMMEDIATE
NO
print resolution
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
dbcs-font-encoding
ncdPrintLprServersTableDbcsFontEncoding
ncdPrintLprServersTable 9
STRING
nil
READ-WRITE
IMMEDIATE
NO
DBCS font encoding
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
request-banner-page
ncdPrintLprServersTableRequestBannerPage
ncdPrintLprServersTable 1
BOOL
false
READ-WRITE
IMMEDIATE
NO
request banner page
NAME
SNMP NAME
SNMP PATH
use-as-default
ncdPrintLprServersTableUseAsDefault
ncdPrintLprServersTable 11
Appendix C. Printing Related Configuration Parameters
241
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
BOOL
false
READ-WRITE
IMMEDIATE
NO
indicates whether this entry should be the default
print-lprd-cache-size
Console=>Setup=>Change Setup Parameters=>
Print=>Lprd Cache Size
ncdPrintLprdCacheSize
ncdPrint 2
INTEGER
1
95
READ-WRITE
IMMEDIATE
NO
Maximum percentage of available memory LPRD will allocate for
print job
GROUP parallel
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
PERMISSION
EFFECT
NVRAM
DESCRIPTION
parallel-daemons-lat-service-passwords
Console=>Setup=>Change Setup Parameters=>
Access Control=>Parallel Daemon LAT Service Passwords
ncdAccessParalleldLatPasswdTable
ncdAccess 36
TABLE
READ-WRITE
IMMEDIATE
NO
Specifies the LAT service passwords required to
gain access to the parallel port daemon using LAT.
index
ncdAccessParalleldLPTIndex
ncdAccessParalleldLatPasswdTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
Index into the Parallel Daemons LAT Passwds Table
242
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
port-number
ncdAccessParalleldLPTPortNumber
ncdAccessParalleldLatPasswdTable 2
INTEGER
1
2
READ-ONLY
NO
The name of the parallel port.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
password
ncdAccessParalleldLPTPassword
ncdAccessParalleldLatPasswdTable 3
STRING
nil
WRITE-ONLY
AT_BOOT
NO
Specifies the LAT service password.
parallel-daemons-statistics-table
Console=>Statistics=>Show Statistics=>
Parallel Daemons=>Parallel Daemon Statistics Table
ncdParallelDStatsTbl
ncdParallel 2
TABLE
READ-ONLY
NO
Specifies the table of parallel daemon statistics.
port-number
ncdParallelDStatsTblPortNumber
ncdParallelDStatsTbl 1
INTEGER
1
2
READ-ONLY
NO
The name of the parallel port.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
connections-accepted
ncdParallelDStatsTblConnAccepts
ncdParallelDStatsTbl 2
INTEGER
243
MAX
PERMISSION
NVRAM
DESCRIPTION
4294967295
READ-ONLY
NO
The number of connections made to the parallel daemon.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
connections-with-access-control-errors
ncdParallelDStatsTblConnBadAccesses
ncdParallelDStatsTbl 3
INTEGER
4294967295
READ-ONLY
NO
The number of connections that were closed by the
parallel daemon due to the remote address not being
present in the parallel daemon's access control list.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
connections-with-io-errors
ncdParallelDStatsTblConnIOErrors
ncdParallelDStatsTbl 4
INTEGER
4294967295
READ-ONLY
NO
The number of connections that were closed by the
parallel daemon due to the a local I/O error. This
includes the user aborting the connection via local
mechanisms.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
connections-with-normal-completion
ncdParallelDStatsTblConnEofCloses
ncdParallelDStatsTbl 5
INTEGER
4294967295
READ-ONLY
NO
The number of connections that were closed by the
remote host. This is the normal mode of ending a
connection to the parallel daemon.
244
parallel-daemons-table
Console=>Setup=>Change Setup Parameters=>
Parallel=>Parallel Daemons Table
ncdParallelDTable
ncdParallel 1
TABLE
PERMISSION
EFFECT
NVRAM
DESCRIPTION
READ-WRITE
IMMEDIATE
NO
Specifies the table of parallel daemon parameters.
parallel-daemon-table-index
ncdParallelDTableIndex
ncdParallelDTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
The index into the parallel daemons table
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
port-number
ncdParallelDTablePortNumber
ncdParallelDTable 2
INTEGER
1
2
READ-ONLY
NO
The name of the parallel port.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
use-parallel-protocol
ncdParallelDTableUseParaProt
ncdParallelDTable 3
BOOL
false
READ-WRITE
IMMEDIATE
NO
Specifies that the parallel daemon control protocol
should be used. Note that this could cause some data
loss if enabled with old host software.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
DEFAULT
MAX
PERMISSION
EFFECT
tcp-port
ncdParallelDTableTCPPort
ncdParallelDTable 4
INTEGER
1
5964
65535
READ-WRITE
AT_BOOT
245
NVRAM
DESCRIPTION
NO
Specifies the TCP port on which the terminal
listens for raw TCP connections to the parallel
daemon.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
ncdnet-object-name
ncdParallelDTableNCDnetObjName
ncdParallelDTable 5
STRING
PARALLELD
READ-WRITE
AT_BOOT
NO
Specifies the NCDnet object on which the terminal
listens for NCDnet connections to the parallel
daemon.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
enable-lat-service
ncdParallelDTableEnableLAT
ncdParallelDTable 6
BOOL
false
READ-WRITE
AT_BOOT
NO
Specifies that the unit is to accept incoming
LAT solicit messages for a service which
allows access to the parallel daemon. This is used
to support VMS print services to the unit.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
lat-service-name
ncdParallelDTableLATServName
ncdParallelDTable 7
STRING
nil
READ-WRITE
AT_BOOT
NO
Specifies the name of the parallel daemon LAT service.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
DEFAULT
MAX
PERMISSION
EFFECT
246
lat-service-rating
ncdParallelDTableLATServRating
ncdParallelDTable 8
INTEGER
5
255
READ-WRITE
AT_BOOT
NVRAM
DESCRIPTION
NO
Specifies the rating of the parallel daemon LAT service.
GROUP serial
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
serial-access-control-enabled
Console=>Setup=>Change Setup Parameters=>
Access Control=>Enable Serial and Parallel Access Control
ncdAccessSerialdAccessControlEnabled
ncdAccess 31
BOOL
false
READ-WRITE
IMMEDIATE
NO
Specifies whether xhost-style access control
is on or off for requests to connect to the
serial or parallel port daemon.
NAME
HIDEBOX
SNMP NAME
SNMP PATH
TYPE
PERMISSION
EFFECT
NVRAM
DESCRIPTION
serial-access-control-list
Console=>Setup=>Change Setup Parameters=>
Access Control=>Serial and Parallel Access Control List
ncdAccessSerialdAccessControlTable
ncdAccess 32
TABLE
READ-WRITE
IMMEDIATE
NO
Specifies the host access control list for the serial
or parallel port daemon.
index
ncdAccessSerialdACTIndex
ncdAccessSerialdAccessControlTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
Index into the Serial Access Control List
NAME
SNMP NAME
SNMP PATH
host
ncdAccessSerialdACTAddress
ncdAccessSerialdAccessControlTable 2
Appendix C. Printing Related Configuration Parameters
247
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
STRING
nil
READ-WRITE
IMMEDIATE
NO
Specifies the network name/address
of a node granted permission to
remotely access the serial or parallel
port daemon.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
family
ncdAccessSerialdACTFamily
ncdAccessSerialdAccessControlTable 3
CHOICE
{ tcpip ncdnet lat }
tcpip
READ-WRITE
IMMEDIATE
NO
Specifies the type of network connection for
which this entry applies.
serial-daemons-lat-service-passwords
Console=>Setup=>Change Setup Parameters=>
Access Control=>Serial Daemon LAT Service Passwords
ncdAccessSerialdLatPasswdTable
ncdAccess 3
TABLE
READ-WRITE
IMMEDIATE
NO
Specifies the LAT service passwords required to
gain access to the serial port daemons using LAT.
index
ncdAccessSerialdLPTIndex
ncdAccessSerialdLatPasswdTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
Index into the Serial Daemons LAT Passwds Table
248
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
port-number
ncdAccessSerialdLPTPortNumber
ncdAccessSerialdLatPasswdTable 2
INTEGER
1
3
READ-ONLY
NO
The name of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
password
ncdAccessSerialdLPTPassword
ncdAccessSerialdLatPasswdTable 3
STRING
nil
WRITE-ONLY
AT_BOOT
NO
Specifies the LAT service password.
serial-daemons-statistics-table
Console=>Statistics=>Show Statistics=>
Serial Daemons=>Serial Daemon Statistics Table
ncdSerialDaemonStatsTable
ncdSerialDaemon 1
TABLE
READ-ONLY
NO
Specifies the table of serial daemon statistics.
port-number
ncdSerialDaemonPortNumber
ncdSerialDaemonStatsTable 1
INTEGER
1
3
READ-ONLY
NO
The name of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
connections-accepted
ncdSerialDaemonConnAccepts
ncdSerialDaemonStatsTable 2
INTEGER
4294967295
Appendix C. Printing Related Configuration Parameters
249
PERMISSION
NVRAM
DESCRIPTION
READ-ONLY
NO
The number of connections made to the serial daemon.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
connections-with-access-control-errors
ncdSerialDaemonConnBadAccesses
ncdSerialDaemonStatsTable 3
INTEGER
4294967295
READ-ONLY
NO
The number of connections that were closed by the
serial daemon due to the remote address not being
present in the serial daemon's access control list.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
connections-with-io-errors
ncdSerialDaemonConnIOErrors
ncdSerialDaemonStatsTable 4
INTEGER
4294967295
READ-ONLY
NO
The number of connections that were closed by the
serial daemon due to the a local I/O error. This
includes the user aborting the connection via local
mechanisms.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
connections-with-normal-completion
ncdSerialDaemonConnEofCloses
ncdSerialDaemonStatsTable 5
INTEGER
4294967295
READ-ONLY
NO
The number of connections that were closed by the
remote host. This is the normal mode of ending a
connection to the serial daemon.
250
serial-daemons-table
Console=>Setup=>Change Setup Parameters=>
Serial=>Serial Daemons Table
ncdSerialSDTable
ncdSerial 3
TABLE
READ-WRITE
EFFECT
NVRAM
DESCRIPTION
IMMEDIATE
NO
Specifies the table of serial daemon parameters.
serial-daemon-table-index
ncdSerialSDTableIndex
ncdSerialSDTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
The index into the serial daemons interface table
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
port-number
ncdSerialSDTablePortNumber
ncdSerialSDTable 2
INTEGER
1
3
READ-ONLY
NO
The name of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
use-serial-protocol
ncdSerialSDTableUseSerialProt
ncdSerialSDTable 3
BOOL
false
READ-WRITE
IMMEDIATE
NO
Specifies that the new serial daemon control protocol
should be used. Note that this could cause some data
loss if enabled with old host software.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
DEFAULT
MAX
PERMISSION
EFFECT
NVRAM
DESCRIPTION
tcp-port
ncdSerialSDTableTCPPort
ncdSerialSDTable 4
INTEGER
1
87
65535
READ-WRITE
AT_BOOT
NO
251
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
ncdnet-object-name
ncdSerialSDTableUseNCDnetObjName
ncdSerialSDTable 5
STRING
SERIALD
READ-WRITE
AT_BOOT
NO
Specifies the NCDnet object on which the terminal
listens for NCDnet connections to the serial
daemon.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
enable-lat-service
ncdSerialSDTableEnableLAT
ncdSerialSDTable 6
BOOL
false
READ-WRITE
AT_BOOT
NO
Specifies that the unit is to accept incoming
LAT solicit messages for a service which
allows access to the serial daemon. This is used
to support VMS print services to the unit.
NAME
SNMP NAME
SNMP PATH
TYPE
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
lat-service-name
ncdSerialSDTableLATServName
ncdSerialSDTable 7
STRING
nil
READ-WRITE
AT_BOOT
NO
Specifies the name of the serial daemon LAT service.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
DEFAULT
MAX
PERMISSION
EFFECT
NVRAM
DESCRIPTION
lat-service-rating
ncdSerialSDTableLATServRating
ncdSerialSDTable 8
INTEGER
5
255
READ-WRITE
AT_BOOT
NO
Specifies the rating of the serial daemon LAT service.
252
serial-interface-statistics-table
Console=>Statistics=>Show Statistics=>
Serial=>Interface Statistics Table
ncdSerialTable
ncdSerial 1
TABLE
READ-ONLY
NO
The table of serial interfaces.
port-number
ncdSerialInPortNumber
ncdSerialTable 5
INTEGER
1
3
READ-ONLY
NO
The name of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
reception-overruns
ncdSerialInOverruns
ncdSerialTable 1
INTEGER
4294967295
READ-ONLY
NO
The number of times an incoming octet overwrote a
previously received octet in the UART's buffer.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
reception-frame-errors
ncdSerialInFrameErrors
ncdSerialTable 2
INTEGER
4294967295
READ-ONLY
NO
The number of times an incoming octet had bad bit
alignment.
NAME
SNMP NAME
reception-parity-errors
ncdSerialInParityErrors
Appendix C. Printing Related Configuration Parameters
253
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
ncdSerialTable 3
INTEGER
4294967295
READ-ONLY
NO
The number of times the parity bit of an incoming
octet was incorrect.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
reception-break-errors
ncdSerialInBreakErrors
ncdSerialTable 4
INTEGER
4294967295
READ-ONLY
NO
The number of times a stop bit was not received
at the expected time after a start bit, and the
intervening bits were all zero.
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
total-characters-transmitted
ncdSerialInTotCharXmit
ncdSerialTable 6
INTEGER
4294967295
READ-ONLY
NO
Total characters transmitted
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
total-transmit-interrupts
ncdSerialInTotXmitInt
ncdSerialTable 7
INTEGER
4294967295
READ-ONLY
NO
Total transmission interrupts
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
254
total-characters-received
ncdSerialInTotCharRcv
ncdSerialTable 8
INTEGER
4294967295
READ-ONLY
NO
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
total-receive-interrupts
ncdSerialInTotRcvInt
ncdSerialTable 9
INTEGER
4294967295
READ-ONLY
NO
Total of reception interrupts
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
total-receive-errors
ncdSerialInTotRcvErr
ncdSerialTable 1
INTEGER
4294967295
READ-ONLY
NO
Total of reception errors
serial-interfaces-table
Console=>Setup=>Change Setup Parameters=>
Serial=>Serial Interfaces Table
ncdSerialIfTable
ncdSerial 2
TABLE
READ-WRITE
IMMEDIATE
YES
Specifies the table of serial port parameters.
serial-interface-table-index
ncdSerialIfTableIndex
ncdSerialIfTable 1
INTEGER
SNMP ONLY
4294967295
READ-ONLY
NO
The index into the serial interface table
255
NAME
SNMP NAME
SNMP PATH
TYPE
MIN
MAX
PERMISSION
NVRAM
DESCRIPTION
port-number
ncdSerialIfTablePortNumber
ncdSerialIfTable 2
INTEGER
1
3
READ-ONLY
NO
The name of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
is booted.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
mode
ncdSerialIfTableMode
ncdSerialIfTable 3
CHOICE
{ terminal printer serial-daemon slip console input-device xremote ppp }
terminal
READ-WRITE
AT_BOOT
YES
Specifies what the serial port should be used for, but takes
effect the next time the unit
The choices
'Printer' and 'Serial Daemon' are equivalent.
current-mode
ncdSerialIfTableCurMode
ncdSerialIfTable 9
CHOICE
{ terminal printer serial-daemon slip console input-device xremote ppp }
terminal
READ-WRITE
IMMEDIATE
NO
Specifies what the serial port should be used for. Any
change takes effect immediately, but the value of this
parameter is ignored at boot time in favor of the 'mode'
value.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
baud-rate
ncdSerialIfTableBaudRate
ncdSerialIfTable 4
CHOICE
{ 5 75 11 134.5 15 2 3 6 15 12 18 2
24 48 72 96 144 192 384 576 768
1152 }
96
READ-WRITE
IMMEDIATE
YES
Specifies the baud rate of the serial port.
256
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
data-bits
ncdSerialIfTableDataBits
ncdSerialIfTable 5
CHOICE
{ 8 7 }
8
READ-WRITE
IMMEDIATE
YES
Specifies the number of data bits per
character of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
stop-bits
ncdSerialIfTableStopBits
ncdSerialIfTable 6
CHOICE
{ 1 2 }
1
READ-WRITE
IMMEDIATE
YES
Specifies the number of stop bits per
character of the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
parity
ncdSerialIfTableParity
ncdSerialIfTable 7
CHOICE
{ none odd even space mark }
none
READ-WRITE
IMMEDIATE
YES
Specifies the form of parity generated by
and expected by the serial port.
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
handshake
ncdSerialIfTableHandshake
ncdSerialIfTable 8
CHOICE
{ none xon/xoff dtr/dsr rts/cts }
none
READ-WRITE
IMMEDIATE
YES
Specifies the type of flow control
of the serial port.
257
NAME
SNMP NAME
SNMP PATH
TYPE
CHOICES
DEFAULT
PERMISSION
EFFECT
NVRAM
DESCRIPTION
hangup
ncdSerialIfTableActionOnDiscon
ncdSerialIfTable 1
CHOICE
{ none drop-dtr send-break }
none
READ-WRITE
IMMEDIATE
NO
Specifies what a local NCDterm client will do
when closing the serial port. Also specifies
what the serial daemon will do to
signal the end of a network connection.
258
259
AFP
AS/400
BookMaster
eNetwork
IMS
InfoPrint
IP PrintWay
MVS
OfficeVision/400
OS/390
RS/6000
VM/ESA
400
260
Subscription
Number
SBOF-7201
SBOF-7370
SBOF-7240
SBOF-6899
SBOF-6898
SBOF-7270
SBOF-7230
SBOF-7205
SBOF-8700
SBOF-7290
Collection Kit
Number
SK2T-2177
SK2T-6022
SK2T-8038
SK2T-8039
SK2T-8044
SK2T-2849
SK2T-8040
SK2T-8041
SK2T-8043
SK2T-8037
261
262
263
IBMMAIL
usib6fpl at ibmmail
caibmbkz at ibmmail
dkibmbsh at ibmmail
Internet
usib6fpl@ibmmail.com
lmannix@vnet.ibm.com
bookshop@dk.ibm.com
Telephone orders
United States (toll free)
Canada (toll free)
1-800-879-2755
1-800-IBM-4YOU
IBM Publications
144-4th Avenue, S.W.
Calgary, Alberta T2P 3N5
Canada
1-800-445-9269
1-403-267-4455
(+45) 48 14 2207 (long distance charge)
http://www.redbooks.ibm.com/
http://www.elink.ibmlink.ibm.com/pbl/pbl
Internet Listserver
With an Internet e-mail address, anyone can subscribe to an IBM Announcement Listserver. To initiate the
service, send an e-mail note to announce@webster.ibmlink.ibm.com with the keyword subscribe in the body of the
note (leave the subject line blank).
Redpieces
For information so current it is still in the process of being written, look at "Redpieces" on the Redbooks Web Site
(http://www.redbooks.ibm.com/redpieces.html). Redpieces are redbooks in progress; not all redbooks become
redpieces, and sometimes just a few chapters will be published this way. The intent is to get the information out
much quicker than the formal publishing process allows.
264
First name
Order Number
Quantity
Last name
Company
Address
City
Postal code
Country
Telephone number
Telefax number
VAT number
Card issued to
Signature
We accept American Express, Diners, Eurocard, Master Card, and Visa. Payment by credit card not
available in all countries. Signature mandatory for credit card payment.
265
266
Index
Numerics
3270
3270
3270
3270
5250
5250
emulator
emulator
emulator
emulator
emulator
emulator
28
- LU1/LU3 29
- print screen 29
- printing from 122
28
- printing from 122
A
access control 36, 52, 188
access control - LPD daemon 190
access control - SERIALD 188
Add Printer Wizard 72
adding a printer 53
AIX 155
NT 139
OS/400 146
Advanced Function Presentation Data Stream 14
AFP 14
AFPDS 14
AIX - printing from 59
AIX - printing to 151
Alt+Shift+Home - console key sequence 182
APIs 221
application default printer 35
AS/400 - printing from 98
AS/400 message log 180
ASCII 13
ASCII Options 227
assign printer to port - NT 213
Auto CR after LF 115
client/LPT1 90
command mode - parallel daemon 191
components - network station printing 82
configd.doc file 237
configuration parameters 182, 237
configuration requirements - printing 83
configuring
LPD 51
LPD passthrough - NT 202
LPR 50
network station 91
parallel port 191
printing 47
serial port 56, 192
the printer List 53
user 87
WinStation 84
connection table 193
console 182
console - Network Station 181
control commands
AIX 213
OS/2 212
Windows NT 201
control file 17
name 194
options 194
sample 197
converting data stream 150
Create Output Queue 99
creating - printer 89
CRLF 115
CRTDEVPRT 104
CRTOUTQ 99
B
banner page 195
baud rate - serial port 193
bibliography 261
boot monitor 182
Browser 126
buffer size - LPD and LPRD 184
bypass print buffer 42, 184
C
cacher size - LPD and LPRD 184
carriage return, line feed 115
CFGTCP 145
class 194
client devices 87, 89
client/COM1 90
D
data bits - serial port 193
data stream 12, 29
data stream conversion 150
data type - RAW, TEXT 202
DBCS 225
conversion 226
converter 29
font encoding 227
type 226
default control command flag 202
deleting printers 56
Device Description (AS/400) 98
Document Properties - NT 212
drivers 14
267
98
E
EBCDIC 14
emulator - printing from 122
emulator print dialog 33
enable access control parameter 184
eSuite 136
Event Viewer - Windows NT 181
F
file - printing to 218
Form Feed 124
formatted print request
196
G
greyscale
128
H
handshake - serial port 193
hex mode - printer 179
hexadecimal output 179
Host Print Transform 101, 177
I
IBM Network Station Browser 129
image configuration 150
image conversion 150
image print transform 177
inherit user configuration 87
Intelligent Printer Data Stream 14
IP address of Network Station 182
IPDS 14
J
Java application - Print dialog
Java applications 130
JetDirect 65
job name 195
joblog - AS/400 180
33
L
Line Printer Daemon 16
Line Printer Requester 16
literal print request 196
LOAD FORMS 218
LOAD LETTER 218
local application - printing from
268
M
MAC address of Network Station 182
Manage Print Server - AIX 151
Manufacturer Type and Model 102
maximum LPD buffer size 51
maximum LPR buffer size 50
message log
AS/400 180
Network Station 181
Windows NT 181
messages - accessing remotely 181
121
82
NSK6501 message
NSK8001 message
NSM 47
114
114
O
OS/2 - printing to 159
OS/400 - printing to 144
Output Queue (AS/400) 98
P
paper sizes 218
paralled 43
parallel daemons table 91, 191
parallel port configuration 191
parallel protocol 92, 191
parallel-daemons-table 192
PARALLEL1 41
PARALLELD 43
passthrough 202
passthru mode - parallel port 191
Pause - console key sequence 182
PCL 13
Personal Printer Data Stream 13
ping utility 180
port
2501 147
515 16
5964 44, 82, 191, 192
5998 181
6461 44, 192
6464 44, 192
87 44, 192
9100 66
serial - configuration 192
PostScript 14
PPDS 13
print access control list 184
Print Client (LPR) 50
print configuration section 183
print dialog 28, 32
print dialog - emulator 33
print dialog - NC Navigator 33
Print Manager 91
print screen 122
Print Server Status - AIX 151
Print Spooling - AIX 151
print-access-control-enabled 190
print-access-control-list 190
print-lpr-servers parameter 185
printer
access control 36, 188
default 35
definition 89
drivers 14
printer (continued)
list 35
pooling example - NT 214
queues - NT 213
selection 32
table 35, 185
Printer Control Language 13
Printer Selector 28, 34
Printer Selector GUI 32
printing from
3270 122
5250 122
AIX 59
AS/400 98
browser 126
emulator 122
eSuite 136
host 57
IBM Network Station 137
Java applications 130
local application 121
NC Navigator 126
Network Station Browser 129
OS/2 119
OS/390 117
RS/6000 59
VM 113
VTxxx 233
WinCenter 80
Windows NT 72
printing to
AIX 151
file 218
IBM Network Station 57
OS/2 159
OS/400 144
S/390 159
Windows NT 138
Q
queue names
queues 9
41
R
RAW data type 202
Registry Editor - Windows NT 203
release 182
Release 1 23
Release 2 25
Release 3 28
remote IP address 193
Remote Output Queue (AS/400) 98
remote port 193
Index
269
T
TCP/IP Print Server - NT
TELNET 181
test page 78
TEXT data type 202
270
138
U
use parallel protocol 92, 191
use serial protocol 92, 192
user configuration 87
user identification 195
user properties 88
version 182
VM - printing from 113
VTxxx 233
VTxxx emulator 29
W
waiting message 219
waiting message - printer 124
Web Browser 47
WinCenter - printing from 80
Windows NT
printing from 72
printing to 138
test page 78
WinStation configuration 84
WinStation printer 84
226
IBM employee
Please rate your overall satisfaction with this book using the scale:
(1 = very good, 2 = good, 3 = average, 4 = poor, 5 = very poor)
Overall Satisfaction
____________
Yes____ No____
Comments/Suggestions:
( THANK YOU FOR YOUR FEEDBACK! )
_____________________________________________________________________________________________________
_____________________________________________________________________________________________________
_____________________________________________________________________________________________________
_____________________________________________________________________________________________________
_____________________________________________________________________________________________________
271
SG24-5212-00
SG24-5212-00
Printed in the U.S.A.