Operating System - HP-UX
1836986 Members
2139 Online
110111 Solutions
New Discussion

Re: IP address workstation

 
SOLVED
Go to solution
iranzo
Frequent Advisor

IP address workstation

my PC is connected , via CDE , to an HP
server , the session is /dev/pts/0 for
example , where can i find session's IP address
on the server HP ?
Thank you .
Bonjour
4 REPLIES 4
G. Vrijhoeven
Honored Contributor
Solution

Re: IP address workstation

Hi

You can use netstat -a for ip sessions.
who -R for system names
and nslookup to convert system name into ip-adresses.

Hope this will help.
Robin Wakefield
Honored Contributor

Re: IP address workstation

Hi,

who -R | grep pts/0

should do it.

Rgds, Robin
Bill McNAMARA_1
Honored Contributor

Re: IP address workstation

Put this into your .profile

export DISPLAY=`who am i -R | cut -f2 -d'(' | cut -f1 -d')'|cut -f1 -d':'`:0.0

Later,
Bill
It works for me (tm)
John Bolene
Honored Contributor

Re: IP address workstation

I like the who -R as it reports the FQDN (fully qualified domain name) from DNS.
This domain name can then be used in an nslookup for the IP and can also be used in the .rhosts file as a trusted machine.

who -m returns which pty is used by the current session
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com