Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20607

Re: Node Details database table

$
0
0

Hi,

hardware information is stored in Nodes table. Number of CPUs is fetched directly from historical table, because it can change over time. It's not easy to get this information, but you can use this SQL command.

 

SELECT data.NodeID as NodeID, data.Caption, COUNT(data.CPUIndex) As NumberOfCPU from

(SELECT cpu.NodeID, cpu.CPUIndex, n.Caption, cpu.TimeStampUTC,

DENSE_RANK() OVER (PARTITION BY cpu.NodeID ORDER BY cpu.TimeStampUTC desc) AS [Rank]

FROM CPUMultiLoad cpu

INNER JOIN Nodes n ON cpu.NodeID = n.NodeID

) as data

where data.Rank = 1

GROUP BY data.NodeID, data.Caption


Viewing all articles
Browse latest Browse all 20607

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>