I am creating a swql query to get the list of interfaces having high % utilization on the previous day between 2 timestamps. Below is the query that I am using for static date and time stamp. I need one with dynamic date where I can specify the timestamp.
SELECT n.Caption as [Node], i.DisplayName as [INTERFACE], i.InPercentUtil AS [Receive], i.OutPercentUtil AS [Transmit],i.DateTime AS [TIME] FROM Orion.NPM.InterfaceTraffic i INNER JOIN Orion.Nodes n ON (n.NodeID = i.NodeID) WHERE (i.InPercentUtil >= 80 OR i.OutPercentUtil >= 80) AND i.DateTime >='2/21/2023 10:50:00 AM' AND i.DateTime <= '2/21/2023 11:05:00 AM'