Tuesday, November 18, 2014

check to see if port is open on the remote server


Since telnet client is not installed by default, now, you can use netcat command instead. Netcat has lots of features over tcp. Here we discuss about port info.

I had a situation to check a particular port, here is what I did.
-----------------------------------------------------------------------------
To verify TSM works, we need to have bi-directional connection and need to open port 1500 on both end.


1. Testing from tsmbksrv22 to lnxprodsrv02
$ nc -z -v -w 1 172.25.190.24 1500
nc: connect to 172.25.190.24 port 1500 (tcp) failed: Connection refused


Testing from lnxprodsrv02 to lnxprodsrv02
$ nc -z -v -w 1 172.26.120.46 1500
Connection to 172.26.120.46 1500 port [tcp/vlsi-lm] succeeded!

Testing from lnxprodsrv02 to tsmbksrv22
$ nc -z -v -w 1 172.26.112.44 1500
Connection to 172.26.112.44 1500 port [tcp/vlsi-lm] succeeded!


Testing from lnxprodsrv02 to tsmbksrv22
$ nc -z -v -w 1 172.26.112.44 1500
Connection to 172.26.112.44 1500 port [tcp/vlsi-lm] succeeded!

No comments:

Post a Comment