1845890 Members
4402 Online
110250 Solutions
New Discussion

Disk name (Sar command)

 
Hemant_7
Occasional Advisor

Disk name (Sar command)

Hi there
How can i get the disk name programatically using C. Same as displayed by sar -d 2 2 command

The device name given by the sar in my system is c1t2d0
c2t2d0, c2t0d0.

I m using struture pst_diskinfo and field pst_diskinfo.psd_drv_name.psd_name to get the name.But i m not getting it correctly.Is this correct ?

Can nyone tell me how to get the desire name using this structure .Or any field that can map disk name.

Waiting for ur reply
Thanks
Hemant