02-25-2011
On my system's version of "last", "last -R" gives the source machine of the login.
10 More Discussions You Might Find Interesting
1. AIX
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
2. UNIX for Advanced & Expert Users
SCO 5.06
Anyone ever have an issue where:
uptime returns:
SCO:/# uptime
4:40pm up 4:50, 1 user, load average: 0.00, 0.00, 0.00
w returns:
SCO:/# w
User Tty Login@ Idle JCPU PCPU What
root tty01 - 72:20 - - -ksh
I've rebooted yet... (1 Reply)
Discussion started by: gseyforth
1 Replies
3. Shell Programming and Scripting
Hi,
can u say to display the number of users that logged before me.
thanks (10 Replies)
Discussion started by: shanshine
10 Replies
4. Shell Programming and Scripting
My admin needs a shell script in Korn that will show conditions based on users logged in. I have never used the Korn shell and have no clue what I am doing, can anyone help.
here are the conditions that need to be returned.
if users are below 5
displays should be: performance is high
if... (1 Reply)
Discussion started by: vthokiefan
1 Replies
5. Shell Programming and Scripting
Is it possible to get a list of users sorted by the number of processes executed by each.
I have a HP - UX server with 2800 processes running currently.
And I want to know the number of processes owned by each person logged in to that server.something like below:
user1 : 150 Processes
user2 :... (2 Replies)
Discussion started by: engineer
2 Replies
6. Shell Programming and Scripting
Hi,
I am very new to scripting and I wanted to write a unix shell script which can give me,
1)number of cpu's in a box
2)number of cores per cpu
3)total number of cores in abox (ie multiplying 1&2)
I am also trying to figure out how to check if hyper-threading is enabled in the... (8 Replies)
Discussion started by: steven12
8 Replies
7. Shell Programming and Scripting
Hi All
I am trying to do ssh to different server and on the remote server for each user trying to get groups of that user but i am not getting the required
result.
ssh username@ip_address "for i in $( cat /etc/passwd| cut -d: -f1);do groups $i done;exit" >>abc.txt
only names are... (5 Replies)
Discussion started by: Ekamjot
5 Replies
8. Red Hat
Scenario:
1. Log into a linux server interface as root.
2. Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser).
3. Log into TTY2 of the linux server interface using another valid user account (e.g. faketester).
Issue:
With these three login... (1 Reply)
Discussion started by: walterthered
1 Replies
9. Linux
Scenario:
Log into a linux server interface as root.
Inititiate an SSH session with the server using Putty and a valid user account (e.g. fakeuser).
Log into TTY2 of the linux server interface using another valid user account (e.g. faketester).
Issue:
With these three login sessions,... (8 Replies)
Discussion started by: walterthered
8 Replies
10. UNIX for Advanced & Expert Users
In a professional environment with traditional application you often want (or are asked) to report the users.
Traditionally there is the who command
who | awk '{print $1}'telnetd or sshd register the users in the utmp file, to be shown with who, w, users, finger, pinky, ...
In addition they... (1 Reply)
Discussion started by: MadeInGermany
1 Replies
UPTIME(1) Linux User's Manual UPTIME(1)
NAME
uptime - Tell how long the system has been running.
SYNOPSIS
uptime
uptime [-V]
DESCRIPTION
uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are
currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
This is the same information contained in the header line displayed by w(1).
System load averages is the average number of processes that are either in a runnable or uninterruptable state. A process in a runnable
state is either using the CPU or waiting to use the CPU. A process in uninterruptable state is waiting for some I/O access, eg waiting for
disk. The averages are taken over the three time intervals. Load averages are not normalized for the number of CPUs in a system, so a
load average of 1 means a single CPU system is loaded all the time while on a 4 CPU system it means it was idle 75% of the time.
FILES
/var/run/utmp
information about who is currently logged on
/proc process information
AUTHORS
uptime was written by Larry Greenfield <greenfie@gauss.rutgers.edu> and Michael K. Johnson <johnsonm@sunsite.unc.edu>.
Please send bug reports to <albert@users.sf.net>
SEE ALSO
ps(1), top(1), utmp(5), w(1)
Cohesive Systems 26 Jan 1993 UPTIME(1)