Total Hours On Counter ?

Discussion in 'Mac Pro' started by dickybow, Apr 4, 2018.

  1. dickybow macrumors member

    Joined:
    Aug 12, 2017
    #1
    Hello

    Is there any script or way of counting how many days / hours a Mac Pro 6,1 2013 has been on ?

    Number of power on / restarts etc?

    Thanks
     
  2. Shadow Jolteon macrumors regular

    Shadow Jolteon

    Joined:
    Feb 1, 2018
    Location:
    United States
    #2
    Yes, open Terminal from /Applications/Utilities and enter uptime then hit the return key. It should output how long the computer has been running.
     
  3. dickybow thread starter macrumors member

    Joined:
    Aug 12, 2017
    #3
    thanks but that is uptime since last reboot / power on

    "The “uptime” of a computer is how long it has been since it was last rebooted or started up"
     
  4. ActionableMango macrumors G3

    ActionableMango

    Joined:
    Sep 21, 2010
    #4
    Well, that's only since the last reboot/powerup. Since OP wants to know number of reboots, etc., I think he means total lifetime power on, like hours on a generator or miles on an odometer.

    I'm not aware of any way to track that, at least not on a PC. Some consumer devices like a TV keep track of this and you can access it from a service menu or service remote.
     
  5. willmtaylor, Apr 4, 2018
    Last edited: Apr 4, 2018

    willmtaylor macrumors G3

    willmtaylor

    Joined:
    Oct 31, 2009
    Location:
    A Natural State
    #5
  6. dickybow thread starter macrumors member

    Joined:
    Aug 12, 2017
  7. pl1984 macrumors 68000

    Joined:
    Oct 31, 2017
    #7
    If the system has the original hard drive you may be able to get an idea from the S.M.A.R.T. "Start/Stop Count" and "Power-On Hours" metrics. I'm unsure if this would work for SSD equipped systems.
     
  8. AidenShaw macrumors P6

    AidenShaw

    Joined:
    Feb 8, 2003
    Location:
    The Peninsula
    #8
    "power on hours" is a S.M.A.R.T. feature, try that.

    smart.jpg
     
  9. h9826790 macrumors G4

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #9
    This "ac" command is not really the total up time. e.g. In my case, it only shows 4732 hours. But my cMP basically ON 24/7 since 2009. That's too far away from the real accumulated system up time.
    Screen Shot 2018-04-05 at 04.49.33.jpg
     
  10. NoBoMac macrumors 68000

    Joined:
    Jul 1, 2014
    #10
    Edit: as above, seeing accounting information when command run as root or via sudo. Also getting a number that does seem low for my machine and usage.

    The various log files in the system do roll over, so, no master file with every startup/shutdown recorded in it, probably.
     
  11. dickybow thread starter macrumors member

    Joined:
    Aug 12, 2017
    #11
    Not on original HDD, but thanks
    --- Post Merged, Apr 4, 2018 ---
    Thanks for all your input
     
  12. AidenShaw macrumors P6

    AidenShaw

    Joined:
    Feb 8, 2003
    Location:
    The Peninsula
    #12
    If you still have the original, you can stick it in any system and get the S.M.A.R.T. data. Could even be a Windows or Linux system - as long as it's not completely dead the data can be read.
     
  13. h9826790 macrumors G4

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #13
    But that can only know that particular's HDD total ON time, not the computer's total running time.
     
  14. AidenShaw macrumors P6

    AidenShaw

    Joined:
    Feb 8, 2003
    Location:
    The Peninsula
    #14
    But if the old disk was the original system disk, and they're on the second system disk - the sum of the two times would be the computer's total. As long as you have all of the system disks, you can get the computer's total.
     
  15. h9826790 macrumors G4

    h9826790

    Joined:
    Apr 3, 2014
    Location:
    Hong Kong
    #15
    This is very true indeed. (assuming no overlapping usage of that two hard drives)
     

Share This Page