README revision 7c478bd95313f5f23a4c958a745db2134aa03244
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License, Version 1.0 only
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# (the "License"). You may not use this file except in compliance
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# CDDL HEADER END
16b55a35cff91315d261d1baa776138af465c4e4fuankg# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Use is subject to license terms.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#ident "%Z%%M% %I% %E% SMI"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesThis module is released under the Perl Artistic License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesThis module is only available for Solaris 9 onwards.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesThis module provided access to the Solaris Extended Accounting (exacct)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholessubsystem, which is part of the Solaris resource management infrastructure.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFor more information on Solaris Extended Accounting, see the libexacct(3LIB)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesand acctadm(1M) manpages and the following on-line documentation:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSystem Administration Guide: Resource Management and Network Services
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesChapter 7 - Extended Accounting
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeshttp://docs.sun.com/db/doc/816-7125, or any later version
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesAn example of how this module might be used is to dump the contents of an
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesexacct data file:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesuse Sun::Solaris::Exacct qw(:EXACCT_ALL);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesdie("Usage is dumpexacct <exacct file>\n") unless (@ARGV == 1);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesmy $ef = ea_new_file($ARGV[0], &O_RDONLY) || die(ea_error_str());
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesprintf("Creator: %s\n", $ef->creator());
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesprintf("Hostname: %s\n\n", $ef->hostname());
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswhile (my $obj = $ef->get()) {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes ea_dump_object($obj);
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesif (ea_error() != EXR_OK && ea_error() != EXR_EOF) {
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes printf("\nERROR: %s\n", ea_error_str());
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes1. Uncompress and untar the archive
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes2. cd to the module directory
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes3. perl Makefile.PL; make install
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgIf you are using gcc and wish to build this module against the perl shipped as
bb2b38cd44b032118359afbc743efbea12f48e61bnicholespart of Solaris, see the Solaris-PerlGcc module, also available from CPAN.