开发者

Startup time in Solaris server using shell script

How to find the start up time of a Solaris 5.1 server using a shell script,need to know how much time it took 开发者_StackOverflow中文版to be on running state?I need to know how much time it took to come to running mode from starting mode?


There is no such thing as Solaris 5.1, I guess you mean Solaris 10 a.k.a. SunOS 5.10.

Anyway, here is a way to know when the system last booted

last reboot | head -1

and here is an alternative, assuming CPUs weren't taken off and on later:

psrinfo


one of the command you can try is uptime.


Easiest way to find the boot-up time (which is not entirely accurate, assumes you're doing a complete reboot with no pause, and ignores hardware bootstrapping time, but does the job) is to simply inspect the logs and get the timecode where the system enters whichever state you're worried about, and subtract the timecode of the last 'halting' state

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜