LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Closed Thread
  Search this Thread
Old 06-03-2014, 01:13 PM   #1
rug.roya
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
bash script that checks network connection between servers


Hi,

I've a requirement to check network connection between servers on a port (any port) and should return the result in the below format along with the response time its successful

Ex: myserver:443 | Success | 3.4s
myserver1:25 | Service not running | 0.2s

Can somebody please help me to achieve this in a bash script if possible. I'm new to Linux administration and got a requirement to work on this all of the sudden.
 
Old 06-03-2014, 01:24 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

continue here:
http://www.linuxquestions.org/questi...rt-4175506918/
 
  


Closed 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Script that that checks CPU load average and triggers other script petruha1983 Programming 1 12-08-2013 05:22 AM
SSH connection from BASH script stops further BASH script commands tardis1 Linux - Newbie 3 12-06-2010 08:56 AM
[Bash] MD5 Checks with Script. BiFo Programming 5 08-17-2010 06:08 AM
bash script that checks authentication failures and sends mail panoskan Programming 4 06-06-2009 05:24 PM
Bash script thats checks for faild login attempts. k1piee Programming 4 02-11-2009 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration