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

Steven Schweda sms.antinode at gmail.com
Wed Jan 4 01:46:35 EST 2012


> [...] I really want to know if something is listening on
> port 1234.

   For that, I'd guess that you need to look for the "*" under the
"Remote Host" heading:

ALP $ tcpip show devi /port = 22

                            Port                       Remote
Device_socket  Type    Local  Remote  Service           Host

  bg301       STREAM      22       0  SSH              *
  bg51732     STREAM   51475      22                   10.0.0.9
  bg51733     STREAM      22   51475  SSH              10.0.0.9

Or "LISTEN" in the "netstat -an" results:

ALP $ pipe tcpip netstat -an | search /match = and sys$input "*.22 ",
listen
tcp        0      0  *.22
*.*                       LISTEN

   As usual, many things are possible.  (And everything's
complicated.)



More information about the Info-vax mailing list