Does anyone have any swql queries to query disk space that are useful ?
Top 40
Can show the correct %
Filter out vss,shared memory
Node name
anything to make it look good as well.
Current query:
SELECT TOP 40 n.Caption,
v.VolumePercentUsed,
CONCAT(ROUND(v.VolumePercentUsed,2), '% Used') AS [Volume Percentage Used],
v.VolumeType,
n.Caption AS [Server Name],
v.Uri
FROM Orion.Volumes v
JOIN Orion.Nodes n ON v.NodeId = n.NodeId
WHERE v.VolumeType IN ('Fixed Disk', 'FixedDisk', 'Mount Point')
ORDER BY v.VolumePercentUsed DESC