Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!