- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printers queue log
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 08:51 AM
тАО04-25-2008 08:51 AM
Printers queue log
i need to verify the following
i need to know if the printers added into the system (printers queue) have been used, i mean, we have 1000 printers, but many of them are not being used, i need to know that, how can i know that? in my understanding there are logs where inidcate "printer_name was used or printer queue used ..." something like that, is that true? if so, where are located those logs? or , what other way can i know that?
please let me know.
Thaks in advance ... :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 08:56 AM
тАО04-25-2008 08:56 AM
Re: Printers queue log
take a look to: /var/adm/lp/log
This file is renamed to oldlog each time lpsched is started (during a manual restart or a reboot).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 09:05 AM
тАО04-25-2008 09:05 AM
Re: Printers queue log
/var/spool/lp/request
This is the place for print queues. This directory contains other subdirectories, each of which represents one print queue. The actual print requests are spooled in this directory.
Best Regards,
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 09:26 AM
тАО04-25-2008 09:26 AM
Re: Printers queue log
go in to the request directory and do:
ls -ltadr *
that will give you a list of the queues. It will be sorted in Date Ascending order (ie the one that's been unused the longest will be first). If you want it sort from most recently used to longest unused omit the "r" (reverse) in the above.
not bulletproof, but is will get you started on a list.
You can disable the queues you think are unused and remove them at a later date if no one complains
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 09:29 AM
тАО04-25-2008 09:29 AM
Re: Printers queue log
Could you please let me know the meaning of the lines into the file /var/adm/lp/log
what is the meaning of each field?
please let me know ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 09:40 AM
тАО04-25-2008 09:40 AM
Re: Printers queue log
You can look at the last access timestamp of the device scripts, too:
# ls -ult /etc/lp/interface
As for the fields of '/var/adm/lp/log' they are the printer name followed by a hyphen an the print request number; the user who requested the output; the printer name; and the date of the printer request.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 10:19 AM
тАО04-25-2008 10:19 AM
Re: Printers queue log
>>Could you please let me know the meaning of the lines into the file /var/adm/lp/log
>>what is the meaning of each field?
>>please let me know ..
It is fairly simple.
example:
NOCP2-10 root NOCP2 Oct 25 12:37
/etc/lp/interface/model.orig/NOCP2
/opt/hpnpl/bin/hpnpf -j NOCP2-10+root -x NOCP2
request ID
user
printer name
date
interface/command
Maybe an example of yours would help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 10:23 AM
тАО04-25-2008 10:23 AM
Re: Printers queue log
i mean, i have 1000 printers, 200 have different date and the other ones have only one date (that is strange for me) why could be same date for the 800 printers when many of them (i know that) are not in use?
please let me know.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 10:40 AM
тАО04-25-2008 10:40 AM
Re: Printers queue log
/usr/sbin/lpsched: FIFO: Apr 24 04:06 n
what is the meaning of "n" and "FIFO"?
/usr/sbin/lpsched: FIFO: Apr 24 04:06 r 21103 1209024382 0 328 0 0 34 unix10 KLTKKRAU KLTP2178 -
why appears two printers (KLTKKRAU KLTP2178) ?
What is the meaning of "n" after date?
usr/sbin/lpsched: FIFO: Apr 24 02:47 r 6850 1209019625 0 325 0 0 34 unix 10 KLTKKRAU KLTP2178 -
KLTP2178-325 KLTKKRAU KLTP2178 Apr 24 02:47
/etc/lp/interface/model.orig/KLTP2178
/opt/hpnpl/bin/hpnpf -j KLTP2178-325+KLTKKRAU -w -a1 -x KLTP2178.prt.europe
why does appear here several lines?
What is the meaning of "r" after date?
/usr/sbin/lpsched: CHILD: Apr 24 04:06 KLTP2178 328 0000
what is the meaning of "CHILD"? why in the other lines appear "FIFO"?
finally
why appears /usr/sbin/lpsched: in all the lines? is that the daemon?
please let me know
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 10:47 AM
тАО04-25-2008 10:47 AM
Re: Printers queue log
Is your lpsched running with -v enabled ? Might make things easier to read if you turn off the cryptic debug ( if is is on ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 11:40 AM
тАО04-25-2008 11:40 AM
Re: Printers queue log
**** Is your lpsched running with -v enabled ?
how can i know that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 11:47 AM
тАО04-25-2008 11:47 AM
Re: Printers queue log
lp 12203 12202 0 Apr 18 ? 0:00 /usr/sbin/lpsched -v -a
lp 12202 1 0 Apr 18 ? 0:34 /usr/sbin/lpsched -v -a
lp 25287 12202 0 04:21:21 ? 0:00 /usr/sbin/lpsched -v -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 12:26 PM
тАО04-25-2008 12:26 PM
Re: Printers queue log
There probably is no reason to have lpsched running with -v and -a. ( -a gathers stats, not sure who cares about printing performance stats, and is probably a huge burdon to the system with over 1000 printers ).but.. maybe those stats might lead you to what printers are being used ( ahah !!! ) man lpana for more info
edit /sbin/init.d/lp ( remove -v and -a options if defined there at the lpsched startup section)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 01:46 PM
тАО04-25-2008 01:46 PM
Re: Printers queue log
i have a question
the file /var/adm/lp/log is only for the tasks on schedule? or
is it for keeping log if someone prints in whatever moment of day?
please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2008 09:06 PM
тАО04-25-2008 09:06 PM
Re: Printers queue log
>the file /var/adm/lp/log is only for the tasks on schedule? or
>is it for keeping log if someone prints in whatever moment of day?
Yes. All requests submitted using 'lp' command are logged-in in this file.
e.g.
SRV2:var/adm/lp>cat log
***** LP LOG: Apr 23 09:52 *****
SRV2:var/adm/lp>lp -dit1 /etc/hosts
request id is it1-3429 (1 file)
SRV2:var/adm/lp>cat log
***** LP LOG: Apr 23 09:52 *****
it1-3429 root it1 Apr 26 09:02
SRV2:var/adm/lp>
kind regards
yogeeraj