‎10-09-2013 05:19 PM
‎10-10-2013 08:51 PM
SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
Convert(Decimal(6,2),tblAssets.Uptime / 60 / 60 / 24) As Uptime,
DateAdd(second, 0 - tblAssets.Uptime, tblAssets.Lastseen) AS LastBoot,
tblAssets.Lastseen,
tblAssets.Lasttried
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblComputersystem ON tblAssets.AssetID = tblComputersystem.AssetID
WHERE
tblAssetCustom.State = 1
AND tblComputersystem.Domainrole < 2
ORDER BY
tblAssets.Uptime Desc
‎10-11-2013 02:04 PM
RC62N wrote:
The last restart can be derived using the uptime. As of tblAssets.Lastseen a machine had an uptime of tblAssets.Uptime seconds. To calculate the last restart time, subtract the uptime from the time last seen.SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
Convert(Decimal(6,2),tblAssets.Uptime / 60 / 60 / 24) As Uptime,
DateAdd(second, 0 - tblAssets.Uptime, tblAssets.Lastseen) AS LastBoot,
tblAssets.Lastseen,
tblAssets.Lasttried
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblComputersystem ON tblAssets.AssetID = tblComputersystem.AssetID
WHERE
tblAssetCustom.State = 1
AND tblComputersystem.Domainrole < 2
ORDER BY
tblAssets.Uptime Desc
‎10-10-2013 06:36 AM
‎10-10-2013 10:58 AM
uzetaab wrote:
you can see their uptime on their summary page. Will that do?
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now