Last server startup date

Absolu206 Posted messages 26 Status Membre -  
dubcek Posted messages 18702 Registration date   Status Contributeur 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 réponses

dubcek Posted messages 18702 Registration date   Status Contributeur Last intervention   5 657
 
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
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
Absolu206 Posted messages 26 Status Membre 1
 
I don't really understand what you're telling me.
0
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