Hands-On Enterprise Automation with Python : Automate Common Administrative and Security Tasks with Python.
In the coming years Python programming has developed massively in terms of automation. Enterprise automation with Python will teach you how simple Python programming can make your life easier with automating your infrastructure.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing Ltd,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Setting Up Our Python Environment; An introduction to Python; Python versions; Why are there two active versions?; Should you only learn Python 3?; Does this mean I can't write code that runs on both Python 2 and Python 3?; Python installation; Installing the PyCharm IDE; Setting up a Python project inside PyCharm; Exploring some nifty PyCharm features; Code debugging; Code refactoring; Installing packages from the GUI; Summary; Chapter 2: Common Libraries Used in Automation.
- Understanding Python packagesPackage search paths; Common Python libraries; Network Python Libraries; System and cloud Python libraries; Accessing module source code; Visualizing Python code; Summary; Chapter 3: Setting Up the Network Lab Environment; Technical requirements; When and why to automate the network; Why do we need automation?; Screen scraping versus API automation; Why use Python for network automation?; The future of network automation; Network lab setup; Getting ready
- installing EVE-NG; Installation on VMware Workstation; Installation over VMware ESXi.
- Installation over Red Hat KVMAccessing EVE-NG; Installing EVE-NG client pack; Loading network images into EVE-NG; Building an enterprise network topology; Adding new nodes; Connecting nodes together; Summary; Chapter 4: Using Python to Manage Network Devices; Technical requirements; Python and SSH; Paramiko module; Module installation; SSH to the network device; Netmiko module; Vendor support; Installation and verification; Using netmiko for SSH; Configuring devices using netmiko; Exception handling in netmiko; Device auto detect; Using the telnet protocol in Python.
- Push configuration using telnetlibHandling IP addresses and networks with netaddr; Netaddr installation; Exploring netaddr methods; Sample use cases; Backup device configuration; Building the python script; Creating your own access terminal; Reading data from an Excel sheet; More use cases; Summary; Chapter 5: Extracting Useful Data from Network Devices; Technical requirements; Understanding parsers; Introduction to regular expressions; Creating a regular expression in Python; Configuration auditing using CiscoConfParse; CiscoConfParse library; Supported vendors; CiscoConfParse installation.
- Working with CiscoConfParseVisualizing returned data with matplotLib; Matplotlib installation; Hands-on with matplotlib; Visualizing SNMP using matplotlib; Summary; Chapter 6: Configuration Generator with Python and Jinja2; What is YAML?; YAML file formatting; Text editor tips; Building a golden configuration with Jinja2; Reading templates from the filesystem; Using Jinja2 loops and conditions; Summary; Chapter 7: Parallel Execution of Python Script; How a computer executes your Python script; Python multiprocessing library; Getting started with multiprocessing.