- Mastering Python Networking
- Eric Chou
- 219字
- 2021-07-02 21:42:34
Low-Level Network Device Interactions
In Chapter 1, Review of TCP/IP Protocol Suite and Python Language, we looked at the theories and specifications behind network communication protocols, and we took a quick tour of the Python language. In this chapter, we will start to dive deeper into the management of these network devices. In particular, we will examine the different ways in which we can use Python to programmatically communicate with legacy network routers and switches.
What do I mean by legacy network routers and switches? While it is hard to imagine any networking device coming out today without an Application Program Interface (API) for automating tasks, it is a known fact that many of the network devices deployed today do not have APIs. The only way to manage them is through Command Line Interfaces (CLI) using terminal programs, which originally were developed with a human engineer in mind. As the number of network devices increases, it becomes increasingly difficult to manually manage them one by one. Python has two great libraries that can help with these tasks, so this chapter will cover Pexpect and Paramiko. In this chapter, we will take a look at the following topics:
- The challenges of CLI
- Constructing a virtual lab
- The Python Pexpect library
- The Python Paramiko library
- The downsides of Pexpect and Paramiko
- SQL Server 從入門到項目實踐(超值版)
- Apache Oozie Essentials
- Debian 7:System Administration Best Practices
- Mastering Selenium WebDriver
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- MATLAB 2020 從入門到精通
- Python進階編程:編寫更高效、優雅的Python代碼
- Easy Web Development with WaveMaker
- Mastering JavaScript High Performance
- 輕松上手2D游戲開發:Unity入門
- QGIS Python Programming Cookbook(Second Edition)
- Managing Microsoft Hybrid Clouds
- 算法精解:C語言描述
- Java語言程序設計實用教程(第2版)
- C++ Data Structures and Algorithm Design Principles