8.5 Setting Up Accounting

Every day at midnight, the Exchange Gateway creates an accounting file (acct) in the domain\wpgate\exchange\000.prc directory. The acct file is an ASCII-delimited text file that records the source, priority, message type, destination, and size of each item passing through the gateway.

8.5.1 Enabling Accounting

  1. In ConsoleOne, browse to and right-click the Exchange Gateway object, then click Properties.

  2. Click GroupWise > Optional Gateway Settings to display the Optional Gateway Settings page.

    Optional Gateway Settings page
  3. Make sure Accounting is set to Yes.

  4. Click Apply to save your changes.

  5. Continue with Defining an Accountant.

Exchange Gateway Web Console You can turn accounting on and off for the current gateway session on the Optional Gateway Settings page.

8.5.2 Defining an Accountant

  1. On the Exchange Gateway object, click GroupWise > Gateway Administrators to display the Gateway Administrators page.

    Gateway Administrators page

    The Gateway Administrators page lets you select a GroupWise user to be the Accountant for the Exchange Gateway. Each night at midnight, the gateway mails the accounting file (acct) to the Accountant.

  2. Click Add to open the Select GroupWise Object dialog box, then select a user to function as the Accountant for the Exchange Gateway.

    You can also select multiple users and/or distribution lists in the Select GroupWise Object dialog box.

  3. Click OK to return to the Gateway Administrators page.

  4. In the Administrators list, select the user or distribution list that you want to function as the Accountant.

    In the Administrators list, you can also select multiple users and distribution lists as needed.

  5. In the Administrator Role box, select Accountant.

  6. Click OK to save the changes.

    ConsoleOne passes the accounting information to the Exchange Gateway so that the Accountant can begin receiving daily accounting files.

  7. Continue with Understanding the Accounting File.

8.5.3 Understanding the Accounting File

The accounting file (acct) is an ASCII-delimited text file that records the source, priority, message type, destination, and other information about each message sent through the gateway. The file, which is updated daily at midnight, is located in the domain\wpgate\exchange\000.prc directory. If no Accountant is defined to receive the file, the file is deleted each day.

A sample line from an accounting file is shown below:

O,05/18/05, 20:42:55,,
     Mail,3,Corporate,Temps,LTanaka,,Reminder,Connector,Exchange,,
     Mail,SJones@Provo,1,0,2593

Each item sent through the gateway is recorded on a separate line, with the fields separated by commas. Two or more commas in a row indicate that a field has no data. The following table describes the fields in the order in which they are found in the accounting file.

Field

Description

Example

In/Out Status

Indicates if the message is outbound (O) or inbound (I)

O

Message Date

The date when the message was sent

5/18/06

Message Time

The time when the message was sent

20:42:55

GroupWIse Message ID

A set of numbers that uniquely identifies the message in the GroupWise system

3F429BA6.961 : 12 : 31746

GroupWise Message Type

Type of item sent or received

Mail

GroupWise Message Priority

0 = High, 2 = Normal, 4 = Low

2

GroupWise User Domain

The GroupWise domain where the sender’s or receiver’s post office is located

Corporate

GroupWise User Post Office

The GroupWise post office that the sender or recipient belongs to

Temps

GroupWise User ID

The user ID of the sender or recipient

LTanaka

GroupWise Account ID

The recipient’s or sender’s account ID as specified on the user’s GroupWise Account page in ConsoleOne

Message Subject

The subject line of the message

Reminder

Gateway Domain

The GroupWise domain where the gateway is installed

Connector

Gateway Name

The name of the gateway as defined in GroupWise

Exchange

Foreign Message ID

The message ID supplied by Exchange

Foreign Message Type

The type of message sent from Exchange

Mail

Foreign Address

The user’s Exchange address or GroupWise address (if the user was added to a non-GroupWise domain)

Corporate.Marketing.LTanaka

Number of Recipients

The number of users

1

Number of Attachments

The number of files attached to the message

0

Accounting Units

The byte size of the message

2593

The acct file can be imported into a word processor, spreadsheet, or database program for further analysis.