1

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

Ward - Reinstate Monica
  • 12,788
  • 28
  • 44
  • 59

3 Answers3

2

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

cturiel
  • 81
  • 4
1

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
RuBiCK
  • 133
  • 6
0

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?

The Unix Janitor
  • 2,388
  • 14
  • 13