Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- is_alive_ping()
- {
- ping -c 1 $1 > /dev/null
- [ $? -eq 0 ] && echo Node with IP: $i is up.
- }
- for i in 192.168.1.{1..255}
- do
- is_alive_ping $i & disown
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement