curl for testing connectivity; just print errors and the status code:
curl --write-out '%{http_code}' -vv --max-time 30 --show-error --silent --output /dev/null http://1.2.3.4
curl for testing connectivity; just print errors and the status code:
curl --write-out '%{http_code}' -vv --max-time 30 --show-error --silent --output /dev/null http://1.2.3.4