Home Video tutorials Automate lab reachability checks with Python 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 .
Your browser cannot play this video. Open the MP4 .Chapters and transcript times will be ready shortly. You can use the video’s Play control or open the MP4 below.
Chapters 0:00 Open the simulated Linux PC 0:25 Write and save the Python script 0:53 Run the first reachability check 1:12 Power off a router and rerun 1:34 Read the JSON report 1:56 Restore the router and verify both replies Open MP4 ·
Download transcript ·
English captions Narration transcript The English narration in this video. Select a time to watch that moment.
0:00 Run the same reachability check from a simulated Linux PC whenever your lab changes.
0:16 Open the PC's Text Editor to create a Python script inside the lab.
0:25 List the two lab routers and use one ping per address to check for replies.
0:39 Save the script in the Linux PC's home folder.
0:53 Run the saved script from the Linux terminal.
1:00 Both routers reply on the first run.
1:12 Power off the second lab router and run the same script again.
1:27 Router one still replies, and router two shows no reply.
1:34 Read the JSON report to see the latest results from both routers.
1:56 Power the router back on and run the check again to confirm both replies.
Back to all Labs videos