- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Printer Queue Page Counting
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
тАО02-11-2009 05:21 AM
тАО02-11-2009 05:21 AM
Printer Queue Page Counting
Working in OpenVMS V7.3
Thanks in advance for any assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 05:43 AM
тАО02-11-2009 05:43 AM
Re: Printer Queue Page Counting
Can you specify the ACCOUNT command that you are using, and the result of:
$SHOW ACCOUNT
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 06:04 AM
тАО02-11-2009 06:04 AM
Re: Printer Queue Page Counting
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 06:15 AM
тАО02-11-2009 06:15 AM
Re: Printer Queue Page Counting
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 07:08 AM
тАО02-11-2009 07:08 AM
Re: Printer Queue Page Counting
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 07:22 AM
тАО02-11-2009 07:22 AM
Re: Printer Queue Page Counting
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 07:28 AM
тАО02-11-2009 07:28 AM
Re: Printer Queue Page Counting
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))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 07:58 AM
тАО02-11-2009 07:58 AM
Re: Printer Queue Page Counting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 10:46 AM
тАО02-11-2009 10:46 AM
Re: Printer Queue Page Counting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 02:06 PM
тАО02-11-2009 02:06 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 02:27 PM
тАО02-11-2009 02:27 PM
Re: Printer Queue Page Counting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 06:24 AM
тАО02-12-2009 06:24 AM
Re: Printer Queue Page Counting
So what you really want is the number of pages _interpreted_ by the PostScript interpreter at both the beginning and end of the job. Subtracting those two numbers, as DCPS does, results in the correct answer.
The way many printers (including HP printers) do it is give you the number of pages physically printed during the interpretation of your job. That number is not interesting and not correct.
Standard OpenVMS symbionts such as PRTSMB or LATSYM, having no knowledge of PostScript, attempt a page count by counting form feeds or by counting lines. Since there are no form feeds in PostScript files, and the number of lines of PostScript code has nothing to do with how many pages print, this number is a big approximation.
I can't speak for the TCP/IP Services LPD or Telnet symbionts, but they have no knowledge of PostScript either, so the only accurate page counts they provide would be for text files.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 05:15 PM
тАО02-12-2009 05:15 PM
Re: Printer Queue Page Counting
From a "cost" point of view, printing an 8 page document with the following commands will use varying amounts of sides imaged "clicks" and sheets of paper.
$ print /que=dcps1 /param=(number_up=4,sides=2) doc.txt ! uses 2 imaging clicks and 1 sheet of paper
$ print /que=dcps1 /param=(number_up=4,sides=1) doc.txt ! uses 2 imaging clicks and 2 sheets of paper
$ print /que=dcps1 /param=(number_up=2,sides=2) doc.txt ! uses 4 imaging clicks and 2 sheets of paper
$ print /que=dcps1 /param=(number_up=1,sides=2) doc.txt ! uses 8 imaging clicks and 4 sheets of paper
$ print /que=dcps1 /param=(number_up=1,sizes=1) doc.txt ! uses 8 imaging clicks and 8 sheets of paper
Since accounting has only one field for "pages printed", your description implies that all the above print commands will report 8 pages printed.
DCPS could "compute" the sides imaged or sheets used based on the pages interpreted.
Does DCPS allow you to set a definition of pages printed to one of (pages,clicks,sheets)?
It would also be possible for the DCPS symbiont to use the GETs from source (ACR$L_GETCNT) and QIOs to printer (ACR$L_QIOCNT) fields for clicks and sheets based on DCPS settings. Some customers may find sides imaged and sheets used more valuable than the number of GETs and number of QIOs. This would be done using the accounting parameter to the SMB$SEND_TO_JOBCTL routine when sending the SMBMSG$K_TASK_COMPLETE message.
Jon