How to reload a Cisco Router in C#? (General questions)
Hi,
Id like to specify a new configuration and reload my cisco router using wodSSH.Net. What is the recommended method for doing so?
Here is what I have so far, but it fails to get past the connect.
Ssh1.Login = user ;
Ssh1.Password = pass ;
Ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
Ssh1.Timeout = 10;
Ssh1.TerminalType = tty ;
Ssh1.Blocking = true;
Ssh1.Connect( 192.168.0.1 );
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(
);
Ssh1.Disconnect(); //Is this necessary?
Thanks
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