Hello
i try to run sar short periods of time like 5 minutes , using
sar -ALL 2 > test.all.txt
then i try to load this file off line in kSar , and kSar failing to parse the file .
what i mean is it do read the file but doesn't present the data .
i can see clearly that the file is full of data .
what do i do wrong here ?
maybe:
sar -P ALL 2 > test.all.txt
but there is no need to run sar
in a loop again and again with this script. It will just keep clobbering the output file. The loop will be to read the output file.
no still can't see any thing
this is the out put :
Linux 4.4xxxxxxxx.x86_64 (ip-10-0-1-248) 08/08/2017 _x86_64_ (4 CPU)
06:46:23 AM CPU %user %nice %system %iowait %steal %idle
06:46:25 AM all 40.05 0.00 17.52 0.00 0.00 42.43
06:46:25 AM 0 34.00 0.00 66.00 0.00 0.00 0.00
06:46:25 AM 1 16.08 0.00 0.00 0.00 0.00 83.92
06:46:25 AM 2 13.07 0.00 0.50 0.00 0.00 86.43
06:46:25 AM 3 96.48 0.00 3.52 0.00 0.00 0.00
06:46:25 AM CPU %user %nice %system %iowait %steal %idle
06:46:27 AM all 46.17 0.00 16.94 0.00 0.00 36.89
06:46:27 AM 0 37.19 0.00 62.81 0.00 0.00 0.00
06:46:27 AM 1 33.00 0.00 0.00 0.00 0.00 67.00
06:46:27 AM 2 19.50 0.00 0.00 0.00 0.00 80.50
06:46:27 AM 3 95.50 0.00 4.50 0.00 0.00 0.00
06:46:27 AM CPU %user %nice %system %iowait %steal %idle
06:46:29 AM all 47.19 0.00 18.23 0.00 0.00 34.58
06:46:29 AM 0 30.85 0.00 68.66 0.00 0.00 0.50
06:46:29 AM 1 27.14 0.00 0.00 0.00 0.00 72.86
06:46:29 AM 2 34.83 0.00 0.50 0.00 0.00 64.68
06:46:29 AM 3 96.00 0.00 3.50 0.00 0.00 0.50
06:46:29 AM CPU %user %nice %system %iowait %steal %idle
06:46:31 AM all 82.37 0.00 15.87 0.00 0.00 1.76
06:46:31 AM 0 87.44 0.00 11.06 0.00 0.00 1.51
06:46:31 AM 1 50.50 0.00 49.00 0.00 0.00 0.50
06:46:31 AM 2 96.00 0.00 0.00 0.00 0.50 3.50
06:46:31 AM 3 95.43 0.00 2.54 0.00 0.00 2.03
06:46:31 AM CPU %user %nice %system %iowait %steal %idle
06:46:33 AM all 41.38 0.00 17.50 0.00 0.00 41.12
06:46:33 AM 0 16.50 0.00 0.50 0.00 0.00 83.00
06:46:33 AM 1 33.00 0.00 67.00 0.00 0.00 0.00
06:46:33 AM 2 22.00 0.00 0.50 0.00 0.00 77.50
06:46:33 AM 3 93.50 0.00 3.00 0.00 0.00 3.50
And the kSar doesn't show any think but it do load the text file