问题:Tru64 Unix TCP-IP Network Printing using socket connection

分类标签:打印机软件程序

Product: P7000, SL/T5000, SL/T4M with PrintNet

Symptom: Tru64 Unix TCP/IP Network Printing using socket connection

问题解答

The PrintNet adapter uses port 9100. It requires Tru64 UNIX V4.0a or later. Example printcap file:

lp|lp0|0:\

:ct=tcp:\
:af=/usr/adm/lpacct:\
:if=/usr/lbin/printfilter:\
:lf=/usr/adm/lp0err:\
:lp=@printer_ip_name/port_9100:\
:mx#0:\
:of=/usr/lbin/printfilter:\
:pl#66:\
:pw#80:\
:rw:\
:sd=/usr/spool/lpd0:\
:xf=/usr/lbin/xf:\

Replace /usr/lbin/printfilter with the appropriate print filter. Compaq recommends the Generic filter.

The printer_ip_name is the printer name in the etc/hosts file or the IP address of the printer.

The /etc/services file must be updated to include the printer port/socket number. In this example the printer uses port 9100 so the following /etc/services entry was added:

port_9100 9100/tcp

Important: The name port_9100 is user definable. If a 9100/tcp entry exists, use the name previously defined. Don’t create a second entry. The port number is printer specific.

下一级问题分类