Contenues dansTrouver plus de documentationRessources d'assistance comprises | Télécharger cet ouvrage au format PDF (9688 Ko)
acctadm(1M)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Attributes | See Also | Notes Name
Synopsis
/usr/sbin/acctadm [-DEsrux] [-d resource_list]
[-e resource_list] [-f filename]
[task | process | flow | net]
Descriptionacctadm configures various attributes of the extended accounting facility. Without arguments, acctadm displays the current status of the extended accounting facility. Options
The following options are supported: Operands
The -d, -D, -e, -E, -f, and -x options require an operand. The following operands are supported: The optional final parameter to acctadm represents whether the command should act on the process, system task, IPQoS, or network accounting components of the extended accounting facility. ExamplesExample 1 Displaying the Current StatusThe following command displays the current status. In this example, system task accounting is active and tracking only CPU resources. Process and flow accounting are not active.
Example 2 Activating Basic Process AccountingThe following command activates basic process accounting:
Example 3 Displaying Available Resource GroupsThe following command displays available resource groups:
In the output above, the lines beginning with extended are shown with a backslash character. In actual acctadm output, these lines are displayed as unbroken, long lines. Example 4 Displaying Resource Groups for Task AccountingThe following command displays resource groups for task accounting:
Exit Status
The following exit values are returned: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoNotes
Both extended accounting and regular accounting can be active. Available resources can vary from system to system, and from platform to platform. Extended accounting configuration is stored in the service management facility (smf(5)) repository. The configuration is restored at boot by a transient service instance, one per accounting type:
The instances are enabled or disabled by acctadm as needed. Configuration changes are made using acctadm; service properties should not be modified directly using svccfg(1M). Users can manage extended accounting (start accounting, stop accounting, change accounting configuration parameters) if they have the appropriate RBAC Rights profile for the accounting type to be managed: The preceding profiles are for, respectively, flow accounting, process accounting, task accounting, and network accounting. Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Attributes | See Also | Notes |
|||||||||||