View Single Post

   
  #1 (permalink)  
Old 01-16-2008, 06:35 PM
Andrew Werden
 
Posts: n/a
Default command to show sockets/tcp connections for a process?

need a way to determine which workstation clients are connected to a given
server process.

My prior experience has been on Solaris. Currently using 'pfiles' command to
achieve this functionality on Solaris 2.8; can find no such capabilities in
HPUX 11 man pages.

Any suggestions as to what I can use?

Here's pfiles output from solaris ...

Current rlimit: 1024 file descriptors
0: S_IFSOCK mode:0666 dev:263,0 ino:38907 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
sockname: AF_INET 192.168.1.2 port: 5999
peername: AF_INET 192.168.1.102 port: 3078
1: S_IFREG mode:0644 dev:32,56 ino:296727 uid:1003 gid:102 size:161
O_WRONLY|O_APPEND|O_LARGEFILE
2: S_IFSOCK mode:0666 dev:263,0 ino:36098 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
sockname: AF_INET 192.168.1.2 port: 33093
peername: AF_INET 192.168.1.2 port: 7006
3: S_IFSOCK mode:0666 dev:263,0 ino:38906 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
sockname: AF_INET 192.168.1.2 port: 33094
peername: AF_INET 192.168.1.2 port: 7000
4: S_IFSOCK mode:0666 dev:263,0 ino:38904 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK
sockname: AF_INET 192.168.1.2 port: 33095
peername: AF_INET 192.168.1.2 port: 7001
5: S_IFSOCK mode:0666 dev:263,0 ino:38902 uid:0 gid:0 size:0
O_RDWR FD_CLOEXEC
sockname: AF_INET 192.168.1.2 port: 33097
peername: AF_INET 192.168.1.7 port: 1037


Reply With Quote