


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Bouida Djelloul ITSS 2018 Part1 Médéa
Agenda (^) Devops (^) Network automation tools (^) Use python to manage network devices (^) Automate tasks with ansible. (^) NAPALM and ansible
Python is an interpreted high-level programming language for general-purpose programming. Created by Guido van Rossum and first released in 1991 , Python has a design philosophy that emphasizes code readability
The libraries you need to know :
Examples : from getpass import getpass import netmiko password = getpass() net_connect=netmiko.ConnectHandler(device _type=’cisco_ios’, ip=ip, username=username, password=password) output = net_connect.send_command(“show ip ssh”)
● It is a free open source application ● Agent-less – No need for agent installation and management ● Highly flexible and configuration management of systems. ● Large number of ready to use modules for system management ● Custom modules can be added if needed ● Configuration roll-back in case of error ● Simple and human readable ● Self documenting
RHEL, Centos … #yum install ansible Debian, ubuntu … #apt install ansible Fedora #dnf install ansible Gentoo **#emerge -av app-admin/ansible ***** Only LINUX,MAC,UNIX *******
YAML
Inventory
Module examples :