sadc Command

Purpose

Provides a system data collector report.

Syntax

/usr/lib/sa/sadcInterval Number ] [ Outfile ]

/usr/lib/sa/sa1Interval Number ]

/usr/lib/sa/sa2

Description

The sadc command, the data collector, samples system data a specified number of times (Number) at a specified interval measured in seconds (Interval). It writes in binary format to the specified outfile or to the standard output. When both Interval and Number are not specified, a dummy record, which is used at system startup to mark the time when the counter restarts from 0, will be written. The sadc command is intended to be used as a backend to the sar command.

The operating system contains a number of counters that are incremented as various system actions occur. The various system actions include:

Note: The sadc command reports only local activity.

Security

Access Control: These commands should grant execute (x) access only to members of the adm group.

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To write 10 records of one second intervals to the /tmp/rpt binary file, enter:

sadc 1 10 /tmp/rpt

Files

Item Description
/var/adm/sa/sadd Contains the daily data file, dd represents the day of the month.
/var/adm/sa/sardd Contains the daily report file, dd represents the day of the month.
/tmp/rpt Contains the binary file used for input by the sar command.
/tmp/sa.adrf1 Contains the address file.