[Info-vax] How to tell if TCP/IP port is in use

Michael Moroney moroney at world.std.spaamtrap.com
Wed Jan 4 00:41:37 EST 2012


Steven Schweda <sms.antinode at gmail.com> writes:

>On Jan 3, 9:41 pm, moro... at world.std.spaamtrap.com (Michael Moroney)
>wrote:

>> $ PIPE TCPIP SHOW DEVICE_SOCKET | SEARCH SYS$PIPE ...
>> but is there a better way?

>   Slight refinement:

>      PIPE TCPIP SHOW DEVICE_SOCKET /PORT = 1234 | [...]

Thanks.  I missed /PORT.  This mostly does what I want (a yes/no
answer) because it sets $STATUS to a warning if the port is not in use.
I say "mostly" because it also responds in the affirmative if a *remote* 
port happens to be 1234, and this would cause problems (false positive).  
I really want to know if something is listening on port 1234.  



More information about the Info-vax mailing list