Hub/Switch Installation Guide

HPSS Installation Guide September 2002 491
Release 4.5, Revision 2
Appendix D Accounting Examples
D.1 Introduction
This appendix describes how to set up the gathering of accounting data at a customer site. The
accounting data is used by the customer to calculate charges for the use of HPSS resources. The
accounting data represents a blurred snapshot of the system storage usage as it existed during the
accounting run.
D.2 Site Accounting Requirements
Whataretheaccountingrequirementsforyoursite?Theaccountingdepartmentateachsiteshould
beconsultedtodeterminewhatkindofinformationitwillneedattachedtoeachaccountingrecord.
Based on this,an HPSS Account Indexfor a user accountcan be set upin an Account Mapto point
to the required information.
Do you need information per user? Per account code? Per group? Some sites will need accounting
totaled on a per user, per Account Index basis. This type of accounting is called Site-style
accounting. There are many sites that will be required to implement charging in this way.
Whatkindofreportswillbegenerated?ManyUNIXresourcesreportusagebyuserID(UID).Some
siteswillneedtouse theUNIX-styleaccounting,whichgivesaccountingtotaled onaperuserbasis
only. The accounting department will provide a program that takes accounting information on a
per user (UID) basis and applies percentages to split out charges for multiple project accounts per
user.
D.3 Processing of HPSS Accounting Data
HowshouldtheHPSS accountingdata be processed?Should the databewrittento aflat file orput
into a site data base?
ThedefaultaccountingoutputroutineforHPSSgeneratesatextfilethatcontainstwotypesoflines.
The first type, denoted bya zero (0) in the third column, gives the following summary information