I have 2 HPUX machines. Let say machine A and B. In HPUX machine A, I would like to ping the port number of machine B. Is there any command or any HPUX freeware available?
In windows, I can use some freeware to ping port to any type of machines (e.g. HPUX, Windows and etc). See URL below.
I guess it all depends on if this will be automated and what you want to do with the result.
The fastest way to check if a port is open is to telnet to the host on that port.
Nmap might be useful for you, Nmap: the Network Mapper - Free Security Scanner. It will provide the ability to scan multiple ports to see if they are open and then give you a nice reponse you can either look at or add into your script.