Followers

Wednesday, January 11, 2017

Network Automation via python




Python is used by top tech companies right now , but Before saying python , we should ask our selves what are the Use Cases exist in our Network ? !
How you will deal with these simple use cases?
  • If you added a new Route Reflector at your fixed or BB Network , and you have around 300 PEs need to be configured to point to it.
  • If you added a large Number of New devices and you want to push the day 1 configuration(AAA, Tacacs,local credentials,SNMP,Syslog,…).
  • check the administrative down interfaces on a large number of devices and collecting them on a file.
  • A new customer wants to join your MPLS network and he will connect his branches to around 30 PEs of your MPLS network , what about the vrf that will be pushed over all these devices , to make it once or to make it 30 times , it's your choice :D
  • Your Network based on full mesh RSVP TE instead of LDP , and you will add a new PE router that needs to make 199 RSVP TE tunnels to all the PEs exist in the network.
if you can solve the above examples and you didn't fail a pain , so you are for sure a python :)
How as a Network Engineer to start studying the python ?
My recommendations for that :
Finally keep tuned for the upcoming posts , i will discuss on it :
  • How to telnet and ssh on the routers at your network via python modules telnetlib , paramiko and netmiko.
  • How to collect information (show commands) from different devices.
  • How to configure multiple devices from a configuration existing in a file.
Regards ,
Mostafa Hassan Ahmed

No comments:

Post a Comment