官术网_书友最值得收藏!

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
主站蜘蛛池模板: 扶余县| 上杭县| 大理市| 芮城县| 武义县| 秭归县| 上饶市| 通化县| 乌海市| 石林| 乳源| 宁强县| 扶绥县| 莆田市| 迁西县| 射洪县| 太康县| 邳州市| 库车县| 沂南县| 玉屏| 宜城市| 丹巴县| 杨浦区| 汉中市| 读书| 获嘉县| 台南县| 浦江县| 樟树市| 大庆市| 顺平县| 仪征市| 衡山县| 恩平市| 定安县| 衡山县| 南丹县| 宜州市| 湘潭市| 全州县|