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