Previous Topic: 6.1.1 Data Collector Operations

Next Topic: 6.1.1.2 VMS MONITOR Data Collection

6.1.1.1 VMS ACCOUNTING Data Collection


To start VMS ACCOUNTING, enter:

    SET ACCOUNTING /NEW_FILE /ENABLE=(keywords)

where

    NEW_FILE

          specifies that the current VMS ACCOUNTING file
          should be closed and a new version opened.

    'keywords'

          are PROCESS and IMAGE.  PROCESS is used if
          accounting at the process level is desired.  IMAGE
          is used if accounting at the image level is
          desired.  PROCESS,IMAGE is specified if both levels
          of accounting are desired.

          PROCESS accounting writes a PROCESS TERMINATION
          record whenever a process terminates.  IMAGE
          accounting writes an IMAGE TERMINATION record
          whenever an image executing within a process
          terminates.  For example, a process is created for
          a user when the user logs on to the system.  The
          user may then execute editors, compilers, linkers,
          system utilities, and previously developed
          application programs.  In doing so, only one
          process has been created.

          With PROCESS accounting, when the user logs off, a
          single PROCESS TERMINATION record will be created.
          With IMAGE accounting enabled, an IMAGE TERMINATION
          record will be created at the termination of each
          edit, compile, link, utility, or other program
          execution.  It is clear that IMAGE accounting will
          create substantially more records than will PROCESS
          accounting.  IMAGE accounting is useful when
          tracking the resource use of particular program
          executions is desired.

    Each time the SET ACCOUNTING command is executed, any
    current ACCOUNTNG.DAT file is closed and a new one is
    started.

    A full description of how to start the ACCOUNTING
    recording can be found in the VMS Systems Management
    Manual.

Sample Procedure:

    At midnight, a command procedure is started on each
    cluster node that does a SET ACCOUNTING/NEW_FILE that
    closes the current file and opens a new version of
    ACCOUNTNG.DAT.  The procedure then extracts the data from
    this file using the VMS Accounting Utility and issues a
    file transfer command to pass the extracted version of
    the file to MVS for processing in the CA MICS DAILY run.

    An alternative is to use the VMS Accounting Utility each
    day to extract the previous day's data from
    ACCOUNTNG.DAT, if this file is kept as a cumulative file
    for a longer time period, such as an entire week or
    month.

    For example, to extract yesterday's accounting data from
    ACCOUNTNG.DAT, issue the command:

      ACCOUNTING /BINARY/LOG/NOREJECT/NOSORT -
       /OUTPUT=ACyymmdd.dat /SINCE=YESTERDAY /BEFORE=TODAY

    See the VMS Accounting Utility Manual for a full
    description of how to use VMS Accounting to extract data.