Solarwinds Gurus.. I been trying to learn SWQL but struggling to get percentages of 90, 95, 99 percentile from interface speed. The formula should be (% Utilization (90th) = Average Output bps (95) / Interface Speed) then filter that column for anything above 75%. Below is the current working report that is a canned report by Solarwinds.
SELECT
I.InterfaceID,
I.InterfaceSpeed,
N.NodeID,
N.Caption AS NodeName,
N.DetailsUrl AS NDetailsUrl,
N.VendorIcon AS Vendor,
I.Caption AS Interface_Caption,
I.InterfaceIcon AS Interface_Icon,
I.DetailsUrl AS IDetailsUrl,
AverageInboundBps90th,
AverageOutboundBps90th,
AverageInboundBps95th,
AverageOutboundBps95th,
AverageInboundBps99th,
AverageOutboundBps99th
FROM
(
SELECT
InterfaceID,
AverageInboundBps90th,
AverageOutboundBps90th,
AverageInboundBps95th,
AverageOutboundBps95th,
AverageInboundBps99th,
AverageOutboundBps99th
FROM Orion.NPM.InterfacePercentiles
WHERE [DateTime] > (GETUTCDATE()-30)
) AS IP
JOIN Orion.NPM.Interfaces I ON I.InterfaceID = IP.InterfaceID
JOIN Orion.Nodes N ON I.NodeID = N.NodeIDSELECT
I.InterfaceID,
I.InterfaceSpeed,
N.NodeID,
N.Caption AS NodeName,
N.DetailsUrl AS NDetailsUrl,
N.VendorIcon AS Vendor,
I.Caption AS Interface_Caption,
I.InterfaceIcon AS Interface_Icon,
I.DetailsUrl AS IDetailsUrl,
AverageInboundBps90th,
AverageOutboundBps90th,
AverageInboundBps95th,
AverageOutboundBps95th,
AverageInboundBps99th,
AverageOutboundBps99th
FROM
(
SELECT
InterfaceID,
AverageInboundBps90th,
AverageOutboundBps90th,
AverageInboundBps95th,
AverageOutboundBps95th,
AverageInboundBps99th,
AverageOutboundBps99th
FROM Orion.NPM.InterfacePercentiles
WHERE [DateTime] > (GETUTCDATE()-30)
) AS IP
JOIN Orion.NPM.Interfaces I ON I.InterfaceID = IP.InterfaceID
JOIN Orion.Nodes N ON I.NodeID = N.NodeID