Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Printer Queue Page Counting

 
Highlighted
New Member

Printer Queue Page Counting

I'm new to VMS Admin and need to get an accurate count of pages printed through a specific print queue. Tried using accounting but single page jobs are not being counted as a page - would anyone have a script or any advice on how best to get the correct count.
Working in OpenVMS V7.3
Thanks in advance for any assistance.
12 REPLIES 12
Highlighted
Valued Contributor

Re: Printer Queue Page Counting

Nitram

Can you specify the ACCOUNT command that you are using, and the result of:

$SHOW ACCOUNT

Craig
Highlighted
New Member

Re: Printer Queue Page Counting

Command is:
acc /que=pq_et_cast_4h1/summary=user/report=(pages,records)

Show account
Accounting is currently enabled to log the following activities:

PROCESS any process termination
INTERACTIVE interactive job termination
LOGIN_FAILURE login failures
SUBPROCESS subprocess termination
DETACHED detached job termination
BATCH batch job termination
NETWORK network job termination
PRINT all print jobs
MESSAGE user messages
Highlighted
Valued Contributor

Re: Printer Queue Page Counting

Are you running a cluster?

Are you pointing to the correct ACCOUNTING file?

If the print execution queue is on NODEA but you are on NODEB then you need to ensure that you access NODEA's ACCOUNTING file (unless you are sharing).

What is the output from $ SHOW LOG ACCOUNTNG

This command works for me:

$ acc/type=print/since/report=(pages)/summ=(user,queue)
Highlighted
New Member

Re: Printer Queue Page Counting

Not running a cluster in this case, yes I believe I have the correct accounting file, the queue and accounting file are on the same server.
Show log accounting returns: no translation for logical name accounting

Your command works but returns same erroneous information for queue I'm looking at - it just includes every other print queue also.

The command I use:
acc /que=myprintque/summary=user/report=(pages,records)
returns:
Username Pages Total
Printed Records
-------------------------------
USER7_DEV 8 7
USER5_DEV 0 6
USER5_TST 4 6

I have tested this out and found that a single page job increases the Record total - but will not add to the page count. Thus in the example above USER5_DEV has actually printed 6 pages. If all jobs were only one page I could use the record count but as in the case of USER5_TST 2 jobs were two pages and the other four were singles so total pages should be 8.
Highlighted
Honored Contributor

Re: Printer Queue Page Counting

nitram,

welcome to the OpenVMS ITRC forum.

The Pages printed in the accounting file is only an attempt to report what the print-symbiont may guess as the number of real pages sent to the printer.

This may also depend on the print-symbiont used. If you check with SHOW QUE/FULL myprintque - what is reported as /PROCESSOR=xxx

Volker.
Highlighted
New Member

Re: Printer Queue Page Counting

$ sho que PQ_ET_CAST_4H1 /full
Printer queue PQ_ET_CAST_4H1, idle, on E2ADVS::"TCPIP$QUEUE:PS_CAST_H",
mounted form LANDSCAPE_WIDE (stock=DEFAULT)

/BASE_PRIORITY=4 /DEFAULT=(FEED,FORM=PORTRAIT_NORMAL (stock=DEFAULT))
/LIBRARY=HPVMS_DEVCTL Lowercase /OWNER=[SYSTEM] /PROCESSOR=TCPIP$TELNETSYM
/PROTECTION=(S:M,O:D,G:R,W:S) /SCHEDULE=(NOSIZE)
/SEPARATE=(RESET=(HP_NOBLANK))
$ sho que /full PS_CAST_H
Server queue PS_CAST_H, idle, on E2ADVS::, mounted form DEFAULT

/BASE_PRIORITY=4 /DEFAULT=(FORM=DEFAULT) /LIBRARY=HPVMS_DEVCTL Lowercase
/OWNER=[SYSTEM] /PROCESSOR=TCPIP$LPD_SMB /PROTECTION=(S:M,O:D,G:R,W:S)
/RETAIN=ERROR /SCHEDULE=(NOSIZE) /SEPARATE=(RESET=(RESET))
Highlighted
Trusted Contributor

Re: Printer Queue Page Counting

The print pipeline makes getting an accurate page count out of postscript printers is problematic. DCPS adds postscript to the job to query the printer for starting ending page counts, but the postscript processor doesn't includes page images internally queued to the print engine. I've seen the count be off by as much as 6 pages. What we resorted to was making a custom gateway daemon that transparently relays data to/from the printer but stalls at the end-of-job until the page count returned stabalizes. If users typically queue several jobs at once, it can slow the time to completion considerably.
I'm looking for marbles all day long.
Highlighted
New Member

Re: Printer Queue Page Counting

Typically there are around 290 - 300 jobs sent to this printer in 48 hours. Other than the single page mis-count the total appears to be correct, based on actually monitoring the printed pages. Since I know the accounting file has the correct number of records and records with zero pages should be one - how could I extract this from the accounting file and add a page for each zero page record?
Highlighted
Trusted Contributor

Re: Printer Queue Page Counting


Check out HELP ACCOUNTING /BINARY. Then check $ACCDEF in SYS$LIBRARY:STARLET.MLB / FORSYSDEF.TLB / SYS$STARLET_C.TLB / etc. I see an ACC$L_PAGCNT in there. You will have to write some code.

There is probably some documentation that describes all this, but I am too lazy to keep looking until I find it.