Shell script 3: (Network.sh) Network Script (Network.sh) will display network configuration information, display the routing table, and hostname, test your local DNS Server, trace the route to google.com, and finally ping google. All information is saved in a log file (network.log) and displayed on the screen. [Note: if the network tools are not installed in the system, then, your shell script needs to install first]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Assume that you work as a system admin in a big Tech company. Your main responsibility is to run different system measures and to observe your system performance. I have this system need to build from many shel scripts “lunix” But this script I confused to solve it! I share an example how the output must be
Shell script 3: (Network.sh)
Network Script (Network.sh) will display network configuration information, display the routing table,
and hostname, test your local DNS Server, trace the route to google.com, and finally ping google. All
information is saved in a log file (network.log) and displayed on the screen.
[Note: if the network tools are not installed in the system, then, your shell script needs to install first]
Transcribed Image Text:Shell script 3: (Network.sh) Network Script (Network.sh) will display network configuration information, display the routing table, and hostname, test your local DNS Server, trace the route to google.com, and finally ping google. All information is saved in a log file (network.log) and displayed on the screen. [Note: if the network tools are not installed in the system, then, your shell script needs to install first]
ens33: flags=4163<UP, BROADCAST, RUNNING, MULTICAST> mtu 1500
inet 192.168.211.128 netmask 255.255.255.0 broadcast 192.168.211.255
inet6 fe80::c831:18fe:e228:930b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:9e:f6:e2 txqueuelen 1000 (Ethernet)
RX packets 796 bytes 323506 (323.5 KB)
RX errors 0 dropped
overruns 0 frame 0
TX packets 1288 bytes 157171 (157.1 KB)
TX errors0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP, LOOPBACK, RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 416 bytes 39110 (39.1 KB)
RX errors 0 dropped 0 overruns
frame 0
TX packets 416 bytes 39110 (39.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
HOSTNAME ubuntu
Test DNS Server:
Address:
127.0.0.53#53
Non-authoritative answer:
Name: google.com
Address: 142.250.185.46
127.0.0.53
Name: google.com
Address: 2a00:1450:4018:809:: 200e
Kernel IP routing table
Destination
Gateway
0.0.0.0
192.168.211.2
169.254.0.0
0.0.0.0
192.168.211.0 0.0.0.0
Flags
UG
255.255.0.0
U
255.255.255.0 U
Genmask
0.0.0.0
MSS Window irtt Iface
00
0 ens33
00
0 ens33
ee
0 ens33
PING google.com (142.250.185.46) 56(84) bytes of data.
64 bytes from mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=1 ttl=128 time=20.6 ms
64 bytes from
64 bytes from
mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=2 ttl=128 time=21.2 ms
mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=3 ttl=128 time=21.3 ms
mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=4 ttl=128 time=21.5 ms
64 bytes from
64 bytes from mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=5 ttl=128 time=20.1 ms
...google.com ping statistics ...
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 20.105/20.967/21.509/0.520 ms
Tracing the Route to GOOGLE.COM traceroute to google.com (142.250.185.46), 30 hops max, 60 byte packets
1 gateway (192.168.211.2) 9.982 ms 0.056 ms 0.066 ms
Transcribed Image Text:ens33: flags=4163<UP, BROADCAST, RUNNING, MULTICAST> mtu 1500 inet 192.168.211.128 netmask 255.255.255.0 broadcast 192.168.211.255 inet6 fe80::c831:18fe:e228:930b prefixlen 64 scopeid 0x20<link> ether 00:0c:29:9e:f6:e2 txqueuelen 1000 (Ethernet) RX packets 796 bytes 323506 (323.5 KB) RX errors 0 dropped overruns 0 frame 0 TX packets 1288 bytes 157171 (157.1 KB) TX errors0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP, LOOPBACK, RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 416 bytes 39110 (39.1 KB) RX errors 0 dropped 0 overruns frame 0 TX packets 416 bytes 39110 (39.1 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 HOSTNAME ubuntu Test DNS Server: Address: 127.0.0.53#53 Non-authoritative answer: Name: google.com Address: 142.250.185.46 127.0.0.53 Name: google.com Address: 2a00:1450:4018:809:: 200e Kernel IP routing table Destination Gateway 0.0.0.0 192.168.211.2 169.254.0.0 0.0.0.0 192.168.211.0 0.0.0.0 Flags UG 255.255.0.0 U 255.255.255.0 U Genmask 0.0.0.0 MSS Window irtt Iface 00 0 ens33 00 0 ens33 ee 0 ens33 PING google.com (142.250.185.46) 56(84) bytes of data. 64 bytes from mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=1 ttl=128 time=20.6 ms 64 bytes from 64 bytes from mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=2 ttl=128 time=21.2 ms mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=3 ttl=128 time=21.3 ms mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=4 ttl=128 time=21.5 ms 64 bytes from 64 bytes from mct01s19-in-f14.1e100.net (142.250.185.46): icmp_seq=5 ttl=128 time=20.1 ms ...google.com ping statistics ... 5 packets transmitted, 5 received, 0% packet loss, time 4007ms rtt min/avg/max/mdev = 20.105/20.967/21.509/0.520 ms Tracing the Route to GOOGLE.COM traceroute to google.com (142.250.185.46), 30 hops max, 60 byte packets 1 gateway (192.168.211.2) 9.982 ms 0.056 ms 0.066 ms
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Network Protocols
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education