Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process Tracking

Status
Not open for further replies.

goughie

Technical User
Joined
Sep 7, 2005
Messages
2
Location
GB
Hi all, sorry not a AIX user but have a (hopefully) quick question:

Is it possible to run a script that will tell me what user/s (or IP/s) originated a request to start a process on a AIX server (v5.3).

E.g If I have a server based app, which runs all client connections under a process name abcd123.exe, can I list all the IP's that hold connections to these processes?

Many Thanks!
 
How do the clients connect to the server? Do they use a specific port? If so you can use netstat -an | grep Port# to see which IP's are connected to that port.


Jim Hirschauer
 
If you have the local port number(s), then with lsof you can also get info:

lsof -i :nnnn

for example:
Code:
# lsof -i :33786
COMMAND   PID    USER   FD   TYPE     DEVICE  SIZE/OFF NODE NAME
dtwm    41352 user01     5u  IPv4 0x7064dadc 0t4166420  TCP server1:33786->ws101:6000 (ESTABLISHED)

or use

lsof -ni :nnnn

if you don't want any address/name lookups - probably faster anyway.

HTH,

p5wizard
 
Thanks peeps!, been a great help!!!

:O)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top