<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printer Queue Page Counting in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356484#M93353</link>
    <description>nitram,&lt;BR /&gt;&lt;BR /&gt;welcome to the OpenVMS ITRC forum.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;This may also depend on the print-symbiont used. If you check with SHOW QUE/FULL myprintque - what is reported as /PROCESSOR=xxx&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
    <pubDate>Wed, 11 Feb 2009 15:22:35 GMT</pubDate>
    <dc:creator>Volker Halle</dc:creator>
    <dc:date>2009-02-11T15:22:35Z</dc:date>
    <item>
      <title>Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356479#M93348</link>
      <description>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.&lt;BR /&gt;Working in OpenVMS V7.3&lt;BR /&gt;Thanks in advance for any assistance.</description>
      <pubDate>Wed, 11 Feb 2009 13:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356479#M93348</guid>
      <dc:creator>nitram_1</dc:creator>
      <dc:date>2009-02-11T13:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356480#M93349</link>
      <description>Nitram &lt;BR /&gt;&lt;BR /&gt;Can you specify the ACCOUNT command that you are using, and the result of:&lt;BR /&gt;&lt;BR /&gt;$SHOW ACCOUNT &lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Wed, 11 Feb 2009 13:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356480#M93349</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-02-11T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356481#M93350</link>
      <description>Command is:&lt;BR /&gt;acc /que=pq_et_cast_4h1/summary=user/report=(pages,records)&lt;BR /&gt;&lt;BR /&gt;Show account&lt;BR /&gt;Accounting is currently enabled to log the following activities:&lt;BR /&gt;&lt;BR /&gt;      PROCESS        any process termination&lt;BR /&gt;      INTERACTIVE    interactive job termination&lt;BR /&gt;      LOGIN_FAILURE  login failures&lt;BR /&gt;      SUBPROCESS     subprocess termination&lt;BR /&gt;      DETACHED       detached job termination&lt;BR /&gt;      BATCH          batch job termination&lt;BR /&gt;      NETWORK        network job termination&lt;BR /&gt;      PRINT          all print jobs&lt;BR /&gt;      MESSAGE        user messages</description>
      <pubDate>Wed, 11 Feb 2009 14:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356481#M93350</guid>
      <dc:creator>nitram_1</dc:creator>
      <dc:date>2009-02-11T14:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356482#M93351</link>
      <description>Are you running a cluster?&lt;BR /&gt;&lt;BR /&gt;Are you pointing to the correct ACCOUNTING file?&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;What is the output from $ SHOW LOG ACCOUNTNG&lt;BR /&gt;&lt;BR /&gt;This command works for me:&lt;BR /&gt;&lt;BR /&gt;$ acc/type=print/since/report=(pages)/summ=(user,queue)&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Feb 2009 14:15:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356482#M93351</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-02-11T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356483#M93352</link>
      <description>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.&lt;BR /&gt;Show log accounting returns: no translation for logical name accounting&lt;BR /&gt;&lt;BR /&gt;Your command works but returns same erroneous information for queue I'm looking at - it just includes every other print queue also.&lt;BR /&gt;&lt;BR /&gt;The command I use:&lt;BR /&gt;acc /que=myprintque/summary=user/report=(pages,records)&lt;BR /&gt;returns:&lt;BR /&gt;Username         Pages    Total&lt;BR /&gt;               Printed  Records&lt;BR /&gt;-------------------------------&lt;BR /&gt;USER7_DEV            8        7&lt;BR /&gt;USER5_DEV            0        6&lt;BR /&gt;USER5_TST            4        6&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Feb 2009 15:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356483#M93352</guid>
      <dc:creator>nitram_1</dc:creator>
      <dc:date>2009-02-11T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356484#M93353</link>
      <description>nitram,&lt;BR /&gt;&lt;BR /&gt;welcome to the OpenVMS ITRC forum.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;This may also depend on the print-symbiont used. If you check with SHOW QUE/FULL myprintque - what is reported as /PROCESSOR=xxx&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 11 Feb 2009 15:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356484#M93353</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2009-02-11T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356485#M93354</link>
      <description>$ sho que PQ_ET_CAST_4H1 /full&lt;BR /&gt;Printer queue PQ_ET_CAST_4H1, idle, on E2ADVS::"TCPIP$QUEUE:PS_CAST_H", &lt;BR /&gt;mounted form LANDSCAPE_WIDE (stock=DEFAULT)&lt;BR /&gt;  &lt;LANIER copier=""&gt;&lt;BR /&gt;  /BASE_PRIORITY=4 /DEFAULT=(FEED,FORM=PORTRAIT_NORMAL (stock=DEFAULT)) &lt;BR /&gt;  /LIBRARY=HPVMS_DEVCTL Lowercase /OWNER=[SYSTEM] /PROCESSOR=TCPIP$TELNETSYM &lt;BR /&gt;  /PROTECTION=(S:M,O:D,G:R,W:S) /SCHEDULE=(NOSIZE) &lt;BR /&gt;  /SEPARATE=(RESET=(HP_NOBLANK))&lt;BR /&gt;$ sho que /full PS_CAST_H&lt;BR /&gt;Server queue PS_CAST_H, idle, on E2ADVS::, mounted form DEFAULT&lt;BR /&gt;  &lt;PS_CAST_H relay="" queue=""&gt;&lt;BR /&gt;  /BASE_PRIORITY=4 /DEFAULT=(FORM=DEFAULT) /LIBRARY=HPVMS_DEVCTL Lowercase &lt;BR /&gt;  /OWNER=[SYSTEM] /PROCESSOR=TCPIP$LPD_SMB /PROTECTION=(S:M,O:D,G:R,W:S) &lt;BR /&gt;  /RETAIN=ERROR /SCHEDULE=(NOSIZE) /SEPARATE=(RESET=(RESET))&lt;BR /&gt;&lt;/PS_CAST_H&gt;&lt;/LANIER&gt;</description>
      <pubDate>Wed, 11 Feb 2009 15:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356485#M93354</guid>
      <dc:creator>nitram_1</dc:creator>
      <dc:date>2009-02-11T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356486#M93355</link>
      <description>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.</description>
      <pubDate>Wed, 11 Feb 2009 15:58:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356486#M93355</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2009-02-11T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356487#M93356</link>
      <description>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?</description>
      <pubDate>Wed, 11 Feb 2009 18:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356487#M93356</guid>
      <dc:creator>nitram_1</dc:creator>
      <dc:date>2009-02-11T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356488#M93357</link>
      <description>&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;There is probably some documentation that describes all this, but I am too lazy to keep looking until I find it.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Feb 2009 22:06:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356488#M93357</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2009-02-11T22:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356489#M93358</link>
      <description>The accounting file format is described in appendix C of the System Management Utilities Manual 1 (A-L).  I believe later versions of VMS moved it somewhere else.</description>
      <pubDate>Wed, 11 Feb 2009 22:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356489#M93358</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2009-02-11T22:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356490#M93359</link>
      <description>DCPS has a problem with the way many printers respond to the PostScript request for "pages printed".  Many printers respond with how many pages have actually dropped into the output bin, which is not going to provide the correct information.  This is because your job might start and end before any pages actually leave the printer because of other jobs printing, or the printer warming up from power-save mode, for example.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Thu, 12 Feb 2009 14:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356490#M93359</guid>
      <dc:creator>Paul Anderson_7</dc:creator>
      <dc:date>2009-02-12T14:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Queue Page Counting</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356491#M93360</link>
      <description>Paul Anderson&amp;gt;&amp;gt;"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."&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;$ print /que=dcps1 /param=(number_up=4,sides=2) doc.txt ! uses 2 imaging clicks and 1 sheet of paper&lt;BR /&gt;&lt;BR /&gt;$ print /que=dcps1 /param=(number_up=4,sides=1) doc.txt ! uses 2 imaging clicks and 2 sheets of paper&lt;BR /&gt;&lt;BR /&gt;$ print /que=dcps1 /param=(number_up=2,sides=2) doc.txt ! uses 4 imaging clicks and 2 sheets of paper&lt;BR /&gt;&lt;BR /&gt;$ print /que=dcps1 /param=(number_up=1,sides=2) doc.txt ! uses 8 imaging clicks and 4 sheets of paper&lt;BR /&gt;&lt;BR /&gt;$ print /que=dcps1 /param=(number_up=1,sizes=1) doc.txt ! uses 8 imaging clicks and 8 sheets of paper&lt;BR /&gt;&lt;BR /&gt;Since accounting has only one field for "pages printed", your description implies that all the above print commands will report 8 pages printed.&lt;BR /&gt;&lt;BR /&gt;DCPS could "compute" the sides imaged or sheets used based on the pages interpreted.&lt;BR /&gt;&lt;BR /&gt;Does DCPS allow you to set a definition of pages printed to one of (pages,clicks,sheets)?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Feb 2009 01:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/printer-queue-page-counting/m-p/4356491#M93360</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2009-02-13T01:15:13Z</dc:date>
    </item>
  </channel>
</rss>

