Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to configure 2 routers for SNMP using GNS3. Then, I need to write a Python script that will do some automation and configure

I need to configure 2 routers for SNMP using GNS3. Then, I need to write a Python script that will do some automation and configure the routers using the following interface commands:

interface FastEthernet0/0 no shutdown media-type 100BaseX full-duplex ip address 10.1.1.1 255.255.255.0 ! Next router interface FastEthernet0/0 no shutdown media-type 100BaseX full-duplex ip address 10.1.1.2 255.255.255.0

Afterwards, I need to write a Python script that will pull SNMP information and print data such as cpu, bandwidth, etc. The entire instructions is posted below:

> Write a python script to configure 2 routers, use interface commands:

interface FastEthernet0/0 

no shutdown 

media-type 100BaseX 

full-duplex 

ip address 10.1.1.1 255.255.255.0 

! Next router 
interface FastEthernet0/0 

no shutdown 

media-type 100BaseX 

full-duplex 

ip address 10.1.1.2 255.255.255.0 

! Remember to use enable Conf t Before putting in the above script > In gns configure 2 routers for snmp. Example : Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)# Router(config)#snmp-server community public RO  Router(config)#snmp-server community cisco@123 RW Router(config)#snmp-server host 172.18.42.10 public Router(config)#snmp-server enable traps Router(config)#exit Router#Router#write memory > Import the 2 routers in Netbrain with SNMP Alternative to the NetBrain portion you can write a python script using the appropriate library to pull snmp information and print data such as cpu, bandwidth etc. 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions