The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-17-2008
kukretiabhi13 kukretiabhi13 is offline
Registered User
  
 

Join Date: Jan 2008
Location: India
Posts: 13
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.
i need some guidance like should the script be written shell or perl and what commands will be helpful to do that. I have like 40 DB and 20 Unix boxes which i need to check daily.