1828723 Members
2514 Online
109984 Solutions
New Discussion

Monitoring Print Queues

 
TheJuiceman
Super Advisor

Monitoring Print Queues

Hi everyone,

Has anyone written a script that they are willing to share? I would like to track printer usage to any given printer by user, total entries, number of pages printed (or byte count), and usage by time of day (to create a trending graph). Is any of this possible on 11.11? Thanks.
Bobby
2 REPLIES 2
Steve Steel
Honored Contributor

Re: Monitoring Print Queues

Hi


Start the spooler with lpsched -a and then look at man of lpana

lpana
performance analysis is done from Nov.19 '04 11:01 through Nov.19 '04 11:01
---printers ----wait---- ---print--- ---bytes--- -sum- num_of
/classes-- AV SD AV SD AV SD KB requests
bprn20_1 0'00 0 0'03 0 2 0 0 1


That is a lot of info but there is no way to get all you want


If network printer hpnpadmin can also help

hpnpadmin -O bprn20
Uptime : 43 days, 22:19:48
Time Since Reconfig : 43 days, 22:19:08
Reconfig By : not specified
Connections Accepted: 2767
Connections Denied : 0 (not on access list)
Connections Aborted : 9
Last Host : broprn-n2.bro.cpqcorp.net (16.183.16.49)
Last Host TCP Port: 2139
Reason : foreign side aborted
Time Since Abort : 43 days, 22:19:48
Connections Killed : 0
Bytes Received : 0 (current connection)
Bytes Sent : 0 (current connection)
Total Bytes Received: 1750457199 (since power-on or reconfig)
Total Bytes Sent : 343417 (since power-on or reconfig)

www.shelldorado.com may help you find the script you need


Steve Steel

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

Re: Monitoring Print Queues

Hi


You really should log calls only once .


What you could do is

In the scripts for each printer you will find

job=$1
user=$2
title=$3
copy=$4
options=$5
shift; shift; shift; shift; shift
files="$*"


Here you could add lines to write the data you need to a file

Or use logger to add the data you want to
the syslog


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