52

Python与Cisco的事儿之三-无心伤害-51CTO博客

 6 years ago
source link: http://blog.51cto.com/arckyli/2068140
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
   以下代码可以实现登录网络设备后通过show cdp nei 命令查看邻居设备,然后利用拼接的方式来增加描述,最后再写进相对应的网络设备的接口。#!/usr/bin/pythonfrom netmiko import ConnectHandlerfrom netmiko.ssh_exception import&nbs

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK