Last server startup date

Hello,

I would like to get the date of the last server startup.

I have:
--> the uptime command which gives the number of days and hours of server activity.
--> the who -b command which gives:
. system boot Apr 28 10:47

But I would also like the year and the seconds. Is it possible?

3 answers

  1. Contributor
    and what does the command w give?
    man w
    ...
    The header shows, in this order, the current time, how long the system has been running
    ...
    1
    1. Hi, yes it should be possible by going through the MIB of your server. For this, you need to display all the variables and search by ID number.
      I can give you more information later if you're interested.
      0
      1. I don't really understand what you're telling me.
        0
        1. Hi, to be clearer, each piece of hardware has its own database called MIB, which contains fixed or incrementable variables.
          So if you go through this entire database, you will surely find what you're looking for.
          0