From Wiki-UX.info

Wiki-UX / LP Spooler / How to configure remote printing to a different tcp port
Jump to: navigation, search

How to configure remote printing to a different tcp port

Abstract

This article explains how to configure HP-UX remote printing to use a different TCP port. The default port use by HPUX spooler when printing to network printers is 515.

# grep spooler /etc/services
printer      515/tcp  spooler        # remote print spooling

Contents


Procedure

This procedure set a different remote printing tcp port. In this example tcp port 9100 will be use.

1. Edit the /etc/services printer service line and modify it to reflect the new tcp port.

From:

printer      515/tcp  spooler        # remote print spooling

To:

printer      9100/tcp  spooler        # remote print spooling


2. Re-read the inetd daemon configuration.

# inetd -c

3. Edit the configuration script for the printer /etc/lp/interface/<printer_name>. Search the xPORT= variable and set it to require tcp port.

For example:

xPORT="-p 9100"

4. Restart the spooler

# lpshut
# lpsched -v -a

Authors

This page was last modified on 19 July 2010, at 20:03. This page has been accessed 1,862 times.