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) 						    BSD General Commands Manual 						   RWHO(1)

NAME
rwho -- who is logged in on local machines SYNOPSIS
rwho [-aHq] DESCRIPTION
The rwho command produces output similar to who(1), but for all machines on the local network. If no report has been received from a machine for 11 minutes then rwho assumes the machine is down, and does not report the users last known to be logged into that machine. If a user hasn't typed to the system for a minute or more, then rwho reports this idle time. -a Include all users. By default, if a user hasn't typed to the system for an hour or more, then the user will be omitted from the output. -H Write column headings above the regular output. -q ``Quick mode'': List only the names and the number of users currently logged on. When this option is used, all other options are ignored. FILES
/var/rwho/whod.* information about other machines SEE ALSO
finger(1), rup(1), ruptime(1), rusers(1), who(1), rwhod(8) HISTORY
The rwho command appeared in 4.3BSD. BUGS
This is unwieldy when the number of machines on the local net is large. BSD
September 30, 2005 BSD
All times are GMT -4. The time now is 04:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy