I have created a report using DQB that shows the last time that an interface on an edge switch port last changed and the number of days. The report is grouped by the Node caption (i.e. switch host name) and sorted by 'Last Change - Interfaces' then by 'Interface Index - Interfaces' both ascending. This works, except that I would prefer that the grouped nodes are sorted by caption - as they are named for the room they are located. We use the report to determine which patched ports can be re-patched, in a given LAN room.
This is not really an issue for the smaller sites, but for our main site the report is currently 82 pages, so it needs to have the report ordered. In addition, we don't need to know the duration that all of the ports have been down for, just the top 5 is enough - as the report will be run daily and we rarely need more than half a dozen to be re-patched. I have two questions:
1. How do I order the grouped nodes?
2. How can i select the top (i.e. oldest) 5 interface last change dates?
I have tried using SWQL (in SWQL Studio) which gives me the data (but not the number of days). However iI couldn't get the grouping to work (or hide the Interface Index). The code is:
SELECT
n.Caption,
n.Interfaces.InterfaceIndex,
n.Interfaces.InterfaceName,
n.Interfaces.InterfaceLastChange
FROM Orion.Nodes n
WHERE
n.interfaces.OperStatus ='2'
AND
n.interfaces.InterfaceName NOT LIKE '%A%'
AND
n.interfaces.InterfaceAlias = ''
AND
n.CustomProperties.TechnicalService = ',Edge Network,'
AND
n.CustomProperties.Campus LIKE 'Cant%'
Order By n.Caption,
n.Interfaces.InterfaceLastChange,
n.Interfaces.InterfaceIndex,
n.Interfaces.InterfaceName
The 'All active Alerts' has the type of layout that I want, but was too complicated for me to copy and change to my requirement.
Any assistance with this would be much appreciated. There are currently 171 nodes at the main site, so if the report was limited to 5 interfaces per node, this would significantly reduce the report size.
Thanks
David