The UNIX and Linux Forums  


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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH Connectivity script lorcan UNIX for Advanced & Expert Users 5 03-06-2008 06:38 AM
Hummingbird Connectivity Division Releases Connectivity 2008 (EContent Magazine) iBot UNIX and Linux RSS News 0 06-17-2007 07:37 PM
check in unix shell script so that no one is able to run the script manually adi_bang76 Shell Programming and Scripting 1 11-16-2006 10:43 AM
How to check Oracle odbc connectivity in solaris ? aarora_98 SUN Solaris 2 06-12-2006 11:07 AM
Script to check for a file, check for 2hrs. then quit mmarsh UNIX for Dummies Questions & Answers 2 09-16-2005 03:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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.
  #2 (permalink)  
Old 07-17-2008
mirusnet's Avatar
mirusnet mirusnet is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 146
So, you want to check it from windows box?
  #3 (permalink)  
Old 07-17-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,311
Check if you have nmap on one of your boxes - it can check if the IP address is reachable and you can also check which/if ports are up. Not sure if you get that for Windows.. maybe with cygwin.
  #4 (permalink)  
Old 07-17-2008
kukretiabhi13 kukretiabhi13 is offline
Registered User
  
 

Join Date: Jan 2008
Location: India
Posts: 13
Script to check connectivity

yes thats correct or i can use active perl to run the perl script
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0