Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need help showing which network protocol users use. Post 302590316 by maximillian.g on Sunday 15th of January 2012 05:45:59 PM
Old 01-15-2012
Need help showing which network protocol users use.

I'm having a bit of a trouble trying to figure out how to tell which network protocol users HAVE been logging in with. I know how to find this information for currently logged in users :
Code:
maximillian.gardner@syccuxfs01:~> who
joseph.blosser pts/0        2012-01-15 14:07 (198.107.160.185)
jamil.baghshi pts/1        2012-01-15 14:08 (c-76-115-1-185.hsd1.or.comcast.net)
trevor.medina pts/2        2012-01-15 14:27 (c-24-21-161-72.hsd1.or.comcast.net)
maximillian.gardner pts/5        2012-01-15 13:38 (c-24-21-154-91.hsd1.or.comcast.net)
kyle.lewis2 pts/6        2012-01-15 14:32 (static-50-53-15-43.bvtn.or.frontiernet.net)
matthew.balza pts/4        2012-01-15 14:19 (static-50-53-144-51.bvtn.or.frontiernet.net)
maximillian.gardner@syccuxfs01:~> ps -u joseph.blosser
  PID TTY          TIME CMD
25420 ?        00:00:00 sshd
25421 pts/0    00:00:00 bash
maximillian.gardner@syccuxfs01:~> ps -u trevor.medina
  PID TTY          TIME CMD
25912 ?        00:00:00 sshd
25913 pts/2    00:00:00 bash
maximillian.gardner@syccuxfs01:~> ps -u maximillian.gardner
  PID TTY          TIME CMD
24516 ?        00:00:00 sshd
24517 pts/5    00:00:00 bash
26215 pts/5    00:00:00 ps
maximillian.gardner@syccuxfs01:~> ps -u kyle.lewis2
  PID TTY          TIME CMD
26051 ?        00:00:00 sshd
26052 pts/6    00:00:00 bash
26119 pts/6    00:00:00 vimtutor
26126 pts/6    00:00:00 vim
maximillian.gardner@syccuxfs01:~> ps -u matthew.balza
  PID TTY          TIME CMD
25683 ?        00:00:00 sshd
25684 pts/4    00:00:00 bash
maximillian.gardner@syccuxfs01:~> netstat -t -u
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    156 syccuxfs01.syi.pcc.:ssh static-50-53-15-4:49776 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pc:57502 syccuxfs01.syi.pc:46725 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pc:46725 syccuxfs01.syi.pc:57502 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pcc.:ssh static-50-53-144-:61501 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pc:44017 syccuxfs01.syi.pcc:8194 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pc:46965 10.10.141.24:8194       ESTABLISHED
tcp        0      0 syccuxfs01.syi.pcc:8194 syccuxfs01.syi.pc:45644 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pc:45644 syccuxfs01.syi.pcc:8194 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pcc:8194 syccuxfs01.syi.pc:44017 ESTABLISHED
tcp        0    876 syccuxfs01.syi.pcc.:ssh c-24-21-154-91.h:labrat ESTABLISHED
tcp        0      0 syccuxfs01.syi.pcc.:ssh c-76-115-1-185.hs:52274 ESTABLISHED
tcp        0      0 syccuxfs01.syi.pcc.:ssh c-24-21-161-72.hs:50274 ESTABLISHED

But how do I find this information for users not currently logged in.

Any help appreciated.
~M.G
 

7 More Discussions You Might Find Interesting

1. IP Networking

RH 9 and Network Time Protocol

I have a small program written in C using winsock v1, that uses a unix host to get the time. I have two machines networked, one windows, the other red hat 9. The windows machine will request the time off the RH one. How can I configure red hat to reply to the time request, i.e act as an... (1 Reply)
Discussion started by: jaredGalen
1 Replies

2. OS X (Apple)

change network time protocol

by default, a mac syncs its time and date with time.apple.com (located system prefs->Date&Time). Is there a way in unix to change it to another address? my attempts to use ntpdate and ntpd have failed. (4 Replies)
Discussion started by: CBarraford
4 Replies

3. Shell Programming and Scripting

Showing offline users

Hi, Is there any command for showing offline users? The only way I can think of doing it (as i cant find a command) is getting a list of all the online users, and comparing it to /etc/passwd, anything that is in /etc/passwd and not in the users file will be offline users. But I have no... (4 Replies)
Discussion started by: mikejreading
4 Replies

4. Shell Programming and Scripting

bash script for showing last users

Hi! I'm new in scripting and I need some help with one simple script. I have to write a program that shows in a predetermined period (using "last" command), to draw up a list of users who have used the machine during this period. Each user to indicate how many sessions it has been during this... (9 Replies)
Discussion started by: vassu
9 Replies

5. Shell Programming and Scripting

want know about network protocol testing

Hi guys, i want to know about network protocol testing. 1. What is network protocol testing? 2. Whats the role of network protocol tester? 3. Is there good future scope in network protocol testing field? 4. Just give me a example of protocol testing. 5. How it relates to perl or unix? Thanks... (0 Replies)
Discussion started by: rangarasan
0 Replies

6. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

7. Solaris

Network interface showing wrong configuratoin

on both of my T2000 I am seeing same values of 100Mbps for e1000g0 ethernet port. i know all four ethernet ports on T2000 are gigabit ports so why is my first link showing as 100Mbps and how can i correct it? # dladm show-dev e1000g0 link: up speed: 100 Mbps ... (1 Reply)
Discussion started by: aliyesami
1 Replies
rwho(1) 						      General Commands Manual							   rwho(1)

NAME
rwho - Shows which users are logged into hosts on the local network. SYNOPSIS
rwho [-a] rwho [-a] [users] OPTIONS
Includes all users. Without this option, users whose sessions are idle an hour or more are not included in the report. DESCRIPTION
The rwho command displays the username, hostname, and start date and time of each session for everyone on the local network who is cur- rently logged in to a host running the rwhod daemon. If one or more user names are specified, only the status of those users whose names are listed appears on the screen. If a user has not typed anything for at least 3 minutes, rwho reports the idle time as a number of minutes in the last column. After an hour of inactivity, a user is not included unless the -a option is specified. Because this command displays a lot of output, use this command with caution if the local network has a large number of users. Status information is broadcast once every 3 minutes by each network host running the rwhod daemon. Any activity (such as a user logging on or off) that takes place between broadcasts is not reflected until the next broadcast. EXAMPLES
To get a report of all users currently logged into hosts on the local network, enter: $ rwho bob host2:pts5 Nov 17 06:30 :20 bob host7:console Nov 17 06:25 :25 franz host1:pts0 Nov 17 11:20 :51 franz host1:pts8 Nov 16 15:33 :42 franz host4:console Nov 17 16:32 pietro host1:console Nov 17 13:14 :31 pietro host1:pts7 Nov 17 13:15 :47 server host2:console Nov 17 06:58 :20 luis host2:pts6 Nov 17 09:22 FILES
Indicates data files received from remote rwhod daemons. SEE ALSO
Commands: ruptime(1), rwhod(8) rwho(1)
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy