Attached is a zip which contains a utility to test the port connectivity between two servers. For example, if you see component connection errors related to ports on TrueSight Presentation Server, this tool can be used to test port connection while troubleshooting the issue. *Note that both TSPS and TSIM version 11.3.02 introduced a new CLI which can be used instead of the attached utility. It is 'tssh component portcheck' for TSPS and 'pw system portcheck' for TSIM. Details are on: https://docs.bmc.com/docs/display/TSPS113/Checking+a+component+port+availability+from+the+Presentation+Server https://docs.bmc.com/docs/display/TSIM113/pw+system+portcheck If using pre-11.3.02 version, please use the attached file. 1. Extract the zip to a temporary location. 2. On Linux, chmod 755 TestConnectivity.sh 3. If you are extracting it on any server other than TSPS or TSIM, make sure java JRE/JDK is installed on it. You can confirm it by executing following command on command prompt. java -version 5. Usage of the tool is: TestConnectivity HostName PortNumber <TimeoutMilliseconds optional default 5000 milli-seconds> 6. Depending on the connection status, you will get appropriate response: a. Request timed-out - TestConnectivity.bat clm-pun-007515.bmc.com 443 100 TestConnectivity Version 20180913 Testing connectivity with host clm-pun-007515.bmc.com on port 443 with timeout 100 ms. Port 443 on clm-pun-007515.bmc.com is reachable. Connection status:- success. Took 528 milliseconds. b. Unresolved - TestConnectivity.bat clm-pun-007516.bmc.com 443 1000 TestConnectivity Version 20180913 Testing connectivity with host clm-pun-007516.bmc.com on port 443 with timeout 1000 ms. Connection status:- Failed: node clm-pun-007516.bmc.com is unresolved. Recommended action:- Check if the hostname is valid. Ensure DNS is resolving host or the hosts file has an entry for the host. c. Successful - TestConnectivity.bat clm-pun-007515.bmc.com 443 1000 TestConnectivity Version 20180913 Testing connectivity with host clm-pun-007515.bmc.com on port 443 with timeout 1000 ms. Port 443 on clm-pun-007515.bmc.com is reachable. Connection status:- success. Took 163 milliseconds. TestConnectivity.bat clm-pun-007515.bmc.com 1100 1000 TestConnectivity Version 20180913 Testing connectivity with host clm-pun-007515.bmc.com on port 1100 with timeout 1000 ms. Port 1100 on clm-pun-007515.bmc.com is reachable. Connection status:- success. Took 176 milliseconds. TestConnectivity.bat clm-pun-007515.bmc.com 1100 TestConnectivity Version 20180913 Testing connectivity with host clm-pun-007515.bmc.com on port 1100 with timeout 5000 ms. Port 1100 on clm-pun-007515.bmc.com is reachable. Connection status:- success. Took 186 milliseconds. d. Port not open - TestConnectivity.bat clm-pun-007515.bmc.com 1101 TestConnectivity Version 20180913 Testing connectivity with host clm-pun-007515.bmc.com on port 1101 with timeout 5000 ms. Connection status:- Failed: Connection refused: connect while attempting to reach node clm-pun-007515.bmc.com on port 1101. Recommended action:- Check if the port is open on host clm-pun-007515.bmc.com and there is no network delay in reaching the host. These are the common ports which normally should be be tested between TSPS/TSIM/LB
|