![]() Since then I've learned a bit more about shell scripting, and I once I saw this script, I thought it would be a good idea to revisit this answer to add a few improvements. I originally posted this answer in August of 2015. Quick and dirty way, took me about 10 mins to write it, but runtime might be a bit slow,though. What we have here is just while loop, where we set last number in the address, make silent single ping to the address, check if the command succeed or not (and if it did succeed,then host is obviously up ), and printf statement. Nmap would be my #1 choice, but what if you don't have it ? The DIY way would be with a ping script that goes through each possible ip address on the network manually. ![]() See the revisited version below for a new and improved script that performs much faster. Note to the reader: Original answer has been posted a while ago and at the time of when I was only learning shell scripting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |