network scanner with bash script
this simple bash script check all alive hosts in network
USAGE:
./main.sh IP CIDR
example:
./main.sh 192.168.1.1 28
OUTPUT:
Node with IP: 192.168.1.1 is up.
Node with IP: 192.168.1.2 is up.
Node with IP: 192.168.1.3 is DOWN.
Node with IP: 192.168.1.4 is DOWN.
Node with IP: 192.168.1.5 is DOWN.
Node with IP: 192.168.1.6 is DOWN.
Node with IP: 192.168.1.7 is DOWN.
Node with IP: 192.168.1.8 is DOWN.
Node with IP: 192.168.1.9 is DOWN.
Node with IP: 192.168.1.10 is DOWN.
Node with IP: 192.168.1.11 is DOWN.
Node with IP: 192.168.1.12 is DOWN.
Node with IP: 192.168.1.13 is DOWN.
Node with IP: 192.168.1.14 is DOWN.