Connectivity check.


 
Thread Tools Search this Thread
Special Forums IP Networking Connectivity check.
# 1  
Old 12-29-2010
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.
# 2  
Old 12-29-2010
use ping command. or if it is a database server then make an entry in tnsnames.ora file and use tnsping command.

Code:
ping <server IP>
tnsping <database SID>

This User Gave Thanks to For This Post:
R0H0N
# 3  
Old 12-29-2010
Can anyone tell what all options are available for the purpose?
# 4  
Old 12-29-2010
u can check ssh connection also by following.

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

R0H0N
# 5  
Old 01-08-2011
What options?
Try: ping, telnet, and ssh. tnsping is a oracle database utility.
# 6  
Old 01-11-2011
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
This User Gave Thanks to kduffin For This Post:
# 7  
Old 01-14-2011
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).
Code:
find // -type f -follow -name traceroute -exec ls -lad {} \;
Repeat for:
find // -type f -follow -name ping -exec ls -lad {} \;

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check connectivity with multiple hosts - BASH script available here

Hi everyone! Some time ago, I had to check connectivity with a big list of hosts, using different formats (protocol://server:port/path/, server:port, ....). I developed a script that checks the connectivity using different commands (ping, telnet, nc, curl). It worked for me so I'm sharing it... (9 Replies)
Discussion started by: Fr3dY
9 Replies

2. IP Networking

Help with to check the tcp network connectivity between servers and hosts

ello, i am new to the networking side. I have a requirement to check the tcp network connectivity between server it's running on and the list of host's and ports combination. please help me where i am going wrong. my code: #!/bin/bash #read the file line by line cd "$1" cat... (17 Replies)
Discussion started by: sknovice
17 Replies

3. Shell Programming and Scripting

Check the connectivity of the DB through script, exit if no connection

check the connectivity of the DBs through script, script should exit if no connection and display the output as below. connectivity for DB1 is OK connectivity for DB2 is OK connectivity for DB3 is FAILED for DB in 1 2 3 do (sqlplus -s... (5 Replies)
Discussion started by: only4satish
5 Replies

4. Solaris

Sybase Connectivity Check through Shell Script

Hi, I need to check the sysbase database connectivity through the Unix Shell Script. Can you help me on the how to write the script to test the sysbase database connection. Thanks in Advance Nandha (0 Replies)
Discussion started by: nandha2387
0 Replies

5. Shell Programming and Scripting

Check the Sybase connectivity

Hi , I am able to connect to sybase using the below script ,but i want to check the status of the connectivity like if there is any network failure during downloading the file ,it will come out with exit 1 status .Any help on this ? # isql database_name db_user_name <<EOF select date_val from... (0 Replies)
Discussion started by: mohan705
0 Replies

6. IP Networking

Need to check the connectivity between 2 servers

Hi All, I need an automation script to check the connectivity between 2 UNIX servers. Could anybody please help in this regards? regards, janardhan (1 Reply)
Discussion started by: rjanardhan83
1 Replies

7. Shell Programming and Scripting

Check connectivity script

This past weekend I had some issues with my ISP. So for future purpose I'm going to have some logging on my internet so I'm able to attach log files to my complaint email if this issue reoccurs. Decided to do a simple ping script that runs every 5 or 10 min with crontab if ping fail write date... (5 Replies)
Discussion started by: chipmunken
5 Replies

8. UNIX for Advanced & Expert Users

How to check mount point connectivity in Unix?

I am working on an unix server which has a mount point of windows server in it. I just need to check about the connectivity of this mount point with the windows server. Please let me know what should be done for that. (1 Reply)
Discussion started by: venkidhadha
1 Replies

9. Shell Programming and Scripting

Script to check connectivity

I want to write a script to check if a unix box say abc.tdc.cin.net can be connected or not on certain port say 22. right know i have to telnet them manually from DOS prompt and if it is successful then isay it is connected. Also to check Database connectivity I am using tnsping From DOS prompt.... (3 Replies)
Discussion started by: kukretiabhi13
3 Replies

10. Solaris

How to check Oracle odbc connectivity in solaris ?

Hi, I have my application and database servers running on solaris. I need to check Db connectivity for a datasource in my Db server. Please guide me how to do it in solaris env. Aru (2 Replies)
Discussion started by: aarora_98
2 Replies
Login or Register to Ask a Question