Page 1 of 1

Backup switch conf

Posted: 07 Jan 2020 11:37
by kksan
Hi all,
I'm attempting to backup switch configuration without using Omnivista.
I'm using this script on centos:

#!/usr/bin/expect
spawn ssh 172.18.1.101
expect "login as:"
send "xxx\r"
expect "Password:"
send "yyy\r"
send "write terminal\r" > /tmp/scriptbkpswitch/testkbkp.txt


It seems to not work. I have installed expect command.
Do you have any hint?
Thank you!


kksan