Connectivity check.

How to check connectivity with an external server if I know the IP.
Please note traceroute is not working for me, as it is saying command not found.

use ping command. or if it is a database server then make an entry in tnsnames.ora file and use tnsping command.

ping <server IP>
tnsping <database SID>
1 Like

Can anyone tell what all options are available for the purpose?

u can check ssh connection also by following.

ssh <Server IP> <hostname> >/dev/null 2>&1
if [ $? -ne 0 ]
then
    echo "Unable to Connect to Server <Server IP>."
    exit
fi

What options?
Try: man ping (linux), man telnet (linux), and man ssh (linux). tnsping is a oracle database utility.

If traceroute isn't working, ping likely won't be either - blocking ICMP at the edge is common enough. Trying a ping utility that uses UDP (hping) is worth trying too. If you're already dealing with security at the edge that's limiting the aforementioned protocols, it isn't likely that ssh is going to be allowed directly either. Telnet is an option if the host serves up protocols you are aware of - just telnet to the actual socket 'telnet <ip> <port>'. If all else fails, try an nmap (disable the ping) and see what ports are open.

Cheers,

Keith

1 Like

It it unusual to not have the "traceroute" command. However it may not be in the default $PATH.
Are you logged in as user "root"?
What Operating System and version are you running?
Assuming you are user "root", what is the result of the following commands (may take several minutes because is searches every directory everywhere).

find // -type f -follow -name traceroute -exec ls -lad {} \;
Repeat for:
find // -type f -follow -name ping -exec ls -lad {} \;