1 #
   2 # Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
   3 #
   4 
   5 Licensing
   6 ---------
   7 This module is released under the Perl Artistic License.
   8 
   9 Availability
  10 ------------
  11 This module is only available for Solaris 9 onwards.
  12 
  13 Description
  14 -----------
  15 This module provided access to the Solaris Extended Accounting (exacct)
  16 subsystem, which is part of the Solaris resource management infrastructure.
  17 
  18 For more information on Solaris Extended Accounting, see the libexacct(3LIB)
  19 and acctadm(1M) manpages and the following on-line documentation:
  20 
  21 System Administration Guide: Resource Management and Network Services
  22 Chapter 7 - Extended Accounting
  23 http://docs.sun.com/db/doc/816-7125, or any later version
  24 
  25 An example of how this module might be used is to dump the contents of an
  26 exacct data file:
  27 
  28 use Sun::Solaris::Exacct qw(:EXACCT_ALL);
  29 die("Usage is dumpexacct <exacct file>\n") unless (@ARGV == 1);
  30 my $ef = ea_new_file($ARGV[0], &O_RDONLY) || die(ea_error_str());
  31 printf("Creator:  %s\n", $ef->creator());
  32 printf("Hostname: %s\n\n", $ef->hostname());
  33 while (my $obj = $ef->get()) {
  34         ea_dump_object($obj);
  35 }
  36 if (ea_error() != EXR_OK && ea_error() != EXR_EOF)  {
  37         printf("\nERROR: %s\n", ea_error_str());
  38         exit(1);
  39 }
  40 exit(0);
  41 
  42 Installation
  43 ------------
  44 
  45 1. Uncompress and untar the archive
  46 2. cd to the module directory
  47 3. perl Makefile.PL; make install
  48 
  49 If you are using gcc and wish to build this module against the perl shipped as
  50 part of Solaris, see the Solaris-PerlGcc module, also available from CPAN.