I am using netstat on HP-UX to retrieve the established network connections on my host. Can anyone please confirm how can I retrieve the PID and program name as well for these connections? These are available from the netstat version on Windows but I don't see PID and program name to be available from netstat on HP-UX.
Obviously HP-UX netstat only looks in the one system table, and does not look into other tables.
Maybe lsof can do this.? Download/install lsof from itrc
I guess usage of "lsof" needs super user priveleges. Is that correct?
Also, we need to run this netstat in a script on multiple HP-UX hosts in client's environment and we cant have lsof installed on each and every host. Is there any alternative to retrieve this?