SMS SQL to show Heartbeat Discovery times
Some simple SQL to show quick status on heartbeat discovery for all your SMS clients.
----Begin SQL----
select AgentName, DatePart(dd, AgentTime) 'Day',
DatePart(hh, AgentTime) 'Hour' ,
Count(*) 'Count'
from v_AgentDiscoveries
Where AgentName = 'Heartbeat Discovery' and AgentTime > '2007-06-18'
Group by AgentName, DatePart(dd, AgentTime),
DatePart(hh, AgentTime)
Order By AgentName, DatePart(dd, AgentTime), DatePart(hh, AgentTime)
----End SQL----
----Begin SQL----
select AgentName, DatePart(dd, AgentTime) 'Day',
DatePart(hh, AgentTime) 'Hour' ,
Count(*) 'Count'
from v_AgentDiscoveries
Where AgentName = 'Heartbeat Discovery' and AgentTime > '2007-06-18'
Group by AgentName, DatePart(dd, AgentTime),
DatePart(hh, AgentTime)
Order By AgentName, DatePart(dd, AgentTime), DatePart(hh, AgentTime)
----End SQL----
Comments