diff options
author | jmallett <jmallett@FreeBSD.org> | 2003-03-01 23:09:26 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2003-03-01 23:09:26 +0000 |
commit | a8d4a15be4828f5a448ba670c6e6a8c793c945e6 (patch) | |
tree | e7337dd73af5ab0ec496daecbf88db551e4e47e5 /usr.bin/ruptime/ruptime.1 | |
parent | 1d9375957c5801dcf8c85de494ac52f8400b1aa9 (diff) | |
download | FreeBSD-src-a8d4a15be4828f5a448ba670c6e6a8c793c945e6.zip FreeBSD-src-a8d4a15be4828f5a448ba670c6e6a8c793c945e6.tar.gz |
Add functionality to only list hosts specified on the command line. If none
are specified the old behaviour is old. The submitted applied a much cleaner
diff to ruptime.c, however it did not cover cases like listing failures. It
would probably be a good idea to move the printing from the ruptime function,
and have that function just be used to build the list, as that would unbreak
sorting, but this diff is intended to be clear, relative to the original
code. As the sort order is the order specified on the command line, for now,
such is documented in the manual page accordingly.
Submitted by: Edward J. M. Blocklesby <ejb@lythe.org.uk>
MFC after: 3 weeks
Diffstat (limited to 'usr.bin/ruptime/ruptime.1')
-rw-r--r-- | usr.bin/ruptime/ruptime.1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/ruptime/ruptime.1 b/usr.bin/ruptime/ruptime.1 index f15153a..1ef1eb9 100644 --- a/usr.bin/ruptime/ruptime.1 +++ b/usr.bin/ruptime/ruptime.1 @@ -41,6 +41,7 @@ .Sh SYNOPSIS .Nm .Op Fl alrtu +.Op Ar host ... .Sh DESCRIPTION The .Nm @@ -49,6 +50,13 @@ utility gives a status line like for each machine on the local network; these are formed from packets broadcast by each host on the network once every three minutes. .Pp +If no operands are given, +.Nm +displays uptime status for all machines; +otherwise only those hosts specified on the command line are displayed. +If hosts are specified on the command line, the sort order is equivalent +to the order hosts were specified on the command line. +.Pp Machines for which no status report has been received for 11 minutes are shown as being down, and machines for which no status report has been received for 4 days are not shown in the list at all. |