The 7318 listens for and carries out printer requests using its reverse telnet service, known internally as telnetd daemon. Setting up a printing device on a 7318 serial or parallel port or through a serial-attached terminal involves configuring an appropriate service on the 7318.
Note: When attaching a printer to the Model S20, configure the port as a P10-style port. Refer to "Adding a P10-Style Port" for a detailed procedure. The P10-style port takes advantage of the AIX spooler. Reverse telnet service can be used for printing but has limited functionality and is not recommended for AIX.
The [Telnetd] section lists how many additional Telnetd sections of the form [TelnetdNN] are found in the configuration.
ntelnetds=NN | Number of [TelnetdNN] sections follow. |
The [TelnetdNN] section lists an association between the telnetd process and logical devices. Such associations are made only after a connection has been made to a particular telnetd port. Based on the ntelnetds entry in the [Telnetd] section, the configuration is expecting sections [Telnetd00] through [Telnetd(NN-1)].
Refer to the Legal Device Types table for more information on devices and sessions.
port=Integer | Defines a 7318 serial or parallel port to which telnetd will attach when a connection is made. |
tcpPort=N | Defines the TCP port where N is a decimal number. |
Following is an example configuring both a parallel and a serial printer:
[Telnetd] ntelnetds=2 ;Parallel Printer [Telnetd00] device=LPT port=1 tcpPort=5101 ;Serial Printer [Telnetd01] device=LDTCOM port=3 tcpPort=5103
Note: When you enable the reverse telnet service on a port, you must disable other sessions such as the command shell for that port. Edit the configuration file and change the application entry for all numbered session sections for the port you plan to use to the value reserved .
One possible configuration assigns TCP ports in the range 5101 through 5116 for serial COM ports 0 through 15. Use TCP ports 5201 and 5202 for the two parallel ports. Use TCP ports 5301 through 5316 for terminal-attached printers on serial ports 0 through 15. These numbers are arbitrary and suggested for mnemonic convenience.
To enable the reverse telnet service on a serial port:
device=COM port=n tcpPort=mwhere n is the number of the port and m is the value of the TCP port you have selected.
[Session08] device=LDTCOM port=2 session=0 application=reserved stty=opost onlcr tab3
Using Dial-Out Modems and Reverse Telnet.