Operating System - HP-UX
1847611 Members
4075 Online
110265 Solutions
New Discussion

Tracing Sockets based comms on single server

 
Steve Roberts
Occasional Contributor

Tracing Sockets based comms on single server

I have looked at most of the recommended utilities, but cannot find something which doesnt rely on actual traffic crossing a machine boundary. Our app uses unix domain sockets to implement inter-process comms on the one server (HPUX 11). Is there a way to fool, say, TCPDUMP, into seeing this traffic ?

Thanks
2 REPLIES 2
Rainer_1
Honored Contributor

Re: Tracing Sockets based comms on single server

federico_3
Honored Contributor

Re: Tracing Sockets based comms on single server

In order to trace all packets sent by node and addressed to node :

1) start trace putting data into 1MB trace file ( /tmp/raw.TRC0, raw.TRC1).
/etc/nettl -tn -pduin -pduout -e all -f /tmp/raw

2) stop trace -> /etc/nettl -tf -e all
3) Format traces into a file like this :

/etc/netfmt -N -n -l -f /tmp/raw.TRC0 > /tmp/file0

/etc/netfmt -N -n -l -f /tmp/raw.TRC1 > /tmp/file1


-n option -> print IP addresses, not hostnames



I hope this helps

Federico