Operating System - HP-UX
1851053 Members
2523 Online
104056 Solutions
New Discussion

Re: Print spooling hostname source location

 
SOLVED
Go to solution
jerry1
Super Advisor

Print spooling hostname source location

Does anyone know where or how to look for
what system is printing to the spooler?

The log /var/spool/lp/log shows the jobs/users/times but not where it originated from. I can however see the originating system
if it is in the queue while doing an lpstat -o
but otherwise there is no log of the originating source node name.

4 REPLIES 4
Steve Steel
Honored Contributor

Re: Print spooling hostname source location

Hi

Printer scripts in /etc/lp/interface are ascii

If you want this then extract the data from a script and use logger to write it to the syslog or write yourself to another log


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Sundar_7
Honored Contributor
Solution

Re: Print spooling hostname source location

Hi,

rlpdaemon is responsible for processing remote printing requests from the remote systems.

Enable logging for rlpdaemon in /etc/inetd.conf

# vi /etc/inetd.conf
printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -il
#

# ineted -c

Now the remote printing request information will be logged to /var/adm/lp/lpd.log

-- Sundar.
Learn What to do ,How to do and more importantly When to do ?
jerry1
Super Advisor

Re: Print spooling hostname source location

How does that give me the originating system
hostname that is sending the spool job to the current spooler?

SystemA lpd sends to SystemB spooler which
may send to SystemC spooler then to printer.

How do you get either SystemA hostname or
SystemB hostname origination?



jerry1
Super Advisor

Re: Print spooling hostname source location

Steve that is, not Sundar.