Quantcast
Viewing latest article 3
Browse Latest Browse All 3

Ping hosts based on filter and return dead or alive

I am trying to create a script that is capable of pinging multiple hosts from a text file in my directory.The hosts are with specific naming conventions and are grouped.E.g in the text fie

10.10.10.10 XX-YY_ZZ name of the host in form of URL The file is not CSV but txt. What I am hoping to make is something simple which when you run say " pingme YY" ( where YY is the in common element of the devices belonging to a certain location ) it would return me a result of e.g:

XX-YY_ZZ = ALIVE

Probably is very simple but I have no idea how to even start as this is Linux REDHAT we are running.

Any pointers and ideas would be appreciated.


Viewing latest article 3
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>