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

1 comment:

  1. یک سایت روسی نه تنها به افزایش دید و جذب ترافیک بیشتر کمک می کند، بلکه تجربه کاربر را نیز بهبود می بخشد. موتورهای جستجوی روسی مانند Yandex الگوریتم های خاصی دارند که به شدت بر کیفیت محتوا و سرعت بارگذاری صفحه تمرکز می کنند. سئو سایت روسی خود با توجه به این معیارها، تجربه بهتری را در بازدید از سایت شما به کاربران می دهد و احتمال بازگشت آنها به سایت را افزایش می دهد. همچنین با بهینه سازی تصاویر و استفاده از تگ های مناسب می توانید تاثیر بصری محتوای خود را افزایش دهید و کاربران بیشتری را جذب کنید.

    ReplyDelete