How To
Summary
How to find the uptime of an IBM Power Systems HMC
Objective
You may want to know how long it is since your HMC was booted - that is to find its uptime.
A lot of people think that you need “root” to find out, but this is not the case.
There are various ways to find out...
Environment
Steps
At boot time, a log is created, so you can look at the timestamp:
hscroot@hmc14:~> ls -l /var/log/boot.log
-rw-r--r-- 2 root root 3906 Aug 1 14:42 /var/log/boot.log
You can use the who command
hscroot@hmc14:~> who -b
system boot Aug 1 14:42
You can look in the proc filesystem
hscroot@hmc14:~> cat /proc/uptime
5025111.48 36811723.76
+---+----+ +----+----+
| |
| +------> Idle seconds
|
+------------------> Seconds of uptime
But 36811723.76 > 5025111.48
How can the “idle time” exceed the “uptime”?
In fact the Idle seconds refers to the number of seconds that the processors have been idle. in this case, there are 8 processors in this particular HMC.
Additional Information
You can contact me:
- mailto:gaz@uk.ibm.com
- Twitter @power_gaz
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
03 May 2021
UID
ibm11116291