Using kSar for short sar reports , failed to parse


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Using kSar for short sar reports , failed to parse
# 1  
Old 08-07-2017
Using kSar for short sar reports , failed to parse

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 ?
# 2  
Old 08-07-2017
maybe:
Code:
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.

Last edited by rdrtx1; 08-07-2017 at 05:55 PM..
# 3  
Old 08-08-2017
no still can't see any thing
this is the out put :
Code:
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
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help with a script to have monthly sar reports

Hi I am still learning shell scripting, so for complex stuff, I need help. I would like to have a script that produces sar monthly reports, so that I can produce a graph from it! The idea is to use /var/adm/sa/<dir of sa files>Looking to hear from you. regards (4 Replies)
Discussion started by: fretagi
4 Replies

2. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies
Login or Register to Ask a Question