Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We've tried lsof and tcpdump to capture the PID of a process that is attempting to make connections. Any ideas?

share|improve this question

migrated from stackoverflow.com Mar 19 '10 at 21:59

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers

netstat -a -p will not work in hp-ux. The -p argument, is to filter by protocol, UDP, TCP, ICMP.. (view man page). In netstat linux versions is true that show the pid.

lsof not work for you? install lsof from depot, http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.83/

and run,

# lsof -i -sTCP:LISTEN

share|improve this answer
add comment

There is no "-p" option for processes in HPUX netstat command. I always have lsof installed on each server for tasks like this.

You can download it from Hpux connect

Once installed, you can easy see wich process is listen in a given port:

lsof -i :portnumber
share|improve this answer
add comment

It's been a while since I used hpux

Can you run a similar command to

netstat -a -p

to show tcp sockets back to processes?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.