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

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
主站蜘蛛池模板: 句容市| 永济市| 淳化县| 万年县| 泸西县| 绵竹市| 扎兰屯市| 河南省| 弋阳县| 通州区| 江城| 白河县| 玉门市| 米易县| 邵东县| 蚌埠市| 乌鲁木齐县| 长兴县| 冀州市| 永善县| 盘山县| 类乌齐县| 盐亭县| 股票| 随州市| 安国市| 贵港市| 蓝田县| 湘乡市| 定西市| 鲜城| 涪陵区| 集安市| 龙口市| 西林县| 舟山市| 上犹县| 蒙城县| 饶河县| 安溪县| 安徽省|