Fibre Channel (SAN)

Posts: 39
Registered: ‎12-08-2011

expect script not working

I am trying to run the following but it is not working

#!/usr/bin/expect -f

spawn ssh -l admin x.x.x.x

expect "*admin> "

send "alicreate 'host_vhba0','20:00:00:25:B5:11:0a:2F'\r"

expect "cfgsave\r"

expect "*Do you want to save Defined zoning configuration*"

send "y\r"

expect "*admin> "

send "exit\r"

expect eof

any idea why?

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook