Brocade Fibre Channel Networking Community

expect script not working

  • 1.  expect script not working

    Posted 03-26-2013 05:13 PM

    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?


    #BrocadeFibreChannelNetworkingCommunity