Appendix D Accounting Examples
494 September 2002 HPSS Installation Guide
Release 4.5, Revision 2
3152 45(DDI) 25(DND)30(CBC)
5674 100(DDI)
... .................
Note:The Account Apportionment Table and Account Maps can be created by the individual sites.
Theyare not created or maintained by HPSS. Some sites may wish to add more information, such
as department and text name, or include less information, such as only the UID.
D.6 Maintaining and/or Modifying the Account Map
What are the policies for the Account Map? How will the Account Map be maintained and
modified?Each site must develop tools to maintain and modify its Account Map according to local
accounting policies. Tools will be necessary to change, add, or delete an HPSS Account Index and
its associated information. The site must implement their own policies on what to do when an
account is deleted, a user moves to another project, or a user leaves the system.
For Site-style accounting, when using Account Validation, the account validation editor may be
used to maintain the user-to-account index mappings. Other needed mappings, if any, must be
maintainedby the site in the Account Map file. When Account Validation is disabled, the site will
need to maintain the user-to-account index mappings in the Account Map file as well.
UNIX-styleaccounting changes of this nature are handled through the normal utilities that set up
and modify users and UIDs. A basic set of site-developed utilities are described in more detail
below.
Add a user and account. New entries can be made and the next available HPSS Account
Indexnumber will be assigned from the free-list. The free-list will most likely consist of the
lastassigned number plus one, but could include reclaimed index numbers if a site chooses
tore-use Account Index numbers that were previously assigned and no longer referenced.
It is not likely that a site will need to reclaim Account Index numbers, but it is an option.
Delete a user. When a user is deleted from the Account Map, the HPSS files must be
reassigned to another HPSS Account Index. This should be done from the HPSS client
interface side. Theupdate_flag should be set to true to indicate that this account index
number can be reclaimed. The reclaiming tool should check for files using the account
number before reclaiming it. When the Account Index is reclaimed, it can be put on the
free-listto be re-used. It is important to keep a copy of the Account Map that corresponds
to the HPSS accounting snapshot of storage space in use for that time period so that the
proper site information can be matched.
Delete account. When an account is deleted, it is handled in the same manner as when a
user is deleted.
Modifyaccount. The entries in the Account Map can be modified to correlate the Account
Index to different information, but care should be taken to keep a copy of the
corresponding tables for past HPSS accounting runs.
D.7 Accounting Reports