Hello APIM community!
Very often customers ask me about how to test port connectivity, from the appliance gateway, without having to install the telnet client. That's an interesting question. You can use the Linux bash to do that for you without having to install anything. This is how you do it:
# cat < /dev/tcp/172.16.10.11/22
The previous command will check the port 22, running on the host 172.16.10.11 using TCP as the protocol. You could use UDP as well, just changing /tcp/ to /udp/. You will see something like that, as the result, if that port is opened on that host:
I hope this quick tip can help you and save some time.
+1 thanks for posting this!
Hi, I'm using curl -v telnet://IP_ADRESS:port
Works like a charm
I have a Service Policy 'ConnectionTest' which we service on the management interface. It uses 'Return Template Response to Requestor' assertion and 'Route via HTTP/RAW' assertions to send a request to a submittable destination.
Allso very handy!