I want to edit an existing report in order to try to add in some more columns. I want to add the MAC address and the VLAN. I click on the plus tap but can't find where to add these. Can anyone help?
\
I'm doing a little digging and it looks like the MAC and VLAN are stored in the "UDT.Port" table in the database, but the info you've already got in this report is stored in the "UDT.UnusedPorts" table. I'm trying to write some SWQL that would build this report for you, but I'm running into some roadblocks. I'll ask some SWQL experts and see if we can get something whipped up.
Thanks to wluther this SWQL query seems to pull exactly what you're looking for:
SELECTup.Caption as NodeName,p.Node.IPAddress,p.Name as PortName,p.PortDescription,up.DaysUnused,p.MACAddress,v.VlanID as VLANFROM Orion.UDT.Port AS pJOIN Orion.UDT.UnusedPorts AS up ON up.NodeID=p.NodeID AND up.PortID=p.PortIDJOIN Orion.UDT.VLAN AS v ON v.PortID=p.PortIDWHERE p.Node.IPAddress = 'x.x.x.x'AND up.DaysUnused != 'Never'AND up.DaysUnused > 0ORDER BY DaysUnused
Tweak the filtering as needed, I've got it set to only produce data for a single node, and to exclude any ports that have "never" been unused or have an DaysUnused value of zero.
Does this work for you? Keep in mind that in the latest version of Orion (v2019.2) custom SWQL resources are broken... that bug will be addressed in Hotfix 2.
When comparing this to running the command "show interface links", this report does not give me the correct information. How can i get something to look like this? The standar UDT report does not match running this cisco command to show the same info.
This looks much different than the report from your original post, which is what I wrote the query for. What is the data in the second column, is it a port description?
This is the output from running the command "show interface links" on a cisco device. As you can see, UDT report does not match the times reported in using this command. Hence this report is not accurate.