1826443 Members
4168 Online
109692 Solutions
New Discussion

Re: sar -d

 
Ragni Singh
Super Advisor

sar -d

Hey all, when I try to run sar on my system with the following command:

sar -d 10 0

I get "Requested activities not available"

Any idea whats going on here. Points will be assigned.
10 REPLIES 10
Huc_1
Honored Contributor

Re: sar -d

Does
sar -A

work ?

that should work..!!

J-P
Smile I will feel the difference
Ragni Singh
Super Advisor

Re: sar -d

Yes, sar -A works and gives me some good information but when I run sar -d, its not giving me any information except for "Requested activities not available". What is going on here. I am getting really confused as to what is going on here. POints will be assigned.
Mark Grant
Honored Contributor

Re: sar -d

try "sar -d 10 1" instead
Never preceed any demonstration with anything more predictive than "watch this"
Ragni Singh
Super Advisor

Re: sar -d

no Luck still.
Huc_1
Honored Contributor

Re: sar -d

try login out and login in again

hope this helps

J-P
Smile I will feel the difference
Mark Grant
Honored Contributor

Re: sar -d

Looking at the source

http://snupi.sdsc.edu/Software/sar.c

Itlooks to me that the data isn't available in the collected data file. I would look at how youa re calling "sadc"
Never preceed any demonstration with anything more predictive than "watch this"
Huc_1
Honored Contributor

Re: sar -d

if the previous did not work

does the command work

#iostat 1 5

work ?

J-P Still trying to figure out why ?
Smile I will feel the difference
Ragni Singh
Super Advisor

Re: sar -d

Hello, here is the output for iostat 1 5.

[root@pacexdev1 root]# iostat 1 5
Linux 2.4.9-e.27smp (pacexdev1) 11/06/2003

avg-cpu: %user %nice %sys %idle
0.02 0.00 0.04 99.94

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn

avg-cpu: %user %nice %sys %idle
0.00 0.00 0.00 100.00

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn

avg-cpu: %user %nice %sys %idle
0.00 0.00 0.00 100.00

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn

avg-cpu: %user %nice %sys %idle
0.00 0.00 0.00 100.00

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn

avg-cpu: %user %nice %sys %idle
0.00 0.00 0.00 100.00

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn

[root@pacexdev1 root]#
Huc_1
Honored Contributor

Re: sar -d

Sometink is wrong also with the output of iostat command

it should read something like

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
dev8-0 0.00 0.00 0.00 0 0


what missing is dev*-* something

Did you try this from an other login/session

J-P

Smile I will feel the difference
Iustin Pop
Occasional Advisor

Re: sar -d

Hello,

Most likely you don't have compiled the kernel with "Per partition statistics in /proc/partitions" (under Block devices), or you have an older kernel which doesn't support at all this options. Sar and iostat need this in order to show disk throughput.