‎12-12-2014 10:07 AM
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
Convert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) / 3600 /
24))) + ' days ' +
Convert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) / 3600 %
24))) + ' hours ' +
Convert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) % 3600 /
60))) + ' minutes' As Uptime
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblAssetCustom.State = 1 And tblAssets.Uptime Is Not Null
Order By tblAssets.Uptime Desc
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
Convert(Decimal(12,2),tblAssets.Uptime / 86400) As UptimeDays
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where Convert(Decimal(12,2),tblAssets.Uptime / 86400) Is Not Null And
tblAssetCustom.State = 1
Order By UptimeDays Desc
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
Convert(Decimal(12,2),tblAssets.Uptime / 3600) As UptimeHours
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where Convert(Decimal(12,2),tblAssets.Uptime / 3600) Is Not Null And
tblAssetCustom.State = 1
Order By UptimeHours Desc
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename As AssetType,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
Convert(Decimal(12,2),tblAssets.Uptime / 60) As UptimeMinutes
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where Convert(Decimal(12,2),tblAssets.Uptime / 60) Is Not Null And
tblAssetCustom.State = 1
Order By UptimeMinutes Desc
‎03-03-2016 10:54 PM
‎03-05-2016 12:26 PM
Mike Baker wrote:
Not sure if this possible, but is there a was to tell what time of the day these computers are on? Then pull a report for a certain time period. We are trying to figure what computers are still at night after we applied power saving settings.
‎06-09-2016 05:09 PM
Susan.A wrote:
The reports in this topic are based on tblAssets.Uptime, which only stores the uptime since the last reboot. There are uptime events (reboots, shutdowns...) in tblUptime as well. You could build a report based on tblUptime that lists machines without a shutdown event in a given time period.
‎01-29-2016 01:50 PM
‎01-30-2016 03:41 PM
laurentiun wrote:
scanning once a day the computer status is not relevant. Use 6005 and 6006 eventid
‎09-29-2015 01:57 PM
‎09-29-2015 01:28 PM
‎09-22-2015 03:37 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now