Ping multiple Linux servers via Bash script.
Pinging a Linux server sounds a very common and simple task for any SysAdmin.
However, if there are quite a few IP Addresses to check, it's quite daunting as typing on the terminal window is quite tedious and prone to error or mistype.
Bash script is a way to go for this type of task.
Just prepare all the IP Addresses that needs to be checked in a single text file.
Do a loop to check all the IP Addresses on the text file and just watch the Bash do its job.
Here's a simple code to do it:
for ipx in $(cat ipx.txt); do ping -c 3 $ipx; done
etc..
Stay safe! and Keep things up!
Do ASAP, Always Say A Prayer...
Practice O.T.G. = Obedience To God
Make time for Prayer and Meditation.
================================
Free Android Apps:
Click links below to find out more:
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
https://play.google.com/store/apps/details?id=chrisjoms.myexcelapplicationguide
Heaven's Dew Fall Prayer app for Android :
https://play.google.com/store/apps/details?id=soulrefresh.beautiful.prayer
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
Divine Mercy Chaplet Guide (A Powerful prayer) BFF = Be Filled Faith:
Comments
Post a Comment