On 08-Sep-2016 15:27 -0600, Scott Coffey wrote:
> I have one printer at a remote location configured as a remote OUTQ
> device.
Remote Printer Queue (RMTPRTQ) parameter of the Create Output Queue
(CRTOUTQ) allows for an operating-system-dependent name that "can be
*either* the actual name of the device or the name of a printer queue.";
that quote from the help text for that command parameter.
Apparently however, with more recent versions of Windows, that
reference in the help has become somewhat outdated; i.e. should since,
probably imply something about a "Printer Share Name (case sensitive)"
and that "the Windows print queue must be shared" -- see doc links at
end of this post.
> I've opened up port 515 in the remote location and the printer works
> just fine.
The port 515 is the /well-known port/ for the Line Print Daemon (LPD)
feature that would run on the remote server\system.
So from the above quoted text, seems that spooling to the Output
Queue (OUTQ) from the IBM i effects an LPR that is being properly
received via LPD at the remote system; apparently using\listening-on the
port=515 at the remote system, and received\processed at the unstated
RMTPRTQ() by whatever is the [unstated] active LPD feature.
> Now I want to add a 2nd printer. How do I do that? The firewall will
> only allow me to associate port 515 to a single device (which makes
> sense).
I am no expert, but AIUI, an LP Daemon typically would allow for many
incoming TCP/IP Line Printer Requester (LPR) connections. FWiW: Seems
that a firewall allowing for the LPD to accept LPR spooling to just one
specific printer device, seems contrary to the general purpose of the
LPD service with the well-known port.?
> Is there something I can configure on the '400 side to make it use a
> different port?
With RmtOutQ support, not that I am aware of. If there were, then I
would expect there would be a PORT parameter on the Send TCP/IP Spooled
File (SNDTCPSPLF) [aka LPR] command [and on the CRTOUTQ command; there
is no such parameter name to be found on either].
Perhaps naming a /printer queue/ instead of a /device/ for the
RMTPRTQ parameter of the CRTOUTQ would be of help; though see my prior
mention of share-name on newer Win.?
Otherwise, a change to use Remote Printer Device capability via
Create Device Description For Printer (CRTDEVPRT) may be a better
option? AIUI there are fewer restrictions with that feature, than for
the use of Remote Output Queue (RMTOUTQ) capabilities via LPR. Yet,
although with specification of a Device class (DEVCLS) of *LAN, along
with LAN Attachment (LANATTACH) of *IP, plus the Remote Location Name
(RMTLOCNAME) specification of the remote system name or IP address, the
CRTDEVPRT command offers a Port Number (PORT) parameter, I understood
this feature *also* to be dependent upon the LPD feature; i.e. for which
the common\well-known port is 515, so I am unsure that this alternative
even could be fully helpful -- probably that might be a restriction only
for the use of the TSPLPRD LPR Print Driver Exit Program, per the use of
the User-Defined Driver Program (USRDRVPGM), whereas with a more typical
usage specifying a System Driver Program (SYSDRVPGM) for the standard
PJL, SNMP, and IPP for which the former might have hardware-specific
port preferences, the latter [Internet Printing Protocol (IPP)] has a
well-known port of 631.? Anyhow, some of the following links might be
of interest.?:
Configuring a Remote Output Queue (RMTOUTQ) to a Windows Print Queue
Technote Reference #: N1018931
[
http://www.ibm.com/support/docview.wss?uid=nas8N1018931]
Recommended Remote Printer Queue (RMTPRTQ) Values for Remote Output
Queues (RMTOUTQs)
Technote: Reference #: N1010172
[
http://www.ibm.com/support/docview.wss?uid=nas8N1010172]
Capabilities and Limitations of *LAN 3812 Printer Device Descriptions
Technote: Reference #: N1019003 Historical Number 412453666
[
http://www.ibm.com/support/docview.wss?uid=nas8N1019003]
Configuring a *LAN 3812 Device Description that Uses the LPR Print
Driver (TSPLPRD) Exit Program
Technote: Reference #: N1019586 Historical Number 18762910
[
http://www.ibm.com/support/docview.wss?uid=nas8N1019586]
--
Regards, Chuck