The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
host name to IP address cleopard High Level Programming 7 04-11-2008 10:27 AM
Host ID vs MAC Address TheBlueSky SUN Solaris 4 02-03-2007 10:10 AM
adding a host entry on another machine hcclnoodles Shell Programming and Scripting 4 10-27-2006 05:10 AM
How to get the host ip address in HP-UX in ksh? nir_s Shell Programming and Scripting 12 08-07-2005 09:01 PM
Host IP address for a telnet session shauche UNIX for Advanced & Expert Users 1 05-14-2003 08:33 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2008
MVL MVL is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 2
How to get the IP address / Host name of client machine

Hi

How to get the IP address / Host name of a particular user connected to Unix Server.

For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made.

How can this be achieved?

Thanks
  #2 (permalink)  
Old 09-25-2008
kumarmani kumarmani is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 343
you can use last command to find the ip/hostname of system from which user is connected. the list is a bit long, so u can use
last <username> to get the details

Last edited by kumarmani; 09-25-2008 at 09:02 AM..
  #3 (permalink)  
Old 09-25-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,094
using "who" command will show the terminal or IP address as well
  #4 (permalink)  
Old 09-25-2008
MVL MVL is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 2
Thanks!
  #5 (permalink)  
Old 09-30-2008
sergeyao sergeyao is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 1
I have a Log file with userID, date and time of login and /dev/pty/xx. I want to know from which computer or site did the user login
  #6 (permalink)  
Old 09-30-2008
kumarmani kumarmani is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 343
I am not sure if I have understood your concern.

However you can try the command last as below and get the details

Quote:
#last <username> |grep date
or

Quote:
#last <username> |grep time

the same is not possible with command who as its only going to display the status of current logged in user.
  #7 (permalink)  
Old 10-01-2008
admin@solaris admin@solaris is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 13
Quote:
Originally Posted by MVL View Post
Hi

How to get the IP address / Host name of a particular user connected to Unix Server.

For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made.

How can this be achieved?

Thanks
Try 'who' command there it will show IP address from which box you jumped
Closed Thread

Bookmarks

Tags
host name of client machine

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0