Monday, February 26, 2007

Determine Computer Uptimes for Remote and Local

Here are a couple of handy commands that can be used to determine the uptimes of local and remote computers. The ruptime command shows the status of computers attached to a network. If used with the "-a" option, the ruptime shows the number of users currently logged on. The uptime command shows the local information of the aforementioned.

Run this command provided that security hasn't disabled it
#ruptime -a

For local uptime
#uptime

Here's an example of the output.
12:19pm up 65 day(s), 42 mins, 13 users, load average: 0.39, 0.56, 0.10

No comments: