Hello all,
Not familiar with SQL / Queries, but I would like to modify the following to incude only nodenames that beging witth XXX, and possible filter to only ethernet interfaces.
declare @prev60 smalldatetime
SET @prev60=dateadd(dd,-60,getdate())
select i.InterfaceName, i.NodeID, i.interfaceid, sa.StatusName as AdminStatus, so.statusname as OperStatus, ss.Statusname as status, Interfacelastchange, n.caption
from
Interfaces i left join StatusInfo sa on i.adminStatus=sa.statusid
left join StatusInfo so on i.OperStatus=so.StatusId
left join StatusInfo ss on i.Status=ss.StatusId
left join Nodes n on i.NodeID=n.NodeID
where (Interfacelastchange < @prev60) and i.Status <> 1 and i.adminstatus <> 4 and i.NodeName like WBX
-- group by n.caption, i.InterfaceName,
order by InterfaceLastChange
Thanks in advance !!