Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61601
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class - 6/18/2008 6:08:09 PM   
  scorpion13_dt

 

Posts: 6
Score: 0
Joined: 6/18/2008
Status: offline
Hi,
I need to monitor disk, to know how much data is being written on my disk per day. I came across "Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class". I found that it contain the counter that can give me avgdata being written to disk. But my problem is that whenever I run the script to display value of the counter of this class, I get different answer ( Sometime I get 0 also). So I do not know what to do with these varying disk write values. SO my question is Why the value keep Changing. Also is there any other way to workout the problem.

Thnx

< Message edited by scorpion13_dt -- 6/18/2008 6:09:53 PM >


_____________________________

Sagar Trehan
 
 
Post #: 1
 
 RE: Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class - 6/19/2008 3:50:54 AM   
  ebgreen


Posts: 5041
Score: 31
Joined: 7/12/2005
Status: offline
I would suggest starting by researching the class to understand it:

http://msdn.microsoft.com/en-us/library/aa394262(VS.85).aspx

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to scorpion13_dt)
 
 
Post #: 2
 
 RE: Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class - 6/19/2008 4:58:03 PM   
  scorpion13_dt

 

Posts: 6
Score: 0
Joined: 6/18/2008
Status: offline
Hi ebgreen,
Thnx for your reply. But the problem is that I have already gone thru that article and that article doesnot explain anything about how some parameters like "AvgDiskBytesPerWrite " , "DiskWriteBytesPerSec" etc obtain their value. Because the confusion is that these parameters  keep changing their values every time you run the program. So my point is if for e.g. AvgDiskBytesPerWrite  gives the average byte per write then which average is it giving, because this average is keep changing and sometime it is zero also.

Regards

< Message edited by scorpion13_dt -- 6/19/2008 4:59:03 PM >


_____________________________

Sagar Trehan

(in reply to ebgreen)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts