SET ACCOUNTING (Set accounting records on or off)

Use this command to determine whether an accounting record is created every time a client node session ends. An accounting record tracks the amount of storage used by a client node session.

Use the QUERY STATUS command to determine whether accounting records are generated. At installation, this value is set to OFF.

The accounting records are stored in an accounting file named dsmaccnt.log.

Linux operating systemsAIX operating systemsThe environment variable, DSMSERV_ACCOUNTING_DIR, specifies the directory where the accounting file is located.

Windows operating systemsA registry entry controls the location of the accounting log.

Privilege class

To issue this command, you must have system privilege.

Syntax

Read syntax diagramSkip visual syntax diagramSet ACCountingONOFf

Parameters

ON
Specifies that the server creates an accounting record every time a client node session ends.
OFf
Specifies that the server does not create accounting records.

Example: Create accounting records

To create an accounting record at the end of each client node session issue the command:
set accounting on

Related commands

Table 1. Commands related to SET ACCOUNTING
Command Description
QUERY STATUS Displays the settings of server parameters, such as those selected by the SET commands.