Re: send (General questions)
I love you Drazen
I love you Kreso
I love all of you WODSSH.net
It is working with the following code:
-----
Ssh1.Send( enable\n );
Ssh1.Send( enablePassword\n );
outputTxt.Text += receiveLast();
-----
Please check the website: http://eltagi.dyndns.org/securerouter/
-----
Up to now we are fine and it will be so fine if you help to do the following:
1. When I issue command like show run the data received partially; so I need to send space bar to the router to receive the next patch.
2. Also if I want to cancel receiving data, I need to send CTRL+C .
How can I do these.
----eg: start here ---------
myhost#sh run
Building configuration...
Current configuration : 2387 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname myhost
!
aaa new-model
!
!
aaa authentication login default enable
aaa authentication enable default enable
aaa authorization exec default none
aaa session-id common
enable secret 5 $1$m3Jx$1s5vUR1fkW7zFtxH0rw9v1
enable password xxxxxx
!
username uuuu password 0 pppp
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
--More--
myhost#
----------- eg: end here ------------
As you see --More-- indicate that there is more data to receive, so to get these data we should press space bar, or in our case send space bar to the router.
This is my code to implement this:
Ssh1.Send( \n );
outputTxt.Text += receiveLast();
But it is not responding. (Help is needed here).
Note that from the show run output, we saw the phrase myhost# immediatley after --More--. It should not appear if there is more data to receive.
Thanks
Complete thread:
- send enable command to Cisco router with enabl - eltaghi, 2006-04-08, 13:42
- Re: send - wodDrazen, 2006-04-08, 15:24
- Re: send - eltaghi, 2006-04-08, 16:57
- Re: send - woddrazen, 2006-04-08, 17:35
- Re: send - eltaghi, 2006-04-08, 17:48
- Re: send - woddrazen, 2006-04-08, 17:58
- Re: send - eltaghi, 2006-04-08, 18:07
- Re: send - wodDrazen, 2006-04-08, 18:48
- Re: send - wodSupport, 2006-04-08, 22:34
- Re: send - eltaghi, 2006-04-08, 23:39
- Re: send - wodDrazen, 2006-04-08, 23:47
- Re: send - wodDrazen, 2006-04-10, 13:11
- Re: send - eltaghi, 2006-04-11, 07:54
- Re: send - wodDrazen, 2006-04-10, 13:11
- Re: send - wodDrazen, 2006-04-08, 23:47
- Re: send - eltaghi, 2006-04-08, 23:39
- Re: send - wodSupport, 2006-04-08, 22:34
- Re: send - wodDrazen, 2006-04-08, 18:48
- Re: send - eltaghi, 2006-04-08, 18:07
- Re: send - woddrazen, 2006-04-08, 17:58
- Re: send - eltaghi, 2006-04-08, 17:48
- Re: send - woddrazen, 2006-04-08, 17:35
- Re: send - eltaghi, 2006-04-08, 16:57
- Re: send - wodDrazen, 2006-04-08, 15:24