Backup switch conf

Post Reply
kksan
Member
Posts: 8
Joined: 30 Aug 2018 04:13

Backup switch conf

Post by kksan » 07 Jan 2020 11:37

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

Post Reply

Return to “OmniSwitch 6450”