Last server startup date

Absolu206 Posted messages 26 Status Member -  
dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   -
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. dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   5 659
     
    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
  2. tonio443
     
    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
  3. Absolu206 Posted messages 26 Status Member 1
     
    I don't really understand what you're telling me.
    0
    1. tonio443
       
      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