Share

Read next article:

"Where are the devices"

Read previous article:

"Interface Performance using SQL Query"

CPU 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 CPU utilization.

SELECT Device.nDeviceID, Device.sDisplayName, sDescription, dPollTime, nProcessorLoad_Avg, nProcessorLoad_Min, nProcessorLoad_Max
FROM dbo.StatisticalCpu
LEFT OUTER JOIN dbo.StatisticalCpuIdentification ON
StatisticalCpuIdentification.nStatisticalCpuIdentificationID = StatisticalCpu.nStatisticalCpuIdentificationID
LEFT OUTER JOIN dbo.PivotStatisticalMonitorTypeToDevice ON
PivotStatisticalMonitorTypeToDevice.nPivotStatisticalMonitorTypeToDeviceID = StatisticalCpuIdentification.nPivotStatisticalMonitorTypeToDeviceID
LEFT OUTER JOIN Device ON
Device.nDeviceID = PivotStatisticalMonitorTypeToDevice.nDeviceID
ORDER BY dPollTime DESC

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

SELECT Device.nDeviceID, Device.sDisplayName, sDescription, dPollTime, nProcessorLoad_Avg, nProcessorLoad_Min, nProcessorLoad_Max
FROM dbo.StatisticalCpuCache
LEFT OUTER JOIN dbo.StatisticalCpuIdentification ON
StatisticalCpuIdentification.nStatisticalCpuIdentificationID = StatisticalCpuCache.nStatisticalCpuIdentificationID
LEFT OUTER JOIN dbo.PivotStatisticalMonitorTypeToDevice ON
PivotStatisticalMonitorTypeToDevice.nPivotStatisticalMonitorTypeToDeviceID = StatisticalCpuIdentification.nPivotStatisticalMonitorTypeToDeviceID
LEFT OUTER JOIN Device ON
Device.nDeviceID = PivotStatisticalMonitorTypeToDevice.nDeviceID
ORDER BY dPollTime DESC

 

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>

3 × cinq =

Facebook

Unable to display Facebook posts.
Show error

Error: (#10) This endpoint requires the 'manage_pages' permission or the 'Page Public Content Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages and https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS for details.
Type: OAuthException
Code: 10
Please refer to our Error Message Reference.