I am looking for a "cat /proc/diskstats
(from linux)" equivalent in solaris OS, to get disk stats such as reads per sec, writes per sec, kb reads per sec, kb writes per sec.
I tried iostat -xnp
, but i guess its not giving me the complete information.
when i issues df -k
, i could see only entry with partition name as /dev/dsk/* format, that is my CD drive.
Output of df -k
:
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/dsk/c1t1d0s2 57632 57632 0 100% /media/VBOXADDITIONS_5.0.14_105127
So, i am expecting an entry with c1t1d0s2
in iostat -xnp
, but i dont see any.
Is iostat -xnp
the right command for my problem?
The
iostat -xnp
command is already providing all the information you requested.The fact there is no specific line for
c1t1d0s2
is due to the fact there is no partition table on the cdrom. Here,c1t1d0s2
is equivalent to the whole device so you get its statistics withiostat -xnp
in the line referencingc1t1d0
Beware that the first line is showing the average values since last boot so you should ask for two reports and pick the second one to get current statistics (e.g.
iostat -xnp 1 2
for a one second sample).