Please help with the command to generate SAR report (CPU and memory) for the past 30 days (in one command).
Is it possible?
Instead of using one line by one line like this :
sar -r -f /var/adm/sa/sa14
Please help with the command to generate SAR report (CPU and memory) for the past 30 days (in one command).
Is it possible?
Instead of using one line by one line like this :
sar -r -f /var/adm/sa/sa14
I do not think you can do it in one command. Try something like:
ls -tr /var/adm/sa/sa[0-9][0-9] |
while read safile
do
sar -r -f "$safile"
done > reportfile