Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dickybow

macrumors member
Original poster
Aug 12, 2017
62
9
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
 
Yes, open Terminal from /Applications/Utilities and enter uptime then hit the return key. It should output how long the computer has been running.
 
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"
 
Yes, open Terminal from /Applications/Utilities and enter uptime then hit the return key. It should output how long the computer has been running.

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.
 
  • Like
Reactions: dickybow
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.
 
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
"power on hours" is a S.M.A.R.T. feature, try that.

smart.jpg
 
  • Like
Reactions: Shadow Jolteon
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
 
  • Like
Reactions: bernuli
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.
 
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.

Not on original HDD, but thanks
[doublepost=1522909236][/doublepost]Thanks for all your input
 
Not on original HDD, but thanks
[doublepost=1522909236][/doublepost]Thanks for all your input
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.
 
  • Like
Reactions: bernuli
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.

But that can only know that particular's HDD total ON time, not the computer's total running time.
 
But that can only know that particular's HDD total ON time, not the computer's total running time.
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.
 
  • Like
Reactions: bernuli
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.

This is very true indeed. (assuming no overlapping usage of that two hard drives)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.