Labs · Episode 46 · 2:05

Automate lab reachability checks with Python

Write a Python script on a simulated Linux PC in nuLAB. Check whether two routers reply, save the results to JSON, and rerun the script to verify recovery after an outage.

English narration and on-screen explanations. Read the narration transcript.

Chapters and transcript times will be ready shortly. You can use the video’s Play control or open the MP4 below.

Chapters
Open MP4 · Download transcript · English captions

Narration transcript

The English narration in this video. Select a time to watch that moment.

  1. Run the same reachability check from a simulated Linux PC whenever your lab changes.

  2. Open the PC's Text Editor to create a Python script inside the lab.

  3. List the two lab routers and use one ping per address to check for replies.

  4. Save the script in the Linux PC's home folder.

  5. Run the saved script from the Linux terminal.

  6. Both routers reply on the first run.

  7. Power off the second lab router and run the same script again.

  8. Router one still replies, and router two shows no reply.

  9. Read the JSON report to see the latest results from both routers.

  10. Power the router back on and run the check again to confirm both replies.

Back to all Labs videos