README revision c227543f6890bd6f2054360ec1820bfef8132431
70N/A#
70N/A# Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
70N/A#
70N/A
70N/ALicensing
70N/A---------
70N/AThis module is released under the Perl Artistic License.
70N/A
70N/AAvailability
70N/A------------
70N/AThis module is only available for Solaris 9 onwards.
70N/A
70N/ADescription
70N/A-----------
70N/AThis module provided access to the Solaris Extended Accounting (exacct)
70N/Asubsystem, which is part of the Solaris resource management infrastructure.
70N/A
70N/AFor more information on Solaris Extended Accounting, see the libexacct(3LIB)
70N/Aand acctadm(1M) manpages and the following on-line documentation:
70N/A
70N/ASystem Administration Guide: Resource Management and Network Services
70N/AChapter 7 - Extended Accounting
70N/Ahttp://docs.sun.com/db/doc/816-7125, or any later version
70N/A
70N/AAn example of how this module might be used is to dump the contents of an
70N/Aexacct data file:
70N/A
70N/Ause Sun::Solaris::Exacct qw(:EXACCT_ALL);
70N/Adie("Usage is dumpexacct <exacct file>\n") unless (@ARGV == 1);
70N/Amy $ef = ea_new_file($ARGV[0], &O_RDONLY) || die(ea_error_str());
70N/Aprintf("Creator: %s\n", $ef->creator());
70N/Aprintf("Hostname: %s\n\n", $ef->hostname());
70N/Awhile (my $obj = $ef->get()) {
70N/A ea_dump_object($obj);
70N/A}
70N/Aif (ea_error() != EXR_OK && ea_error() != EXR_EOF) {
70N/A printf("\nERROR: %s\n", ea_error_str());
70N/A exit(1);
70N/A}
70N/Aexit(0);
70N/A
70N/AInstallation
70N/A------------
70N/A
70N/A1. Uncompress and untar the archive
70N/A2. cd to the module directory
70N/A3. perl Makefile.PL; make install
70N/A
70N/AIf you are using gcc and wish to build this module against the perl shipped as
70N/Apart of Solaris, see the Solaris-PerlGcc module, also available from CPAN.