功能
批量修改cisco交接密码
使用方法
- 安装python环境
- 进入ciscolib-master2024-7-13执行
python setup.py install
安装- 修改脚本中对应的密码
- 在sw.txt中填入要修改的交换机IP
- 执行
# 原始密码
PASSWORD="asdf"
USERNAME=""
ENABLE_PWD="asdf"
# 新密码
switch.cmd("enable secret asdf@123")
switch.cmd("line con 0")
switch.cmd("password asdf@123")
switch.cmd("line vty 0 4")
switch.cmd("password asdf@123")