Unix/Linux Go Back    

HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Tricky situation getting IP address


Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-05-2013
mohtashims mohtashims is offline
Registered User
Join Date: Jun 2011
Last Activity: 18 October 2017, 10:10 AM EDT
Posts: 779
Thanks: 204
Thanked 7 Times in 7 Posts
CPU & Memory Tricky situation getting IP address


I have a multihomed system HP-UX with two NIC cards having IP address &

I have two weblogic servers running one listening on "" and the other on ""

Given a PID how is it possible to extract the IP Address that the weblogic server is using and store it in a bash variable "myh" ?

I am looking for a solution for HP-UX and then for all Linux and Unix systems so if you could share some solution for HP-UX and others as well.
Sponsored Links
Old Unix and Linux 03-05-2013
rbatte1 rbatte1 is offline Forum Staff  
Root armed
Join Date: Jun 2007
Last Activity: 23 October 2017, 11:57 AM EDT
Location: Lancashire, UK
Posts: 3,309
Thanks: 1,418
Thanked 648 Times in 584 Posts
If you have lsof installed you can get very useful information out of that.

You can get lsof as a free download from sourceforge I think.

lsof -o -p PID

If you know the port that it connects on, you could use netstat:-

netstat -na|grep "\.port "

I hope that this helps.

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help : crisis situation !! Eisa UNIX for Dummies Questions & Answers 5 01-11-2008 02:17 AM
strange situation in file arunkumar_mca Programming 0 11-13-2007 05:09 AM
sed situation Laurel Maury Shell Programming and Scripting 4 10-05-2006 01:19 PM
sed substitute situation newbreed1 UNIX for Dummies Questions & Answers 16 06-03-2005 02:26 PM
current situation joanne6298 UNIX for Advanced & Expert Users 2 08-06-2003 10:26 AM

All times are GMT -4. The time now is 06:48 PM.