Skip to content

Commit 34dd693

Browse files
committed
new logs for network troubleshooting
1 parent d8dfbea commit 34dd693

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

scripts_novos/newtwork_troubleshooting.sh

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,26 +52,44 @@ function menuprincipal () {
5252

5353
3)
5454
function dns () {
55-
read -p "Entre com uma URL: "
56-
echo " "
57-
if [ ]
58-
59-
55+
ping -c5 google.com > /dev/null || ping -c5 8.8.8.8 > /dev/null
56+
if [ $? -eq 0 ]
57+
then
58+
echo Resolvendo teste com nome!
59+
sleep 3
60+
echo Ping ok!
61+
else
62+
echo Ping not working
63+
fi
6064
}
65+
dns
66+
echo " "
67+
read -n1 -r -p "Press any key to continue..."
68+
menuprincipal
6169
;;
6270

63-
3)
71+
4)
6472
function ping () {
6573
sdsdsdsdsdsdsd
6674
}
6775
;;
6876

69-
4)
77+
5)
7078
echo Saindo do sistema...
7179
sleep 2
7280
exit 0
7381
;;
7482

83+
6)
84+
function rotas () {
85+
ROUTE=`route -n | grep -A 1 -i roteador`
86+
echo " "
87+
echo -e "The default route:\n$ROUTE"
88+
}
89+
read -n1 -r -p "Press any key to continue..."
90+
menuprincipal
91+
;;
92+
7593
esac
7694
}
7795
menuprincipal

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy