1834646 Members
1988 Online
110069 Solutions
New Discussion

Re: Knowing IP Address

 
SOLVED
Go to solution
Prasad Joshi
Regular Advisor

Knowing IP Address

Hi All,

I want to know the IP addresses of the people who are logged in to a server.

How can I check the same?

Thanks & regards,
Prasad
11 REPLIES 11
RAC_1
Honored Contributor
Solution

Re: Knowing IP Address

last -R
who -u
lastb -R -Bad logins
There is no substitute to HARDWORK
Peter Godron
Honored Contributor

Re: Knowing IP Address

Prasad,
who -u
Arunvijai_4
Honored Contributor

Re: Knowing IP Address

Hi Prasad,

You can use the following,

# who -T

# lastb -R

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Prasad Joshi
Regular Advisor

Re: Knowing IP Address

There might be chance that people are logged in through console.

I want to know all of them

Pl. help.

Thanks
Cheryl Griffin
Honored Contributor

Re: Knowing IP Address

Try:

# finger -R
Login Name TTY Idle When Where
root ??? *tb Wed 07:21 17.183.194.2
root ??? *0 11d Fri 12:35 xbox
root ??? *1 11d Fri 12:45 xbox
"Downtime is a Crime."
Senthil Kumar .A_1
Honored Contributor

Re: Knowing IP Address

Hi,

$ who -uH


Check the last column.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Knowing IP Address

The second "LINE" column will tell you whether teh user is logged in through console or otherwise.

Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Prasad Joshi
Regular Advisor

Re: Knowing IP Address

I want to kill some connections from the server.

How can I kill some connections?

Thanks.
Prasad
Chan 007
Honored Contributor

Re: Knowing IP Address

Hi,

you can also use who -R to find the ip/hostname.

ps -ef |grep or pid and then kill -9

Chan
Robert-Jan Goossens_1
Honored Contributor

Re: Knowing IP Address

# who -uH

NAME LINE TIME IDLE PID COMMENTS
rj pts/ta Apr 24 12:57 . 25720 daf00067
rj pts/1 Apr 6 16:15 old 21628 daf00068

# kill pid (25720 or 21628)
Prasad Joshi
Regular Advisor

Re: Knowing IP Address

Opening another thread for discussion on killing some of the connections

Thanks