I am trying to use the SDK SWis (and not use ODBC), but am having some issues with getting the right query together. I am familiar with table joins and date manipulation in SQL, but so far cannot see how to pull it all together in SWis.
for example, show min/max/avg utilization for yesterday for a router interface managed by NPM. showing the router, interface description, min/max/avg ... for yesterday.. or for each day this month. or for prime shift hours each weekday this month. etc.... you see what I mean.
I found a related query in the report writer, but it uses SQL. i need examples of date manipulation. and avg/max function calls in SWIS .
are these examples somewhere in the SWis toolkit and I have just not spotted them yet?
Don M
SELECT
TOP (100) PERCENT
CONVERT(DateTime, FLOOR(CAST(dbo.InterfaceTraffic.DateTime AS Float)), 0) AS DayRound,
- dbo.InterfaceTraffic.NodeID,
- dbo.InterfaceTraffic.InterfaceID,
- dbo.Interfaces.Caption,
AVG(dbo.InterfaceTraffic.In_Averagebps) AS In_Averagebps,
MIN(dbo.InterfaceTraffic.In_Minbps) AS In_Minbps,
MAX(dbo.InterfaceTraffic.In_Maxbps) AS In_Maxbps,
**snip**