[SOLVED] ENTS749E Lab 4-Pull Operational Data

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Pull_Operational_Data-s2rhjz.zip (45.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
đź”’ Securely Powered by:
Secure Checkout
5/5 - (1 vote)
  1. Write and execute a Python script that displays the router’s uptime information and load averages on the screen. First, create a code skeleton based on the one provided on the slides and make sure that you:
    • access the correct networking device
    • import the necessary libraries,
    • use the try/except/finally blocks as shown on the slides and handle exceptions occurred during the NETCONF session.
  2. Connect to the device and make sure that the connection is successful.
  3. Add code that calls the correct RPC (hint: the corresponding CLI command is: show system uptime), and dump the RPC response on the screen to see if the RPC call was successful.
  4. Add code that extracts the following information from the RPC response, and displays it on the screen:
    • the system boot time (the date and the time the device was last booted), the number of days, hours and minutes the device has been up and running, •         the 1-minute, 5-minute and 15-minute load average values.

Part II

  1. Write and execute a Python script that displays the following information about all 16 physical interfaces in your router:
  • the interface name (e.g. ge-0/0/5)
  • the administrative status (up or down)
  • the operational status (up or down)
  • if the operational status is “up” it should also display the IPv4 address configured on that interface (this is called the “local interface address”)
  • its MAC address (it is called the “hardware physical address”)

Make sure that you catch and handle all exceptions that may occur during the NETCONF session. Hint: the corresponding CLI command is: show interfaces ge*, where the interface name pattern “ge*” will become an RPC parameter.

 

 

 

 

1

 

  • Pull_Operational_Data-s2rhjz.zip