Go to main content

手册页部分 1:用户命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

ruptime(1)

名称

ruptime - 显示本地计算机的主机状态。

用法概要

ruptime [-ar] [-l | -t | -u]

描述

The ruptime utility gives a status line like uptime(1) for each machine on the local network which is actively running the in.rwhod(8) service; these are formed from packets broadcast by such hosts approximately every three minutes.

在 11 分钟内没有收到其任何状态报告的计算机将显示为关机。

通常情况下,列表根据主机名来排序,但是可通过指定以下所列选项中的一个来更改此顺序。

选项

支持以下选项:

–a

对已空闲一个小时或更长时间的那些用户也进行计数。

–r

颠倒排序顺序。

–l | –t | –u

这些选项是互斥的。使用其中一个选项会覆盖之前所使用的一个或多个选项。

–l

按平均负荷值对显示进行排序。

–t

按运行时间对显示进行排序。

–u

按照用户数量对显示进行排序。

文件

/var/spool/rwho/whod.*

data files

属性

有关下列属性的说明,请参见 attributes(7)

属性类型
属性值
可用性
network/legacy-remote-utilities
Interface Stability
Obsolete

另请参见

rup(1), rwho(1), uptime(1), attributes(7), in.rwhod(8)

附注

将来的 Oracle Solaris 发行版可能会删除此技术。

For the ruptime command to be able to display data, the system it is run on must also be running the in.rwhod(8) service to receive the broadcast packets and store the data into the files in /var/spool/rwho/ that the ruptime command reads.This service is not run by default on Oracle Solaris systems, but needs to be manually enabled by an adminstrator.

History

The ruptime command, including support for the options –a, –h, –l, –r, and –t, has been present since the initial release of Solaris.