command line socket read utility

HI

 I have a messaging s/w daemon\(TIBCO rvrd\) provided by vendor which will accept connections from various clients and routes messages to the destinations. In order to route it internally uses two ports\(one tcp adn one udp\).

 I want to know on which port\(tcp/udp\) it is transmitting the actual message. 

 Is there any command line utility to listen on a given port.

Thanks in advance.

What version of UNIX?

Jim
I am using solaris 8

You can try

pfiles PID |grep port

You will see the open port/s being used by the messaging daemon.

Cheers,
Zia-ul-Hassan :slight_smile: