Wednesday, July 18, 2018

Validate firewall connectivity using nc


Buy Moto series phones: Moto E, Moto G, Moto X or Other phones
Buy eBooks from Flipkart
-----------------------------------------------

In absence of telnet we can use nc (which version??) to validate connectivity.

nc -w 2 -v 10.0.0.1 < /dev/null; exitCode=$?; echo "Exit code = $exitCode"; if [ $exitCode -ge 1 ]; then echo "No connectivity"; else echo 'SUCCESS!!!'; fi; >> fw_validation.txt



No comments:

Post a Comment

Latest Posts