Python scripting networks for beginners
boxerboy1168
Member Posts: 395 ■■■□□□□□□□
Hello all.
I have decided that scripting networking task and protocols will enable me to learn Python and the Cisco IOS faster so I'm looking for some info.
First off can I use Python to automate task such as...
Python enters the Cisco IOS
- enable
- conf t
- do show int br
- *enter valid commands based on output*
- exit
- do show int br
- *enter or fix protocol based on output
- print task to text file briefly describing outcome based on output
I remember playing MUD games growing up and we used to script and automate our game play all the time.
%1 slashes %2 very hard.
- assist %1
- bash %2
I'm wondering if there is a way that I can start simple with maybe a few videos, anyone know what I am getting at here or know of any decent source material other than just following one of the already known Python books.
I really learn a lot faster when I learn this way.
I have decided that scripting networking task and protocols will enable me to learn Python and the Cisco IOS faster so I'm looking for some info.
First off can I use Python to automate task such as...
Python enters the Cisco IOS
- enable
- conf t
- do show int br
- *enter valid commands based on output*
- exit
- do show int br
- *enter or fix protocol based on output
- print task to text file briefly describing outcome based on output
I remember playing MUD games growing up and we used to script and automate our game play all the time.
%1 slashes %2 very hard.
- assist %1
- bash %2
I'm wondering if there is a way that I can start simple with maybe a few videos, anyone know what I am getting at here or know of any decent source material other than just following one of the already known Python books.
I really learn a lot faster when I learn this way.
Currently enrolling into WGU's IT - Security Program. Working on LPIC (1,2,3) and CCNA (and S) as long term goals and preparing for the Security+ and A+ as short term goals.
Comments
-
jdancer Member Posts: 482 ■■■■□□□□□□I recommend using a configuration management platform like Ansible. Ansible is written in Python and can use Python with Ansible.
Just do a online search for Ansible tutorials. -
boxerboy1168 Member Posts: 395 ■■■□□□□□□□I was hoping to build some from scratch because one of my classes in school is Python and I have to get the CCNA just figured they would work together very well
checking Ansible as we speak howeverCurrently enrolling into WGU's IT - Security Program. Working on LPIC (1,2,3) and CCNA (and S) as long term goals and preparing for the Security+ and A+ as short term goals. -
duta74 Member Posts: 143 ■■□□□□□□□□Free e-book:
Network Automation with Ansible - O'Reilly Media
10$(Black Friday sale) course on Udemy:
https://www.udemy.com/ansible-for-network-engineers-cisco-quick-start-gns3-ansible/
From one of the best instructor. -
boxerboy1168 Member Posts: 395 ■■■□□□□□□□ooooo love Udemy thanks.Currently enrolling into WGU's IT - Security Program. Working on LPIC (1,2,3) and CCNA (and S) as long term goals and preparing for the Security+ and A+ as short term goals.