[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Commands Reference, Volume 5

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:

Security

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

Examples

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

sadc 1 10 /tmp/rpt

Files

/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.

Related Information

The sar command, sa1 command, sa2 command, timex command.

The cron daemon.

Accounting Overview, Setting Up an Accounting System in the AIX Version 4.3 System Management Guide: Operating System and Devices.

Accounting Commands in the AIX Version 4.3 System Management Concepts: Operating System and Devices lists accounting commands that can be run automatically or entered from the keyboard.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]