*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> uptime (1)              
Title
Content
Arch
Section
 

Contents


 uptime(1)                                                         uptime(1)




 NAME    [Toc]    [Back]
      uptime, w - show how long system has been up, and/or who is logged in
      and what they are doing

 SYNOPSIS    [Toc]    [Back]
      uptime [-hlsuw] [user]

      uptime [-p[pset_list]]

      w [-hlsuw] [user]

      w [-p[pset_list]]

 DESCRIPTION    [Toc]    [Back]
      uptime prints the current time, the length of time the system has been
      up, the number of users logged on to the system, and the average
      number of jobs in the run queue over the last 1, 5, and 15 minutes for
      the active processors.

      w is linked to uptime and prints the same output as uptime -w,
      displaying a summary of the current activity on the system.

    Options    [Toc]    [Back]
      uptime and w recognize the following options:

           -h   Suppress the first line and the heading line.  This option
                should not be used with the -u option.  This option assumes
                the use of the -w option to uptime.

           -l   Use long output.  This option assumes the use of the -w
                option to uptime.

           -p   Print the current time, the length of time the system has
                been up, and the number of users logged on to the system, in
                the first line of the output.  The load averages over the
                last 1, 5, and 15 minutes for the processor sets (psets)
                given in the command line, pset_list, are displayed in the
                subsequent lines.  If no arguments are given, the load
                averages are displayed for all the psets in the system.

                If pset id of an empty pset is given in the command line,
                corresponding message will be displayed.  If the kernel does
                not have the pset capability, uptime gives an error.  The -p
                option can not be used along with other options.

           -s   Use the short form of output for displaying terminal
                information.  The terminal name is abbreviated; the login
                time and CPU times are suppressed.

           -u   Print only the first line describing the overall state of
                the system.  This is the default for the uptime command.



 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 uptime(1)                                                         uptime(1)




           -w   Print a summary of the current activity on the system for
                each user.  This is the default for the w command.

 EXAMPLES    [Toc]    [Back]
      The command:

           uptime

      produces text resembling the following:

           2:30pm  up 14days, 2:39, 33 users,  load average: 1.71, 1.88,
           1.80

      depending upon the current status of the system.

      The command:

           uptime -p

      gives the load average of all the psets in the system.  If 0,
      94,95,and 97 are the psets existing in the system, the output will
      look like the following:

           7:59pm  up 11 days,  6:25,  12 users

           load average for pset 0   : 1.06, 1.15, 1.15

           load average for pset 94  : 0.00, 0.00, 0.00

           load average for pset 95  : 0.00, 0.00, 0.00

           load average for pset 97  : 1.00, 1.00, 1.01

      The command:

           uptime -p94,95  or  uptime -p"94 95"

      gives the output which looks like the following, if 94 and 95 are
      valid pset ids:

           7:59pm  up 11 days,  6:25,  12 users

           load average for pset 94  : 0.00, 0.00, 0.00

           load average for pset 95  : 0.00, 0.00, 0.00

 AUTHOR    [Toc]    [Back]
      uptime was developed by the University of California, Berkeley and HP.


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
uptime IRIX show how long system has been up
uptime OpenBSD show how long system has been running
uptime FreeBSD show how long system has been running
who Linux show who is logged on
w.procps Linux Show who is logged on and what they are doing.
last Linux show listing of last logged in users
rwho HP-UX show who is logged in on local machines
wcstoll FreeBSD convert a wide character string value to a long, unsigned long, long long, unsigned long long, intma...
wcstoul FreeBSD convert a wide character string value to a long, unsigned long, long long, unsigned long long, intma...
wcstoimax FreeBSD convert a wide character string value to a long, unsigned long, long long, unsigned long long, intma...
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service