4.8 Enable System Accounting - Check if svc:/system/sar is online

Information

Level: 1

Solution

Perform the following to implement the recommended state-

svcadm enable -r svc:/system/sar

EDITOR=ed crontab -e sys << END_ENTRIES $a 0,20,40 * * * * /usr/lib/sa/sa1 45 23 * * * /usr/lib/sa/sa2 -s 0:00 -e 23:59 -i 1200 -A . w q END_ENTRIES

chown sys:sys /var/adm/sa/*

chmod go-wx /var/adm/sa/*


Note - This data is only archived for one week before being automatically removed by the regular nightly cron job. Administrators may wish to archive the /var/adm/sa directory on a regular basis to preserve this data for longer periods.

The sys account must be permitted to use the cron(1M) facility for system accounting to function properly. See Item 6.9 Restrict at/cron to Authorized Users.

See Also

https://benchmarks.cisecurity.org/tools2/solaris/CIS_Oracle_Solaris_10_Benchmark_v5.2.0.pdf

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7

Plugin: Unix

Control ID: 9d0a3f5c888887254c52a0593ae279bb133ea52a594888c849f224a723f8fc88