Super basic quick net check script. As always, please run dos2unix and chmod 777 on it forst.
Lab:
[Expert@CP-GW:0]# ./gaia_netcheck.sh
Gaia NetCheck started: 2026-01-21 17:38:01
Hostname: CP-GW
User: admin
--------------------------------------------------------------------------------
1) Tool availability
- curl: NO
- wget: NO
- getent: YES (/usr/bin/getent)
- nslookup: YES (/usr/bin/nslookup)
- dig: YES (/usr/bin/dig)
--------------------------------------------------------------------------------
2) DNS resolution checks
- www.google.com -> 142.250.137.105 142.250.137.105 142.250.137.105
- www.cloudflare.com -> 104.16.123.96 104.16.123.96 104.16.123.96
- www.microsoft.com -> 23.60.178.101 23.60.178.101 23.60.178.101
- github.com -> 140.82.113.4 140.82.113.4 140.82.113.4
--------------------------------------------------------------------------------
3) Quick TCP connect checks (443) using /dev/tcp when possible
- TCP 443 to www.google.com: OK
- TCP 443 to www.cloudflare.com: OK
- TCP 443 to www.msftconnecttest.com: OK
- TCP 443 to github.com: OK
--------------------------------------------------------------------------------
4) HTTP/HTTPS fetch checks
ERROR: Neither curl nor wget is available on this system.
[Expert@CP-GW:0]#
Best,
Andy