It takes advantage of printf's ability to "auto-iterate" its arguments while re-using its format string over each argument. I suppose this can do for you ? eval $(printf 'ping "%s" & ' host1 host2 host3) The only drawback I've found with this tool is the use of ICMP mode requiring root privileges. Nping done: 2 IP addresses pinged in 3.01 seconds |_ Max rtt: N/A | Min rtt: N/A | Avg rtt: N/A Here since we want to mimic what the traditional ping CLI does we'll use ICMP. To ping multiple servers you merely have to tell nping the names/IPs and which protocol you want to use. $ repoquery -qlf nmap.x86_64 | grep nping Nping is in the standard EPEL repos to boot. Support for multiple target port specification.Support for multiple target host specification. Custom TCP, UDP, ICMP and ARP packet generation.Grants users full control over generated packets. Nping has a very flexible and powerful command-line interface that One of these tools is nping, which includes the following ability: If you look into the NMAP project you'll find that it includes additional tools on top of just nmap.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |