in reply to Re^3: net-ssh-expect is giving error
in thread net-ssh-expect is giving error

is there any way I can rum the reboot command with out getting the error.

Replies are listed 'Best First'.
Re^5: net-ssh-expect is giving error
by marto (Cardinal) on Jan 17, 2014 at 08:23 UTC

    I'm not sure what you expect to happen. You use Net::SSH::Expect to reboot a remote device. Obviously when rebooting the ssh process on the device will be shut down. Are you simply looking to ignore the connection error reported by Net::SSH::Expect?

      Hey, when I tried with send command exec command. Now I am not getting that error and the device gets rebooted. Thanks!

        Hi James, How did you resolve this issue ? I am also seeing similar issue & am looking for solution

      Hi, I am also facing similar issue. I want to just ignore the connection error reported by Net::SSH:Expect. do you have a way to resolve this?

      Please advice