Popis: |
This chapter is dedicated to Telnet labs using Python’s telnetlib library. You will learn how to use a basic Telnet example to reiterate and convert your tasks performed on the keyboard into Python scripts. Although Telnet is an insecure protocol and the best practice is to use the SSH protocol for remote connections, it is still in use today in many production environments residing in a well-secured network where only a small number of engineers can access the environment. At the end of this lab, you will be able to do the following using the basic Telnet library: interact with network devices on Python interpreter session, configure a single and multiple-switch VLAN using a templated approach using loops, perform basic network engineer administration tasks such as adding users via an external file source, and make backup copies of running-config or startup-configs to the local Python server directory. In the next chapter, we will work with the Python SSH library to expand on the ideas learned in this chapter. |