Previous Topic: 3.3 Strategies for UNIX AccountingNext Topic: 3.3.2 Avoiding UNIX/PCS Duplicate Charging


3.3.1 Implementing UNIX/PCS Accounting


The following checklist will help you to implement usage
charges for your UNIX systems using the CA MICS Analyzer for
HP PCS and CA MICS Accounting and Chargeback. The CA MICS
Analyzer for HP PCS, CA MICS Accounting and Chargeback, and
HP PCS must be installed before performing these steps.

___ 1.  Define the PCS parameters.

        The application names that you will use for charging
        must be defined in the scopeux program startup
        parameters for PCS.

        If you will be charging from the UNIX/PCS Process
        Data Journal, you will need metrics for all processes
        in the PCS Process Log.  You will probably need to
        add the "Short-lived" startup parameter.  By default,
        PCS does not collect metrics for short-lived
        processes in the PCS Process Log.

        See "Using scopeux and Related Programs" in the HP
        Performance Collection Software User's Manual for
        additional information about the PCS startup
        parameters.

___ 2.  Update the cost routine for UNIX/PCS.

        The COSTRTE routine is SAS code that assigns values
        to your installation's defined cost center variables
        as each record is processed by the CA MICS system. It
        is stored in member sharedprefix.MICS.PARMS(COSTRTE).
        The COSTRTE member in sharedprefix.MICS.HOLD.PARMS
        includes sample code to assign cost centers for
        UNIX/PCS data.  Notice that the sample code
        illustrates charging from either the UNIX Application
        Performance File (AUCAPL) or the UNIX Process
        Activity File (AUCKPR).  The elements available to
        populate the cost centers differ depending on the
        file.

        Edit the COSTRTE member in sharedprefix.MICS.PARMS
        and update or add code to correctly assign the
        UNIX/PCS cost center variables for your installation.
        The ROUTINE value for UNIX/PCS data is DYAUCFMT.

        Refer to Section 4.1.3, Assigning Cost Center Values,
        for additional information.

___ 3.  Define qualification group(s).

        If you will be charging for many applications in the
        same way based on application number, define one or
        more Subsysid qualification groups, each containing
        the application numbers to be charged by a single
        algorithm (an algorithm is a set of charging elements
        and associated rates).

        Note that the same application number cannot appear
        in more than one group because this would allow the
        application to be charged more than once.

 ___ 4. Update the CA MICS Accounting and Chargeback Rate
        Table to define your UNIX/PCS charging strategy.

        You must define rates for each charging element that
        you wish to use for UNIX/PCS systems.  The
        recommended computation codes are 2501 and 2516 in
        the UNIX/PCS Application Data Journal (ACTJXA) and
        2551 and 2563 in the UNIX/PCS Process Data Journal
        (ACTJXP).  When computation code 2516 is not
        available for a UNIX system, use computation codes
        2512 and 2513, logical read and write I/Os, to charge
        for I/O usage.  Likewise, when computation code 2563
        is not available, use computation code 2562.

        Use algorithm qualification to specify the work to be
        charged by each algorithm if either of the following
        conditions is true:

        o  You are charging from both UNIX/PCS journal files.

        o  You have defined more than one algorithm for
           either of the UNIX/PCS journal files.  You might
           need multiple algorithms if you were charging
           differently based on system or application.

        On the Algorithm Qualification panel, use the
        qualification group name(s) defined in Step 3 to
        simplify data entry.

        Refer to Section 4.3.1, Defining the Rate Table, for
        additional information.

 ___ 5. Submit the MAGRUN job to activate charging for
        UNIX/PCS resources.

        When you finish editing the rate table as directed in
        Step 4, you will be prompted to submit the MAGRUN
        batch job.  Submit the job and ensure that it
        completes normally to apply the changes and activate
        charging for your UNIX/PCS systems.