Hi,
I need help on SQL commands to get the results to create KPI dashboard for "Network Devices availability " WAN interfaces downtime" and :"Network Latency & Packet loss"
Thanks
We use custom properties, but in the Where Clause you could use Vendor instead out of the Nodes table. I don't have one for Wan Interfaces
Nodes that are up Total - Edit the Where to your environment.
SELECT COUNT(Status) as StatusCountfrom orion.nodes nWhere ((TOUPPER([N].CustomProperties.YOURCUSTOMPROPERTYNAME) ='YOURCUSTOMPROPERTYVALUE%') OR Category=1) and [N].Status= 1
Average Uptime
SELECT ROUND(AVG([N].ResponseTimeHistory.Availability),3) as AvgTimefrom Orion.Nodes [N]Where ((TOUPPER([N].CustomProperties.YOURCUSTOMPROPERTYNAME) ='YOURCUSTOMPROPERTYVALUE') OR Category=1)
Average Loss
SELECT ROUND(AVG([N].PercentLoss),2) as AverageLossFROM Orion.Nodes NWhere ((TOUPPER([N].CustomProperties.YOURCUSTOMPROPERTYNAME) ='YOURCUSTOMPROPERTYVALUE') OR Category=1)
Average MS
SELECT ROUND(AVG([N].ResponseTime),2) as ResponseTimeFROM Orion.Nodes NWhere ((TOUPPER([N].CustomProperties.YOURCUSTOMPROPERTYNAME) ='YOURCUSTOMPROPERTYVALUE') OR Category=1)
Thanks Bobmarley,
But we are using only following customer property. I do not have knowledge on SQL and Not sure if this SQL statement would still work.