Operating System - HP-UX
1855494 Members
3836 Online
104111 Solutions
New Discussion

Re: Need to check on which ports the connection is being made

 
Hunki
Super Advisor

Need to check on which ports the connection is being made


I have this script which when executes makes a Corba connection to another machine to complete the execution properly but lately the connection is not being made the script fails and I need to find out on which port the request is being made by the script( to the other machine on the network ). What's the best way to achieve this.

thanks,
hunki
5 REPLIES 5
Coolmar
Esteemed Contributor

Re: Need to check on which ports the connection is being made

Are both systems HP-UX boxes?
Hunki
Super Advisor

Re: Need to check on which ports the connection is being made

between Solaris and HP-UX .
spex
Honored Contributor

Re: Need to check on which ports the connection is being made

Hello,

The best way would be just to examine the contents of the script. If this isn't possible, then use tcpdump.

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/tcpdump-3.9.5/

PCS
Hunki
Super Advisor

Re: Need to check on which ports the connection is being made

I dont have root perms to install ... tell me something which is on the box rite now.
Ivan Krastev
Honored Contributor

Re: Need to check on which ports the connection is being made

You can use "netstat -an" but after script fails and before sockets are closed.


regards,
ivan