Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 474

Table of Contents

Advertisement

Checking a Remote lpd
Use the following command to test if a TCP connection can be established to lpd
(port 515) on host:
netcat -z host 515 && echo ok || echo failed
If the connection to lpd cannot be established, lpd may not be active or there
may be basic network problems.
As the user root, use the following command to query a (possibly very long)
status report for queue on remote host, provided the respective lpd is active
and the host accepts queries:
echo -e "\004queue" \
| netcat -w 2 -p 722 host 515
If lpd does not respond, it may not be active or there may be basic network prob-
lems. If lpd responds, the response should show why printing is not possible on
the queue on host. If you receive a response like that in
Message from lpd"
Example 20.2 Error Message from lpd
lpd: your host does not have line printer access
lpd: queue does not exist
printer: spooling disabled
printer: printing disabled
Checking a Remote cupsd
By default, the CUPS network server should broadcast its queues every 30 seconds
on UDP port 631. Accordingly, the following command can be used to test whether
there is a CUPS network server in the network.
netcat -u -l -p 631 & PID=$! ; sleep 40 ; kill $PID
If a broadcasting CUPS network server exists, the output appears as shown in
ample 20.3, "Broadcast from the CUPS Network Server"
Example 20.3 Broadcast from the CUPS Network Server
ipp://192.168.2.202:631/printers/queue
The following command can be used to test if a TCP connection can be established
to cupsd (port 631) on host:
netcat -z host 631 && echo ok || echo failed
458
Deployment Guide
(page 458), the problem is caused by the remote lpd.
Example 20.2, "Error
Ex-
(page 458).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents