IBM Support

HMC Uptime

How To


Summary

How to find the uptime of an IBM Power Systems HMC

Objective

Banner_AIX_i_Linux

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

You run these commands on the HMC Command Line.

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: 

Document Location

Worldwide

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"HW1A1","label":"IBM Power Systems"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF050","label":"BMC"},{"code":"PF009","label":"Firmware"},{"code":"PF041","label":"HMC"},{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
03 May 2021

UID

ibm11116291