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

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
主站蜘蛛池模板: 蒙城县| 新巴尔虎左旗| 开远市| 长垣县| 布拖县| 道真| 介休市| 博乐市| 广昌县| 九龙城区| 成都市| 浮山县| 安图县| 河北区| 平泉县| 威信县| 周至县| 焦作市| 清水河县| 民权县| 沙田区| 虞城县| 田东县| 西乌| 横峰县| 绵竹市| 神木县| 巨鹿县| 五台县| 富裕县| 乐东| 德庆县| 阿瓦提县| 灵丘县| 郴州市| 巫山县| 从江县| 融水| 留坝县| 任丘市| 房山区|