Quantcast
Channel: Mellanox Interconnect Community: Message List
Viewing all articles
Browse latest Browse all 6278

Re: How do you backup the configuration of IB Melannox switch SX6036?

$
0
0

Hi,

See below the suggested changes.

 

Ophir.

 

#!/usr/bin/expect

set timeout 10

set name "admin"

set pass1 "admin"

set hostlist "mellanox1"

spawn ssh $name@$hostlist

expect "Password:"

send "$pass1\r"

expect "*>"

send "enable\r"

expect "*#"

send "terminal length 800\r"

expect "*#"

send "no cli session paging enable\r"

expect "*#"

 

set time [exec date \+\%y\%m\%d]

set filename  $hostlist-$time

log_file /home/mydir/$filename

send "\r"

expect "*#"

send "show run\r"

expect "*#]"

send "exit\r"

log_file


Viewing all articles
Browse latest Browse all 6278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>