HP X.25/9000 User's Guide HP-UX 11i v3 (5900-1523, August 2011)

which is profile 21 on HP 2335a.
On the host side, the printer name is foo. This means that when a user types lp -d foo
/tmp/file, the file /tmp/file will be printed on this printer. The X.25 interface on the host is
interface0.
Printer configuration
To configure a printer (for in the examples below) for use with the standard UNIX LP spooler system
and x29printd, follow these steps:
1. Edit the /etc/x25/x29hosts file to include:
printer {
device x29printer1
name interface0
remote_x121 408555120305
x3 default_printer
logging 3
}
x29printd uses /etc/x25/x29hosts to configure remote PAD printers.
2. Execute /usr/sbin/x29printd with the -l3 option.
After /usr/sbin/x29printd starts, it creates a device file named /dev/x29/
x29printer1. You can verify that this device file exists with the command: ll /dev/x29.
x29printd creates the device file by linking it to a slave PTY. This master/slave PTY pair is
the interface for lpsched and x29printd (see the pty((7)) man pages for information about
UNIX PTYs). The device file for printer foo will be written to /dev/x29/x29printer1.
3. Configure the printer in the spooler system with the following commands:
lpshut
lpadmin -v/dev/x29/x29printer1 -pfoo -mruggedwriter
lpsched
accept foo
enable foo
lpshut(1M) is necessary since lpadmin will not execute when lpsched is running. You
must restart LP scheduler after lpadmin. lpsched(1M) schedules requests taken by lp(1)
for line printing. After a printer is configured in the spooler, you must enable it to accept
printing requests.
Verifying the configuration
After you complete the steps above, check the configuration as shown below:
lpstat -t should display the following (assuming that only this printer is configured in the
spooler system and you did these steps on January 23, 11:00 am):
scheduler is running
no system default destination
device for foo: /dev/x29/x29printer1
foo accepting requests since Jan 23 11:00
printer foo is idle. enabled since Jan 23 11:00
fence priority : 0
ps -ef should show that both lpsched and x29printd are running.
/var/x25/log/x29printd/x29printd.log should have been created and should
contain information on the configuration of /dev/x29/x29printer1.
/var/x25/log/x29printd/x29printd.log should not contain any configuration error
messages.
102 PAD services