|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a multihomed system HP-UX with two NIC cards having IP address 10.9.0.13 & 10.9.0.45 I have two weblogic servers running one listening on "10.9.0.13" and the other on "10.9.0.45" 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 | ||
|
|
#2
|
|||
|
|||
|
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. Code:
lsof -o -p PID If you know the port that it connects on, you could use netstat:- Code:
netstat -na|grep "\.port " I hope that this helps. Robin Liverpool/Blackburn UK |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
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 |
|
|