Sponsored Content
Top Forums UNIX for Advanced & Expert Users Users logged in longer than machine uptime? Post 302114532 by jgt on Monday 16th of April 2007 10:27:24 PM
Old 04-16-2007
uptime and w

Both these programs use the same man page, and the same files.
File /etc/utmp and /etc/wtmp are used to calculate who is logged on, and for how long.
My guess is that one of these has been corrupted.
Are you running out of disk space 'no space on dev (1/42)' messages on the console, or in /usr/adm/messages?
Did the system crash?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Information about users who have logged.

Hi, Suppose I have a programme called Menu. This menu has various choices as we would expect from a Menu. Now Can you Please help me as I want the details of the Users to be registered to some file , Whoever has entered this particular Program . Basically to see the username and the time that... (2 Replies)
Discussion started by: rooh
2 Replies

2. IP Networking

All tcp/ip users are logged out

I have an RS6000 server running AIX and on occasion all users are logged out of the server "connection closed by foreign host" is the error message. Normally a user can press enter and get a Login prompt, but they get the message "connection refused" and then the users can wait a minute or so and... (2 Replies)
Discussion started by: Docboyeee
2 Replies

3. UNIX for Dummies Questions & Answers

How to know what users are logged in to account

hello all say im logged in to account ar root , but I can't change any thing there ( like username ) if someone is already logged in also . how can I know who is ( user name ) also connected to the user im using ? (2 Replies)
Discussion started by: umen
2 Replies

4. Shell Programming and Scripting

how many users logged

in unix what is the syntax to find out how many users are currently logged in (4 Replies)
Discussion started by: trichyselva
4 Replies

5. AIX

uptime reports differntly for different users

when i run uptime as root i get the following result (which is incorrect) uptime 14:33pm up -176 days, -11:-38, 0 users, load average: 4.59, 4.16, 4.03 when i run it as a normal user i get the following (which is correct) uptime 02:33PM up 320 days, 15:02, 6 users, load... (1 Reply)
Discussion started by: zuessh
1 Replies

6. Post Here to Contact Site Administrators and Moderators

logged out users

how to find out users who logged out within 5 minutes (1 Reply)
Discussion started by: roshni
1 Replies

7. Shell Programming and Scripting

Users Not Logged in

I have searched the forums but have not mangaed to quite find what im looking for. I have used to /etc/passwd command to present me a list of all users the who command to present all users currently logged on, but what i want to know is what command can i use to display users that are registered... (12 Replies)
Discussion started by: warlock129
12 Replies

8. UNIX for Dummies Questions & Answers

How many users are logged in?

How do I find this out? I have a feeling its a simple command such as who, but I just don't know what it is. I've had a search on here but either I can't put it into the right search criteria or there isn't a topic on it. Thanks. EDIT: Delete this thread, as I posted it I noticed the... (0 Replies)
Discussion started by: chris_rabz
0 Replies

9. Shell Programming and Scripting

Total number of users logged in a server from uptime

how to find out total number of users logged in a server from uptime . i mean to say i need the total output of unix command . who gives the out put at a particular time . I need at all time from which machine who has connected , (3 Replies)
Discussion started by: amiya.te@gmail
3 Replies

10. Shell Programming and Scripting

Removing old user directories that are no longer Users in /etc/passwd

I am new to shell scripting, and have not done much programming in several years. So I am very rusty at this at best. I know my way around the linux command line, but actually scripting is something I have not done too much of. I have been tasked to come up with a script that will pull all... (5 Replies)
Discussion started by: shuiend
5 Replies
uptime(1)						      General Commands Manual							 uptime(1)

NAME
uptime, w - show how long system has been up and/or who is logged in and what they are doing SYNOPSIS
[user] [pset_list]] [user] [pset_list]] DESCRIPTION
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. is linked to and prints the same output as displaying a summary of the current activity on the system. Options and recognize the following options: 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 average number of jobs in the core over the last 1, 5, and 15 minutes for the active processors is also printed. When used with the option, the load averages for the processor sets (psets) are calculated on a core basis. Suppress the first line and the heading line. This option should not be used with the option. This option assumes the use of the option to Use long output. This option assumes the use of the option to 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, a corresponding message will be displayed. If the kernel does not have the pset capability, gives an error. The option cannot be used along with other options except Use the short form of output for displaying terminal information. The terminal name is abbreviated, and the login time and CPU times are suppressed. Print only the first line describing the overall state of the system. This is the default for the command. Print a summary of the current activity on the system for each user. This is the default for the command. EXAMPLES
The command: produces text resembling the following: depending upon the current status of the system. The command: gives the load average of all the psets in the system. If 0, 94, 95, and 97 are existing psets in the system, the output will look like the following: The command: gives output which looks like the following if 94 and 95 are valid pset ids: The command: gives the load average of the system, producing output resembling the following: The command: gives the load average of all the psets in the system. If 0 and 1 are psets in the system, the output will look like the following: AUTHOR
was developed by the University of California, Berkeley and HP. SEE ALSO
mpctl(2), pset_ctl(2). uptime(1)
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy