To check uptime on the hmc.
ssh into hmc as hscroot
chhmcusr -u hscpe -t passwd
chhmcusr -u root -t passwd
ssh in as hscpe
lshmc -v
pesh <sn>,
su - root
uptime
was able to check uptime on both of his hmcs.
or
In normal AIX / Linux world you have the uptime command, but within the restricted shell on the HMC code you do not have this command available to you. There is a way you can calculate this.
# cat /proc/uptime
178173.89 174911.35
The first number is the number of seconds the HMC system has been up. So you can take that number and convert it to days.
178173/60 for minutes
then divide by 60 again for the number of hours
then divide by 24 which will give you 2.0621875 days
you can also run "who -b" to get the last system boot time
ReplyDeleteThanks, good tip
ReplyDeletehscroot@nlanmc05:~> who -b
ReplyDeletesystem boot May 24 16:37