Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Re: Re: Inventory change report

$
0
0

This is the SQL behind that report; and I have tested in 2 environments today with success showing both Node Added and Node Removed events.

 

select  netobjecttype  ,netobjectid  ,eventtime as 'EVENT TIME'  ,case  when convert(varchar(10), eventtype) = 8 then 'Node Removed'  when convert(varchar(10), eventtype) = 9 then 'Node Added'  end as 'EVENT TYPE'  ,n.caption as 'DEVICE'  ,MESSAGE
from events
join nodes n on n.nodeid = netobjectid
--THIS LINE LIMITS REPORTED EVENTS TO 8(NODE REMOVED) AND 9(NODE ADDED)
where eventtype in ('8','9')
--THIS LINE LIMITS REPORTED EVENTS TO THE LAST 7 DAYS
and eventtime > (getdate()-7)
order by eventtime ASC

Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>