From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110529.tru64-unix-managers.marc@archive.invalid> From: "Nagaraja, Raja" Date: Tue, 23 Sep 1997 00:10:14 +0000 To: tru64-unix-managers Subject: SUMMARY: Printing more than 132 Characters X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110529 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------ =_NextPart_000_01BCC808.E3685390 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thanks to the following for their reply: Bernt Christandl beb@mpe.mpg.de Stephen Carpenter sac@uvo.dec.com Alex George george@dwsd.org I used Telnet Printing as suggested by Stephen Carpenter, his message follows: Raja, There are two types of IP printing. One is Remote Printing which you are using with you current printcap and the other is Telnet Printing which will use print filters. Digital UNIX V4.0A was the first version to support Telnet Printing as engineering finally incorporated my Telnet enhancements to lpd. Attached is the Release Notes info from V4.0A on how to setup Telnet printing. Stephen. -- _______________________________________________________________ // \\ // "One inode short of a file system" \\ // \\ \\ UNIX Ambassador sac@uvo.dec.com // \\ Digital Equipment Co. Ltd // \\_______________________________________________________________// Now I can print the report with more than 132 characters to a TCP/IP Printer. Thanks Raja B.S. (Raja) Nagaraja Systems Support Specialist Systems Management Section Business Systems Division ACTEW Corporation GPO BOX 366 CANBERRA, ACT 2601 AUSTRALIA Phone: 612 6270 7443 Fax: 612 6270 7445 E-mail: Raja.Nagaraja@actew.com.au ------ =_NextPart_000_01BCC808.E3685390 Content-Type: text/plain; name="telnet.txt" Content-Transfer-Encoding: 7bit 2.2.2.8 TCP/IP (telnet) Printing Added TCP/IP printing, also called telnet printing, is a new feature in the print daemon for Version 4.0A. It allows a user to submit print jobs to a remote printer that is directly connected to the network. Note that to use this feature, your printer must contain a TCP/IP interface card and must be registered with a TCP/IP node name and node address. With TCP/IP printing, the local host manages print jobs in the same manner as it would manage print jobs for a local printer. The only difference is that with TCP/IP printing, the local print daemon (lpd) communicates with the remote printer over TCP/IP (similar to LAT printing). Each printer listens for connection requests on a socket number that is specified in the printer hardware or that is user- defined through the printer console. Although multiple hosts can talk to a single printer connected to the network in this way, the hosts are handled on a first-come, first-served basis. Therefore, TCP/IP printing is not the same as remote printing, in which the remote printer manages a print queue on the remote site and listens for network connections on socket 515 (as specified in the entry for printer in /etc/services). 2.2.2.8.1 Setting up TCP/IP Printing - The following steps describe how to set up TCP/IP printing on a local host. 1. Set up the printer. Assign a TCP/IP address and node name to each printer with a network card. Also, determine the TCP/IP socket number on which the printer will listen for connection requests. You will need the socket number in Step 2b when you edit the /etc/services file. Table 2-1 lists the socket numbers for three printers made by Digital and one made by Hewlett Packard. Table 2-1: TCP/IP Socket Numbers ____________________________________ Printer Socket Number ____________________________________ DEClaser 3500 (LN14) 10001 DEClaser 5100 (LN09) 10001 HP Laserjet 4m+ 9100 LN17 2501 ____________________________________ To obtain the socket number for other printers, see your printer documentation. Some printers may allow you to specify this number yourself. 2. Configure the local host This step describes the utilities that you need to run and the files that you need to modify on the local host in order to configure TCP/IP printing. You must have superuser privileges to perform the following tasks: a. Configure the printer using lprsetup Execute the /usr/bin/lprsetup command and answer the questions to create an entry in the /etc/printcap file for your printer. When it prompts you to enter values for printcap control variables, assign the following values to the ct and lp variables: ct=tcp lp=@nodename/servicename Replace nodename with the name of the printer's node as registered for use on your network and replace servicename with the name you will choose to enter in the /etc/services database in the next step. If you want to modify an existing /etc/printcap printer entry to use TCP/IP printing, edit the /etc/printcap file using a text editor, such as vi, and modify the values for the ct and lp variables. You can also remove the values for the xs, xc, fs, and fc control variables which establish settings that are relevant to the serial port driver. These are ignored by the network socket driver. b. Configure the services database. You must register a service name and tcp port number (socket number) in the /etc/services database file. Enter the socket number that you determined when you configured the printer in step 1 and associate it with a service name of your choice. For example, to configure the services database for a DEClaser 3500, you would add the following line to the /etc/services file: declaser3500 10001/tcp Note that the user-defined declaser3500 string represents the service; it is the same string that you would have entered as the servicename in the /etc/printcap file in step 2a. After saving the changes to the /etc/services file, restart the inetd daemon to reload the /etc/services file with the printer information you just added. To do this, type the following command: # rcinet restart This stops and restarts the Internet network services on your system. c. Configure the remote hosts database The nodename value that you specified as part of the lp variable value in the /etc/printcap file must be known by your local host's network management services; therefore, you must enter the nodename and its network address in the /etc/hosts database file. If you are running a BIND server for remote host names, you do not necessarily need to add the printer's node name to the /etc/hosts file, though if there is ever a problem with the BIND server, an entry in /etc/hosts would be a useful fallback. 2.2.2.8.2 Using TCP/IP Printing - Once configured, TCP/IP printing is used like local and remote printing. From the command line, execute the lpr command specifying the node name of the printer, command options, and file names. 2.2.2.8.3 Known Restrictions on the Use of TCP/IP Printing - TCP/IP printing works when printing within a local subnet; however, printing in complex networks across one or more routers may cause reliability problems. In addition, printing non-PostScript files with some PostScript and non-PostScript filters may yield unexpected results. Table 2-2 lists the filters with which you could experience these problems. Table 2-2: Non-PostScript and PostScript Filters ____________________________ Filter Name Filter Type ____________________________ lpf Non-PostScript la75of Non-PostScript la324of Non-PostScript lqf Non-PostScript hplaserof PostScript ____________________________ To provide expected behavior with older printers, these non-PostScript filters maintain a dependence on the serial port driver to automatically supply carriage returns after line feeds when you specify the (octal) 020 bit to the fs control variable in the /etc/printcap file. Because this control bit is not interpreted by the network socket driver, the formatting behavior that would be supplied by the serial port driver is absent. Therefore, non-PostScript files that are not preformatted for the printer may not print out as they would in serial-port-connected configurations. In particular, this may affect ASCII text files that do not contain embedded carriage-returns. Most printers using the lpf, la75of, la324of, and lqf non-PostScript filters do not provide network interface card support. However, the printing problems may still be an issue for users who use serial-and-parallel-port to network-port converters, like the Digital RapidPrint network interface box, which allow these printers to act like TCP/IP printers with built-in network support. The hplaser4psof PostScript filter works for PostScript files and for preformatted non-Postscript files (like PCL files), but it will likely produce unexpected results for files that have not been preformatted (such as ASCII text without embedded carriage-returns). ------ =_NextPart_000_01BCC808.E3685390--