Re: How to reload a Cisco Router in C#? (General questions)
Thanks for the quick reply,
I have set a breakpoint in the Connectd event to try to debug, but the code never gets past the .Connect() method, where it times out as described above.
I have tried telnet as well from the Code as well as from putty. The .Connect method still times out. Here is the current code:
Ssh1.Hostname = 192.168.0.1 ;
Ssh1.Login = user ;
Ssh1.Password = pass ;
Ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
Ssh1.Timeout = 10;
Ssh1.TerminalType = tty ;
Ssh1.Blocking = true;
Ssh1.Connect();
Ssh1.WaitFor( cisco871# );
Ssh1.Send( configure terminal
);
Ssh1.WaitFor( cisco871#(config) );
Ssh1.Send( file prompt quiet
);
Ssh1.WaitFor( cisco871#(config) );
Ssh1.Send( end
);
Ssh1.WaitFor( cisco871# );
Ssh1.Send( copy OldConfig startup-config
);
Ssh1.Send( reload
);
Ssh1.WaitFor( Proceed with reload? [confirm] );
Ssh1.Send(
);
TIA
Complete thread:
- How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-01, 23:46
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 00:02
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:41
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:46
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 08:58
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:20
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 12:42
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:45
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 13:49
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:03
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 20:11
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:46
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 21:39
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 21:57
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 22:01
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-13, 01:53
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-13, 09:13
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-13, 01:53
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 22:01
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 21:57
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 21:39
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:46
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 20:11
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:03
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 13:49
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:45
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 12:42
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:20
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 08:58
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:46
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:41
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 00:02