Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpspac(8) — PrintServer 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpsad(8)

LPSPAC(8)  —  Maintenance

Name

lpspac − format and display PrintServer printer accounting file

Syntax

lpspac [ options ] [ file ]

DESCRIPTION

The lpspac utility reads a PrintServer printer accounting file created by the lpsad(8) program, and produces a report, by user or by user@host, showing the number of sheets printed, the number sides printed, the number of minutes of printer time used, and optionally, the charge for the service.  If no input accounting file name is specified, stdin is read. 

OPTIONS

−h Omits all information about print client hosts from the report. 

−d Omits Internet domain information about print client hosts from the report. 

−v Produces the long form (verbose) of the report. 

−s <yymmdd>
Include only information starting from the specified date in the report. For example, enter 901206 for 06-DEC-1990.

−c <cost_per_sheet>,<cost_per_side>,<cost_per_minute>
Calculates cost per sheet, cost per side, and cost per minute.  For example, enter .07,.03,.2 for 7 cents per sheet, 3 cents per side, and 20 cents per cpu minute.

−o output Name of the output file, if specified; otherwise, stdout is written. 

EXAMPLES

 % lpspac lps32.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 Accounting file : lps32.cact
User Name    Print Client Host      Sheets  Sides       CPU Time
---------------------------------------------------------------------------
augeri       NASDAQ                      4      4      0.10 min.
augeri       beam                        2      2      0.18 min.
root         beam.dsg.dec.com            2      2      0.48 min.
system       NASDAQ                      4      4      0.08 min.
---------------------------------------------------------------------------
Totals                                  12     12      0.84 min.
---------------------------------------------------------------------------
 Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 % lpspac -h lps32.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 Accounting file : lps32.cact
User Name                           Sheets  Sides       CPU Time
---------------------------------------------------------------------------
augeri                                   6      6      0.28 min.
root                                     2      2      0.48 min.
system                                   4      4      0.08 min.
---------------------------------------------------------------------------
Totals                                  12     12      0.84 min.
---------------------------------------------------------------------------
 Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 % lpspac -d lps32.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 Accounting file : lps32.cact
User Name    Print Client Host      Sheets  Sides       CPU Time
---------------------------------------------------------------------------
augeri       NASDAQ                      4      4      0.10 min.
augeri       beam                        2      2      0.18 min.
root         beam                        2      2      0.48 min.
system       NASDAQ                      4      4      0.08 min.
---------------------------------------------------------------------------
Totals                                  12     12      0.84 min.
---------------------------------------------------------------------------
 Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 % lpspac -s 901206 lps32.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 Accounting file : lps32.cact
User Name    Print Client Host      Sheets  Sides       CPU Time
---------------------------------------------------------------------------
augeri       NASDAQ                      4      4      0.10 min.
augeri       beam                        2      2      0.18 min.
root         beam.dsg.dec.com            2      2      0.48 min.
system       NASDAQ                      4      4      0.08 min.
---------------------------------------------------------------------------
Totals                                  12     12      0.84 min.
---------------------------------------------------------------------------
 Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 % lpspac -v lps32.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 USER:augeri     HOST:NASDAQ
Accounting file : lps32.cact
Paper Size                            Sheets Delivered      Sides Delivered
---------------------------------------------------------------------------
Letter A                                             4                    4
---------------------------------------------------------------------------
Totals                                               4                    4
---------------------------------------------------------------------------
Total CPU time used 0.10 min.
  USER:augeri     HOST:clyde
Accounting file : lps32.cact
Paper Size                            Sheets Delivered      Sides Delivered
---------------------------------------------------------------------------
Universal LARGE                                      2                    2
---------------------------------------------------------------------------
Totals                                               2                    2
---------------------------------------------------------------------------
Total CPU time used 0.18 min.
  USER:root     HOST:clyde.dsg.dec.com
Accounting file : lps32.cact
Paper Size                            Sheets Delivered      Sides Delivered
---------------------------------------------------------------------------
Universal LARGE                                      2                    2
---------------------------------------------------------------------------
Totals                                               2                    2
---------------------------------------------------------------------------
Total CPU time used 0.48 min.
  USER:system     HOST:NASDAQ
Accounting file : lps32.cact
Paper Size                            Sheets Delivered      Sides Delivered
---------------------------------------------------------------------------
Letter A                                             4                    4
---------------------------------------------------------------------------
Totals                                               4                    4
---------------------------------------------------------------------------
Total CPU time used 0.08 min.
   Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 % lpspac -c .07,.03,.2 lps32.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 Accounting file : lps32.cact
User Name    Print Client Host      Sheets  Sides       CPU Time     Charge
---------------------------------------------------------------------------
augeri       NASDAQ                      4      4      0.10 min.      $0.42
augeri       beam                        2      2      0.18 min.      $0.24
root         beam.dsg.dec.com            2      2      0.48 min.      $0.30
system       NASDAQ                      4      4      0.08 min.      $0.42
---------------------------------------------------------------------------
Totals                                  12     12      0.84 min.
---------------------------------------------------------------------------
Charge = sheets ∗ $0.07 + sides ∗ $0.03 + CPU time ∗ $0.20
 Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 % lpspac -o bull36.out bull36.cact
 Copyright Digital Equipment Corporation. 1993. All Rights Reserved.
 % more lpsacct.bull36_out
Accounting file : bull36.cact
User Name    Print Client Host      Sheets  Sides       CPU Time
---------------------------------------------------------------------------
augeri       NASDAQ                      4      4      0.10 min.
augeri       beam                        2      2      0.18 min.
root         beam.dsg.dec.com            2      2      0.48 min.
system       NASDAQ                      4      4      0.08 min.
---------------------------------------------------------------------------
Totals                                  12     12      0.84 min.
---------------------------------------------------------------------------
 Paper Size Summary
Paper Size       Sheets Delivered  +   Wasted   =    Total            Sides
---------------------------------------------------------------------------
Letter A                        8           0            8                8
Universal LARGE                 4           0            4                4
---------------------------------------------------------------------------
Total                          12           0           12               12
---------------------------------------------------------------------------
 

RESTRICTIONS

The "CPU Time" field is the cpu time charged to the PostScript interpreter and may include time that is not suitable for billing purposes. 

Files

Central accounting files are created on suitably configured management clients and the files are typically named /var/kits/lps/lpsacct.lps32.cact

See Also

lpsad(8)

DIAGNOSTICS

All diagnostics are written to standard error (stderr). 

error: can’t open file xxx for input/output
Fatal error. The lpspac program can’t open the file specified for input or output and can’t continue.  The name of the file that can’t be opened is xxx. 

error: date must be 6 digits (YYMMDD)
Fatal error. The date must be 6 digits in the format YYMMDD.

error: date xxxxxx contains non-numeric character
Fatal error. The date must consist of 6 digits in the range 0 t0 9.

error: invalid month/day (YYMMDD=xxxxxx)
Fatal error. The month must be in the range 01 to 12 and the day must be in the range 01 to 31 (it checks for the appropriate number of days depending on the specific month, including leap year).

  —  LPS V5.1  —  15 Mar 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026