Quantcast
Channel: Symantec Connect: Deployment and Imaging
Viewing all articles
Browse latest Browse all 622

Report to check when was the last time machine reported/ connected to network

$
0
0
Oui, j'ai besoin d'une solution

Hi Friends

 

i have a report which gives me details of machines turned on, however i wish to know when was the last time the machine was on network / reported

 

SELECT ci.Name
,CASE WHEN ctr.IsActive = 1 THEN 'Yes'
WHEN ctr.IsActive = 0 THEN 'No' END AS PoweredOn
,CASE WHEN lastTime.Event = 'Logoff' THEN 'No'
WHEN lastTime.Event = 'Logon' THEN 'Yes'
ELSE 'N/A' END AS UserLoggedOn
FROM vRM_Computer_Item ci
JOIN Inv_Client_Task_Resources ctr
ON ctr._ResourceGuid = ci.Guid
LEFT JOIN (SELECT _ResourceGuid, _eventTime, clo.[Event]
FROM Evt_AeX_Client_LogOn clo
JOIN (SELECT MAX (_id) AS ID
FROM Evt_AeX_Client_LogOn
GROUP BY _ResourceGuid) maxid
ON maxid.ID = clo._id) lastTime
ON lastTime._ResourceGuid = ctr._ResourceGuid
 

 

This is the present query which displays the following tabs " Machine Name" , "Powered On" , "user logged on ",

i wish to add one more tab which will display when was the last time the machine reported/ turned on

 

Thank you

 

Tanoj


Viewing all articles
Browse latest Browse all 622

Trending Articles



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