• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Investigating Discrepancies in ControlUp Columns

Posted on November 11, 2022

The user discussed the difference between two columns in ControlUp’s KB – TimeSpan is based on a specific timezone and Uptime is calculated from the LastBootTime. Uptime in minutes is the difference between the same Uptime converted to DateTime and the local machine’s DateTime.Now, which can be queried in PowerShell through Get-WmiObject or System.DateTime.Now. Further information can be found in the ControlUp support documentation at https://support.controlup.com/docs/monitor-cluster-powershell-fields-by-table?highlight=Uptime%20in%20minutes.


Read the entire ‘Investigating Discrepancies in ControlUp Columns’ thread below:

why would these columns be different


According to KB one is a „TimeSpan“ and one an "DateTime" Type…

Maybe Timespan is calculated on a specific Timezone!?

https://support.controlup.com/docs/monitor-cluster-powershell-fields-by-table?highlight=Uptime%20in%20minutes


Because there is exactly one hour difference :)Daylight savings?


don’t know. Not all servers on the site have the difference just unusual


For the Uptime column, we query the Win32_OperatingSystem WMI namespace and seek for the LastBootTime value (after some comparions with kernal boot time to make sure we don’t have a skew and more).

For "Uptime in minutes", we pass the same Uptime (that was converted into DateTime) and define a new DateTime of Now and subtract the passed Uptime. It’s possbile that the LastBootTime in WMI doesn’t aligne with the local machine "DateTime.Now".

You can query the DateTime.Now in PowerShell like –

[System.DateTime]::Now

and also via PS, the WMI value –

Get-WmiObject -Class Win32_OperatingSystem | select -Property LastBootUpTime


cheers

Continue reading and comment on the thread ‘Investigating Discrepancies in ControlUp Columns’.  Not a member? Join Here!


Categories: All Archives, ControlUp for VDI
Topics: PowerShell, Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..