70N/A# Copyright (c) 2003, Oracle
and/or its affiliates. All rights reserved.
70N/AThis module is released under the Perl Artistic License.
70N/AThis module is only available for Solaris 9 onwards.
70N/AThis module provided access to the Solaris Extended Accounting (exacct)
70N/Asubsystem, which is part of the Solaris resource management infrastructure.
70N/AFor more information on Solaris Extended Accounting, see the libexacct(3LIB)
70N/Aand acctadm(1M) manpages and the following on-line documentation:
70N/ASystem Administration Guide: Resource Management and Network Services
70N/AChapter 7 - Extended Accounting
70N/AAn example of how this module might be used is to dump the contents of an
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/Aif (ea_error() != EXR_OK && ea_error() != EXR_EOF) {
70N/A printf("\nERROR: %s\n", ea_error_str());
70N/A1. Uncompress and untar the archive
70N/A2. cd to the module directory
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.