Share

Read next article:

"Memory Performance using SQL Query"

Read previous article:

"Email Notification using Gmail"

Disk Performance using SQL Query

In Default | 0 comments

Sometimes you need to use the SQL queries to get the performance data instead of using WUG Reports. You can use the following queries to get the required data for Disk utilization.

SELECT Device.nDeviceID, Device.sDisplayName, sDescription, dPollTime, nSize, nUsed_Avg, nUsed_Min, nUsed_Max 
FROM dbo.StatisticalDisk
LEFT OUTER JOIN dbo.StatisticalDiskIdentification ON 
StatisticalDiskIdentification.nStatisticalDiskIdentificationID = StatisticalDisk.nStatisticalDiskIdentificationID
LEFT OUTER JOIN dbo.PivotStatisticalMonitorTypeToDevice ON 
PivotStatisticalMonitorTypeToDevice.nPivotStatisticalMonitorTypeToDeviceID = StatisticalDiskIdentification.nPivotStatisticalMonitorTypeToDeviceID
LEFT OUTER JOIN Device ON 
Device.nDeviceID = PivotStatisticalMonitorTypeToDevice.nDeviceID
ORDER BY dPollTime DESC

Disk Cache data, the latest Disk utilization data (i.e. exactly one record per monitored Disk)

SELECT Device.nDeviceID, Device.sDisplayName, sDescription, dPollTime, nSize, nUsed_Avg, nUsed_Min, nUsed_Max 
FROM dbo.StatisticalDiskCache
LEFT OUTER JOIN dbo.StatisticalDiskIdentification ON 
StatisticalDiskIdentification.nStatisticalDiskIdentificationID = StatisticalDiskCache.nStatisticalDiskIdentificationID
LEFT OUTER JOIN dbo.PivotStatisticalMonitorTypeToDevice ON 
PivotStatisticalMonitorTypeToDevice.nPivotStatisticalMonitorTypeToDeviceID = StatisticalDiskIdentification.nPivotStatisticalMonitorTypeToDeviceID
LEFT OUTER JOIN Device ON
Device.nDeviceID = PivotStatisticalMonitorTypeToDevice.nDeviceID
ORDER BY dPollTime DESC

 

Share on Facebook0Tweet about this on TwitterShare on Google+0Share on LinkedIn0Pin on Pinterest0

Leave a Reply

Allowed Tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

two + 3 =

Facebook

Unable to display Facebook posts.
Show error

Error: Unsupported get request. Object with ID 'orchtechsoftwarehouse' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
Type: GraphMethodException
Code: 100
Subcode: 33
Please refer to our Error Message Reference.