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.
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)
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)
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)
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)
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)
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)
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)