以前一只用rancid来对cisco的设备做配置比较,但显然rancid对华为不太友好,一直就不支持华为设备(包括h3)。因此呢,由于本人还有点小聪明,知道rancid是考expect和cvs来实现的,于是乎自己写了些比较笨的脚本来给华为的设备做配置比较。1)去华为设备抓配置#!/usr/local/bin/expectspawn telnet x.x.x.xexpect "sername:"send "xxxx\n"expect "assword:"send "xxxx\n"expect ">"send "...
http://www.jb51.net//article/9310.htm
共有:1/10,当前1/1页
[首页] [上一页]
1
[下一页] [尾页]
转到:
