19.12. Exercises

E19.1

You are troubleshooting a network problem and netstat -rn gives you the following output. What is the problem and what command would you use to fix it?

Destination   Gateway      Genmask       Flags MSS  Window irtt  Iface128.138.202.0 0.0.0.0      255.255.255.0 U      40  0         0  eth0127.0.0.0     0.0.0.0      255.0.0.0     U      40  0         0  lo

image E19.2

Write a script that monitors a given set of machines and notifies an administrator by email if a machine becomes unresponsive to pings for some set amount of time. Don’t hard-code the list of machines, the notification email address, or the ...

Get Linux Administration Handbook, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.