In an attempt to find out why I wasn’t receiving the desired results from a script that was to retrieve some data from another server, I discovered the function snoop.
Snoop is a Solaris function that watches all network activity between two servers. To use, simple run the following code as su:
snoop host 127.0.0.1
Replacing 127.0.0.1 with the IP address of the other server. The results from a ping look like
domain1.com -> domain2.com ICMP Echo request (ID: 28327 Sequence number: 0)
domain2.com -> domain1.com ICMP Echo reply (ID: 28327 Sequence number: 0)
You can do the same thing in Linux to run, as su,
tcpdump host 127.0.0.1