
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2015 11:41 PM
I need to create a report that will show a percent (?) of uptime for a server over a given date range. Is that possible?
Solved! Go to Solution.
Labels:
- Labels:
-
Report Center
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2015 01:08 PM
tblAssets.Uptime contains the uptime of the computer since it's last reboot. It doesn't provide information about how long the computer has been up altogether. Have a look also on the Database Dictionary which is accessible from the Report Builder.
Events for each Power on and Power off are saved in tblUptime. But since you only have Date and Time for each single event, the uptime can't be easily calculated. You need to loop through all entries in this table in order to sum up the uptime. We are working on a widget which can calculate computer uptime over a given number of days.
Events for each Power on and Power off are saved in tblUptime. But since you only have Date and Time for each single event, the uptime can't be easily calculated. You need to loop through all entries in this table in order to sum up the uptime. We are working on a widget which can calculate computer uptime over a given number of days.
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2015 03:57 PM
This is great. Really helpful. Thank you very much.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2015 03:50 PM
Hi,
I created this report in order to reduce multiple results for each computer, try it and I hoppe can help you
Select Top 10000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24) As UptimeDays,
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen) As MonPeriod,
tblAssetCustom.Model,
max(tbluptime.eventtime) as LastUp,
datediff(dd,max(tbluptime.eventtime),getdate()) as UpDays
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblComputersystem.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblUptime On tblComputersystem.AssetID = tblUptime.AssetId
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
group by
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24),
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen),
tblAssetCustom.Model
order by UpDays
Regards.
I created this report in order to reduce multiple results for each computer, try it and I hoppe can help you

Select Top 10000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24) As UptimeDays,
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen) As MonPeriod,
tblAssetCustom.Model,
max(tbluptime.eventtime) as LastUp,
datediff(dd,max(tbluptime.eventtime),getdate()) as UpDays
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblComputersystem.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblUptime On tblComputersystem.AssetID = tblUptime.AssetId
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
group by
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24),
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen),
tblAssetCustom.Model
order by UpDays
Regards.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2018 11:47 PM
How does it select server OS's. Not all my servers are showing after running report. Thanks!
MaginHdez wrote:
Hi,
I created this report in order to reduce multiple results for each computer, try it and I hoppe can help you
Select Top 10000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24) As UptimeDays,
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen) As MonPeriod,
tblAssetCustom.Model,
max(tbluptime.eventtime) as LastUp,
datediff(dd,max(tbluptime.eventtime),getdate()) as UpDays
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblComputersystem.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblUptime On tblComputersystem.AssetID = tblUptime.AssetId
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
group by
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24),
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen),
tblAssetCustom.Model
order by UpDays
Regards.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2015 01:08 PM
tblAssets.Uptime contains the uptime of the computer since it's last reboot. It doesn't provide information about how long the computer has been up altogether. Have a look also on the Database Dictionary which is accessible from the Report Builder.
Events for each Power on and Power off are saved in tblUptime. But since you only have Date and Time for each single event, the uptime can't be easily calculated. You need to loop through all entries in this table in order to sum up the uptime. We are working on a widget which can calculate computer uptime over a given number of days.
Events for each Power on and Power off are saved in tblUptime. But since you only have Date and Time for each single event, the uptime can't be easily calculated. You need to loop through all entries in this table in order to sum up the uptime. We are working on a widget which can calculate computer uptime over a given number of days.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2019 10:18 AM
Daniel.B wrote:
tblAssets.Uptime contains the uptime of the computer since it's last reboot. It doesn't provide information about how long the computer has been up altogether. Have a look also on the Database Dictionary which is accessible from the Report Builder.
Events for each Power on and Power off are saved in tblUptime. But since you only have Date and Time for each single event, the uptime can't be easily calculated. You need to loop through all entries in this table in order to sum up the uptime. We are working on a widget which can calculate computer uptime over a given number of days.
Hey Daniel,
when will the widget be available? Is it still under development?
Our question is that... we want to know how many days from the last month (i.e. January 2019) the computers have been on in days or hours.
Greetings
Sven

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2015 03:47 PM
I have this so far but I am getting multiple results for each computer
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24) As UptimeDays,
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen) As Period,
tblAssetCustom.Model
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblUptime On tblAssets.AssetID = tblUptime.AssetId
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
Convert(Decimal(7,2),tblAssets.Uptime / 60 / 60 / 24) As UptimeDays,
DateDiff(m, tblAssets.Firstseen, tblAssets.Lastseen) As Period,
tblAssetCustom.Model
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblUptime On tblAssets.AssetID = tblUptime.AssetId
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
