[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4


ruptime Command

Purpose

Shows the status of each host on a network.

Syntax

ruptime [ -a] [ -r] [ -l | -t | -u]

Description

The /usr/bin/ruptime command displays the status of each host that is on a local network and is running the rwhod daemon. The status lines are sorted by host name unless the -l, -t, or -u flag is indicated. The status information is provided in packets broadcast once every 3 minutes by each network host running the rwhod daemon. Any activity (such as power to a host being turned on or off) that takes place between broadcasts is not reflected until the next broadcast. Hosts for which no status information is received for 11 minutes are reported as down.

Output is in the following format: hostname, status, time, number of users, and load average. Load average represents the load averages over 1-, 5-, and 15-minute intervals prior to a server's transmission. The load averages are multiplied by 10 to represent the value in decimal format.

Flags


-a Includes all users. Without this flag, users whose sessions are idle an hour or more are not included.
-l Sorts the list by the load average.
-r Reverses the sort order. The -r flag should be used with the -l, -t or -u flag.
-t Sorts the list by the uptime.
-u Sorts the list by the number of users.

Examples

  1. To get a status report on the hosts on the local network, enter:

    ruptime
    

    Information similar to the following is displayed:

    host1      up      5:15,   4 users,   load 0.09, 0.04, 0.04
    host2      up      7:45,   3 users,   load 0.08, 0.07, 0.04
    host7      up      7:43,   1 user,    load 0.06, 0.12, 0.11
    
  2. To get a status report sorted by load average, enter:
    ruptime -l
    Information similar to the following is displayed:

    host2      up      7:45,   3 users,   load 0.08, 0.07, 0.04
    host1      up      5:18,   4 users,   load 0.07, 0.07, 0.04
    host7      up      7:43,   1 user,    load 0.06, 0.12, 0.11
      
    

Files


/var/spool/rwho/whod.* Indicates data files received from remote rwhod daemons.

Related Information

The rwho command.

The rwhod daemon.

Network Overview in AIX 5L Version 5.1 System Management Guide: Communications and Networks.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]