hi all:-
when i try to use sar command i get this error how can i fix it
bash-3.00# sar -A
sar: can't open /var/adm/sa/sa16
No such file or directory
hi all:-
when i try to use sar command i get this error how can i fix it
bash-3.00# sar -A
sar: can't open /var/adm/sa/sa16
No such file or directory
In order to report on historical data, that historical data must exist.
See "man sadc" for example crontab entries.
Alternatively, if you look for current values, you can provide a sampling interval and count.
eg:
sar -A 5 12
For historical data
ikorolev
thanks for your reply but i didn't found something like that
/etc/init.d/perf
i didn't found this file
Indeed. On Solaris 10 and newer, the command would be:
svcadm enable svc:/system/sar
Then uncomment the last three lines in the sys crontab and modify them if you need to:
EDITOR=vi crontab -l sys
...
0 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A