Examples

Summary information for destinations on Server A

To request summary accounting information for the destinations on server A for the period starting at 8 AM on 12/20/99 and ending at 8 AM on 12/24/99, enter this command:

pdaccount -t destination -s "08:00:00 12/20/99" 
   -e "08:00:00 12/24/99" A
The information returned is similar to:
Destination, Pages Completed, Octets Completed
Printer1,12997,1989787763
Printer2,2455,17676836
Printer3,86673,189808083

Summary information for users on all the servers

To request summary accounting information for users on all the servers for the period starting at 8 AM on 12/20/99 and ending at 8 AM on 12/24/99, enter this command:

pdaccount -t user -s "08:00:00 12/20/99" -e "08:00:00 12/24/99" *:
The information returned is similar to:
Owner, Pages Completed, Octets Completed
gnelson@info1.penn.infoprint.com,1347,1987763
hlava@ips1.penn.infoprint.com,2455,12237676836
root@pumbaa.penn.infoprint.com,86673,189808083

All accounting information for destinations on Servers B and C

To request all the data (or raw data) for the destinations on servers B and C for the period starting at 8 AM on 12/20/99 and ending at 8 AM on 12/24/99, enter this command:

pdaccount -t all -s "08:00:00 12/20/99" -e "08:00:00 12/24/99" B C
The command returns the complete accounting log records for the time period collected from all the accounting logs on the requested servers in no particular sorted order.

Important: Requesting information for all accounting records can consume a lot of the server’s memory since all the data is read into memory to be sent to you. If you have a lot of data to retrieve, you should consider requesting it for smaller time periods and concatenating the returned data.

For example, to retrieve all the accounting records for a one month period, you could issue four pdaccount commands like this:

pdaccount -t all -s "00:00:00 03/01/00" -e "00:00:00 03/08/00" 
Server A >March1.accting.data
pdaccount -t all -s "00:00:00 03/08/00" -e "00:00:00 03/15/00" 
Server A >March2.accting.data
pdaccount -t all -s "00:00:00 03/15/00" -e "00:00:00 03/22/00" 
Server A >March3.accting.data
pdaccount -t all -s "00:00:00 03/22/00" -e "00:00:00 03/31/00" 
Server A >March4.accting.data