How to get the IP address / Host name of client machine | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How to get the IP address / Host name of client machine

Solaris


Tags
host name of client machine

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-25-2008
MVL MVL is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 25 September 2008, 8:08 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 09-25-2008
kumarmani kumarmani is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 22 December 2011, 4:37 AM EST
Posts: 416
Thanks: 0
Thanked 3 Times in 3 Posts
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 08:02 AM..
Sponsored Links
    #3  
Old 09-25-2008
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
using "who" command will show the terminal or IP address as well
    #4  
Old 09-25-2008
MVL MVL is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 25 September 2008, 8:08 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks!
Sponsored Links
    #5  
Old 09-30-2008
sergeyao sergeyao is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 1 October 2008, 7:24 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #6  
Old 09-30-2008
kumarmani kumarmani is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 22 December 2011, 4:37 AM EST
Posts: 416
Thanks: 0
Thanked 3 Times in 3 Posts
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.
Sponsored Links
    #7  
Old 10-01-2008
admin@solaris admin@solaris is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 7 October 2008, 2:44 AM EDT
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
machine server and machine client herbich1985 Solaris 0 05-06-2012 06:12 AM
get host name by IP address limmer Programming 6 12-18-2009 06:24 AM
host name to IP address cleopard Programming 7 04-11-2008 09:27 AM
Host ID vs MAC Address TheBlueSky Solaris 4 02-03-2007 09:10 AM
How to get the host ip address in HP-UX in ksh? nir_s Shell Programming and Scripting 12 08-07-2005 08:01 PM



All times are GMT -4. The time now is 12:43 AM.