For more details, please see ourCookie Policy.

Fibre Channel (SAN)

Posts: 0

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 Broadcom Support Community

Get quick and easy access to valuable resources across the Broadcom Community Network.